Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 28 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 14329927 | 1015 days ago | IN | 0 ETH | 0.00215155 | ||||
Register | 14329922 | 1015 days ago | IN | 0 ETH | 0.00683403 | ||||
Release | 14327548 | 1015 days ago | IN | 0 ETH | 0.00561539 | ||||
Release | 14321160 | 1016 days ago | IN | 0 ETH | 0.01344363 | ||||
Claim | 14315094 | 1017 days ago | IN | 0 ETH | 0.00623855 | ||||
Register | 14315086 | 1017 days ago | IN | 0 ETH | 0.02014038 | ||||
Release | 14314661 | 1017 days ago | IN | 0 ETH | 0.00848527 | ||||
Release | 14308317 | 1018 days ago | IN | 0 ETH | 0.01426677 | ||||
Release | 14301826 | 1019 days ago | IN | 0 ETH | 0.01022014 | ||||
Release | 14295329 | 1020 days ago | IN | 0 ETH | 0.0079409 | ||||
Claim | 14290842 | 1021 days ago | IN | 0 ETH | 0.01094479 | ||||
Register | 14290837 | 1021 days ago | IN | 0 ETH | 0.03104644 | ||||
Register | 14290562 | 1021 days ago | IN | 0 ETH | 0.01321541 | ||||
Claim | 14289646 | 1021 days ago | IN | 0 ETH | 0.00704047 | ||||
Register | 14289639 | 1021 days ago | IN | 0 ETH | 0.02948114 | ||||
Release | 14288973 | 1021 days ago | IN | 0 ETH | 0.00430865 | ||||
Release | 14288966 | 1021 days ago | IN | 0 ETH | 0.00452071 | ||||
Release | 14288960 | 1021 days ago | IN | 0 ETH | 0.00492892 | ||||
Release | 14288954 | 1021 days ago | IN | 0 ETH | 0.00550767 | ||||
Release | 14288947 | 1021 days ago | IN | 0 ETH | 0.00388319 | ||||
Release | 14288945 | 1021 days ago | IN | 0 ETH | 0.0031199 | ||||
Release | 14282399 | 1022 days ago | IN | 0 ETH | 0.00822761 | ||||
Release | 14275958 | 1023 days ago | IN | 0 ETH | 0.01181022 | ||||
Release | 14269456 | 1024 days ago | IN | 0 ETH | 0.01996807 | ||||
Release | 14263028 | 1025 days ago | IN | 0 ETH | 0.00889033 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
OKG
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; // An Omega Key and its owners struct OmegaKey { bool active; bool removed; // whether a Key is removed by a successful Reward claim uint8 order; // Order of the Key will be released uint256 keyId; // equal to the Id of the Voxo this Key was assigned to address[] owners; } // A Player's Omega Key collection struct Player { bool active; uint256[] keyids; // A Key # is equal to the Voxo's Id it was assigned to } /** * @title Omega Key Game Smart Contract * @dev All methods to conduct the Omega Key Game on-chain * @dev https://voxodeus.notion.site/Omega-Key-Game-143fcf958a254295a5a1e2b344867fca */ contract OKG is Ownable, Pausable { using SafeMath for uint256; using Address for address; // Mapping to handle Omega Keys mapping(uint256 => OmegaKey) public omegaKeys; // Mapping to handle Players mapping(address => Player) public players; // Event for when an Omega Key is released event OmegaKeyReleased(uint256[] OmegaKey, uint8[] order); // Event for when a Player registers their ownership of an Omega Key event OmegaKeyRegistered(address indexed Owner, uint256[] OmegaKey); // Event for when an Omega Key is removed from the game event OmegaKeyRemoved(address indexed Winner, uint256 indexed OmegaKey, uint256 indexed Tier, address[] allOwners); // Event for when the removal of an Omega Key is reversed event OmegaKeyRestored(address[] oldOwners, uint256 indexed OmegaKey); // Event for when an Omega Reward is successfully claimed event RewardClaimed(address indexed Winner, uint256 indexed Tier, uint256 Amount); // Event for when an Omega Reward's claim status is reverted to being available event RewardRestored(uint256 indexed Tier, uint256 Amount); // General Order of Omega Keys Released uint8 public releaseOrder; // Address of the NFT contract address public nftContract; // Availability of the Diamond Reward bool public isDiamondRewardClaimed; // Availability of the Gold Reward bool public isGoldRewardClaimed; // Availability of the Silver Reward bool public isSilverRewardClaimed; // Availability of the Bronze Reward bool public isBronzeRewardClaimed; constructor(address NFT_contract_address) { nftContract = NFT_contract_address; } modifier isReleased(uint256 _keyId) { require(isKey(_keyId), "VOXO: Omega Key not released"); _; } modifier whenNotGameOver() { require(!isGameOver(), "VOXO: Game Over"); _; } modifier isOmegaRewardAmount(uint256 _ethReward) { require(isOmegaReward(_ethReward), "VOXO: Reward for this ETH amount does not exist"); _; } /** * @dev Implementation / Instance of paused methods() in the ERC20. * @param status Setting the status boolean (True for paused, or False for unpaused) * See {ERC20Pausable}. */ function pause(bool status) public onlyOwner() { if (status) { _pause(); } else { _unpause(); } } /** * @dev Method to record the release of a new Omega Key * @dev A Key # is equal to the voxoId of the Voxo it is assigned to * @param _ids The Array of keyids */ function release(uint256[] calldata _ids) external onlyOwner() whenNotGameOver() whenNotPaused() { require(!hasDuplicates(_ids), "VOXO: Duplicate Key Ids"); uint8[] memory _order = new uint8[](_ids.length); for (uint i = 0; i < _ids.length; i++) { require((_ids[i] != uint(0)), "VOXO: Voxo Id cannot be Zero"); require(!isKey(_ids[i]), "VOXO: Voxo can only be assigned 1 Omega Key"); require(!isRemoved(_ids[i]), "VOXO: Voxo cannot be assigned to a removed Omega Key"); } for (uint i = 0; i < _ids.length; i++) { releaseOrder++; _order[i] = releaseOrder; omegaKeys[_ids[i]] = OmegaKey({ active: true, removed: false, order: releaseOrder, keyId: _ids[i], owners: new address[](0) }); } // Emit Event for the released Omega Key emit OmegaKeyReleased(_ids, _order); } /** * @dev Method to register a Player's ownership of an Omega Key * @param _keyIds The Voxo Id / Key # a player intends to register */ function register(uint256[] calldata _keyIds) external whenNotGameOver() whenNotPaused() { require(!hasDuplicates(_keyIds), "VOXO: Duplicate Key Ids"); // Instance of NFT VoxoDeus, to Verify the ownership IERC721 _token = IERC721(address(nftContract)); for (uint i = 0; i < _keyIds.length; i++) { require((_keyIds[i] != uint(0)), "VOXO: Voxo Id cannot be Zero"); require(isKey(_keyIds[i]), "VOXO: Omega Key not released"); require(!isRegistered(_keyIds[i], _msgSender()), "VOXO: Omega Key already registered"); require(_token.ownerOf(_keyIds[i]) == _msgSender(), "VOXO: You are not the owner of this KeyVoxo"); } for (uint i = 0; i < _keyIds.length; i++) { // register Player as an owner of this Omega Key omegaKeys[_keyIds[i]].owners.push(_msgSender()); // add Omega Key to a Player's Omega Key Collection if (players[_msgSender()].active) { players[_msgSender()].keyids.push(_keyIds[i]); } else { players[_msgSender()].active = true; players[_msgSender()].keyids.push(_keyIds[i]); } } // Emit Event for the Player registering an Omega Key emit OmegaKeyRegistered(_msgSender(), _keyIds); } /** * @dev Method to claim an Omega Reward * @dev To claim a Reward, a Player needs to have at least * @dev the Reward's required number of Keys in their Collection * @dev Key Requirements: 3 for Bronze, 4 for Silver, 6 for Gold, and 8 for Diamond. * @param _ethClaim The ETH amount the Reward's winner will be awarded */ function claim(uint256 _ethClaim) public whenNotGameOver() whenNotPaused() isOmegaRewardAmount(_ethClaim) { require(players[_msgSender()].active, "VOXO: Player does not exist"); // The Reward specifics uint256 noKeysRequired; // Tier Bronze if (_ethClaim == uint256(16)) { require(!isBronzeRewardClaimed, "VOXO: Bronze Reward already claimed"); require(players[_msgSender()].keyids.length >= 3, "VOXO: Player Key collection insufficient for this Reward"); noKeysRequired = 3; removeOmegaKeys(noKeysRequired); isBronzeRewardClaimed = true; } // Tier Silver if (_ethClaim == uint256(33)) { require(!isSilverRewardClaimed, "VOXO: Silver Reward already claimed"); require(players[_msgSender()].keyids.length >= 4, "VOXO: Player Key collection insufficient for this Reward"); noKeysRequired = 4; removeOmegaKeys(noKeysRequired); isSilverRewardClaimed = true; } // Tier Gold if (_ethClaim == uint256(66)) { require(!isGoldRewardClaimed, "VOXO: Gold Reward already claimed"); require(players[_msgSender()].keyids.length >= 6, "VOXO: Player Key collection insufficient for this Reward"); noKeysRequired = 6; removeOmegaKeys(noKeysRequired); isGoldRewardClaimed = true; } // Tier Diamond if (_ethClaim == uint256(135)) { require(!isDiamondRewardClaimed, "VOXO: Diamond Reward already claimed"); require(players[_msgSender()].keyids.length >= 8, "VOXO: Player Key collection insufficient for this Reward"); noKeysRequired = 8; removeOmegaKeys(noKeysRequired); isDiamondRewardClaimed = true; } emit RewardClaimed(_msgSender(), noKeysRequired, _ethClaim); } /** * @dev Method to remove Omega Keys. * @dev Omega Keys are removed from the game - burned - whenever a Player * @dev uses that Key # to claim a Reward. This method doesn't check the * @dev ownership of the VoxoId, as Players can own Omega Keys without * @dev still holding the KeyVoxo. * @dev * @dev Omega Keys are removed in the order that they were registered. * @dev Thus, a Player may still have Keys left after removing all the * @dev Keys they used to claim a Reward. * @dev * @param _keys Number of keys to burn */ function removeOmegaKeys(uint256 _keys) private { for (uint i = 0; i < _keys; i++) { // Select the Player's oldest remaining Key to burn uint256 keyToRemove = players[_msgSender()].keyids[0]; omegaKeys[keyToRemove].active = false; omegaKeys[keyToRemove].removed = true; // Remove all owners from that Key address[] memory allOwners = omegaKeys[keyToRemove].owners; // Likewise, the Omega Key must be removed from all Players whom // had previously registered it / added it to their Key Collection. for (uint j = 0; j < allOwners.length; j++) { players[allOwners[j]].keyids = removeKeyFromPlayer(keyToRemove, allOwners[j]); if (players[allOwners[j]].keyids.length > 0) { players[allOwners[j]].keyids.pop(); } } emit OmegaKeyRemoved(_msgSender(), keyToRemove, _keys, allOwners); } } /** * @dev Method to remove an Omega Key from a Player's Collection. * @param _keyId The Voxo Id / Key # - The Omega Key to remove * @param _player the owner of the Key Collection * @return keyids Player's Collection with the removed Keys removed */ function removeKeyFromPlayer(uint256 _keyId, address _player) internal view returns (uint256[] memory keyids) { keyids = players[_player].keyids; uint256 index = keyids.length; for (uint i = 0; i < index; i++) { if (keyids[i] == _keyId) { keyids[i] = keyids[index - 1]; delete keyids[index - 1]; } } } /** * @dev Method reverting the game state following an invalidated Omega Reward Claim * @dev Used exclusively in the unexpected case where a winning claim is found to be fraudulent * @dev or otherwise in conflict with the terms governing a player's participation in the game. * @param _ethReward the ETH payout amount corresponding to an Omega Reward tier */ function restoreReward(uint256 _ethReward) private { uint256 noKeysRequired = 0; if ((_ethReward == uint256(16)) && (isBronzeRewardClaimed)) { isBronzeRewardClaimed = false; noKeysRequired = 3; } if ((_ethReward == uint256(33)) && (isSilverRewardClaimed)) { isSilverRewardClaimed = false; noKeysRequired = 4; } if ((_ethReward == uint256(66)) && (isGoldRewardClaimed)) { isGoldRewardClaimed = false; noKeysRequired = 6; } if (_ethReward == uint256(135) && (isDiamondRewardClaimed)) { isDiamondRewardClaimed = false; noKeysRequired = 8; } emit RewardRestored(noKeysRequired, _ethReward); } /** * @dev Method to revert a removed Omega Key for all previous Owners * @dev Used exclusively in the unexpected case where a winning claim is found to be fraudulent * @dev or otherwise in conflict with the terms governing a player's participation in the game. * @param _keyIds an Array of Keys #s */ function revertRewardClaim(uint256 _ethReward, uint256[] memory _keyIds, address _disqualifiedPlayer) public onlyOwner() whenNotPaused() isOmegaRewardAmount(_ethReward) { require(!hasDuplicates(_keyIds), "VOXO: Duplicate Key Ids"); // Verify that all the Keys-to-be-restored were previously removed for (uint j = 0; j < _keyIds.length; j++) { require ((omegaKeys[_keyIds[j]].removed && !omegaKeys[_keyIds[j]].active), "VOXO: Omega Key is not removed"); } // Restore the Reward restoreReward(_ethReward); // Restore the Keys to the Player's Collection for (uint i = 0; i < _keyIds.length; i++) { address[] memory oldOwners; omegaKeys[_keyIds[i]].owners = removePlayer(_keyIds[i], _disqualifiedPlayer); if (omegaKeys[_keyIds[i]].owners.length > 0) { omegaKeys[_keyIds[i]].owners.pop(); oldOwners = omegaKeys[_keyIds[i]].owners; } uint8 oldOrder = omegaKeys[_keyIds[i]].order; omegaKeys[_keyIds[i]] = OmegaKey({ active: true, removed: false, order: oldOrder, keyId: _keyIds[i], owners: oldOwners }); // Add Key back to each Owner's Key Collection for(uint k = 0; k < omegaKeys[_keyIds[i]].owners.length; k++) { players[omegaKeys[_keyIds[i]].owners[k]].keyids.push(_keyIds[i]); } emit OmegaKeyRestored(omegaKeys[_keyIds[i]].owners, _keyIds[i]); } } /** * @dev Method to verify an Key # is among the released Omega Keys * @param _keyId The Voxo Id / Key # * @return True if the Key # was released, False if not */ function isKey(uint256 _keyId) public view returns (bool) { return omegaKeys[_keyId].active; } /** * @dev Method to verify that an Omega Key was removed * @param _keyId The Voxo Id / Key # * @return True if the Omega Key was removed, False if not */ function isRemoved(uint256 _keyId) public view returns (bool) { return omegaKeys[_keyId].removed; } /** * @dev Method to verify an ETH amount has a corresponding Omega Reward * @param _ethReward The ETH amount an Omega Reward pays out * @return True if Omega Reward with that ETH reward exists, False if not */ function isOmegaReward(uint256 _ethReward) public pure returns (bool) { return (_ethReward == uint256(16)) || (_ethReward == uint256(33)) || (_ethReward == uint256(66)) || (_ethReward == uint256(135)); } /** * @dev Method to verify that no Rewards are left unclaimed, * @dev marking the end of the Omega Key Game * @return True if all Reward are unavailable, False if at least one Reward is still available */ function isGameOver() public view returns (bool) { return (isDiamondRewardClaimed && isGoldRewardClaimed && isSilverRewardClaimed && isBronzeRewardClaimed); } /** * @dev Method to verify that a Player has registered an Omega Key * @param _keyId The Voxo Id / Key # * @return registered True if the Omega Key is registered, False if not */ function isRegistered(uint256 _keyId, address _owner) public view isReleased(_keyId) returns (bool registered) { registered = false; for (uint i = 0; i < omegaKeys[_keyId].owners.length; i++) { if (omegaKeys[_keyId].owners[i] == _owner) { registered = true; } } return registered; } /** * @dev Method returning the Player's Key Collection * @param _player The owner of the Key Collection * @return The list of Keys collected (and registered) by the Player */ function getKeyCollection(address _player) public view returns (uint256[] memory) { return players[_player].keyids; } /** * @dev Method returning the Player's Key Collection size * @param _player The owner of the Key Collection * @return The number of keys collected (and registered) by the Player */ function getKeyCollectionSize(address _player) public view returns (uint256 ) { return players[_player].keyids.length; } /** * @dev Method returning the Omega Key Collection without disqualified Player * @param _keyIds The Voxo Id / Key #, where the disqualified Player will be removed from * @param _disqualifiedPlayer The disqualifiedPlayer of the Key Collection * @return owners The Omega Key Collection without disqualified Player */ function removePlayer(uint256 _keyIds, address _disqualifiedPlayer) internal view returns (address[] memory owners) { owners = omegaKeys[_keyIds].owners; uint256 index = owners.length; for (uint i = 0; i < index; i++) { if (owners[i] == _disqualifiedPlayer) { owners[i] = owners[index - 1]; delete owners[index - 1]; } } } /** * Returns whether or not there's a duplicate. Runs in O(n^2). * @param A Array to search * @return Returns true if duplicate, false otherwise */ function hasDuplicates(uint256[] memory A) internal pure returns (bool) { if (A.length == 0) { return false; } for (uint256 i = 0; i < A.length - 1; i++) { for (uint256 j = i + 1; j < A.length; j++) { if (A[i] == A[j]) { return true; } } } return false; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ 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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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 no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @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; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"NFT_contract_address","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"OmegaKey","type":"uint256[]"}],"name":"OmegaKeyRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"OmegaKey","type":"uint256[]"},{"indexed":false,"internalType":"uint8[]","name":"order","type":"uint8[]"}],"name":"OmegaKeyReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Winner","type":"address"},{"indexed":true,"internalType":"uint256","name":"OmegaKey","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"Tier","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"allOwners","type":"address[]"}],"name":"OmegaKeyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"oldOwners","type":"address[]"},{"indexed":true,"internalType":"uint256","name":"OmegaKey","type":"uint256"}],"name":"OmegaKeyRestored","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Winner","type":"address"},{"indexed":true,"internalType":"uint256","name":"Tier","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"Tier","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"RewardRestored","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"_ethClaim","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_player","type":"address"}],"name":"getKeyCollection","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_player","type":"address"}],"name":"getKeyCollectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBronzeRewardClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDiamondRewardClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGameOver","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGoldRewardClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keyId","type":"uint256"}],"name":"isKey","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethReward","type":"uint256"}],"name":"isOmegaReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keyId","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"isRegistered","outputs":[{"internalType":"bool","name":"registered","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keyId","type":"uint256"}],"name":"isRemoved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSilverRewardClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"omegaKeys","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"bool","name":"removed","type":"bool"},{"internalType":"uint8","name":"order","type":"uint8"},{"internalType":"uint256","name":"keyId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"players","outputs":[{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_keyIds","type":"uint256[]"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseOrder","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethReward","type":"uint256"},{"internalType":"uint256[]","name":"_keyIds","type":"uint256[]"},{"internalType":"address","name":"_disqualifiedPlayer","type":"address"}],"name":"revertRewardClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002f7b38038062002f7b8339810160408190526200003491620000c8565b6200003f3362000078565b6000805460ff60a01b19169055600380546001600160a01b0390921661010002610100600160a81b0319909216919091179055620000f8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000da578081fd5b81516001600160a01b0381168114620000f1578182fd5b9392505050565b612e7380620001086000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c806387f6bf48116100e3578063cbcd3f631161008c578063d6f9c82c11610066578063d6f9c82c146103dd578063e2eb41ff14610417578063f2fde38b1461043a57600080fd5b8063cbcd3f631461039e578063cc8794fa146103b2578063d56d229d146103c557600080fd5b8063acda6abe116100bd578063acda6abe14610354578063b81f6e1814610368578063c157d3f31461037b57600080fd5b806387f6bf48146102f35780638da5cb5b14610307578063a0a831891461032c57600080fd5b8063379607f5116101455780635c975abb1161011f5780635c975abb146102c6578063715018a6146102d85780637a34289d146102e057600080fd5b8063379607f5146102815780633e97394c14610294578063412a31ce146102a757600080fd5b806319ee58e81161017657806319ee58e81461023a5780631ac0051b1461025a57806334120fd11461026d57600080fd5b806302329a291461019d5780630e04a7d8146101b2578063143202b6146101cf575b600080fd5b6101b06101ab366004612ac2565b61044d565b005b6101ba6104c5565b60405190151581526020015b60405180910390f35b61020f6101dd366004612ae2565b6001602081905260009182526040909120805491015460ff808316926101008104821692620100009091049091169084565b6040516101c694939291909315158452911515602084015260ff166040830152606082015260800190565b61024d610248366004612a13565b610519565b6040516101c69190612d5a565b6101ba610268366004612ae2565b610588565b6003546101ba90600160b01b900460ff1681565b6101b061028f366004612ae2565b6105b5565b6101b06102a2366004612a52565b610b9e565b6003546102b49060ff1681565b60405160ff90911681526020016101c6565b600054600160a01b900460ff166101ba565b6101b0611151565b6101b06102ee366004612a52565b6111b7565b6003546101ba90600160a81b900460ff1681565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101c6565b6101ba61033a366004612ae2565b600090815260016020526040902054610100900460ff1690565b6003546101ba90600160c01b900460ff1681565b6101ba610376366004612afa565b611725565b6101ba610389366004612ae2565b60009081526001602052604090205460ff1690565b6003546101ba90600160b81b900460ff1681565b6101b06103c0366004612b29565b61181c565b6003546103149061010090046001600160a01b031681565b6104096103eb366004612a13565b6001600160a01b031660009081526002602052604090206001015490565b6040519081526020016101c6565b6101ba610425366004612a13565b60026020526000908152604090205460ff1681565b6101b0610448366004612a13565b611fc8565b6000546001600160a01b031633146104ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b80156104bd576104ba612090565b50565b6104ba612135565b600354600090600160a81b900460ff1680156104ea5750600354600160b01b900460ff165b80156104ff5750600354600160b81b900460ff165b80156105145750600354600160c01b900460ff165b905090565b6001600160a01b03811660009081526002602090815260409182902060010180548351818402810184019094528084526060939283018282801561057c57602002820191906000526020600020905b815481526020019060010190808311610568575b50505050509050919050565b600060108214806105995750602182145b806105a45750604282145b806105af5750608782145b92915050565b6105bd6104c5565b156105fc5760405162461bcd60e51b815260206004820152600f60248201526e2b27ac279d1023b0b6b29027bb32b960891b60448201526064016104a3565b600054600160a01b900460ff16156106495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b8061065381610588565b6106b75760405162461bcd60e51b815260206004820152602f60248201527f564f584f3a2052657761726420666f7220746869732045544820616d6f756e7460448201526e08191bd95cc81b9bdd08195e1a5cdd608a1b60648201526084016104a3565b3360009081526002602052604090205460ff166107165760405162461bcd60e51b815260206004820152601b60248201527f564f584f3a20506c6179657220646f6573206e6f74206578697374000000000060448201526064016104a3565b6000601083141561082b57600354600160c01b900460ff16156107875760405162461bcd60e51b815260206004820152602360248201527f564f584f3a2042726f6e7a652052657761726420616c726561647920636c61696044820152621b595960ea1b60648201526084016104a3565b336000908152600260205260409020600101546003111561080b5760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b506003610817816121c2565b6003805460ff60c01b1916600160c01b1790555b602183141561093e57600354600160b81b900460ff161561089a5760405162461bcd60e51b815260206004820152602360248201527f564f584f3a2053696c7665722052657761726420616c726561647920636c61696044820152621b595960ea1b60648201526084016104a3565b336000908152600260205260409020600101546004111561091e5760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b50600461092a816121c2565b6003805460ff60b81b1916600160b81b1790555b6042831415610a4f57600354600160b01b900460ff16156109ab5760405162461bcd60e51b815260206004820152602160248201527f564f584f3a20476f6c642052657761726420616c726561647920636c61696d656044820152601960fa1b60648201526084016104a3565b3360009081526002602052604090206001015460061115610a2f5760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b506006610a3b816121c2565b6003805460ff60b01b1916600160b01b1790555b6087831415610b6257600354600160a81b900460ff1615610abe5760405162461bcd60e51b8152602060048201526024808201527f564f584f3a204469616d6f6e642052657761726420616c726561647920636c616044820152631a5b595960e21b60648201526084016104a3565b3360009081526002602052604090206001015460081115610b425760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b506008610b4e816121c2565b6003805460ff60a81b1916600160a81b1790555b604051838152819033907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317439060200160405180910390a3505050565b6000546001600160a01b03163314610bf85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b610c006104c5565b15610c3f5760405162461bcd60e51b815260206004820152600f60248201526e2b27ac279d1023b0b6b29027bb32b960891b60448201526064016104a3565b600054600160a01b900460ff1615610c8c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b610cc882828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061246d92505050565b15610d0f5760405162461bcd60e51b8152602060048201526017602482015276564f584f3a204475706c6963617465204b65792049647360481b60448201526064016104a3565b60008167ffffffffffffffff811115610d3857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d61578160200160208202803683370190505b50905060005b82811015610f50576000848483818110610d9157634e487b7160e01b600052603260045260246000fd5b905060200201351415610de65760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a20566f786f2049642063616e6e6f74206265205a65726f0000000060448201526064016104a3565b610e25848483818110610e0957634e487b7160e01b600052603260045260246000fd5b9050602002013560009081526001602052604090205460ff1690565b15610e865760405162461bcd60e51b815260206004820152602b60248201527f564f584f3a20566f786f2063616e206f6e6c792062652061737369676e65642060448201526a31204f6d656761204b657960a81b60648201526084016104a3565b610ecb848483818110610ea957634e487b7160e01b600052603260045260246000fd5b9050602002013560009081526001602052604090205460ff6101009091041690565b15610f3e5760405162461bcd60e51b815260206004820152603460248201527f564f584f3a20566f786f2063616e6e6f742062652061737369676e656420746f60448201527f20612072656d6f766564204f6d656761204b657900000000000000000000000060648201526084016104a3565b80610f4881612dc1565b915050610d67565b5060005b82811015611110576003805460ff16906000610f6f83612ddc565b91906101000a81548160ff021916908360ff16021790555050600360009054906101000a900460ff16828281518110610fb857634e487b7160e01b600052603260045260246000fd5b60ff9283166020918202929092018101919091526040805160a08101825260018152600092810192909252600354909216918101919091526060810185858481811061101457634e487b7160e01b600052603260045260246000fd5b6020908102929092013583525001600060405190808252806020026020018201604052801561104d578160200160208202803683370190505b5090526001600086868581811061107457634e487b7160e01b600052603260045260246000fd5b6020908102929092013583525081810192909252604090810160002083518154858501519386015160ff16620100000262ff0000199415156101000261ff00199315159390931661ffff19909216919091179190911792909216919091178155606083015160018201556080830151805191926110f99260028501929091019061294e565b50905050808061110890612dc1565b915050610f54565b507f2a23dc5271c77cfe10b8c54de65c6ba41d65234933e113d00028f09bdf987fb783838360405161114493929190612cff565b60405180910390a1505050565b6000546001600160a01b031633146111ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6111b56000612540565b565b6111bf6104c5565b156111fe5760405162461bcd60e51b815260206004820152600f60248201526e2b27ac279d1023b0b6b29027bb32b960891b60448201526064016104a3565b600054600160a01b900460ff161561124b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b61128782828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061246d92505050565b156112ce5760405162461bcd60e51b8152602060048201526017602482015276564f584f3a204475706c6963617465204b65792049647360481b60448201526064016104a3565b60035461010090046001600160a01b031660005b8281101561157a57600084848381811061130c57634e487b7160e01b600052603260045260246000fd5b9050602002013514156113615760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a20566f786f2049642063616e6e6f74206265205a65726f0000000060448201526064016104a3565b611384848483818110610e0957634e487b7160e01b600052603260045260246000fd5b6113d05760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a204f6d656761204b6579206e6f742072656c65617365640000000060448201526064016104a3565b6114018484838181106113f357634e487b7160e01b600052603260045260246000fd5b905060200201356103763390565b156114595760405162461bcd60e51b815260206004820152602260248201527f564f584f3a204f6d656761204b657920616c7265616479207265676973746572604482015261195960f21b60648201526084016104a3565b336001600160a01b038316636352211e86868581811061148957634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016114ae91815260200190565b60206040518083038186803b1580156114c657600080fd5b505afa1580156114da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fe9190612a36565b6001600160a01b0316146115685760405162461bcd60e51b815260206004820152602b60248201527f564f584f3a20596f7520617265206e6f7420746865206f776e6572206f66207460448201526a686973204b6579566f786f60a81b60648201526084016104a3565b8061157281612dc1565b9150506112e2565b5060005b828110156116dc57600160008585848181106115aa57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206002016115c93390565b81546001810183556000928352602080842090910180546001600160a01b0319166001600160a01b03939093169290921790915533825260029052604090205460ff161561166a5733600090815260026020526040902060010184848381811061164357634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155506116ca565b336000908152600260205260409020805460ff191660019081178255018484838181106116a757634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155505b806116d481612dc1565b91505061157e565b50336001600160a01b03167f753d21bbb880967e02aaf0e8df95c4abb4772ead14d0ed21badea5402ea40f958484604051611718929190612ce3565b60405180910390a2505050565b600082815260016020526040812054839060ff166117855760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a204f6d656761204b6579206e6f742072656c65617365640000000060448201526064016104a3565b6000915060005b60008581526001602052604090206002015481101561181457600085815260016020526040902060020180546001600160a01b0386169190839081106117e257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561180257600192505b8061180c81612dc1565b91505061178c565b505092915050565b6000546001600160a01b031633146118765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b600054600160a01b900460ff16156118c35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b826118cd81610588565b6119315760405162461bcd60e51b815260206004820152602f60248201527f564f584f3a2052657761726420666f7220746869732045544820616d6f756e7460448201526e08191bd95cc81b9bdd08195e1a5cdd608a1b60648201526084016104a3565b61193a8361246d565b156119815760405162461bcd60e51b8152602060048201526017602482015276564f584f3a204475706c6963617465204b65792049647360481b60448201526064016104a3565b60005b8351811015611a8157600160008583815181106119b157634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160019054906101000a900460ff168015611a23575060016000858381518110611a0357634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528101919091526040016000205460ff16155b611a6f5760405162461bcd60e51b815260206004820152601e60248201527f564f584f3a204f6d656761204b6579206973206e6f742072656d6f766564000060448201526064016104a3565b80611a7981612dc1565b915050611984565b50611a8b84612590565b60005b8351811015611fc1576060611aca858381518110611abc57634e487b7160e01b600052603260045260246000fd5b60200260200101518561268a565b60016000878581518110611aee57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206002019080519060200190611b1a92919061294e565b50600060016000878581518110611b4157634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201805490501115611c7f5760016000868481518110611b8857634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201805480611bbe57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160006101000a8154906001600160a01b030219169055905560016000868481518110611c0a57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201805480602002602001604051908101604052809291908181526020018280548015611c7757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c59575b505050505090505b600060016000878581518110611ca557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160029054906101000a900460ff1690506040518060a001604052806001151581526020016000151581526020018260ff168152602001878581518110611d1457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020018381525060016000888681518110611d4957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825281810192909252604090810160002083518154858501519386015160ff16620100000262ff0000199415156101000261ff00199315159390931661ffff1990921691909117919091179290921691909117815560608301516001820155608083015180519192611dcf9260028501929091019061294e565b5090505060005b60016000888681518110611dfa57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060020180549050811015611f105760026000600160008a8881518110611e4657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206002018381548110611e7e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020600101878581518110611edf57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845291909220015580611f0881612dc1565b915050611dd6565b50858381518110611f3157634e487b7160e01b600052603260045260246000fd5b60200260200101517ffcaf55f7f0fd4b1984eca24e3bca735e38fb53994d9cbad2b2bc5ca3fd5cdf7f60016000898781518110611f7e57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201604051611fa49190612c9f565b60405180910390a250508080611fb990612dc1565b915050611a8e565b5050505050565b6000546001600160a01b031633146120225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b0381166120875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a3565b6104ba81612540565b600054600160a01b900460ff16156120dd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121183390565b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff1661218e5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016104a3565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612118565b60005b8181101561246957336000908152600260205260408120600101805482906121fd57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910154808352600182526040808420805461ffff19166101001781556002018054825181860281018601909352808352929550909290919083018282801561227957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161225b575b5050505050905060005b8151811015612410576122bd838383815181106122b057634e487b7160e01b600052603260045260246000fd5b6020026020010151612800565b600260008484815181106122e157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600101908051906020019061231f9291906129b3565b5060006002600084848151811061234657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001018054905011156123fe576002600083838151811061239f57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001018054806123e757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555b8061240881612dc1565b915050612283565b508382336001600160a01b03167fd9e49ffd3d8d81a63bcaedd3d4e767bac1bc92d064ee1b51f32d664c06e208ff8460405161244c9190612c52565b60405180910390a45050808061246190612dc1565b9150506121c5565b5050565b600081516000141561248157506000919050565b60005b600183516124929190612daa565b8110156125375760006124a6826001612d92565b90505b8351811015612524578381815181106124d257634e487b7160e01b600052603260045260246000fd5b60200260200101518483815181106124fa57634e487b7160e01b600052603260045260246000fd5b60200260200101511415612512575060019392505050565b8061251c81612dc1565b9150506124a9565b508061252f81612dc1565b915050612484565b50600092915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006010821480156125ab5750600354600160c01b900460ff165b156125bf57506003805460ff60c01b191681555b6021821480156125d85750600354600160b81b900460ff165b156125ee57506003805460ff60b81b1916905560045b6042821480156126075750600354600160b01b900460ff165b1561261d57506003805460ff60b01b1916905560065b6087821480156126365750600354600160a81b900460ff165b1561264c57506003805460ff60a81b1916905560085b807f042cc2fb0f2899a786e5bc6ae846e6b48a5460fb86e1f07e72a9737fdba0730e8360405161267e91815260200190565b60405180910390a25050565b6000828152600160209081526040918290206002018054835181840281018401909452808452606093928301828280156126ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116126cf575b505083519394506000925050505b8181101561181457836001600160a01b031683828151811061272d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156127ee5782612750600184612daa565b8151811061276e57634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061279657634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152826127ba600184612daa565b815181106127d857634e487b7160e01b600052603260045260246000fd5b6020026020010160006001600160a01b03168152505b806127f881612dc1565b9150506126fb565b6001600160a01b03811660009081526002602090815260409182902060010180548351818402810184019094528084526060939283018282801561286357602002820191906000526020600020905b81548152602001906001019080831161284f575b505083519394506000925050505b81811015611814578483828151811061289a57634e487b7160e01b600052603260045260246000fd5b6020026020010151141561293c57826128b4600184612daa565b815181106128d257634e487b7160e01b600052603260045260246000fd5b60200260200101518382815181106128fa57634e487b7160e01b600052603260045260246000fd5b602090810291909101015282612911600184612daa565b8151811061292f57634e487b7160e01b600052603260045260246000fd5b6020026020010160008152505b8061294681612dc1565b915050612871565b8280548282559060005260206000209081019282156129a3579160200282015b828111156129a357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061296e565b506129af9291506129ee565b5090565b8280548282559060005260206000209081019282156129a3579160200282015b828111156129a35782518255916020019190600101906129d3565b5b808211156129af57600081556001016129ef565b8035612a0e81612e28565b919050565b600060208284031215612a24578081fd5b8135612a2f81612e28565b9392505050565b600060208284031215612a47578081fd5b8151612a2f81612e28565b60008060208385031215612a64578081fd5b823567ffffffffffffffff80821115612a7b578283fd5b818501915085601f830112612a8e578283fd5b813581811115612a9c578384fd5b8660208260051b8501011115612ab0578384fd5b60209290920196919550909350505050565b600060208284031215612ad3578081fd5b81358015158114612a2f578182fd5b600060208284031215612af3578081fd5b5035919050565b60008060408385031215612b0c578182fd5b823591506020830135612b1e81612e28565b809150509250929050565b600080600060608486031215612b3d578081fd5b8335925060208085013567ffffffffffffffff80821115612b5c578384fd5b818701915087601f830112612b6f578384fd5b813581811115612b8157612b81612e12565b8060051b604051601f19603f83011681018181108582111715612ba657612ba6612e12565b604052828152858101935084860182860187018c1015612bc4578788fd5b8795505b83861015612be6578035855260019590950194938601938601612bc8565b50809750505050505050612bfc60408501612a03565b90509250925092565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612c36578081fd5b8260051b80836020870137939093016020019283525090919050565b6020808252825182820181905260009190848201906040850190845b81811015612c935783516001600160a01b031683529284019291840191600101612c6e565b50909695505050505050565b6020808252825482820181905260008481528281209092916040850190845b81811015612c935783546001600160a01b031683526001938401939285019201612cbe565b602081526000612cf7602083018486612c05565b949350505050565b604081526000612d13604083018587612c05565b828103602084810191909152845180835285820192820190845b81811015612d4c57845160ff1683529383019391830191600101612d2d565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612c9357835183529284019291840191600101612d76565b60008219821115612da557612da5612dfc565b500190565b600082821015612dbc57612dbc612dfc565b500390565b6000600019821415612dd557612dd5612dfc565b5060010190565b600060ff821660ff811415612df357612df3612dfc565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104ba57600080fdfea264697066735822122080a5899bd6fb7c4dba6cc165986fe3ab9acd037884baa275af400afd9fb4c42f64736f6c63430008040033000000000000000000000000afba8c6b3875868a90e5055e791213258a9fe7a7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101985760003560e01c806387f6bf48116100e3578063cbcd3f631161008c578063d6f9c82c11610066578063d6f9c82c146103dd578063e2eb41ff14610417578063f2fde38b1461043a57600080fd5b8063cbcd3f631461039e578063cc8794fa146103b2578063d56d229d146103c557600080fd5b8063acda6abe116100bd578063acda6abe14610354578063b81f6e1814610368578063c157d3f31461037b57600080fd5b806387f6bf48146102f35780638da5cb5b14610307578063a0a831891461032c57600080fd5b8063379607f5116101455780635c975abb1161011f5780635c975abb146102c6578063715018a6146102d85780637a34289d146102e057600080fd5b8063379607f5146102815780633e97394c14610294578063412a31ce146102a757600080fd5b806319ee58e81161017657806319ee58e81461023a5780631ac0051b1461025a57806334120fd11461026d57600080fd5b806302329a291461019d5780630e04a7d8146101b2578063143202b6146101cf575b600080fd5b6101b06101ab366004612ac2565b61044d565b005b6101ba6104c5565b60405190151581526020015b60405180910390f35b61020f6101dd366004612ae2565b6001602081905260009182526040909120805491015460ff808316926101008104821692620100009091049091169084565b6040516101c694939291909315158452911515602084015260ff166040830152606082015260800190565b61024d610248366004612a13565b610519565b6040516101c69190612d5a565b6101ba610268366004612ae2565b610588565b6003546101ba90600160b01b900460ff1681565b6101b061028f366004612ae2565b6105b5565b6101b06102a2366004612a52565b610b9e565b6003546102b49060ff1681565b60405160ff90911681526020016101c6565b600054600160a01b900460ff166101ba565b6101b0611151565b6101b06102ee366004612a52565b6111b7565b6003546101ba90600160a81b900460ff1681565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101c6565b6101ba61033a366004612ae2565b600090815260016020526040902054610100900460ff1690565b6003546101ba90600160c01b900460ff1681565b6101ba610376366004612afa565b611725565b6101ba610389366004612ae2565b60009081526001602052604090205460ff1690565b6003546101ba90600160b81b900460ff1681565b6101b06103c0366004612b29565b61181c565b6003546103149061010090046001600160a01b031681565b6104096103eb366004612a13565b6001600160a01b031660009081526002602052604090206001015490565b6040519081526020016101c6565b6101ba610425366004612a13565b60026020526000908152604090205460ff1681565b6101b0610448366004612a13565b611fc8565b6000546001600160a01b031633146104ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b80156104bd576104ba612090565b50565b6104ba612135565b600354600090600160a81b900460ff1680156104ea5750600354600160b01b900460ff165b80156104ff5750600354600160b81b900460ff165b80156105145750600354600160c01b900460ff165b905090565b6001600160a01b03811660009081526002602090815260409182902060010180548351818402810184019094528084526060939283018282801561057c57602002820191906000526020600020905b815481526020019060010190808311610568575b50505050509050919050565b600060108214806105995750602182145b806105a45750604282145b806105af5750608782145b92915050565b6105bd6104c5565b156105fc5760405162461bcd60e51b815260206004820152600f60248201526e2b27ac279d1023b0b6b29027bb32b960891b60448201526064016104a3565b600054600160a01b900460ff16156106495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b8061065381610588565b6106b75760405162461bcd60e51b815260206004820152602f60248201527f564f584f3a2052657761726420666f7220746869732045544820616d6f756e7460448201526e08191bd95cc81b9bdd08195e1a5cdd608a1b60648201526084016104a3565b3360009081526002602052604090205460ff166107165760405162461bcd60e51b815260206004820152601b60248201527f564f584f3a20506c6179657220646f6573206e6f74206578697374000000000060448201526064016104a3565b6000601083141561082b57600354600160c01b900460ff16156107875760405162461bcd60e51b815260206004820152602360248201527f564f584f3a2042726f6e7a652052657761726420616c726561647920636c61696044820152621b595960ea1b60648201526084016104a3565b336000908152600260205260409020600101546003111561080b5760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b506003610817816121c2565b6003805460ff60c01b1916600160c01b1790555b602183141561093e57600354600160b81b900460ff161561089a5760405162461bcd60e51b815260206004820152602360248201527f564f584f3a2053696c7665722052657761726420616c726561647920636c61696044820152621b595960ea1b60648201526084016104a3565b336000908152600260205260409020600101546004111561091e5760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b50600461092a816121c2565b6003805460ff60b81b1916600160b81b1790555b6042831415610a4f57600354600160b01b900460ff16156109ab5760405162461bcd60e51b815260206004820152602160248201527f564f584f3a20476f6c642052657761726420616c726561647920636c61696d656044820152601960fa1b60648201526084016104a3565b3360009081526002602052604090206001015460061115610a2f5760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b506006610a3b816121c2565b6003805460ff60b01b1916600160b01b1790555b6087831415610b6257600354600160a81b900460ff1615610abe5760405162461bcd60e51b8152602060048201526024808201527f564f584f3a204469616d6f6e642052657761726420616c726561647920636c616044820152631a5b595960e21b60648201526084016104a3565b3360009081526002602052604090206001015460081115610b425760405162461bcd60e51b815260206004820152603860248201527f564f584f3a20506c61796572204b657920636f6c6c656374696f6e20696e737560448201527719999a58da595b9d08199bdc881d1a1a5cc814995dd85c9960421b60648201526084016104a3565b506008610b4e816121c2565b6003805460ff60a81b1916600160a81b1790555b604051838152819033907ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317439060200160405180910390a3505050565b6000546001600160a01b03163314610bf85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b610c006104c5565b15610c3f5760405162461bcd60e51b815260206004820152600f60248201526e2b27ac279d1023b0b6b29027bb32b960891b60448201526064016104a3565b600054600160a01b900460ff1615610c8c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b610cc882828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061246d92505050565b15610d0f5760405162461bcd60e51b8152602060048201526017602482015276564f584f3a204475706c6963617465204b65792049647360481b60448201526064016104a3565b60008167ffffffffffffffff811115610d3857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d61578160200160208202803683370190505b50905060005b82811015610f50576000848483818110610d9157634e487b7160e01b600052603260045260246000fd5b905060200201351415610de65760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a20566f786f2049642063616e6e6f74206265205a65726f0000000060448201526064016104a3565b610e25848483818110610e0957634e487b7160e01b600052603260045260246000fd5b9050602002013560009081526001602052604090205460ff1690565b15610e865760405162461bcd60e51b815260206004820152602b60248201527f564f584f3a20566f786f2063616e206f6e6c792062652061737369676e65642060448201526a31204f6d656761204b657960a81b60648201526084016104a3565b610ecb848483818110610ea957634e487b7160e01b600052603260045260246000fd5b9050602002013560009081526001602052604090205460ff6101009091041690565b15610f3e5760405162461bcd60e51b815260206004820152603460248201527f564f584f3a20566f786f2063616e6e6f742062652061737369676e656420746f60448201527f20612072656d6f766564204f6d656761204b657900000000000000000000000060648201526084016104a3565b80610f4881612dc1565b915050610d67565b5060005b82811015611110576003805460ff16906000610f6f83612ddc565b91906101000a81548160ff021916908360ff16021790555050600360009054906101000a900460ff16828281518110610fb857634e487b7160e01b600052603260045260246000fd5b60ff9283166020918202929092018101919091526040805160a08101825260018152600092810192909252600354909216918101919091526060810185858481811061101457634e487b7160e01b600052603260045260246000fd5b6020908102929092013583525001600060405190808252806020026020018201604052801561104d578160200160208202803683370190505b5090526001600086868581811061107457634e487b7160e01b600052603260045260246000fd5b6020908102929092013583525081810192909252604090810160002083518154858501519386015160ff16620100000262ff0000199415156101000261ff00199315159390931661ffff19909216919091179190911792909216919091178155606083015160018201556080830151805191926110f99260028501929091019061294e565b50905050808061110890612dc1565b915050610f54565b507f2a23dc5271c77cfe10b8c54de65c6ba41d65234933e113d00028f09bdf987fb783838360405161114493929190612cff565b60405180910390a1505050565b6000546001600160a01b031633146111ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6111b56000612540565b565b6111bf6104c5565b156111fe5760405162461bcd60e51b815260206004820152600f60248201526e2b27ac279d1023b0b6b29027bb32b960891b60448201526064016104a3565b600054600160a01b900460ff161561124b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b61128782828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061246d92505050565b156112ce5760405162461bcd60e51b8152602060048201526017602482015276564f584f3a204475706c6963617465204b65792049647360481b60448201526064016104a3565b60035461010090046001600160a01b031660005b8281101561157a57600084848381811061130c57634e487b7160e01b600052603260045260246000fd5b9050602002013514156113615760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a20566f786f2049642063616e6e6f74206265205a65726f0000000060448201526064016104a3565b611384848483818110610e0957634e487b7160e01b600052603260045260246000fd5b6113d05760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a204f6d656761204b6579206e6f742072656c65617365640000000060448201526064016104a3565b6114018484838181106113f357634e487b7160e01b600052603260045260246000fd5b905060200201356103763390565b156114595760405162461bcd60e51b815260206004820152602260248201527f564f584f3a204f6d656761204b657920616c7265616479207265676973746572604482015261195960f21b60648201526084016104a3565b336001600160a01b038316636352211e86868581811061148957634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016114ae91815260200190565b60206040518083038186803b1580156114c657600080fd5b505afa1580156114da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fe9190612a36565b6001600160a01b0316146115685760405162461bcd60e51b815260206004820152602b60248201527f564f584f3a20596f7520617265206e6f7420746865206f776e6572206f66207460448201526a686973204b6579566f786f60a81b60648201526084016104a3565b8061157281612dc1565b9150506112e2565b5060005b828110156116dc57600160008585848181106115aa57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000206002016115c93390565b81546001810183556000928352602080842090910180546001600160a01b0319166001600160a01b03939093169290921790915533825260029052604090205460ff161561166a5733600090815260026020526040902060010184848381811061164357634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155506116ca565b336000908152600260205260409020805460ff191660019081178255018484838181106116a757634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155505b806116d481612dc1565b91505061157e565b50336001600160a01b03167f753d21bbb880967e02aaf0e8df95c4abb4772ead14d0ed21badea5402ea40f958484604051611718929190612ce3565b60405180910390a2505050565b600082815260016020526040812054839060ff166117855760405162461bcd60e51b815260206004820152601c60248201527f564f584f3a204f6d656761204b6579206e6f742072656c65617365640000000060448201526064016104a3565b6000915060005b60008581526001602052604090206002015481101561181457600085815260016020526040902060020180546001600160a01b0386169190839081106117e257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561180257600192505b8061180c81612dc1565b91505061178c565b505092915050565b6000546001600160a01b031633146118765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b600054600160a01b900460ff16156118c35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b826118cd81610588565b6119315760405162461bcd60e51b815260206004820152602f60248201527f564f584f3a2052657761726420666f7220746869732045544820616d6f756e7460448201526e08191bd95cc81b9bdd08195e1a5cdd608a1b60648201526084016104a3565b61193a8361246d565b156119815760405162461bcd60e51b8152602060048201526017602482015276564f584f3a204475706c6963617465204b65792049647360481b60448201526064016104a3565b60005b8351811015611a8157600160008583815181106119b157634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160019054906101000a900460ff168015611a23575060016000858381518110611a0357634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528101919091526040016000205460ff16155b611a6f5760405162461bcd60e51b815260206004820152601e60248201527f564f584f3a204f6d656761204b6579206973206e6f742072656d6f766564000060448201526064016104a3565b80611a7981612dc1565b915050611984565b50611a8b84612590565b60005b8351811015611fc1576060611aca858381518110611abc57634e487b7160e01b600052603260045260246000fd5b60200260200101518561268a565b60016000878581518110611aee57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206002019080519060200190611b1a92919061294e565b50600060016000878581518110611b4157634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201805490501115611c7f5760016000868481518110611b8857634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201805480611bbe57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160006101000a8154906001600160a01b030219169055905560016000868481518110611c0a57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201805480602002602001604051908101604052809291908181526020018280548015611c7757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c59575b505050505090505b600060016000878581518110611ca557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060000160029054906101000a900460ff1690506040518060a001604052806001151581526020016000151581526020018260ff168152602001878581518110611d1457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020018381525060016000888681518110611d4957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825281810192909252604090810160002083518154858501519386015160ff16620100000262ff0000199415156101000261ff00199315159390931661ffff1990921691909117919091179290921691909117815560608301516001820155608083015180519192611dcf9260028501929091019061294e565b5090505060005b60016000888681518110611dfa57634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060020180549050811015611f105760026000600160008a8881518110611e4657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206002018381548110611e7e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020600101878581518110611edf57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845291909220015580611f0881612dc1565b915050611dd6565b50858381518110611f3157634e487b7160e01b600052603260045260246000fd5b60200260200101517ffcaf55f7f0fd4b1984eca24e3bca735e38fb53994d9cbad2b2bc5ca3fd5cdf7f60016000898781518110611f7e57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020600201604051611fa49190612c9f565b60405180910390a250508080611fb990612dc1565b915050611a8e565b5050505050565b6000546001600160a01b031633146120225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104a3565b6001600160a01b0381166120875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a3565b6104ba81612540565b600054600160a01b900460ff16156120dd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a3565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121183390565b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff1661218e5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016104a3565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612118565b60005b8181101561246957336000908152600260205260408120600101805482906121fd57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910154808352600182526040808420805461ffff19166101001781556002018054825181860281018601909352808352929550909290919083018282801561227957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161225b575b5050505050905060005b8151811015612410576122bd838383815181106122b057634e487b7160e01b600052603260045260246000fd5b6020026020010151612800565b600260008484815181106122e157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600101908051906020019061231f9291906129b3565b5060006002600084848151811061234657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001018054905011156123fe576002600083838151811061239f57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001018054806123e757634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590555b8061240881612dc1565b915050612283565b508382336001600160a01b03167fd9e49ffd3d8d81a63bcaedd3d4e767bac1bc92d064ee1b51f32d664c06e208ff8460405161244c9190612c52565b60405180910390a45050808061246190612dc1565b9150506121c5565b5050565b600081516000141561248157506000919050565b60005b600183516124929190612daa565b8110156125375760006124a6826001612d92565b90505b8351811015612524578381815181106124d257634e487b7160e01b600052603260045260246000fd5b60200260200101518483815181106124fa57634e487b7160e01b600052603260045260246000fd5b60200260200101511415612512575060019392505050565b8061251c81612dc1565b9150506124a9565b508061252f81612dc1565b915050612484565b50600092915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006010821480156125ab5750600354600160c01b900460ff165b156125bf57506003805460ff60c01b191681555b6021821480156125d85750600354600160b81b900460ff165b156125ee57506003805460ff60b81b1916905560045b6042821480156126075750600354600160b01b900460ff165b1561261d57506003805460ff60b01b1916905560065b6087821480156126365750600354600160a81b900460ff165b1561264c57506003805460ff60a81b1916905560085b807f042cc2fb0f2899a786e5bc6ae846e6b48a5460fb86e1f07e72a9737fdba0730e8360405161267e91815260200190565b60405180910390a25050565b6000828152600160209081526040918290206002018054835181840281018401909452808452606093928301828280156126ed57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116126cf575b505083519394506000925050505b8181101561181457836001600160a01b031683828151811061272d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156127ee5782612750600184612daa565b8151811061276e57634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061279657634e487b7160e01b600052603260045260246000fd5b6001600160a01b0390921660209283029190910190910152826127ba600184612daa565b815181106127d857634e487b7160e01b600052603260045260246000fd5b6020026020010160006001600160a01b03168152505b806127f881612dc1565b9150506126fb565b6001600160a01b03811660009081526002602090815260409182902060010180548351818402810184019094528084526060939283018282801561286357602002820191906000526020600020905b81548152602001906001019080831161284f575b505083519394506000925050505b81811015611814578483828151811061289a57634e487b7160e01b600052603260045260246000fd5b6020026020010151141561293c57826128b4600184612daa565b815181106128d257634e487b7160e01b600052603260045260246000fd5b60200260200101518382815181106128fa57634e487b7160e01b600052603260045260246000fd5b602090810291909101015282612911600184612daa565b8151811061292f57634e487b7160e01b600052603260045260246000fd5b6020026020010160008152505b8061294681612dc1565b915050612871565b8280548282559060005260206000209081019282156129a3579160200282015b828111156129a357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061296e565b506129af9291506129ee565b5090565b8280548282559060005260206000209081019282156129a3579160200282015b828111156129a35782518255916020019190600101906129d3565b5b808211156129af57600081556001016129ef565b8035612a0e81612e28565b919050565b600060208284031215612a24578081fd5b8135612a2f81612e28565b9392505050565b600060208284031215612a47578081fd5b8151612a2f81612e28565b60008060208385031215612a64578081fd5b823567ffffffffffffffff80821115612a7b578283fd5b818501915085601f830112612a8e578283fd5b813581811115612a9c578384fd5b8660208260051b8501011115612ab0578384fd5b60209290920196919550909350505050565b600060208284031215612ad3578081fd5b81358015158114612a2f578182fd5b600060208284031215612af3578081fd5b5035919050565b60008060408385031215612b0c578182fd5b823591506020830135612b1e81612e28565b809150509250929050565b600080600060608486031215612b3d578081fd5b8335925060208085013567ffffffffffffffff80821115612b5c578384fd5b818701915087601f830112612b6f578384fd5b813581811115612b8157612b81612e12565b8060051b604051601f19603f83011681018181108582111715612ba657612ba6612e12565b604052828152858101935084860182860187018c1015612bc4578788fd5b8795505b83861015612be6578035855260019590950194938601938601612bc8565b50809750505050505050612bfc60408501612a03565b90509250925092565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612c36578081fd5b8260051b80836020870137939093016020019283525090919050565b6020808252825182820181905260009190848201906040850190845b81811015612c935783516001600160a01b031683529284019291840191600101612c6e565b50909695505050505050565b6020808252825482820181905260008481528281209092916040850190845b81811015612c935783546001600160a01b031683526001938401939285019201612cbe565b602081526000612cf7602083018486612c05565b949350505050565b604081526000612d13604083018587612c05565b828103602084810191909152845180835285820192820190845b81811015612d4c57845160ff1683529383019391830191600101612d2d565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612c9357835183529284019291840191600101612d76565b60008219821115612da557612da5612dfc565b500190565b600082821015612dbc57612dbc612dfc565b500390565b6000600019821415612dd557612dd5612dfc565b5060010190565b600060ff821660ff811415612df357612df3612dfc565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104ba57600080fdfea264697066735822122080a5899bd6fb7c4dba6cc165986fe3ab9acd037884baa275af400afd9fb4c42f64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000afba8c6b3875868a90e5055e791213258a9fe7a7
-----Decoded View---------------
Arg [0] : NFT_contract_address (address): 0xafbA8C6B3875868a90E5055e791213258a9fe7a7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000afba8c6b3875868a90e5055e791213258a9fe7a7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.