ERC-721
Overview
Max Total Supply
72 LGC
Holders
72
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LGCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LifeOfGameCreature
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 859433 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ECDSA.sol"; import "./ICreatureRewards.sol"; contract LifeOfGameCreature is ERC721, Ownable, ReentrancyGuard { using EnumerableSet for EnumerableSet.AddressSet; using Counters for Counters.Counter; using ECDSA for bytes32; using Strings for uint256; struct UserData { uint128 modifiedBlock; uint64 claimNonce; uint64 __reserved__data; } uint constant MAX_CREATURES = 10000; mapping (uint => bool) public unstaked; mapping (uint => uint) public darkEnergy; Counters.Counter public totalSupply; ICreatureRewards public creatureRewards; bool public claimActive = false; bool public allowStakedTransfer = false; string public tokenBaseURI; EnumerableSet.AddressSet private marketplaces; mapping (address => bool) private blacklisted; mapping (address => UserData) private userData; address private signer; event PaymentReceived(address indexed, uint); constructor(address _rewardContract) ERC721("LifeGameCreature", "LGC") { require(_rewardContract != address(0), "addr 0"); creatureRewards = ICreatureRewards(_rewardContract); // check supportsInterface of rewards contract require(creatureRewards.supportsInterface(type(ICreatureRewards).interfaceId)); } // ======== Admin functions ======== function setTokenBaseURI(string calldata _baseURI) external onlyOwner { tokenBaseURI = _baseURI; } function setClaimActive(bool _active) external onlyOwner { claimActive = _active; } function setAllowStakedTransfer(bool _allow) external onlyOwner { allowStakedTransfer = _allow; } function setMarketplaces(address _market, bool _active) external onlyOwner { if (_active) { marketplaces.add(_market); } else { marketplaces.remove(_market); } } function setBlacklist(address _addr, bool _active) external onlyOwner { blacklisted[_addr] = _active; } function setSigner(address _signer) external onlyOwner { signer = _signer; } function boostEnergies(uint[] calldata tokenIds, uint[] calldata energies) external onlyOwner { require(tokenIds.length == energies.length, "input length mismatch"); for (uint i = 0; i < tokenIds.length; i++) { _boostEnergy(tokenIds[i], energies[i]); } } function slashEnergies(uint[] calldata tokenIds, uint[] calldata energies) external onlyOwner { require(tokenIds.length == energies.length, "input length mismatch"); for (uint i = 0; i < tokenIds.length; i++) { _slashEnergy(tokenIds[i], energies[i]); } } function safeMint(uint _darkEnergy, address to) external onlyOwner nonReentrant { uint tokenId = totalSupply.current(); require(tokenId < MAX_CREATURES); totalSupply.increment(); darkEnergy[tokenId] = _darkEnergy; // userData[to].modifiedBlock = uint128(block.number); _safeMint(to, tokenId); } function withdraw() external onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } // ======== View functions ======== function tokenURI(uint256 _tokenId) override public view returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); if (unstaked[_tokenId]) { return string(abi.encodePacked(tokenBaseURI, "unstaked/", _tokenId.toString())); } else { return string(abi.encodePacked(tokenBaseURI, "staked/", _tokenId.toString())); } } function userCanMint(address user, uint _darkEnergy, uint _maxId, uint _maxTimestamp, bytes calldata _signature) external view returns(bool, string memory) { if(!claimActive) { return (false, "Claim is not active");} if(block.timestamp > _maxTimestamp) { return (false, "Signature expired");} if(totalSupply.current() >= _maxId) { return (false, "Category quota exceeded");} if(totalSupply.current() >= MAX_CREATURES) { return (false, "Supply cap exceeded");} if(!_verifySignerSignature(keccak256(abi.encode(_darkEnergy, _maxId, _maxTimestamp, user, userData[user].claimNonce, address(this))), _signature)) { return (false, "Invalid signature");} else { return (true, "");} } // ======== Public functions ======== function claimCreature(uint _darkEnergy, uint _maxId, uint _maxTimestamp, bytes calldata _signature) external payable nonReentrant { // minimize on-chain data to save gas require(msg.sender == tx.origin, "Claim from wallet only"); require(claimActive, "Claim is not active"); require(block.timestamp <= _maxTimestamp, "Signature expired"); uint tokenId = totalSupply.current(); require(tokenId < _maxId, "Category quota exceeded"); require(tokenId < MAX_CREATURES, "Supply cap exceeded"); require(_verifySignerSignature(keccak256(abi.encode(_darkEnergy, _maxId, _maxTimestamp, msg.sender, userData[msg.sender].claimNonce, address(this))), _signature), "Invalid signature"); totalSupply.increment(); darkEnergy[tokenId] = _darkEnergy; // userData[msg.sender].modifiedBlock = uint128(block.number); userData[msg.sender].claimNonce++; _safeMint(msg.sender, tokenId); emit PaymentReceived(msg.sender, msg.value); } function stake(uint[] calldata tokenIds) external nonReentrant { for (uint i = 0; i < marketplaces.length(); i++) { require(!isApprovedForAll(msg.sender, marketplaces.at(i)), "Cannot stake when marketplace approved"); } for (uint i; i < tokenIds.length; i++) { require(ownerOf(tokenIds[i]) == msg.sender, "Caller is not the owner"); _stake(msg.sender, tokenIds[i]); } } function unstake(uint[] calldata tokenIds) external nonReentrant { for (uint i; i < tokenIds.length; i++) { require(ownerOf(tokenIds[i]) == msg.sender, "Caller is not the owner"); _unstake(msg.sender, tokenIds[i]); } } receive() external payable { emit PaymentReceived(msg.sender, msg.value); } // ======== Internal functions ======== function _verifySignerSignature(bytes32 hash, bytes calldata signature) internal view returns(bool) { return hash.toEthSignedMessageHash().recover(signature) == signer; } function _boostEnergy(uint tokenId, uint energy) internal { darkEnergy[tokenId] += energy; if (!unstaked[tokenId]) { creatureRewards.alertBoost(ownerOf(tokenId), tokenId, true, energy); } } function _slashEnergy(uint tokenId, uint energy) internal { darkEnergy[tokenId] -= energy; if (!unstaked[tokenId]) { creatureRewards.alertBoost(ownerOf(tokenId), tokenId, false, energy); } } function _stake(address user, uint id) internal { require(unstaked[id] == true, "Already staked"); require(getApproved(id) == address(0), "Cannot stake when token approved"); unstaked[id] = false; creatureRewards.alertStaked(user, id, true, darkEnergy[id]); } function _unstake(address user, uint id) internal { require(unstaked[id] == false, "Already unstaked"); unstaked[id] = true; creatureRewards.alertStaked(user, id, false, darkEnergy[id]); } // ======== Function overrides ======== function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721) { require(!blacklisted[from] && !blacklisted[to], "ERC721: go fuck yourself"); // scammers stay away! // non-blocking transfer for staked items to avoid stuck marketplace listings if (!unstaked[tokenId]) { if (from == address(0)) { // mint creatureRewards.alertStaked(to, tokenId, true, darkEnergy[tokenId]); } else if (to == address(0)) { // burn creatureRewards.alertStaked(from, tokenId, false, darkEnergy[tokenId]); } else { // staked transfer is slashable require(allowStakedTransfer, "ERC721: cannot transfer when staked"); _unstake(from, tokenId); creatureRewards.alertStakedTransfer(from, to, tokenId, darkEnergy[tokenId]); } } } function _setApprovalForAll( address owner, address operator, bool approved ) internal override(ERC721) { require(!blacklisted[owner] && !blacklisted[operator], "ERC721: blacklisted"); // disable marketplace approvals when ANY NFT is staked // the workaround for approving without unstaking all is to approve a specific tokenId if (marketplaces.contains(operator) && approved) { require(creatureRewards.stakedEnergy(owner) == 0, "ERC721: cannot enable marketplace when staked"); } super._setApprovalForAll(owner, operator, approved); } function _approve(address to, uint256 tokenId) internal override(ERC721) { require(!blacklisted[to], "ERC721: blacklisted"); if (marketplaces.contains(to)) { require(unstaked[tokenId], "ERC721: cannot approve marketplace when staked"); } super._approve(to,tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0-rc.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol"; interface ICreatureRewards is IERC165Upgradeable { event EnergyUpdated(address indexed user, bool increase, uint energy, uint timestamp); event StakedTransfer(address indexed from, address to, uint indexed tokenId, uint energy); event RewardsSet(uint32 start, uint32 end, uint256 rate); event RewardsPerEnergyUpdated(uint256 accumulated); event UserRewardsUpdated(address user, uint256 userRewards, uint256 paidRewardPerEnergy); event RewardClaimed(address receiver, uint256 claimed); function stakedEnergy(address user) external view returns(uint); function getRewardRate() external view returns(uint); function checkUserRewards(address user) external view returns(uint); function version() external view returns(string memory); function alertStaked(address user, uint tokenId, bool staked, uint energy) external; function alertBoost(address user, uint tokenId, bool boost, uint energy) external; function alertStakedTransfer(address from, address to, uint tokenId, uint energy) external; function claim(address to) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 859433 }, "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":"_rewardContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"allowStakedTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"energies","type":"uint256[]"}],"name":"boostEnergies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_darkEnergy","type":"uint256"},{"internalType":"uint256","name":"_maxId","type":"uint256"},{"internalType":"uint256","name":"_maxTimestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claimCreature","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"creatureRewards","outputs":[{"internalType":"contract ICreatureRewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"darkEnergy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_darkEnergy","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allow","type":"bool"}],"name":"setAllowStakedTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_market","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setMarketplaces","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"energies","type":"uint256[]"}],"name":"slashEnergies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"unstaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"_darkEnergy","type":"uint256"},{"internalType":"uint256","name":"_maxId","type":"uint256"},{"internalType":"uint256","name":"_maxTimestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"userCanMint","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600b805461ffff60a01b191690553480156200001f57600080fd5b5060405162005205380380620052058339810160408190526200004291620002a3565b604080518082018252601081526f4c69666547616d65437265617475726560801b6020808301918252835180850190945260038452624c474360e81b9084015281519192916200009591600091620001fd565b508051620000ab906001906020840190620001fd565b505050620000c8620000c2620001a760201b60201c565b620001ab565b60016007556001600160a01b038116620001115760405162461bcd60e51b815260206004820152600660248201526506164647220360d41b604482015260640160405180910390fd5b600b80546001600160a01b0319166001600160a01b0383169081179091556040516301ffc9a760e01b81526398a0025b60e01b60048201526301ffc9a790602401602060405180830381865afa15801562000170573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001969190620002d5565b620001a057600080fd5b5062000336565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200020b90620002f9565b90600052602060002090601f0160209004810192826200022f57600085556200027a565b82601f106200024a57805160ff19168380011785556200027a565b828001600101855582156200027a579182015b828111156200027a5782518255916020019190600101906200025d565b50620002889291506200028c565b5090565b5b808211156200028857600081556001016200028d565b600060208284031215620002b657600080fd5b81516001600160a01b0381168114620002ce57600080fd5b9392505050565b600060208284031215620002e857600080fd5b81518015158114620002ce57600080fd5b600181811c908216806200030e57607f821691505b602082108114156200033057634e487b7160e01b600052602260045260246000fd5b50919050565b614ebf80620003466000396000f3fe60806040526004361061026e5760003560e01c80636c19e78311610153578063a5edfa50116100cb578063cb8b7da31161007f578063e449f34111610064578063e449f34114610761578063e985e9c514610781578063f2fde38b146107d757600080fd5b8063cb8b7da31461070f578063d4a6a2fd1461072f57600080fd5b8063b88d4fde116100b0578063b88d4fde146106a2578063c7bf2199146106c2578063c87b56dd146106ef57600080fd5b8063a5edfa5014610662578063a9fcd9581461068257600080fd5b8063862f62b4116101225780638ef79e91116101075780638ef79e911461060d57806395d89b411461062d578063a22cb4651461064257600080fd5b8063862f62b4146105b25780638da5cb5b146105e257600080fd5b80636c19e7831461053d57806370a082311461055d578063715018a61461057d57806373417b091461059257600080fd5b806323b872dd116101e65780634b97ec98116101b55780635509a2811161019a5780635509a281146104ea57806362bdfceb146104fd5780636352211e1461051d57600080fd5b80634b97ec98146104a75780634e99b800146104d557600080fd5b806323b872dd146104255780633a6d5cc3146104455780633ccfd60b1461047257806342842e0e1461048757600080fd5b8063095ea7b31161023d5780630fbf0a93116102225780630fbf0a93146103c0578063153b0d1e146103e057806318160ddd1461040057600080fd5b8063095ea7b31461037e5780630e403c45146103a057600080fd5b806301ffc9a7146102af578063042f158e146102e457806306fdde0314610317578063081812fc1461033957600080fd5b366102aa5760405134815233907f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7709060200160405180910390a2005b600080fd5b3480156102bb57600080fd5b506102cf6102ca366004614516565b6107f7565b60405190151581526020015b60405180910390f35b3480156102f057600080fd5b50600b546102cf907501000000000000000000000000000000000000000000900460ff1681565b34801561032357600080fd5b5061032c6108dc565b6040516102db91906145a9565b34801561034557600080fd5b506103596103543660046145bc565b61096e565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102db565b34801561038a57600080fd5b5061039e6103993660046145f9565b610a4d565b005b3480156103ac57600080fd5b5061039e6103bb366004614668565b610c05565b3480156103cc57600080fd5b5061039e6103db3660046146d4565b610d4d565b3480156103ec57600080fd5b5061039e6103fb366004614726565b610f6a565b34801561040c57600080fd5b50600a546104179081565b6040519081526020016102db565b34801561043157600080fd5b5061039e610440366004614759565b611041565b34801561045157600080fd5b50600b546103599073ffffffffffffffffffffffffffffffffffffffff1681565b34801561047e57600080fd5b5061039e6110e2565b34801561049357600080fd5b5061039e6104a2366004614759565b611196565b3480156104b357600080fd5b506104c76104c23660046147d7565b6111b1565b6040516102db929190614848565b3480156104e157600080fd5b5061032c6113ef565b61039e6104f8366004614863565b61147d565b34801561050957600080fd5b5061039e6105183660046148c4565b6118d6565b34801561052957600080fd5b506103596105383660046145bc565b611a0d565b34801561054957600080fd5b5061039e6105583660046148e7565b611abf565b34801561056957600080fd5b506104176105783660046148e7565b611b87565b34801561058957600080fd5b5061039e611c55565b34801561059e57600080fd5b5061039e6105ad366004614902565b611ce2565b3480156105be57600080fd5b506102cf6105cd3660046145bc565b60086020526000908152604090205460ff1681565b3480156105ee57600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff16610359565b34801561061957600080fd5b5061039e61062836600461491d565b611dad565b34801561063957600080fd5b5061032c611e3a565b34801561064e57600080fd5b5061039e61065d366004614726565b611e49565b34801561066e57600080fd5b5061039e61067d366004614726565b611e54565b34801561068e57600080fd5b5061039e61069d366004614902565b611ef1565b3480156106ae57600080fd5b5061039e6106bd366004614982565b611fbd565b3480156106ce57600080fd5b506104176106dd3660046145bc565b60096020526000908152604090205481565b3480156106fb57600080fd5b5061032c61070a3660046145bc565b612065565b34801561071b57600080fd5b5061039e61072a366004614668565b612183565b34801561073b57600080fd5b50600b546102cf9074010000000000000000000000000000000000000000900460ff1681565b34801561076d57600080fd5b5061039e61077c3660046146d4565b6122c4565b34801561078d57600080fd5b506102cf61079c366004614a7c565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107e357600080fd5b5061039e6107f23660046148e7565b612408565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061088a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546108eb90614aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461091790614aa6565b80156109645780601f1061093957610100808354040283529160200191610964565b820191906000526020600020905b81548152906001019060200180831161094757829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a5882611a0d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b6a575073ffffffffffffffffffffffffffffffffffffffff8116600090815260056020908152604080832033845290915290205460ff165b610bf6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a1b565b610c008383612538565b505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610c86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b828114610cef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f696e707574206c656e677468206d69736d6174636800000000000000000000006044820152606401610a1b565b60005b83811015610d4657610d34858583818110610d0f57610d0f614afa565b90506020020135848484818110610d2857610d28614afa565b90506020020135612680565b80610d3e81614b58565b915050610cf2565b5050505050565b60026007541415610dba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b600260075560005b610dcc600d612778565b811015610e8157610de23361079c600d84612782565b15610e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616e6e6f74207374616b65207768656e206d61726b6574706c61636520617060448201527f70726f76656400000000000000000000000000000000000000000000000000006064820152608401610a1b565b80610e7981614b58565b915050610dc2565b5060005b81811015610f605733610eaf848484818110610ea357610ea3614afa565b90506020020135611a0d565b73ffffffffffffffffffffffffffffffffffffffff1614610f2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610a1b565b610f4e33848484818110610f4257610f42614afa565b90506020020135612795565b80610f5881614b58565b915050610e85565b5050600160075550565b60065473ffffffffffffffffffffffffffffffffffffffff163314610feb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b61104b3382612947565b6110d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a1b565b610c00838383612ab7565b60065473ffffffffffffffffffffffffffffffffffffffff163314611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b6040514790339082156108fc029083906000818181858888f19350505050158015611192573d6000803e3d6000fd5b5050565b610c0083838360405180602001604052806000815250611fbd565b600b5460009060609074010000000000000000000000000000000000000000900460ff1661121757505060408051808201909152601381527f436c61696d206973206e6f74206163746976650000000000000000000000000060208201526000906113e4565b8442111561125d57505060408051808201909152601181527f5369676e6174757265206578706972656400000000000000000000000000000060208201526000906113e4565b85611267600a5490565b106112aa57505060408051808201909152601781527f43617465676f72792071756f746120657863656564656400000000000000000060208201526000906113e4565b6127106112b6600a5490565b106112f957505060408051808201909152601381527f537570706c79206361702065786365656465640000000000000000000000000060208201526000906113e4565b73ffffffffffffffffffffffffffffffffffffffff88166000818152601060209081526040918290205482519182018b9052918101899052606081018890526080810192909252700100000000000000000000000000000000900467ffffffffffffffff1660a08201523060c082015261138d9060e001604051602081830303815290604052805190602001208585612d29565b6113cf57505060408051808201909152601181527f496e76616c6964207369676e617475726500000000000000000000000000000060208201526000906113e4565b50506040805160208101909152600081526001905b965096945050505050565b600c80546113fc90614aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461142890614aa6565b80156114755780601f1061144a57610100808354040283529160200191611475565b820191906000526020600020905b81548152906001019060200180831161145857829003601f168201915b505050505081565b600260075414156114ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b6002600755333214611558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f436c61696d2066726f6d2077616c6c6574206f6e6c79000000000000000000006044820152606401610a1b565b600b5474010000000000000000000000000000000000000000900460ff166115dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f436c61696d206973206e6f7420616374697665000000000000000000000000006044820152606401610a1b565b82421115611646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f5369676e617475726520657870697265640000000000000000000000000000006044820152606401610a1b565b6000611651600a5490565b90508481106116bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43617465676f72792071756f74612065786365656465640000000000000000006044820152606401610a1b565b6127108110611727576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f537570706c7920636170206578636565646564000000000000000000000000006044820152606401610a1b565b336000818152601060209081526040918290205482519182018a9052918101889052606081018790526080810192909252700100000000000000000000000000000000900467ffffffffffffffff1660a08201523060c08201526117a59060e001604051602081830303815290604052805190602001208484612d29565b61180b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610a1b565b611819600a80546001019055565b60008181526009602090815260408083208990553383526010918290529091208054700100000000000000000000000000000000900467ffffffffffffffff169161186383614b91565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550506118943382612daf565b60405134815233907f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7709060200160405180910390a25050600160075550505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b600260075414156119c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b600260075560006119d4600a5490565b905061271081106119e457600080fd5b6119f2600a80546001019055565b6000818152600960205260409020839055610f608282612daf565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a1b565b60065473ffffffffffffffffffffffffffffffffffffffff163314611b40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b601180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff8216611c2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a1b565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b611ce06000612dc9565b565b60065473ffffffffffffffffffffffffffffffffffffffff163314611d63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b600b805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff163314611e2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b610c00600c8383614431565b6060600180546108eb90614aa6565b611192338383612e40565b60065473ffffffffffffffffffffffffffffffffffffffff163314611ed5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b8015611ee657610c00600d83613047565b610c00600d83613069565b60065473ffffffffffffffffffffffffffffffffffffffff163314611f72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b600b80549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b611fc73383612947565b612053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a1b565b61205f8484848461308b565b50505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16612119576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a1b565b60008281526008602052604090205460ff161561216257600c61213b8361312e565b60405160200161214c929190614c8a565b6040516020818303038152906040529050919050565b600c61216d8361312e565b60405160200161214c929190614cd8565b919050565b60065473ffffffffffffffffffffffffffffffffffffffff163314612204576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b82811461226d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f696e707574206c656e677468206d69736d6174636800000000000000000000006044820152606401610a1b565b60005b83811015610d46576122b285858381811061228d5761228d614afa565b905060200201358484848181106122a6576122a6614afa565b90506020020135613260565b806122bc81614b58565b915050612270565b60026007541415612331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b600260075560005b81811015610f605733612357848484818110610ea357610ea3614afa565b73ffffffffffffffffffffffffffffffffffffffff16146123d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610a1b565b6123f6338484848181106123ea576123ea614afa565b90506020020135613326565b8061240081614b58565b915050612339565b60065473ffffffffffffffffffffffffffffffffffffffff163314612489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b73ffffffffffffffffffffffffffffffffffffffff811661252c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a1b565b61253581612dc9565b50565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff16156125c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4552433732313a20626c61636b6c6973746564000000000000000000000000006044820152606401610a1b565b6125d3600d8361344f565b156126765760008181526008602052604090205460ff16612676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616e6e6f7420617070726f7665206d61726b6574706c6160448201527f6365207768656e207374616b65640000000000000000000000000000000000006064820152608401610a1b565b611192828261347e565b6000828152600960205260408120805483929061269e908490614d26565b909155505060008281526008602052604090205460ff1661119257600b5473ffffffffffffffffffffffffffffffffffffffff16635c2b21f66126e084611a0d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201526024810185905260006044820152606481018490526084015b600060405180830381600087803b15801561275c57600080fd5b505af1158015612770573d6000803e3d6000fd5b505050505050565b60006108d6825490565b600061278e838361351e565b9392505050565b60008181526008602052604090205460ff161515600114612812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f416c7265616479207374616b65640000000000000000000000000000000000006044820152606401610a1b565b600061281d8261096e565b73ffffffffffffffffffffffffffffffffffffffff161461289a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f43616e6e6f74207374616b65207768656e20746f6b656e20617070726f7665646044820152606401610a1b565b600081815260086020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600b546009909252918290205491517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052600160448301526064820193909352911690631074a2f090608401612742565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166129f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a1b565b6000612a0383611a0d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a7257508373ffffffffffffffffffffffffffffffffffffffff16612a5a8461096e565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aaf575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612ad782611a0d565b73ffffffffffffffffffffffffffffffffffffffff1614612b7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a1b565b73ffffffffffffffffffffffffffffffffffffffff8216612c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b612c27838383613548565b612c32600082612538565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612c68908490614d26565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612ca3908490614d3d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b601154604080516020601f850181900481028201810190925283815260009273ffffffffffffffffffffffffffffffffffffffff1691612d9091908690869081908401838280828437600092019190915250612d8a92508991506138b69050565b90613909565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b61119282826040518060200160405280600081525061392d565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205460ff16158015612e9c575073ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff16155b612f02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4552433732313a20626c61636b6c6973746564000000000000000000000000006044820152606401610a1b565b612f0d600d8361344f565b8015612f165750805b1561303c57600b546040517fd74e40b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529091169063d74e40b290602401602060405180830381865afa158015612f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612faf9190614d55565b1561303c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616e6e6f7420656e61626c65206d61726b6574706c616360448201527f65207768656e207374616b6564000000000000000000000000000000000000006064820152608401610a1b565b610c008383836139d0565b600061278e8373ffffffffffffffffffffffffffffffffffffffff8416613afe565b600061278e8373ffffffffffffffffffffffffffffffffffffffff8416613b4d565b613096848484612ab7565b6130a284848484613c40565b61205f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a1b565b60608161316e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613198578061318281614b58565b91506131919050600a83614d9d565b9150613172565b60008167ffffffffffffffff8111156131b3576131b3614953565b6040519080825280601f01601f1916602001820160405280156131dd576020820181803683370190505b5090505b8415612aaf576131f2600183614d26565b91506131ff600a86614db1565b61320a906030614d3d565b60f81b81838151811061321f5761321f614afa565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613259600a86614d9d565b94506131e1565b6000828152600960205260408120805483929061327e908490614d3d565b909155505060008281526008602052604090205460ff1661119257600b5473ffffffffffffffffffffffffffffffffffffffff16635c2b21f66132c084611a0d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018590526001604482015260648101849052608401612742565b60008181526008602052604090205460ff161561339f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c726561647920756e7374616b6564000000000000000000000000000000006044820152606401610a1b565b600081815260086020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600b5460099092528083205490517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526024820186905260448201949094526064810191909152911690631074a2f090608401612742565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600183016020526040812054151561278e565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906134d882611a0d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082600001828154811061353557613535614afa565b9060005260206000200154905092915050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205460ff161580156135a4575073ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff16155b61360a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20676f206675636b20796f757273656c6600000000000000006044820152606401610a1b565b60008181526008602052604090205460ff16610c005773ffffffffffffffffffffffffffffffffffffffff83166136eb57600b54600082815260096020526040908190205490517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052600160448301526064820192909252911690631074a2f0906084015b600060405180830381600087803b1580156136ce57600080fd5b505af11580156136e2573d6000803e3d6000fd5b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff821661378357600b546000828152600960205260408082205490517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301526024820186905260448201939093526064810191909152911690631074a2f0906084016136b4565b600b547501000000000000000000000000000000000000000000900460ff1661382e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4552433732313a2063616e6e6f74207472616e73666572207768656e2073746160448201527f6b656400000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b6138388382613326565b600b54600082815260096020526040908190205490517fadcb679000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152858116602483015260448201859052606482019290925291169063adcb6790906084016136b4565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006139188585613e30565b9150915061392581613ea0565b509392505050565b61393783836140f9565b6139446000848484613c40565b610c00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a1b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613a66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a1b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000818152600183016020526040812054613b45575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556108d6565b5060006108d6565b60008181526001830160205260408120548015613c36576000613b71600183614d26565b8554909150600090613b8590600190614d26565b9050818114613bea576000866000018281548110613ba557613ba5614afa565b9060005260206000200154905080876000018481548110613bc857613bc8614afa565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613bfb57613bfb614dc5565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506108d6565b60009150506108d6565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613e25576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613cb7903390899088908890600401614df4565b6020604051808303816000875af1925050508015613d10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613d0d91810190614e3d565b60015b613dda573d808015613d3e576040519150601f19603f3d011682016040523d82523d6000602084013e613d43565b606091505b508051613dd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a1b565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612aaf565b506001949350505050565b600080825160411415613e675760208301516040840151606085015160001a613e5b878285856142c7565b94509450505050613e99565b825160401415613e915760208301516040840151613e868683836143df565b935093505050613e99565b506000905060025b9250929050565b6000816004811115613eb457613eb4614e5a565b1415613ebd5750565b6001816004811115613ed157613ed1614e5a565b1415613f39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1b565b6002816004811115613f4d57613f4d614e5a565b1415613fb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1b565b6003816004811115613fc957613fc9614e5a565b1415614057576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b600481600481111561406b5761406b614e5a565b1415612535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b73ffffffffffffffffffffffffffffffffffffffff8216614176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a1b565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615614202576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a1b565b61420e60008383613548565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290614244908490614d3d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156142fe57506000905060036143d6565b8460ff16601b1415801561431657508460ff16601c14155b1561432757506000905060046143d6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561437b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166143cf576000600192509250506143d6565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161441560ff86901c601b614d3d565b9050614423878288856142c7565b935093505050935093915050565b82805461443d90614aa6565b90600052602060002090601f01602090048101928261445f57600085556144c3565b82601f10614496578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556144c3565b828001600101855582156144c3579182015b828111156144c35782358255916020019190600101906144a8565b506144cf9291506144d3565b5090565b5b808211156144cf57600081556001016144d4565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461253557600080fd5b60006020828403121561452857600080fd5b813561278e816144e8565b60005b8381101561454e578181015183820152602001614536565b8381111561205f5750506000910152565b60008151808452614577816020860160208601614533565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061278e602083018461455f565b6000602082840312156145ce57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461217e57600080fd5b6000806040838503121561460c57600080fd5b614615836145d5565b946020939093013593505050565b60008083601f84011261463557600080fd5b50813567ffffffffffffffff81111561464d57600080fd5b6020830191508360208260051b8501011115613e9957600080fd5b6000806000806040858703121561467e57600080fd5b843567ffffffffffffffff8082111561469657600080fd5b6146a288838901614623565b909650945060208701359150808211156146bb57600080fd5b506146c887828801614623565b95989497509550505050565b600080602083850312156146e757600080fd5b823567ffffffffffffffff8111156146fe57600080fd5b61470a85828601614623565b90969095509350505050565b8035801515811461217e57600080fd5b6000806040838503121561473957600080fd5b614742836145d5565b915061475060208401614716565b90509250929050565b60008060006060848603121561476e57600080fd5b614777846145d5565b9250614785602085016145d5565b9150604084013590509250925092565b60008083601f8401126147a757600080fd5b50813567ffffffffffffffff8111156147bf57600080fd5b602083019150836020828501011115613e9957600080fd5b60008060008060008060a087890312156147f057600080fd5b6147f9876145d5565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561482a57600080fd5b61483689828a01614795565b979a9699509497509295939492505050565b8215158152604060208201526000612aaf604083018461455f565b60008060008060006080868803121561487b57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156148a757600080fd5b6148b388828901614795565b969995985093965092949392505050565b600080604083850312156148d757600080fd5b82359150614750602084016145d5565b6000602082840312156148f957600080fd5b61278e826145d5565b60006020828403121561491457600080fd5b61278e82614716565b6000806020838503121561493057600080fd5b823567ffffffffffffffff81111561494757600080fd5b61470a85828601614795565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561499857600080fd5b6149a1856145d5565b93506149af602086016145d5565b925060408501359150606085013567ffffffffffffffff808211156149d357600080fd5b818701915087601f8301126149e757600080fd5b8135818111156149f9576149f9614953565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715614a3f57614a3f614953565b816040528281528a6020848701011115614a5857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215614a8f57600080fd5b614a98836145d5565b9150614750602084016145d5565b600181811c90821680614aba57607f821691505b60208210811415614af4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b8a57614b8a614b29565b5060010190565b600067ffffffffffffffff80831681811415614baf57614baf614b29565b6001019392505050565b8054600090600181811c9080831680614bd357607f831692505b6020808410821415614c0e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b818015614c225760018114614c5157614c7e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650614c7e565b60008881526020902060005b86811015614c765781548b820152908501908301614c5d565b505084890196505b50505050505092915050565b6000614c968285614bb9565b7f756e7374616b65642f000000000000000000000000000000000000000000000081528351614ccc816009840160208801614533565b01600901949350505050565b6000614ce48285614bb9565b7f7374616b65642f0000000000000000000000000000000000000000000000000081528351614d1a816007840160208801614533565b01600701949350505050565b600082821015614d3857614d38614b29565b500390565b60008219821115614d5057614d50614b29565b500190565b600060208284031215614d6757600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614dac57614dac614d6e565b500490565b600082614dc057614dc0614d6e565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614e33608083018461455f565b9695505050505050565b600060208284031215614e4f57600080fd5b815161278e816144e8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220e19e7ec3856a783f9bcf411bd8af225399928e892bcb24a7b7a48536e7ab31e964736f6c634300080b0033000000000000000000000000f41306e32d7b18460c07db0d5c889d900ca25252
Deployed Bytecode
0x60806040526004361061026e5760003560e01c80636c19e78311610153578063a5edfa50116100cb578063cb8b7da31161007f578063e449f34111610064578063e449f34114610761578063e985e9c514610781578063f2fde38b146107d757600080fd5b8063cb8b7da31461070f578063d4a6a2fd1461072f57600080fd5b8063b88d4fde116100b0578063b88d4fde146106a2578063c7bf2199146106c2578063c87b56dd146106ef57600080fd5b8063a5edfa5014610662578063a9fcd9581461068257600080fd5b8063862f62b4116101225780638ef79e91116101075780638ef79e911461060d57806395d89b411461062d578063a22cb4651461064257600080fd5b8063862f62b4146105b25780638da5cb5b146105e257600080fd5b80636c19e7831461053d57806370a082311461055d578063715018a61461057d57806373417b091461059257600080fd5b806323b872dd116101e65780634b97ec98116101b55780635509a2811161019a5780635509a281146104ea57806362bdfceb146104fd5780636352211e1461051d57600080fd5b80634b97ec98146104a75780634e99b800146104d557600080fd5b806323b872dd146104255780633a6d5cc3146104455780633ccfd60b1461047257806342842e0e1461048757600080fd5b8063095ea7b31161023d5780630fbf0a93116102225780630fbf0a93146103c0578063153b0d1e146103e057806318160ddd1461040057600080fd5b8063095ea7b31461037e5780630e403c45146103a057600080fd5b806301ffc9a7146102af578063042f158e146102e457806306fdde0314610317578063081812fc1461033957600080fd5b366102aa5760405134815233907f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7709060200160405180910390a2005b600080fd5b3480156102bb57600080fd5b506102cf6102ca366004614516565b6107f7565b60405190151581526020015b60405180910390f35b3480156102f057600080fd5b50600b546102cf907501000000000000000000000000000000000000000000900460ff1681565b34801561032357600080fd5b5061032c6108dc565b6040516102db91906145a9565b34801561034557600080fd5b506103596103543660046145bc565b61096e565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102db565b34801561038a57600080fd5b5061039e6103993660046145f9565b610a4d565b005b3480156103ac57600080fd5b5061039e6103bb366004614668565b610c05565b3480156103cc57600080fd5b5061039e6103db3660046146d4565b610d4d565b3480156103ec57600080fd5b5061039e6103fb366004614726565b610f6a565b34801561040c57600080fd5b50600a546104179081565b6040519081526020016102db565b34801561043157600080fd5b5061039e610440366004614759565b611041565b34801561045157600080fd5b50600b546103599073ffffffffffffffffffffffffffffffffffffffff1681565b34801561047e57600080fd5b5061039e6110e2565b34801561049357600080fd5b5061039e6104a2366004614759565b611196565b3480156104b357600080fd5b506104c76104c23660046147d7565b6111b1565b6040516102db929190614848565b3480156104e157600080fd5b5061032c6113ef565b61039e6104f8366004614863565b61147d565b34801561050957600080fd5b5061039e6105183660046148c4565b6118d6565b34801561052957600080fd5b506103596105383660046145bc565b611a0d565b34801561054957600080fd5b5061039e6105583660046148e7565b611abf565b34801561056957600080fd5b506104176105783660046148e7565b611b87565b34801561058957600080fd5b5061039e611c55565b34801561059e57600080fd5b5061039e6105ad366004614902565b611ce2565b3480156105be57600080fd5b506102cf6105cd3660046145bc565b60086020526000908152604090205460ff1681565b3480156105ee57600080fd5b5060065473ffffffffffffffffffffffffffffffffffffffff16610359565b34801561061957600080fd5b5061039e61062836600461491d565b611dad565b34801561063957600080fd5b5061032c611e3a565b34801561064e57600080fd5b5061039e61065d366004614726565b611e49565b34801561066e57600080fd5b5061039e61067d366004614726565b611e54565b34801561068e57600080fd5b5061039e61069d366004614902565b611ef1565b3480156106ae57600080fd5b5061039e6106bd366004614982565b611fbd565b3480156106ce57600080fd5b506104176106dd3660046145bc565b60096020526000908152604090205481565b3480156106fb57600080fd5b5061032c61070a3660046145bc565b612065565b34801561071b57600080fd5b5061039e61072a366004614668565b612183565b34801561073b57600080fd5b50600b546102cf9074010000000000000000000000000000000000000000900460ff1681565b34801561076d57600080fd5b5061039e61077c3660046146d4565b6122c4565b34801561078d57600080fd5b506102cf61079c366004614a7c565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107e357600080fd5b5061039e6107f23660046148e7565b612408565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061088a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546108eb90614aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461091790614aa6565b80156109645780601f1061093957610100808354040283529160200191610964565b820191906000526020600020905b81548152906001019060200180831161094757829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a5882611a0d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b6a575073ffffffffffffffffffffffffffffffffffffffff8116600090815260056020908152604080832033845290915290205460ff165b610bf6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a1b565b610c008383612538565b505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610c86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b828114610cef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f696e707574206c656e677468206d69736d6174636800000000000000000000006044820152606401610a1b565b60005b83811015610d4657610d34858583818110610d0f57610d0f614afa565b90506020020135848484818110610d2857610d28614afa565b90506020020135612680565b80610d3e81614b58565b915050610cf2565b5050505050565b60026007541415610dba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b600260075560005b610dcc600d612778565b811015610e8157610de23361079c600d84612782565b15610e6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616e6e6f74207374616b65207768656e206d61726b6574706c61636520617060448201527f70726f76656400000000000000000000000000000000000000000000000000006064820152608401610a1b565b80610e7981614b58565b915050610dc2565b5060005b81811015610f605733610eaf848484818110610ea357610ea3614afa565b90506020020135611a0d565b73ffffffffffffffffffffffffffffffffffffffff1614610f2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610a1b565b610f4e33848484818110610f4257610f42614afa565b90506020020135612795565b80610f5881614b58565b915050610e85565b5050600160075550565b60065473ffffffffffffffffffffffffffffffffffffffff163314610feb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b61104b3382612947565b6110d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a1b565b610c00838383612ab7565b60065473ffffffffffffffffffffffffffffffffffffffff163314611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b6040514790339082156108fc029083906000818181858888f19350505050158015611192573d6000803e3d6000fd5b5050565b610c0083838360405180602001604052806000815250611fbd565b600b5460009060609074010000000000000000000000000000000000000000900460ff1661121757505060408051808201909152601381527f436c61696d206973206e6f74206163746976650000000000000000000000000060208201526000906113e4565b8442111561125d57505060408051808201909152601181527f5369676e6174757265206578706972656400000000000000000000000000000060208201526000906113e4565b85611267600a5490565b106112aa57505060408051808201909152601781527f43617465676f72792071756f746120657863656564656400000000000000000060208201526000906113e4565b6127106112b6600a5490565b106112f957505060408051808201909152601381527f537570706c79206361702065786365656465640000000000000000000000000060208201526000906113e4565b73ffffffffffffffffffffffffffffffffffffffff88166000818152601060209081526040918290205482519182018b9052918101899052606081018890526080810192909252700100000000000000000000000000000000900467ffffffffffffffff1660a08201523060c082015261138d9060e001604051602081830303815290604052805190602001208585612d29565b6113cf57505060408051808201909152601181527f496e76616c6964207369676e617475726500000000000000000000000000000060208201526000906113e4565b50506040805160208101909152600081526001905b965096945050505050565b600c80546113fc90614aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461142890614aa6565b80156114755780601f1061144a57610100808354040283529160200191611475565b820191906000526020600020905b81548152906001019060200180831161145857829003601f168201915b505050505081565b600260075414156114ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b6002600755333214611558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f436c61696d2066726f6d2077616c6c6574206f6e6c79000000000000000000006044820152606401610a1b565b600b5474010000000000000000000000000000000000000000900460ff166115dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f436c61696d206973206e6f7420616374697665000000000000000000000000006044820152606401610a1b565b82421115611646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f5369676e617475726520657870697265640000000000000000000000000000006044820152606401610a1b565b6000611651600a5490565b90508481106116bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43617465676f72792071756f74612065786365656465640000000000000000006044820152606401610a1b565b6127108110611727576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f537570706c7920636170206578636565646564000000000000000000000000006044820152606401610a1b565b336000818152601060209081526040918290205482519182018a9052918101889052606081018790526080810192909252700100000000000000000000000000000000900467ffffffffffffffff1660a08201523060c08201526117a59060e001604051602081830303815290604052805190602001208484612d29565b61180b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610a1b565b611819600a80546001019055565b60008181526009602090815260408083208990553383526010918290529091208054700100000000000000000000000000000000900467ffffffffffffffff169161186383614b91565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550506118943382612daf565b60405134815233907f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7709060200160405180910390a25050600160075550505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b600260075414156119c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b600260075560006119d4600a5490565b905061271081106119e457600080fd5b6119f2600a80546001019055565b6000818152600960205260409020839055610f608282612daf565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a1b565b60065473ffffffffffffffffffffffffffffffffffffffff163314611b40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b601180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff8216611c2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a1b565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60065473ffffffffffffffffffffffffffffffffffffffff163314611cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b611ce06000612dc9565b565b60065473ffffffffffffffffffffffffffffffffffffffff163314611d63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b600b805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b60065473ffffffffffffffffffffffffffffffffffffffff163314611e2e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b610c00600c8383614431565b6060600180546108eb90614aa6565b611192338383612e40565b60065473ffffffffffffffffffffffffffffffffffffffff163314611ed5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b8015611ee657610c00600d83613047565b610c00600d83613069565b60065473ffffffffffffffffffffffffffffffffffffffff163314611f72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b600b80549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b611fc73383612947565b612053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a1b565b61205f8484848461308b565b50505050565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16612119576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a1b565b60008281526008602052604090205460ff161561216257600c61213b8361312e565b60405160200161214c929190614c8a565b6040516020818303038152906040529050919050565b600c61216d8361312e565b60405160200161214c929190614cd8565b919050565b60065473ffffffffffffffffffffffffffffffffffffffff163314612204576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b82811461226d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f696e707574206c656e677468206d69736d6174636800000000000000000000006044820152606401610a1b565b60005b83811015610d46576122b285858381811061228d5761228d614afa565b905060200201358484848181106122a6576122a6614afa565b90506020020135613260565b806122bc81614b58565b915050612270565b60026007541415612331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a1b565b600260075560005b81811015610f605733612357848484818110610ea357610ea3614afa565b73ffffffffffffffffffffffffffffffffffffffff16146123d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616c6c6572206973206e6f7420746865206f776e65720000000000000000006044820152606401610a1b565b6123f6338484848181106123ea576123ea614afa565b90506020020135613326565b8061240081614b58565b915050612339565b60065473ffffffffffffffffffffffffffffffffffffffff163314612489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a1b565b73ffffffffffffffffffffffffffffffffffffffff811661252c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a1b565b61253581612dc9565b50565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff16156125c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4552433732313a20626c61636b6c6973746564000000000000000000000000006044820152606401610a1b565b6125d3600d8361344f565b156126765760008181526008602052604090205460ff16612676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4552433732313a2063616e6e6f7420617070726f7665206d61726b6574706c6160448201527f6365207768656e207374616b65640000000000000000000000000000000000006064820152608401610a1b565b611192828261347e565b6000828152600960205260408120805483929061269e908490614d26565b909155505060008281526008602052604090205460ff1661119257600b5473ffffffffffffffffffffffffffffffffffffffff16635c2b21f66126e084611a0d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201526024810185905260006044820152606481018490526084015b600060405180830381600087803b15801561275c57600080fd5b505af1158015612770573d6000803e3d6000fd5b505050505050565b60006108d6825490565b600061278e838361351e565b9392505050565b60008181526008602052604090205460ff161515600114612812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f416c7265616479207374616b65640000000000000000000000000000000000006044820152606401610a1b565b600061281d8261096e565b73ffffffffffffffffffffffffffffffffffffffff161461289a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f43616e6e6f74207374616b65207768656e20746f6b656e20617070726f7665646044820152606401610a1b565b600081815260086020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600b546009909252918290205491517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052600160448301526064820193909352911690631074a2f090608401612742565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff166129f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610a1b565b6000612a0383611a0d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612a7257508373ffffffffffffffffffffffffffffffffffffffff16612a5a8461096e565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aaf575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612ad782611a0d565b73ffffffffffffffffffffffffffffffffffffffff1614612b7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a1b565b73ffffffffffffffffffffffffffffffffffffffff8216612c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b612c27838383613548565b612c32600082612538565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612c68908490614d26565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612ca3908490614d3d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b601154604080516020601f850181900481028201810190925283815260009273ffffffffffffffffffffffffffffffffffffffff1691612d9091908690869081908401838280828437600092019190915250612d8a92508991506138b69050565b90613909565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b61119282826040518060200160405280600081525061392d565b6006805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205460ff16158015612e9c575073ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff16155b612f02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4552433732313a20626c61636b6c6973746564000000000000000000000000006044820152606401610a1b565b612f0d600d8361344f565b8015612f165750805b1561303c57600b546040517fd74e40b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301529091169063d74e40b290602401602060405180830381865afa158015612f8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612faf9190614d55565b1561303c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616e6e6f7420656e61626c65206d61726b6574706c616360448201527f65207768656e207374616b6564000000000000000000000000000000000000006064820152608401610a1b565b610c008383836139d0565b600061278e8373ffffffffffffffffffffffffffffffffffffffff8416613afe565b600061278e8373ffffffffffffffffffffffffffffffffffffffff8416613b4d565b613096848484612ab7565b6130a284848484613c40565b61205f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a1b565b60608161316e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613198578061318281614b58565b91506131919050600a83614d9d565b9150613172565b60008167ffffffffffffffff8111156131b3576131b3614953565b6040519080825280601f01601f1916602001820160405280156131dd576020820181803683370190505b5090505b8415612aaf576131f2600183614d26565b91506131ff600a86614db1565b61320a906030614d3d565b60f81b81838151811061321f5761321f614afa565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613259600a86614d9d565b94506131e1565b6000828152600960205260408120805483929061327e908490614d3d565b909155505060008281526008602052604090205460ff1661119257600b5473ffffffffffffffffffffffffffffffffffffffff16635c2b21f66132c084611a0d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018590526001604482015260648101849052608401612742565b60008181526008602052604090205460ff161561339f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f416c726561647920756e7374616b6564000000000000000000000000000000006044820152606401610a1b565b600081815260086020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600b5460099092528083205490517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff86811660048301526024820186905260448201949094526064810191909152911690631074a2f090608401612742565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600183016020526040812054151561278e565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff841690811790915581906134d882611a0d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082600001828154811061353557613535614afa565b9060005260206000200154905092915050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600f602052604090205460ff161580156135a4575073ffffffffffffffffffffffffffffffffffffffff82166000908152600f602052604090205460ff16155b61360a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20676f206675636b20796f757273656c6600000000000000006044820152606401610a1b565b60008181526008602052604090205460ff16610c005773ffffffffffffffffffffffffffffffffffffffff83166136eb57600b54600082815260096020526040908190205490517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015260248201859052600160448301526064820192909252911690631074a2f0906084015b600060405180830381600087803b1580156136ce57600080fd5b505af11580156136e2573d6000803e3d6000fd5b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff821661378357600b546000828152600960205260408082205490517f1074a2f000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301526024820186905260448201939093526064810191909152911690631074a2f0906084016136b4565b600b547501000000000000000000000000000000000000000000900460ff1661382e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4552433732313a2063616e6e6f74207472616e73666572207768656e2073746160448201527f6b656400000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b6138388382613326565b600b54600082815260096020526040908190205490517fadcb679000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152858116602483015260448201859052606482019290925291169063adcb6790906084016136b4565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60008060006139188585613e30565b9150915061392581613ea0565b509392505050565b61393783836140f9565b6139446000848484613c40565b610c00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a1b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613a66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a1b565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000818152600183016020526040812054613b45575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556108d6565b5060006108d6565b60008181526001830160205260408120548015613c36576000613b71600183614d26565b8554909150600090613b8590600190614d26565b9050818114613bea576000866000018281548110613ba557613ba5614afa565b9060005260206000200154905080876000018481548110613bc857613bc8614afa565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613bfb57613bfb614dc5565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506108d6565b60009150506108d6565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613e25576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613cb7903390899088908890600401614df4565b6020604051808303816000875af1925050508015613d10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613d0d91810190614e3d565b60015b613dda573d808015613d3e576040519150601f19603f3d011682016040523d82523d6000602084013e613d43565b606091505b508051613dd2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a1b565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612aaf565b506001949350505050565b600080825160411415613e675760208301516040840151606085015160001a613e5b878285856142c7565b94509450505050613e99565b825160401415613e915760208301516040840151613e868683836143df565b935093505050613e99565b506000905060025b9250929050565b6000816004811115613eb457613eb4614e5a565b1415613ebd5750565b6001816004811115613ed157613ed1614e5a565b1415613f39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a1b565b6002816004811115613f4d57613f4d614e5a565b1415613fb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a1b565b6003816004811115613fc957613fc9614e5a565b1415614057576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b600481600481111561406b5761406b614e5a565b1415612535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610a1b565b73ffffffffffffffffffffffffffffffffffffffff8216614176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a1b565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1615614202576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a1b565b61420e60008383613548565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290614244908490614d3d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156142fe57506000905060036143d6565b8460ff16601b1415801561431657508460ff16601c14155b1561432757506000905060046143d6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561437b573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166143cf576000600192509250506143d6565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161441560ff86901c601b614d3d565b9050614423878288856142c7565b935093505050935093915050565b82805461443d90614aa6565b90600052602060002090601f01602090048101928261445f57600085556144c3565b82601f10614496578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556144c3565b828001600101855582156144c3579182015b828111156144c35782358255916020019190600101906144a8565b506144cf9291506144d3565b5090565b5b808211156144cf57600081556001016144d4565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461253557600080fd5b60006020828403121561452857600080fd5b813561278e816144e8565b60005b8381101561454e578181015183820152602001614536565b8381111561205f5750506000910152565b60008151808452614577816020860160208601614533565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061278e602083018461455f565b6000602082840312156145ce57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461217e57600080fd5b6000806040838503121561460c57600080fd5b614615836145d5565b946020939093013593505050565b60008083601f84011261463557600080fd5b50813567ffffffffffffffff81111561464d57600080fd5b6020830191508360208260051b8501011115613e9957600080fd5b6000806000806040858703121561467e57600080fd5b843567ffffffffffffffff8082111561469657600080fd5b6146a288838901614623565b909650945060208701359150808211156146bb57600080fd5b506146c887828801614623565b95989497509550505050565b600080602083850312156146e757600080fd5b823567ffffffffffffffff8111156146fe57600080fd5b61470a85828601614623565b90969095509350505050565b8035801515811461217e57600080fd5b6000806040838503121561473957600080fd5b614742836145d5565b915061475060208401614716565b90509250929050565b60008060006060848603121561476e57600080fd5b614777846145d5565b9250614785602085016145d5565b9150604084013590509250925092565b60008083601f8401126147a757600080fd5b50813567ffffffffffffffff8111156147bf57600080fd5b602083019150836020828501011115613e9957600080fd5b60008060008060008060a087890312156147f057600080fd5b6147f9876145d5565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561482a57600080fd5b61483689828a01614795565b979a9699509497509295939492505050565b8215158152604060208201526000612aaf604083018461455f565b60008060008060006080868803121561487b57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156148a757600080fd5b6148b388828901614795565b969995985093965092949392505050565b600080604083850312156148d757600080fd5b82359150614750602084016145d5565b6000602082840312156148f957600080fd5b61278e826145d5565b60006020828403121561491457600080fd5b61278e82614716565b6000806020838503121561493057600080fd5b823567ffffffffffffffff81111561494757600080fd5b61470a85828601614795565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561499857600080fd5b6149a1856145d5565b93506149af602086016145d5565b925060408501359150606085013567ffffffffffffffff808211156149d357600080fd5b818701915087601f8301126149e757600080fd5b8135818111156149f9576149f9614953565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715614a3f57614a3f614953565b816040528281528a6020848701011115614a5857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215614a8f57600080fd5b614a98836145d5565b9150614750602084016145d5565b600181811c90821680614aba57607f821691505b60208210811415614af4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b8a57614b8a614b29565b5060010190565b600067ffffffffffffffff80831681811415614baf57614baf614b29565b6001019392505050565b8054600090600181811c9080831680614bd357607f831692505b6020808410821415614c0e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b818015614c225760018114614c5157614c7e565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650614c7e565b60008881526020902060005b86811015614c765781548b820152908501908301614c5d565b505084890196505b50505050505092915050565b6000614c968285614bb9565b7f756e7374616b65642f000000000000000000000000000000000000000000000081528351614ccc816009840160208801614533565b01600901949350505050565b6000614ce48285614bb9565b7f7374616b65642f0000000000000000000000000000000000000000000000000081528351614d1a816007840160208801614533565b01600701949350505050565b600082821015614d3857614d38614b29565b500390565b60008219821115614d5057614d50614b29565b500190565b600060208284031215614d6757600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614dac57614dac614d6e565b500490565b600082614dc057614dc0614d6e565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614e33608083018461455f565b9695505050505050565b600060208284031215614e4f57600080fd5b815161278e816144e8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220e19e7ec3856a783f9bcf411bd8af225399928e892bcb24a7b7a48536e7ab31e964736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f41306e32d7b18460c07db0d5c889d900ca25252
-----Decoded View---------------
Arg [0] : _rewardContract (address): 0xF41306e32d7B18460c07Db0d5C889d900Ca25252
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f41306e32d7b18460c07db0d5c889d900ca25252
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.