Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 68 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 15479463 | 828 days ago | IN | 0 ETH | 0.00053374 | ||||
Set Approval For... | 15322520 | 853 days ago | IN | 0 ETH | 0.00127762 | ||||
Set Approval For... | 14397303 | 1002 days ago | IN | 0 ETH | 0.00109557 | ||||
Safe Transfer Fr... | 14396977 | 1002 days ago | IN | 0 ETH | 0.00227586 | ||||
Withdraw | 14374513 | 1005 days ago | IN | 0 ETH | 0.00059464 | ||||
Set Approval For... | 14322573 | 1013 days ago | IN | 0 ETH | 0.00361733 | ||||
Set Base URI | 14160626 | 1038 days ago | IN | 0 ETH | 0.00647196 | ||||
Set Base URI | 14160555 | 1038 days ago | IN | 0 ETH | 0.00691854 | ||||
Set Sales Begin | 14114368 | 1045 days ago | IN | 0 ETH | 0.00419503 | ||||
Mint | 14111092 | 1046 days ago | IN | 0.16 ETH | 0.02363835 | ||||
Mint | 14111092 | 1046 days ago | IN | 0.16 ETH | 0.02483078 | ||||
Mint | 14108329 | 1046 days ago | IN | 0.08 ETH | 0.01288758 | ||||
Mint | 14108309 | 1046 days ago | IN | 0.08 ETH | 0.01383871 | ||||
Mint | 14107945 | 1046 days ago | IN | 0.08 ETH | 0.00448921 | ||||
Mint | 14107839 | 1046 days ago | IN | 0.08 ETH | 0.0466618 | ||||
Set Sales Begin | 14107787 | 1046 days ago | IN | 0 ETH | 0.00288375 | ||||
Set Price | 14107760 | 1046 days ago | IN | 0 ETH | 0.00352133 | ||||
Set Approval For... | 14105926 | 1047 days ago | IN | 0 ETH | 0.00435614 | ||||
Private Mint | 14105916 | 1047 days ago | IN | 0 ETH | 0.01500483 | ||||
Insert Private S... | 14102785 | 1047 days ago | IN | 0 ETH | 0.01701044 | ||||
Private Mint | 14100372 | 1048 days ago | IN | 0 ETH | 0.01377708 | ||||
Private Mint | 14099522 | 1048 days ago | IN | 0 ETH | 0.014077 | ||||
Private Mint | 14099515 | 1048 days ago | IN | 0 ETH | 0.01413409 | ||||
Private Mint | 14099207 | 1048 days ago | IN | 0 ETH | 0.01115317 | ||||
Private Mint | 14095812 | 1048 days ago | IN | 0 ETH | 0.02905056 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14374513 | 1005 days ago | 1.52 ETH |
Loading...
Loading
Contract Name:
Jigsaw1
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/utils/Counters.sol'; interface IJigsaw1BadgeContract { function mintFinalPicture(address _account) external ; function addMinter( address _account) external ; function removeMinter( address _account) external ; function bulkMintFinalPicture(address[] memory _accounts) external; } contract Jigsaw1 is ERC721Enumerable, Ownable { using Counters for Counters.Counter; using MerkleProof for bytes32[]; using Strings for uint256; using ECDSA for bytes32; using SafeMath for uint256; /// @notice Total Private Sale uint256 public constant jigsawPresale = 750; /// @notice Total Fiat Sale uint256 public constant jigsawFiat = 2000; /// @notice Total Supply uint256 public constant jigsawTotal = 5632; /// @notice allow users to mint up to 2 per wallet during whitelisted sale uint256 public constant MAX_WHITELISTED_MINTED_NUMBER = 2; /// @notice allow users to mint up to 10 per wallet uint256 public constant MAX_MINTED_NUMBER = 10; /// @notice Token has been minted to the address mapping(address => uint256) public hasMinted; /// @notice Address can mint the private sale i.e. whitelisted addresses mapping(address => bool) public privateSaleEntries; /// @notice Token Price uint256 public price = 0.11 ether; /// below list of properties related to final nft mint on claimReward. /// @notice maximum final puzzle picture count address public finalBadgeContractAddress; uint256 public MAX_FINAL_PUZZLE_PICTURE_NUMBER; address[] public finalOwners; uint256[][] public finalOwnersTokenIds ; uint256 public finalPictureTokenIds; mapping(address => uint256) public hasReceivedFinalPictureNft; string private _tokenFinalPictureBaseURI = ''; /// @notice Token Base URI string private _tokenBaseURI = ''; /// @notice Community Pool - 20% of the mint fee uint256 public constant communityRatio = 2000; /// @notice Community Merkle Root bytes32 public communityRoot; /// @notice Community Reward Claimed mapping(address => bool) public isClaimedCommunity; /// @notice Charity Pool - 20% of the mint fee uint256 public constant charityRatio = 2000; /// @notice Charity, Vote amount, Pool address, Reward ratio struct CharityInfo { bytes32 charity; uint256 vote; address payable pool; uint256 ratio; } /// @notice Charity vote infos CharityInfo[] public charityInfos; /// @notice Bored Puzzles - 60% of the mint fee uint256 public constant boredRatio = 6000; /// @notice Bored Puzzles Address address payable public boredAddress; /// @notice Count of Public Saled Tokens uint256 public publicCounter; /// @notice Count of Fiat Saled Tokens uint256 public fiatCounter; /// @notice fiatFee is the amount of ETH received on fiat sale uint256 public fiatFee; /// @notice Count of Private Saled Tokens uint256 public privateCounter; /// @notice Start timestamp for the Private Sale uint256 public privateSaleBegin = 9999999990; /// @notice Start timestamp for the Fiat Sale uint256 public fiatSaleBegin = 9999999991; /// @notice Start timestamp for the Public Sale uint256 public publicSaleBegin = 9999999992; /// @notice Game period uint256 public constant period = 5 days; /// @notice Game Started At uint256 public startedAt; /// @notice Game Ended At uint256 public endedAt; /// @notice Editable for Token Base URI bool public editable; /// @notice Total Fee uint256 public totalFee; /// @notice Estimated Gas for Mint uint256 public estimatedGasForMint = 0; /// claim you nft properties /// @notice Events event StartGame(uint256 indexed at); event EndGame(uint256 indexed at); event UploadedCommunityRoot(); event ClaimedCommunity(address indexed account, uint256 amount); event ClaimedCommunityNFT(address indexed account, uint256 tokenId); event ClaimedCharity( bytes32 indexed charity, address indexed pool, uint256 amount ); modifier onlyEditable() { require(editable, 'METADATA_FUNCTIONS_LOCKED'); _; } constructor() ERC721('Bored Puzzles Jigsaw1', 'BPJ1') { editable = true; } function safeTransferETH(address payable _to, uint256 _amount) internal returns (bool success) { if (_amount > address(this).balance) { (success, ) = _to.call{value: address(this).balance}(''); } else { (success, ) = _to.call{value: _amount}(''); } } ///-------------------------------------------------------- /// Public Sale /// Fiat Sale /// Private Sale ///-------------------------------------------------------- /** * @notice Mint on Public Sale */ function mint(uint256 _amount) external payable { require( block.timestamp >= publicSaleBegin || fiatCounter >= jigsawFiat, 'ER: Public sale is not started' ); require(totalSupply()+ _amount <= jigsawTotal, 'ER: The sale is sold out'); require( hasMinted[msg.sender] + _amount <= MAX_MINTED_NUMBER, 'ER: You can not mint more than maximum allowed tokens' ); // Calculate Mint Fee with Gas Substraction uint256 mintFee = price*_amount - tx.gasprice * estimatedGasForMint; require(mintFee <= msg.value, 'ER: Not enough ETH'); /// @notice Return any ETH to be refunded uint256 refund = msg.value - mintFee; if (refund > 0) { require( safeTransferETH(payable(msg.sender), refund), 'ER: Return any ETH to be refunded' ); } publicCounter += _amount; totalFee += mintFee; hasMinted[msg.sender] += _amount; for(uint256 i = 0 ; i < _amount ; i += 1){ _safeMint(msg.sender, totalSupply() + 1); } } /** * @notice Admin can mint to the users for Fiat Sale * @param _to Users wallet addresses */ function safeMint(address[] memory _to, uint256[] memory _nftCount) external payable onlyOwner{ require( block.timestamp >= fiatSaleBegin || privateCounter >= jigsawPresale, 'ER: Fiat sale is not started' ); require( block.timestamp < publicSaleBegin, 'ER: Fiat sale is currently closed' ); uint256 totalAccounts = _to.length; for (uint256 i = 0; i < totalAccounts; i++) { address to = _to[i]; uint256 totalTokensToMint = _nftCount[i]; //minting multiple tokens for individual for (uint256 j = 0; j < totalTokensToMint; j++) { if (hasMinted[to] < MAX_MINTED_NUMBER) { require( totalSupply() < jigsawTotal, 'ER: The sale is sold out' ); require( fiatCounter < jigsawFiat, 'ER: Not enough Jigsaws left for the fiat sale' ); fiatCounter++; hasMinted[to] += 1; //as tx.gasprice is price for the uint256 mintFee = price - tx.gasprice * estimatedGasForMint; totalFee += mintFee; fiatFee += price; _safeMint(to, totalSupply() + 1); } else break; } } // totalFee -= tx.gasprice * estimatedGasForMint; // totalFee += msg.value; } /** * @notice Mint on Private Sale i.e. during whitelist sale period */ function privateMint(uint256 _amount) external payable { require( block.timestamp >= privateSaleBegin, 'ER: Private sale is not started' ); require( block.timestamp < fiatSaleBegin, 'ER: Private sale is currently closed' ); require( privateSaleEntries[msg.sender], 'ER: You are not qualified for the presale' ); require(totalSupply() + _amount <= jigsawTotal, 'ER: The sale is sold out'); require( privateCounter + _amount <= jigsawPresale, 'ER: Not enough Jigsaws left for the presale' ); require( hasMinted[msg.sender] + _amount <= MAX_WHITELISTED_MINTED_NUMBER, 'ER: You have already minted maximum for whitelisted sale' ); // Calculate Mint Fee with Gas Substraction uint256 mintFee = price*_amount - tx.gasprice * estimatedGasForMint; require(mintFee <= msg.value, 'ER: Not enough ETH'); /// @notice Return any ETH to be refunded uint256 refund = msg.value - mintFee; if (refund > 0) { require( safeTransferETH(payable(msg.sender), refund), 'ER: Return any ETH to be refunded' ); } privateCounter += _amount; totalFee += mintFee; hasMinted[msg.sender] += _amount; for(uint256 i = 0 ; i < _amount ; i += 1){ _safeMint(msg.sender, totalSupply() + 1); } } ///-------------------------------------------------------- /// Insert private buyers /// Remove private buyers ///-------------------------------------------------------- /** * @notice Admin can insert the addresses to mint the presale * @param privateEntries Addresses for the presale */ function insertPrivateSalers(address[] calldata privateEntries) external onlyOwner { for (uint256 i = 0; i < privateEntries.length; i++) { require(privateEntries[i] != address(0), 'ER: Null Address'); require( !privateSaleEntries[privateEntries[i]], 'ER: Duplicate Entry' ); privateSaleEntries[privateEntries[i]] = true; } } /** * @notice Admin can stop the addresses to not mint the presale * @param privateEntries Addresses for the non-presale */ function removePrivateSalers(address[] calldata privateEntries) external onlyOwner { for (uint256 i = 0; i < privateEntries.length; i++) { require(privateEntries[i] != address(0), 'ER: Null Address'); privateSaleEntries[privateEntries[i]] = false; } } ///-------------------------------------------------------- /// Sales Begin Timestamp /// Start Game /// End Game ///-------------------------------------------------------- /** * @notice Admin can set the privateSaleBegin, fiatSaleBegin, publicSaleBegin timestamp * @param _privateSaleBegin Timestamp to begin the private sale * @param _fiatSaleBegin Timestamp to begin the fiat sale * @param _publicSaleBegin Timestamp to begin the public sale */ function setSalesBegin( uint256 _privateSaleBegin, uint256 _fiatSaleBegin, uint256 _publicSaleBegin) external onlyOwner { require( _privateSaleBegin < _fiatSaleBegin && _fiatSaleBegin < _publicSaleBegin, 'ER: Invalid timestamp for sales' ); privateSaleBegin = _privateSaleBegin; fiatSaleBegin = _fiatSaleBegin; publicSaleBegin = _publicSaleBegin; } function getSalesBeginTimestamp() external view returns (uint256,uint256,uint256,uint256) { return ( privateSaleBegin, fiatSaleBegin, publicSaleBegin, block.timestamp ); } /** * @notice Admin can start the game * @param _boredAddress Bored Puzzles address */ function startGame(address payable _boredAddress) external onlyOwner { require( _boredAddress != address(0), 'ER: Invalid Bored Puzzle address' ); require(startedAt == 0, 'ER: Game is already began'); startedAt = block.timestamp; boredAddress = _boredAddress; uint256 amount = ((totalFee * boredRatio) -fiatFee) / 1e4; require( safeTransferETH(boredAddress, amount), 'ER: ETH transfer to Bored Puzzles failed' ); emit StartGame(startedAt); } /** * @notice Admin can end the game */ function endGame() external onlyOwner { require(startedAt > 0, 'ER: Game is not started yet'); require(endedAt == 0, 'ER: Game is has already ended'); endedAt = block.timestamp; (address[] memory _owners, uint256[][] memory _tokenIds) = grabAllOwners(); setSnapshotFinalPlayers(_owners, _tokenIds); emit EndGame(endedAt); airdropFinalPictureToFinalOwners(); } function setSnapshotFinalPlayers(address[] memory _owners, uint256[][] memory _tokenIds) internal { MAX_FINAL_PUZZLE_PICTURE_NUMBER = _owners.length; finalOwners = _owners; finalOwnersTokenIds = _tokenIds; } function getSnapshotFinalPlayers() public view returns (address[] memory, uint256[][] memory) { return (finalOwners, finalOwnersTokenIds); } ///-------------------------------------------------------- /// Upload Coummunity Merkle Root /// Claim the Community Reward /// Upload Charity Vote Result ///-------------------------------------------------------- /** * @notice Admin can upload the Community root * @param _communityRoot Community Distribution Merkle Root */ function uploadCommunityRoot(bytes32 _communityRoot) external onlyOwner { require(endedAt > 0, 'ER: Game is not ended yet'); require( communityRoot == bytes32(0), 'ER: Community Root is already set' ); communityRoot = _communityRoot; emit UploadedCommunityRoot(); } function setGameStartandEndTime( uint256 _startedAt, uint256 _endedAt, uint256 _totalFee ) public onlyOwner { startedAt = _startedAt; endedAt = _endedAt; totalFee = _totalFee; } /** @notice Calculates communityAmount and charityAmount, used in internal calls. */ function getCommunityAmount() public view returns (uint256 _communityAmount, uint256 _charityAmount){ uint256 delayPeriod; if ((endedAt - startedAt) > period) { delayPeriod = (endedAt - startedAt) - period; } uint256 delaySeconds = delayPeriod % 1 days; uint256 delayDays = delayPeriod / 1 days; uint256 transferenceAmount; uint256 tempCommunityAmount = (totalFee * communityRatio) / 1e4; if (delayPeriod >= 0 days && delayPeriod < 1 days) { transferenceAmount = (totalFee * communityRatio * delaySeconds * 500) / (1 days * 1e8); } else if (delayPeriod >= 1 days && delayPeriod < 2 days) { transferenceAmount = (totalFee * communityRatio * 500) / (1e8); transferenceAmount += (totalFee * communityRatio * delaySeconds * 1000) / (1 days * 1e8); } else { transferenceAmount = (totalFee * communityRatio * 500) / (1e8); transferenceAmount += (totalFee * communityRatio * 1000) / (1e8); transferenceAmount += (totalFee * communityRatio * 1500 * ((delayDays.sub(2) * 86400).add(delaySeconds))) / (1 days * 1e8); } uint256 communityAmount = tempCommunityAmount - transferenceAmount; uint256 charityAmount = (totalFee * (communityRatio + charityRatio)) / 1e4 - communityAmount; return (communityAmount, charityAmount); } /** @notice Claim the community reward @param _account Receiver address @param _percent Reward percent @param _proof Merkle proof data */ function claimCommunity( address _account, uint256 _percent, bytes32[] memory _proof ) external { require(endedAt > 0, 'ER: Game is not ended yet'); require(!isClaimedCommunity[_account], 'ER: Community claimed already'); bytes32 leaf = keccak256(abi.encodePacked(_account, _percent)); require(MerkleProof.verify(_proof, communityRoot, leaf), "ER: Community claim wrong proof"); (uint256 communityAmount, ) = getCommunityAmount(); uint256 amount = (communityAmount * _percent) / 1e4; isClaimedCommunity[_account] = true; if (safeTransferETH(payable(_account), amount)) { emit ClaimedCommunity(_account, amount); } } /** @notice Mint final pictures to owners on endGame. */ function airdropFinalPictureToFinalOwners() internal { require(endedAt > 0, 'ER: Game has not ended yet'); // require(isAccountWhitelisted(_account), 'ER: You are not authorized to get final picture NFT'); require( finalPictureTokenIds + finalOwners.length <= MAX_FINAL_PUZZLE_PICTURE_NUMBER, 'ER: Final puzzle pictures exceeded quota' ); finalPictureTokenIds += MAX_FINAL_PUZZLE_PICTURE_NUMBER ; IJigsaw1BadgeContract badgeContract = IJigsaw1BadgeContract(finalBadgeContractAddress); badgeContract.bulkMintFinalPicture(finalOwners); } //it checks if account is whitelisted to get the final nft picture nft on claim rewards function isAccountWhitelisted(address _account) internal view returns (bool) { for(uint256 i = 0; i < finalOwners.length ; i++){ if(finalOwners[i] == _account) return true; } return false; } /** * @notice Admin can upload the Charity vote result * @param _charityInfos Charity vote result */ function uploadCharityInfos(CharityInfo[] memory _charityInfos) external onlyOwner { require(endedAt > 0, 'ER: Game is not ended yet'); require(_charityInfos.length > 0, 'ER: Invalid Charity Info'); require(charityInfos.length == 0, 'Er: Charity Info is already set'); (, uint256 charityAmount) = getCommunityAmount(); uint256 maxVote; uint256 count; uint256 length = _charityInfos.length; for (uint256 i = 0; i < length; i++) { uint256 vote = _charityInfos[i].vote; if (maxVote == vote) { count++; } else if (maxVote < vote) { maxVote = vote; count = 1; } } for (uint256 i = 0; i < length; i++) { CharityInfo memory info = _charityInfos[i]; if (info.vote == maxVote) { info.ratio = 1e4 / count; uint256 amount = charityAmount / count; if (safeTransferETH(info.pool, amount)) { emit ClaimedCharity(info.charity, info.pool, amount); } } else { info.ratio = 0; } charityInfos.push(info); } } ///-------------------------------------------------------- /// Token Editable /// Token BaseURI /// Token Mint Gas ///-------------------------------------------------------- /** * @notice Admin can set price of nft * @param _amount is latest price of nft */ function setPrice(uint256 _amount) external onlyOwner { price = _amount; } /** * @notice Admin can enable/disable the editable * @param _editable Can Edit */ function setEditable(bool _editable) external onlyOwner { editable = _editable; } /** * @notice Admin can set the Token Base URI but it should be editable * @param _URI Token Base URI */ function setBaseURI(string memory _URI) external onlyOwner onlyEditable { _tokenBaseURI = _URI; } function getBaseURI() external view returns (string memory) { return _baseURI(); } // get baseURI function _baseURI() internal view virtual override returns (string memory) { return _tokenBaseURI; } /** * @notice Admin can set finalBadgeContractAddress * @param _add as address of finalBadgeContractAddress */ function setFinalBadgeContractAddress(address _add) external onlyOwner { finalBadgeContractAddress = _add; } /** * @notice Admin can update the estimated Gas for Mint * @param _estimatedGasForMint Can Edit */ function setEstmatedGasForMint(uint256 _estimatedGasForMint) external onlyOwner { estimatedGasForMint = _estimatedGasForMint; } ///-------------------------------------------------------- /// View functions ///-------------------------------------------------------- /** * @notice Each token's URI * @param tokenId Token ID */ function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), 'Cannot query non-existent token'); if (tokenId <= jigsawTotal) return string( abi.encodePacked(_baseURI(), tokenId.toString(), '.json') ); else return 'ER: Not a valid token'; } /** * @notice Get list of owners and corresponding list of owner tokens */ function grabAllOwners() public view returns (address[] memory, uint256[][] memory) { uint256 ts = totalSupply(); address[] memory owners = new address[](ts); uint256[][] memory tokens = new uint256[][](ts); //NOTE: current func might fail if used dynamic generated long tokenIds // bool[] memory tempTokenIds = new bool[](jigsawTotal + MAX_FINAL_PUZZLE_PICTURE_NUMBER); bool[] memory tempTokenIds = new bool[](jigsawTotal); uint256 userCounterIndex = 0; for (uint256 i = 0; i < totalSupply(); i++) { uint256 tempTokenId = tokenByIndex(i); address tempOwner = ownerOf(tempTokenId); uint256 bal = balanceOf(tempOwner); if (tempTokenIds[tempTokenId] != true) { uint256[] memory tempIds = new uint256[](bal); for (uint256 j = 0; j < bal; j++) { uint256 tId = tokenOfOwnerByIndex(tempOwner, j); tempIds[j] = tId; tempTokenIds[tId] = true; } owners[userCounterIndex] = tempOwner; tokens[userCounterIndex] = tempIds; userCounterIndex += 1; } } address[] memory owners1 = new address[](userCounterIndex); uint256[][] memory tokens1 = new uint256[][](userCounterIndex); for (uint256 i = 0; i < userCounterIndex; i++) { owners1[i] = owners[i]; tokens1[i] = tokens[i]; } return (owners1, tokens1); } //owner can withdraw the amount from the SC balance. pass 500 as args for 5%. function withdraw(address _address, uint256 percentage) external onlyOwner { // require(startedAt > 0, 'ER: Cant withdraw as game has not started yet'); uint256 amount = address(this).balance * percentage / 1e4; (bool success, ) = payable(_address).call{value: amount}(""); require(success, "Withdraw amount failed"); } receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT 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}. 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly 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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 { /** * @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) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // 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) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @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) { // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @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 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; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. 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; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 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 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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"bytes32","name":"charity","type":"bytes32"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedCharity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedCommunity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ClaimedCommunityNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"at","type":"uint256"}],"name":"EndGame","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":"uint256","name":"at","type":"uint256"}],"name":"StartGame","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"},{"anonymous":false,"inputs":[],"name":"UploadedCommunityRoot","type":"event"},{"inputs":[],"name":"MAX_FINAL_PUZZLE_PICTURE_NUMBER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTED_NUMBER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WHITELISTED_MINTED_NUMBER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"boredAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boredRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"charityInfos","outputs":[{"internalType":"bytes32","name":"charity","type":"bytes32"},{"internalType":"uint256","name":"vote","type":"uint256"},{"internalType":"address payable","name":"pool","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charityRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_percent","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"claimCommunity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"editable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimatedGasForMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fiatCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fiatFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fiatSaleBegin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalBadgeContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"finalOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"finalOwnersTokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalPictureTokenIds","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":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCommunityAmount","outputs":[{"internalType":"uint256","name":"_communityAmount","type":"uint256"},{"internalType":"uint256","name":"_charityAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSalesBeginTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSnapshotFinalPlayers","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[][]","name":"","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"grabAllOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[][]","name":"","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasReceivedFinalPictureNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"privateEntries","type":"address[]"}],"name":"insertPrivateSalers","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"","type":"address"}],"name":"isClaimedCommunity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jigsawFiat","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jigsawPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jigsawTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"period","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateSaleBegin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateSaleEntries","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleBegin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"privateEntries","type":"address[]"}],"name":"removePrivateSalers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_nftCount","type":"uint256[]"}],"name":"safeMint","outputs":[],"stateMutability":"payable","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_editable","type":"bool"}],"name":"setEditable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_estimatedGasForMint","type":"uint256"}],"name":"setEstmatedGasForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"}],"name":"setFinalBadgeContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startedAt","type":"uint256"},{"internalType":"uint256","name":"_endedAt","type":"uint256"},{"internalType":"uint256","name":"_totalFee","type":"uint256"}],"name":"setGameStartandEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_privateSaleBegin","type":"uint256"},{"internalType":"uint256","name":"_fiatSaleBegin","type":"uint256"},{"internalType":"uint256","name":"_publicSaleBegin","type":"uint256"}],"name":"setSalesBegin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_boredAddress","type":"address"}],"name":"startGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"totalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[{"components":[{"internalType":"bytes32","name":"charity","type":"bytes32"},{"internalType":"uint256","name":"vote","type":"uint256"},{"internalType":"address payable","name":"pool","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"internalType":"struct Jigsaw1.CharityInfo[]","name":"_charityInfos","type":"tuple[]"}],"name":"uploadCharityInfos","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_communityRoot","type":"bytes32"}],"name":"uploadCommunityRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
670186cc6acd4b0000600d5560a0604081905260006080819052620000279160149162000168565b50604080516020810191829052600090819052620000489160159162000168565b506402540be3f6601e556402540be3f7601f556402540be3f860205560006025553480156200007657600080fd5b50604080518082018252601581527f426f7265642050757a7a6c6573204a696773617731000000000000000000000060208083019182528351808501909452600484526342504a3160e01b908401528151919291620000d89160009162000168565b508051620000ee90600190602084019062000168565b5050506000620001036200016460201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506023805460ff191660011790556200024b565b3390565b82805462000176906200020e565b90600052602060002090601f0160209004810192826200019a5760008555620001e5565b82601f10620001b557805160ff1916838001178555620001e5565b82800160010185558215620001e5579182015b82811115620001e5578251825591602001919060010190620001c8565b50620001f3929150620001f7565b5090565b5b80821115620001f35760008155600101620001f8565b600181811c908216806200022357607f821691505b602082108114156200024557634e487b7160e01b600052602260045260246000fd5b50919050565b614f82806200025b6000396000f3fe60806040526004361061044b5760003560e01c8063894a5aef11610234578063bf939c0e1161012e578063eceb41c3116100b6578063f2fde38b1161007a578063f2fde38b14610ca2578063f3cd404b14610cc2578063f3fef3a314610cf2578063fa93de3e14610d12578063fe8d9b3d14610d2857600080fd5b8063eceb41c314610c1f578063ef5deb3614610c3f578063ef78d4fd14610c55578063f21f537d14610c6c578063f2a2d71514610c8257600080fd5b8063e397ce1e116100fd578063e397ce1e14610b75578063e65cbd8014610b8b578063e75f23d214610ba1578063e985e9c514610bc1578063eaba0a8a14610c0a57600080fd5b8063bf939c0e14610af5578063c4f1aeb114610b15578063c87b56dd14610b42578063dbeb3b7314610b6257600080fd5b806399dfb97e116101bc578063a22cb46511610180578063a22cb46514610a6c578063a8fa270d14610a8c578063abfe40a814610aa2578063ae02cd5c14610ab5578063b88d4fde14610ad557600080fd5b806399dfb97e146109cc5780639c3e21ae14610a035780639c4fcea414610a23578063a035b1fe14610a43578063a0712d6814610a5957600080fd5b80639391a991116102035780639391a9911461094b578063940335dd14610961578063955c83b21461098b57806395d89b41146109a15780639773db42146109b657600080fd5b8063894a5aef146108d757806389dda07c146108ed5780638da5cb5b1461090d57806391b7f5ed1461092b57600080fd5b80633d6a71e41161034557806361b1ef67116102cd578063715018a611610291578063715018a6146108685780637ed939131461087d57806381fc08df146105905780638576384c1461089d57806388c786bc146108b757600080fd5b806361b1ef67146107de5780636352211e146107fe5780636cbc2ded1461081e57806370a0823114610833578063714c53981461085357600080fd5b806349de5cc71161031457806349de5cc7146107545780634e360d5a146107695780634f6ccce71461078957806355f804b3146107a95780636031b2f6146107c957600080fd5b80633d6a71e4146106ee57806342842e0e1461070457806345a38b911461059057806349c00cb31461072457600080fd5b8063216eff87116103d35780632cb0d48a116103975780632cb0d48a146106125780632f745c5914610632578063372e080d1461065257806338e21cce146106a15780633a27da9f146106ce57600080fd5b8063216eff871461059057806322ad3b76146105a657806323b872dd146105bc57806327948e6d146105dc57806328509f4e146105f257600080fd5b806313c5583e1161041a57806313c5583e1461050857806318160ddd1461052c57806318c52ae1146105415780631df4ccfc1461056457806321489c9c1461057a57600080fd5b806301ffc9a71461045757806306fdde031461048c578063081812fc146104ae578063095ea7b3146104e657600080fd5b3661045257005b600080fd5b34801561046357600080fd5b5061047761047236600461494a565b610d3e565b60405190151581526020015b60405180910390f35b34801561049857600080fd5b506104a1610d69565b6040516104839190614bd2565b3480156104ba57600080fd5b506104ce6104c9366004614932565b610dfb565b6040516001600160a01b039091168152602001610483565b3480156104f257600080fd5b5061050661050136600461463c565b610e95565b005b34801561051457600080fd5b5061051e61160081565b604051908152602001610483565b34801561053857600080fd5b5060085461051e565b34801561054d57600080fd5b50610556610fab565b604051610483929190614abb565b34801561057057600080fd5b5061051e60245481565b34801561058657600080fd5b5061051e601d5481565b34801561059c57600080fd5b5061051e6107d081565b3480156105b257600080fd5b5061051e601c5481565b3480156105c857600080fd5b506105066105d736600461454c565b61140c565b3480156105e857600080fd5b5061051e601e5481565b3480156105fe57600080fd5b5061050661060d3660046149e8565b61143d565b34801561061e57600080fd5b5061050661062d366004614918565b6114cf565b34801561063e57600080fd5b5061051e61064d36600461463c565b61150c565b34801561065e57600080fd5b5061067261066d366004614932565b6115a2565b604051610483949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b3480156106ad57600080fd5b5061051e6106bc3660046144f8565b600b6020526000908152604090205481565b3480156106da57600080fd5b506105066106e9366004614717565b6115e5565b3480156106fa57600080fd5b5061051e60225481565b34801561071057600080fd5b5061050661071f36600461454c565b6117a9565b34801561073057600080fd5b5061047761073f3660046144f8565b60176020526000908152604090205460ff1681565b34801561076057600080fd5b5061051e600a81565b34801561077557600080fd5b50610506610784366004614848565b6117c4565b34801561079557600080fd5b5061051e6107a4366004614932565b611aff565b3480156107b557600080fd5b506105066107c4366004614982565b611ba0565b3480156107d557600080fd5b50610556611c33565b3480156107ea57600080fd5b506105066107f9366004614667565b611d31565b34801561080a57600080fd5b506104ce610819366004614932565b611efb565b34801561082a57600080fd5b50610506611f72565b34801561083f57600080fd5b5061051e61084e3660046144f8565b61208f565b34801561085f57600080fd5b506104a1612116565b34801561087457600080fd5b50610506612125565b34801561088957600080fd5b50610506610898366004614932565b612199565b3480156108a957600080fd5b506023546104779060ff1681565b3480156108c357600080fd5b506019546104ce906001600160a01b031681565b3480156108e357600080fd5b5061051e60165481565b3480156108f957600080fd5b50610506610908366004614932565b6121c8565b34801561091957600080fd5b50600a546001600160a01b03166104ce565b34801561093757600080fd5b50610506610946366004614932565b61229f565b34801561095757600080fd5b5061051e60125481565b34801561096d57600080fd5b506109766122ce565b60408051928352602083019190915201610483565b34801561099757600080fd5b5061051e61177081565b3480156109ad57600080fd5b506104a1612540565b3480156109c257600080fd5b5061051e6102ee81565b3480156109d857600080fd5b50601e54601f5460205442604080519485526020850193909352918301526060820152608001610483565b348015610a0f57600080fd5b50610506610a1e3660046144f8565b61254f565b348015610a2f57600080fd5b5061051e610a3e3660046149c7565b612712565b348015610a4f57600080fd5b5061051e600d5481565b610506610a67366004614932565b61274f565b348015610a7857600080fd5b50610506610a87366004614608565b6129ad565b348015610a9857600080fd5b5061051e601a5481565b610506610ab0366004614932565b612a72565b348015610ac157600080fd5b50610506610ad0366004614717565b612df4565b348015610ae157600080fd5b50610506610af036600461458c565b612f1f565b348015610b0157600080fd5b50610506610b103660046149e8565b612f51565b348015610b2157600080fd5b5061051e610b303660046144f8565b60136020526000908152604090205481565b348015610b4e57600080fd5b506104a1610b5d366004614932565b612f89565b610506610b70366004614786565b613067565b348015610b8157600080fd5b5061051e600f5481565b348015610b9757600080fd5b5061051e60205481565b348015610bad57600080fd5b50600e546104ce906001600160a01b031681565b348015610bcd57600080fd5b50610477610bdc366004614514565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c1657600080fd5b5061051e600281565b348015610c2b57600080fd5b506104ce610c3a366004614932565b613344565b348015610c4b57600080fd5b5061051e60255481565b348015610c6157600080fd5b5061051e6206978081565b348015610c7857600080fd5b5061051e60215481565b348015610c8e57600080fd5b50610506610c9d3660046144f8565b61336e565b348015610cae57600080fd5b50610506610cbd3660046144f8565b6133ba565b348015610cce57600080fd5b50610477610cdd3660046144f8565b600c6020526000908152604090205460ff1681565b348015610cfe57600080fd5b50610506610d0d36600461463c565b6134a5565b348015610d1e57600080fd5b5061051e601b5481565b348015610d3457600080fd5b5061051e601f5481565b60006001600160e01b0319821663780e9d6360e01b1480610d635750610d6382613586565b92915050565b606060008054610d7890614e75565b80601f0160208091040260200160405190810160405280929190818152602001828054610da490614e75565b8015610df15780601f10610dc657610100808354040283529160200191610df1565b820191906000526020600020905b815481529060010190602001808311610dd457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ea082611efb565b9050806001600160a01b0316836001600160a01b03161415610f0e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e70565b336001600160a01b0382161480610f2a5750610f2a8133610bdc565b610f9c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e70565b610fa683836135d6565b505050565b6060806000610fb960085490565b90506000816001600160401b03811115610fe357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561100c578160200160208202803683370190505b5090506000826001600160401b0381111561103757634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561106a57816020015b60608152602001906001900390816110555790505b50604080516116008082526202c020820190925291925060009190602082016202c000803683370190505090506000805b6008548110156112715760006110b082611aff565b905060006110bd82611efb565b905060006110ca8261208f565b90508583815181106110ec57634e487b7160e01b600052603260045260246000fd5b60200260200101511515600115151461125b576000816001600160401b0381111561112757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611150578160200160208202803683370190505b50905060005b828110156111de57600061116a858361150c565b90508083838151811061118d57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060018982815181106111bb57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015250806111d681614eb0565b915050611156565b508289878151811061120057634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508088878151811061124157634e487b7160e01b600052603260045260246000fd5b6020908102919091010152611257600187614de7565b9550505b505050808061126990614eb0565b91505061109b565b506000816001600160401b0381111561129a57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112c3578160200160208202803683370190505b5090506000826001600160401b038111156112ee57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561132157816020015b606081526020019060019003908161130c5790505b50905060005b838110156113fd5786818151811061134f57634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061137757634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508581815181106113b757634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106113df57634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806113f590614eb0565b915050611327565b50909890975095505050505050565b6114163382613644565b6114325760405162461bcd60e51b8152600401610e7090614d1b565b610fa683838361373b565b600a546001600160a01b031633146114675760405162461bcd60e51b8152600401610e7090614c6e565b818310801561147557508082105b6114c15760405162461bcd60e51b815260206004820152601f60248201527f45523a20496e76616c69642074696d657374616d7020666f722073616c6573006044820152606401610e70565b601e92909255601f55602055565b600a546001600160a01b031633146114f95760405162461bcd60e51b8152600401610e7090614c6e565b6023805460ff1916911515919091179055565b60006115178361208f565b82106115795760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e70565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b601881815481106115b257600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350916001600160a01b03169084565b600a546001600160a01b0316331461160f5760405162461bcd60e51b8152600401610e7090614c6e565b60005b81811015610fa657600083838381811061163c57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061165191906144f8565b6001600160a01b0316141561169b5760405162461bcd60e51b815260206004820152601060248201526f45523a204e756c6c204164647265737360801b6044820152606401610e70565b600c60008484848181106116bf57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116d491906144f8565b6001600160a01b0316815260208101919091526040016000205460ff16156117345760405162461bcd60e51b815260206004820152601360248201527245523a204475706c696361746520456e74727960681b6044820152606401610e70565b6001600c600085858581811061175a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061176f91906144f8565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806117a181614eb0565b915050611612565b610fa683838360405180602001604052806000815250612f1f565b600a546001600160a01b031633146117ee5760405162461bcd60e51b8152600401610e7090614c6e565b6000602254116118105760405162461bcd60e51b8152600401610e7090614c37565b60008151116118615760405162461bcd60e51b815260206004820152601860248201527f45523a20496e76616c6964204368617269747920496e666f00000000000000006044820152606401610e70565b601854156118b15760405162461bcd60e51b815260206004820152601f60248201527f45723a204368617269747920496e666f20697320616c726561647920736574006044820152606401610e70565b60006118bb6122ce565b91505060008060008451905060005b8181101561193f5760008682815181106118f457634e487b7160e01b600052603260045260246000fd5b60200260200101516020015190508085141561191c578361191481614eb0565b94505061192c565b8085101561192c57809450600193505b508061193781614eb0565b9150506118ca565b5060005b81811015611af757600086828151811061196d57634e487b7160e01b600052603260045260246000fd5b602002602001015190508481602001511415611a085761198f84612710614dff565b606082015260006119a08588614dff565b90506119b08260400151826138e6565b15611a025781604001516001600160a01b031682600001517f1f2dd07bb1e982cdc7a2f721e7b19d89c89591a400c1984e3d4c2c2a7828566c836040516119f991815260200190565b60405180910390a35b50611a10565b600060608201525b6018805460018101825560009190915281517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e60049092029182015560208201517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2f82015560408201517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d30820180546001600160a01b0319166001600160a01b039092169190911790556060909101517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d319091015580611aef81614eb0565b915050611943565b505050505050565b6000611b0a60085490565b8210611b6d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e70565b60088281548110611b8e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314611bca5760405162461bcd60e51b8152600401610e7090614c6e565b60235460ff16611c1c5760405162461bcd60e51b815260206004820152601960248201527f4d455441444154415f46554e4354494f4e535f4c4f434b4544000000000000006044820152606401610e70565b8051611c2f906015906020840190614263565b5050565b6060806010601181805480602002602001604051908101604052809291908181526020018280548015611c8f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c71575b5050505050915080805480602002602001604051908101604052809291908181526020016000905b82821015611d2357600084815260209081902083018054604080518285028101850190915281815292830182828015611d0f57602002820191906000526020600020905b815481526020019060010190808311611cfb575b505050505081526020019060010190611cb7565b505050509050915091509091565b600060225411611d535760405162461bcd60e51b8152600401610e7090614c37565b6001600160a01b03831660009081526017602052604090205460ff1615611dbc5760405162461bcd60e51b815260206004820152601d60248201527f45523a20436f6d6d756e69747920636c61696d656420616c72656164790000006044820152606401610e70565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052600090605401604051602081830303815290604052805190602001209050611e0a82601654836139a1565b611e565760405162461bcd60e51b815260206004820152601f60248201527f45523a20436f6d6d756e69747920636c61696d2077726f6e672070726f6f66006044820152606401610e70565b6000611e606122ce565b5090506000612710611e728684614e13565b611e7c9190614dff565b6001600160a01b0387166000908152601760205260409020805460ff191660011790559050611eab86826138e6565b15611af757856001600160a01b03167f8c01a8ebfc2c99320db31369562fc6ae84feed66beee97c5c412a90829e228f782604051611eeb91815260200190565b60405180910390a2505050505050565b6000818152600260205260408120546001600160a01b031680610d635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e70565b600a546001600160a01b03163314611f9c5760405162461bcd60e51b8152600401610e7090614c6e565b600060215411611fee5760405162461bcd60e51b815260206004820152601b60248201527f45523a2047616d65206973206e6f7420737461727465642079657400000000006044820152606401610e70565b6022541561203e5760405162461bcd60e51b815260206004820152601d60248201527f45523a2047616d652069732068617320616c726561647920656e6465640000006044820152606401610e70565b4260225560008061204d610fab565b9150915061205b8282613a5e565b6022546040517ff17f8a7ba1cc9ab696225d16f43470811b34953153618c7d120f3878383e084390600090a2611c2f613a8a565b60006001600160a01b0382166120fa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e70565b506001600160a01b031660009081526003602052604090205490565b6060612120613bcf565b905090565b600a546001600160a01b0316331461214f5760405162461bcd60e51b8152600401610e7090614c6e565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b031633146121c35760405162461bcd60e51b8152600401610e7090614c6e565b602555565b600a546001600160a01b031633146121f25760405162461bcd60e51b8152600401610e7090614c6e565b6000602254116122145760405162461bcd60e51b8152600401610e7090614c37565b6016541561226e5760405162461bcd60e51b815260206004820152602160248201527f45523a20436f6d6d756e69747920526f6f7420697320616c72656164792073656044820152601d60fa1b6064820152608401610e70565b60168190556040517f7af7c3d9f00b77472c5352bcb4fc37e4aeb15a1b32f753b38204eaf8f49275a490600090a150565b600a546001600160a01b031633146122c95760405162461bcd60e51b8152600401610e7090614c6e565b600d55565b6000806000620697806021546022546122e79190614e32565b111561230e57620697806021546022546123019190614e32565b61230b9190614e32565b90505b600061231d6201518083614ecb565b9050600061232e6201518084614dff565b90506000806127106107d06024546123469190614e13565b6123509190614dff565b90506201518085101561239c576507dba8218000846107d06024546123759190614e13565b61237f9190614e13565b61238b906101f4614e13565b6123959190614dff565b91506124ef565b6201518085101580156123b157506202a30085105b15612425576305f5e1006107d06024546123cb9190614e13565b6123d7906101f4614e13565b6123e19190614dff565b91506507dba8218000846107d06024546123fb9190614e13565b6124059190614e13565b612411906103e8614e13565b61241b9190614dff565b6123959083614de7565b6305f5e1006107d060245461243a9190614e13565b612446906101f4614e13565b6124509190614dff565b91506305f5e1006107d06024546124679190614e13565b612473906103e8614e13565b61247d9190614dff565b6124879083614de7565b91506507dba82180006124b28561249f866002613bde565b6124ac9062015180614e13565b90613bf1565b6107d06024546124c29190614e13565b6124ce906105dc614e13565b6124d89190614e13565b6124e29190614dff565b6124ec9083614de7565b91505b60006124fb8383614e32565b905060008161271061250f6107d080614de7565b60245461251c9190614e13565b6125269190614dff565b6125309190614e32565b9199919850909650505050505050565b606060018054610d7890614e75565b600a546001600160a01b031633146125795760405162461bcd60e51b8152600401610e7090614c6e565b6001600160a01b0381166125cf5760405162461bcd60e51b815260206004820181905260248201527f45523a20496e76616c696420426f7265642050757a7a6c6520616464726573736044820152606401610e70565b6021541561261f5760405162461bcd60e51b815260206004820152601960248201527f45523a2047616d6520697320616c726561647920626567616e000000000000006044820152606401610e70565b42602155601980546001600160a01b0319166001600160a01b038316179055601c54602454600091612710916126589061177090614e13565b6126629190614e32565b61266c9190614dff565b601954909150612685906001600160a01b0316826138e6565b6126e25760405162461bcd60e51b815260206004820152602860248201527f45523a20455448207472616e7366657220746f20426f7265642050757a7a6c656044820152671cc819985a5b195960c21b6064820152608401610e70565b6021546040517f12333b322723ec26360eb708b341801ecca576387b55caa77d6e408107d2c70f90600090a25050565b6011828154811061272257600080fd5b90600052602060002001818154811061273a57600080fd5b90600052602060002001600091509150505481565b6020544210158061276457506107d0601b5410155b6127b05760405162461bcd60e51b815260206004820152601e60248201527f45523a205075626c69632073616c65206973206e6f74207374617274656400006044820152606401610e70565b611600816127bd60085490565b6127c79190614de7565b11156127e55760405162461bcd60e51b8152600401610e7090614ca3565b336000908152600b6020526040902054600a90612803908390614de7565b111561286f5760405162461bcd60e51b815260206004820152603560248201527f45523a20596f752063616e206e6f74206d696e74206d6f7265207468616e206d6044820152746178696d756d20616c6c6f77656420746f6b656e7360581b6064820152608401610e70565b60006025543a61287f9190614e13565b82600d5461288d9190614e13565b6128979190614e32565b9050348111156128de5760405162461bcd60e51b815260206004820152601260248201527108aa474409cdee840cadcdeeaced0408aa8960731b6044820152606401610e70565b60006128ea8234614e32565b90508015612918576128fc33826138e6565b6129185760405162461bcd60e51b8152600401610e7090614cda565b82601a600082825461292a9190614de7565b9250508190555081602460008282546129439190614de7565b9091555050336000908152600b602052604081208054859290612967908490614de7565b90915550600090505b838110156129a7576129953361298560085490565b612990906001614de7565b613bfd565b6129a0600182614de7565b9050612970565b50505050565b6001600160a01b038216331415612a065760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e70565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601e54421015612ac45760405162461bcd60e51b815260206004820152601f60248201527f45523a20507269766174652073616c65206973206e6f742073746172746564006044820152606401610e70565b601f544210612b215760405162461bcd60e51b8152602060048201526024808201527f45523a20507269766174652073616c652069732063757272656e746c7920636c6044820152631bdcd95960e21b6064820152608401610e70565b336000908152600c602052604090205460ff16612b925760405162461bcd60e51b815260206004820152602960248201527f45523a20596f7520617265206e6f74207175616c696669656420666f72207468604482015268652070726573616c6560b81b6064820152608401610e70565b61160081612b9f60085490565b612ba99190614de7565b1115612bc75760405162461bcd60e51b8152600401610e7090614ca3565b6102ee81601d54612bd89190614de7565b1115612c3a5760405162461bcd60e51b815260206004820152602b60248201527f45523a204e6f7420656e6f756768204a696773617773206c65667420666f722060448201526a7468652070726573616c6560a81b6064820152608401610e70565b336000908152600b6020526040902054600290612c58908390614de7565b1115612ccc5760405162461bcd60e51b815260206004820152603860248201527f45523a20596f75206861766520616c7265616479206d696e746564206d61786960448201527f6d756d20666f722077686974656c69737465642073616c6500000000000000006064820152608401610e70565b60006025543a612cdc9190614e13565b82600d54612cea9190614e13565b612cf49190614e32565b905034811115612d3b5760405162461bcd60e51b815260206004820152601260248201527108aa474409cdee840cadcdeeaced0408aa8960731b6044820152606401610e70565b6000612d478234614e32565b90508015612d7557612d5933826138e6565b612d755760405162461bcd60e51b8152600401610e7090614cda565b82601d6000828254612d879190614de7565b925050819055508160246000828254612da09190614de7565b9091555050336000908152600b602052604081208054859290612dc4908490614de7565b90915550600090505b838110156129a757612de23361298560085490565b612ded600182614de7565b9050612dcd565b600a546001600160a01b03163314612e1e5760405162461bcd60e51b8152600401610e7090614c6e565b60005b81811015610fa6576000838383818110612e4b57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612e6091906144f8565b6001600160a01b03161415612eaa5760405162461bcd60e51b815260206004820152601060248201526f45523a204e756c6c204164647265737360801b6044820152606401610e70565b6000600c6000858585818110612ed057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612ee591906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612f1781614eb0565b915050612e21565b612f293383613644565b612f455760405162461bcd60e51b8152600401610e7090614d1b565b6129a784848484613c17565b600a546001600160a01b03163314612f7b5760405162461bcd60e51b8152600401610e7090614c6e565b602192909255602255602455565b6000818152600260205260409020546060906001600160a01b0316612ff05760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610e70565b611600821161303157613001613bcf565b61300a83613c4a565b60405160200161301b929190614a3f565b6040516020818303038152906040529050919050565b505060408051808201909152601581527422a91d102737ba1030903b30b634b2103a37b5b2b760591b602082015290565b919050565b600a546001600160a01b031633146130915760405162461bcd60e51b8152600401610e7090614c6e565b601f54421015806130a657506102ee601d5410155b6130f25760405162461bcd60e51b815260206004820152601c60248201527f45523a20466961742073616c65206973206e6f742073746172746564000000006044820152606401610e70565b602054421061314d5760405162461bcd60e51b815260206004820152602160248201527f45523a20466961742073616c652069732063757272656e746c7920636c6f73656044820152601960fa1b6064820152608401610e70565b815160005b818110156129a757600084828151811061317c57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008483815181106131a857634e487b7160e01b600052603260045260246000fd5b6020026020010151905060005b8181101561332e576001600160a01b0383166000908152600b6020526040902054600a1115613317576116006131ea60085490565b106132075760405162461bcd60e51b8152600401610e7090614ca3565b6107d0601b54106132705760405162461bcd60e51b815260206004820152602d60248201527f45523a204e6f7420656e6f756768204a696773617773206c65667420666f722060448201526c74686520666961742073616c6560981b6064820152608401610e70565b601b805490600061328083614eb0565b90915550506001600160a01b0383166000908152600b602052604081208054600192906132ae908490614de7565b90915550506025546000906132c3903a614e13565b600d546132d09190614e32565b905080602460008282546132e49190614de7565b9091555050600d54601c80546000906132fe908490614de7565b9091555061331190508461298560085490565b5061331c565b61332e565b8061332681614eb0565b9150506131b5565b505050808061333c90614eb0565b915050613152565b6010818154811061335457600080fd5b6000918252602090912001546001600160a01b0316905081565b600a546001600160a01b031633146133985760405162461bcd60e51b8152600401610e7090614c6e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146133e45760405162461bcd60e51b8152600401610e7090614c6e565b6001600160a01b0381166134495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e70565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146134cf5760405162461bcd60e51b8152600401610e7090614c6e565b60006127106134de8347614e13565b6134e89190614dff565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114613537576040519150601f19603f3d011682016040523d82523d6000602084013e61353c565b606091505b50509050806129a75760405162461bcd60e51b815260206004820152601660248201527515da5d1a191c985dc8185b5bdd5b9d0819985a5b195960521b6044820152606401610e70565b60006001600160e01b031982166380ac58cd60e01b14806135b757506001600160e01b03198216635b5e139f60e01b145b80610d6357506301ffc9a760e01b6001600160e01b0319831614610d63565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061360b82611efb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166136bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e70565b60006136c883611efb565b9050806001600160a01b0316846001600160a01b031614806137035750836001600160a01b03166136f884610dfb565b6001600160a01b0316145b8061373357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661374e82611efb565b6001600160a01b0316146137b65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610e70565b6001600160a01b0382166138185760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e70565b613823838383613d63565b61382e6000826135d6565b6001600160a01b0383166000908152600360205260408120805460019290613857908490614e32565b90915550506001600160a01b0382166000908152600360205260408120805460019290613885908490614de7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600047821115613949576040516001600160a01b038416904790600081818185875af1925050503d8060008114613939576040519150601f19603f3d011682016040523d82523d6000602084013e61393e565b606091505b505080915050610d63565b6040516001600160a01b038416908390600081818185875af1925050503d8060008114613992576040519150601f19603f3d011682016040523d82523d6000602084013e613997565b606091505b5090949350505050565b600081815b8551811015613a535760008682815181106139d157634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613a13576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613a40565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613a4b81614eb0565b9150506139a6565b509092149392505050565b8151600f819055613a769060109060208501906142e7565b508051610fa690601190602084019061433c565b600060225411613adc5760405162461bcd60e51b815260206004820152601a60248201527f45523a2047616d6520686173206e6f7420656e646564207965740000000000006044820152606401610e70565b600f54601054601254613aef9190614de7565b1115613b4e5760405162461bcd60e51b815260206004820152602860248201527f45523a2046696e616c2070757a7a6c652070696374757265732065786365656460448201526765642071756f746160c01b6064820152608401610e70565b600f5460126000828254613b629190614de7565b9091555050600e54604051631269babf60e31b81526001600160a01b0390911690819063934dd5f890613b9a90601090600401614b82565b600060405180830381600087803b158015613bb457600080fd5b505af1158015613bc8573d6000803e3d6000fd5b5050505050565b606060158054610d7890614e75565b6000613bea8284614e32565b9392505050565b6000613bea8284614de7565b611c2f828260405180602001604052806000815250613e1b565b613c2284848461373b565b613c2e84848484613e4e565b6129a75760405162461bcd60e51b8152600401610e7090614be5565b606081613c6e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613c985780613c8281614eb0565b9150613c919050600a83614dff565b9150613c72565b6000816001600160401b03811115613cc057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613cea576020820181803683370190505b5090505b841561373357613cff600183614e32565b9150613d0c600a86614ecb565b613d17906030614de7565b60f81b818381518110613d3a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613d5c600a86614dff565b9450613cee565b6001600160a01b038316613dbe57613db981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613de1565b816001600160a01b0316836001600160a01b031614613de157613de18382613f5b565b6001600160a01b038216613df857610fa681613ff8565b826001600160a01b0316826001600160a01b031614610fa657610fa682826140d1565b613e258383614115565b613e326000848484613e4e565b610fa65760405162461bcd60e51b8152600401610e7090614be5565b60006001600160a01b0384163b15613f5057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e92903390899088908890600401614a7e565b602060405180830381600087803b158015613eac57600080fd5b505af1925050508015613edc575060408051601f3d908101601f19168201909252613ed991810190614966565b60015b613f36573d808015613f0a576040519150601f19603f3d011682016040523d82523d6000602084013e613f0f565b606091505b508051613f2e5760405162461bcd60e51b8152600401610e7090614be5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613733565b506001949350505050565b60006001613f688461208f565b613f729190614e32565b600083815260076020526040902054909150808214613fc5576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061400a90600190614e32565b6000838152600960205260408120546008805493945090928490811061404057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061406f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806140b557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006140dc8361208f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661416b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e70565b6000818152600260205260409020546001600160a01b0316156141d05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e70565b6141dc60008383613d63565b6001600160a01b0382166000908152600360205260408120805460019290614205908490614de7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461426f90614e75565b90600052602060002090601f01602090048101928261429157600085556142d7565b82601f106142aa57805160ff19168380011785556142d7565b828001600101855582156142d7579182015b828111156142d75782518255916020019190600101906142bc565b506142e3929150614395565b5090565b8280548282559060005260206000209081019282156142d7579160200282015b828111156142d757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614307565b828054828255906000526020600020908101928215614389579160200282015b8281111561438957825180516143799184916020909101906143aa565b509160200191906001019061435c565b506142e39291506143e4565b5b808211156142e35760008155600101614396565b8280548282559060005260206000209081019282156142d757916020028201828111156142d75782518255916020019190600101906142bc565b808211156142e35760006143f88282614401565b506001016143e4565b508054600082559060005260206000209081019061441f9190614395565b50565b60006001600160401b0383111561443b5761443b614f0b565b61444e601f8401601f1916602001614d94565b905082815283838301111561446257600080fd5b828260208301376000602084830101529392505050565b600082601f830112614489578081fd5b8135602061449e61449983614dc4565b614d94565b80838252828201915082860187848660051b89010111156144bd578586fd5b855b858110156144db578135845292840192908401906001016144bf565b5090979650505050505050565b8035801515811461306257600080fd5b600060208284031215614509578081fd5b8135613bea81614f21565b60008060408385031215614526578081fd5b823561453181614f21565b9150602083013561454181614f21565b809150509250929050565b600080600060608486031215614560578081fd5b833561456b81614f21565b9250602084013561457b81614f21565b929592945050506040919091013590565b600080600080608085870312156145a1578182fd5b84356145ac81614f21565b935060208501356145bc81614f21565b92506040850135915060608501356001600160401b038111156145dd578182fd5b8501601f810187136145ed578182fd5b6145fc87823560208401614422565b91505092959194509250565b6000806040838503121561461a578182fd5b823561462581614f21565b9150614633602084016144e8565b90509250929050565b6000806040838503121561464e578182fd5b823561465981614f21565b946020939093013593505050565b60008060006060848603121561467b578081fd5b833561468681614f21565b9250602084810135925060408501356001600160401b038111156146a8578283fd5b8501601f810187136146b8578283fd5b80356146c661449982614dc4565b8082825284820191508484018a868560051b87010111156146e5578687fd5b8694505b838510156147075780358352600194909401939185019185016146e9565b5080955050505050509250925092565b60008060208385031215614729578182fd5b82356001600160401b038082111561473f578384fd5b818501915085601f830112614752578384fd5b813581811115614760578485fd5b8660208260051b8501011115614774578485fd5b60209290920196919550909350505050565b60008060408385031215614798578182fd5b82356001600160401b03808211156147ae578384fd5b818501915085601f8301126147c1578384fd5b813560206147d161449983614dc4565b8083825282820191508286018a848660051b89010111156147f0578889fd5b8896505b8487101561481b57803561480781614f21565b8352600196909601959183019183016147f4565b5096505086013592505080821115614831578283fd5b5061483e85828601614479565b9150509250929050565b6000602080838503121561485a578182fd5b82356001600160401b0381111561486f578283fd5b8301601f8101851361487f578283fd5b803561488d61449982614dc4565b80828252848201915084840188868560071b87010111156148ac578687fd5b8694505b8385101561490c57608080828b0312156148c8578788fd5b6148d0614d6c565b8235815287830135888201526040808401356148eb81614f21565b908201526060838101359082015284526001959095019492860192016148b0565b50979650505050505050565b600060208284031215614929578081fd5b613bea826144e8565b600060208284031215614943578081fd5b5035919050565b60006020828403121561495b578081fd5b8135613bea81614f36565b600060208284031215614977578081fd5b8151613bea81614f36565b600060208284031215614993578081fd5b81356001600160401b038111156149a8578182fd5b8201601f810184136149b8578182fd5b61373384823560208401614422565b600080604083850312156149d9578182fd5b50508035926020909101359150565b6000806000606084860312156149fc578081fd5b505081359360208301359350604090920135919050565b60008151808452614a2b816020860160208601614e49565b601f01601f19169290920160200192915050565b60008351614a51818460208801614e49565b835190830190614a65818360208801614e49565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ab190830184614a13565b9695505050505050565b604080825283519082018190526000906020906060840190828701845b82811015614aff5781516001600160a01b0316845260208401935090840190600101614ad8565b50505083810382850152845180825282820190600581901b83018401878501865b83811015614b7357858303601f190185528151805180855290880190888501908a5b81811015614b5e5783518352928a0192918a0191600101614b42565b50509588019593505090860190600101614b20565b50909998505050505050505050565b6020808252825482820181905260008481528281209092916040850190845b81811015614bc65783546001600160a01b031683526001938401939285019201614ba1565b50909695505050505050565b602081526000613bea6020830184614a13565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526019908201527f45523a2047616d65206973206e6f7420656e6465642079657400000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f45523a205468652073616c6520697320736f6c64206f75740000000000000000604082015260600190565b60208082526021908201527f45523a2052657475726e20616e792045544820746f20626520726566756e64656040820152601960fa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051608081016001600160401b0381118282101715614d8e57614d8e614f0b565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614dbc57614dbc614f0b565b604052919050565b60006001600160401b03821115614ddd57614ddd614f0b565b5060051b60200190565b60008219821115614dfa57614dfa614edf565b500190565b600082614e0e57614e0e614ef5565b500490565b6000816000190483118215151615614e2d57614e2d614edf565b500290565b600082821015614e4457614e44614edf565b500390565b60005b83811015614e64578181015183820152602001614e4c565b838111156129a75750506000910152565b600181811c90821680614e8957607f821691505b60208210811415614eaa57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614ec457614ec4614edf565b5060010190565b600082614eda57614eda614ef5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461441f57600080fd5b6001600160e01b03198116811461441f57600080fdfea26469706673582212201a937d48ff191b034494404b201233af568bd45fb11fd5a4ea07f63f0d1bf66f64736f6c63430008040033
Deployed Bytecode
0x60806040526004361061044b5760003560e01c8063894a5aef11610234578063bf939c0e1161012e578063eceb41c3116100b6578063f2fde38b1161007a578063f2fde38b14610ca2578063f3cd404b14610cc2578063f3fef3a314610cf2578063fa93de3e14610d12578063fe8d9b3d14610d2857600080fd5b8063eceb41c314610c1f578063ef5deb3614610c3f578063ef78d4fd14610c55578063f21f537d14610c6c578063f2a2d71514610c8257600080fd5b8063e397ce1e116100fd578063e397ce1e14610b75578063e65cbd8014610b8b578063e75f23d214610ba1578063e985e9c514610bc1578063eaba0a8a14610c0a57600080fd5b8063bf939c0e14610af5578063c4f1aeb114610b15578063c87b56dd14610b42578063dbeb3b7314610b6257600080fd5b806399dfb97e116101bc578063a22cb46511610180578063a22cb46514610a6c578063a8fa270d14610a8c578063abfe40a814610aa2578063ae02cd5c14610ab5578063b88d4fde14610ad557600080fd5b806399dfb97e146109cc5780639c3e21ae14610a035780639c4fcea414610a23578063a035b1fe14610a43578063a0712d6814610a5957600080fd5b80639391a991116102035780639391a9911461094b578063940335dd14610961578063955c83b21461098b57806395d89b41146109a15780639773db42146109b657600080fd5b8063894a5aef146108d757806389dda07c146108ed5780638da5cb5b1461090d57806391b7f5ed1461092b57600080fd5b80633d6a71e41161034557806361b1ef67116102cd578063715018a611610291578063715018a6146108685780637ed939131461087d57806381fc08df146105905780638576384c1461089d57806388c786bc146108b757600080fd5b806361b1ef67146107de5780636352211e146107fe5780636cbc2ded1461081e57806370a0823114610833578063714c53981461085357600080fd5b806349de5cc71161031457806349de5cc7146107545780634e360d5a146107695780634f6ccce71461078957806355f804b3146107a95780636031b2f6146107c957600080fd5b80633d6a71e4146106ee57806342842e0e1461070457806345a38b911461059057806349c00cb31461072457600080fd5b8063216eff87116103d35780632cb0d48a116103975780632cb0d48a146106125780632f745c5914610632578063372e080d1461065257806338e21cce146106a15780633a27da9f146106ce57600080fd5b8063216eff871461059057806322ad3b76146105a657806323b872dd146105bc57806327948e6d146105dc57806328509f4e146105f257600080fd5b806313c5583e1161041a57806313c5583e1461050857806318160ddd1461052c57806318c52ae1146105415780631df4ccfc1461056457806321489c9c1461057a57600080fd5b806301ffc9a71461045757806306fdde031461048c578063081812fc146104ae578063095ea7b3146104e657600080fd5b3661045257005b600080fd5b34801561046357600080fd5b5061047761047236600461494a565b610d3e565b60405190151581526020015b60405180910390f35b34801561049857600080fd5b506104a1610d69565b6040516104839190614bd2565b3480156104ba57600080fd5b506104ce6104c9366004614932565b610dfb565b6040516001600160a01b039091168152602001610483565b3480156104f257600080fd5b5061050661050136600461463c565b610e95565b005b34801561051457600080fd5b5061051e61160081565b604051908152602001610483565b34801561053857600080fd5b5060085461051e565b34801561054d57600080fd5b50610556610fab565b604051610483929190614abb565b34801561057057600080fd5b5061051e60245481565b34801561058657600080fd5b5061051e601d5481565b34801561059c57600080fd5b5061051e6107d081565b3480156105b257600080fd5b5061051e601c5481565b3480156105c857600080fd5b506105066105d736600461454c565b61140c565b3480156105e857600080fd5b5061051e601e5481565b3480156105fe57600080fd5b5061050661060d3660046149e8565b61143d565b34801561061e57600080fd5b5061050661062d366004614918565b6114cf565b34801561063e57600080fd5b5061051e61064d36600461463c565b61150c565b34801561065e57600080fd5b5061067261066d366004614932565b6115a2565b604051610483949392919093845260208401929092526001600160a01b03166040830152606082015260800190565b3480156106ad57600080fd5b5061051e6106bc3660046144f8565b600b6020526000908152604090205481565b3480156106da57600080fd5b506105066106e9366004614717565b6115e5565b3480156106fa57600080fd5b5061051e60225481565b34801561071057600080fd5b5061050661071f36600461454c565b6117a9565b34801561073057600080fd5b5061047761073f3660046144f8565b60176020526000908152604090205460ff1681565b34801561076057600080fd5b5061051e600a81565b34801561077557600080fd5b50610506610784366004614848565b6117c4565b34801561079557600080fd5b5061051e6107a4366004614932565b611aff565b3480156107b557600080fd5b506105066107c4366004614982565b611ba0565b3480156107d557600080fd5b50610556611c33565b3480156107ea57600080fd5b506105066107f9366004614667565b611d31565b34801561080a57600080fd5b506104ce610819366004614932565b611efb565b34801561082a57600080fd5b50610506611f72565b34801561083f57600080fd5b5061051e61084e3660046144f8565b61208f565b34801561085f57600080fd5b506104a1612116565b34801561087457600080fd5b50610506612125565b34801561088957600080fd5b50610506610898366004614932565b612199565b3480156108a957600080fd5b506023546104779060ff1681565b3480156108c357600080fd5b506019546104ce906001600160a01b031681565b3480156108e357600080fd5b5061051e60165481565b3480156108f957600080fd5b50610506610908366004614932565b6121c8565b34801561091957600080fd5b50600a546001600160a01b03166104ce565b34801561093757600080fd5b50610506610946366004614932565b61229f565b34801561095757600080fd5b5061051e60125481565b34801561096d57600080fd5b506109766122ce565b60408051928352602083019190915201610483565b34801561099757600080fd5b5061051e61177081565b3480156109ad57600080fd5b506104a1612540565b3480156109c257600080fd5b5061051e6102ee81565b3480156109d857600080fd5b50601e54601f5460205442604080519485526020850193909352918301526060820152608001610483565b348015610a0f57600080fd5b50610506610a1e3660046144f8565b61254f565b348015610a2f57600080fd5b5061051e610a3e3660046149c7565b612712565b348015610a4f57600080fd5b5061051e600d5481565b610506610a67366004614932565b61274f565b348015610a7857600080fd5b50610506610a87366004614608565b6129ad565b348015610a9857600080fd5b5061051e601a5481565b610506610ab0366004614932565b612a72565b348015610ac157600080fd5b50610506610ad0366004614717565b612df4565b348015610ae157600080fd5b50610506610af036600461458c565b612f1f565b348015610b0157600080fd5b50610506610b103660046149e8565b612f51565b348015610b2157600080fd5b5061051e610b303660046144f8565b60136020526000908152604090205481565b348015610b4e57600080fd5b506104a1610b5d366004614932565b612f89565b610506610b70366004614786565b613067565b348015610b8157600080fd5b5061051e600f5481565b348015610b9757600080fd5b5061051e60205481565b348015610bad57600080fd5b50600e546104ce906001600160a01b031681565b348015610bcd57600080fd5b50610477610bdc366004614514565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c1657600080fd5b5061051e600281565b348015610c2b57600080fd5b506104ce610c3a366004614932565b613344565b348015610c4b57600080fd5b5061051e60255481565b348015610c6157600080fd5b5061051e6206978081565b348015610c7857600080fd5b5061051e60215481565b348015610c8e57600080fd5b50610506610c9d3660046144f8565b61336e565b348015610cae57600080fd5b50610506610cbd3660046144f8565b6133ba565b348015610cce57600080fd5b50610477610cdd3660046144f8565b600c6020526000908152604090205460ff1681565b348015610cfe57600080fd5b50610506610d0d36600461463c565b6134a5565b348015610d1e57600080fd5b5061051e601b5481565b348015610d3457600080fd5b5061051e601f5481565b60006001600160e01b0319821663780e9d6360e01b1480610d635750610d6382613586565b92915050565b606060008054610d7890614e75565b80601f0160208091040260200160405190810160405280929190818152602001828054610da490614e75565b8015610df15780601f10610dc657610100808354040283529160200191610df1565b820191906000526020600020905b815481529060010190602001808311610dd457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ea082611efb565b9050806001600160a01b0316836001600160a01b03161415610f0e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e70565b336001600160a01b0382161480610f2a5750610f2a8133610bdc565b610f9c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e70565b610fa683836135d6565b505050565b6060806000610fb960085490565b90506000816001600160401b03811115610fe357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561100c578160200160208202803683370190505b5090506000826001600160401b0381111561103757634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561106a57816020015b60608152602001906001900390816110555790505b50604080516116008082526202c020820190925291925060009190602082016202c000803683370190505090506000805b6008548110156112715760006110b082611aff565b905060006110bd82611efb565b905060006110ca8261208f565b90508583815181106110ec57634e487b7160e01b600052603260045260246000fd5b60200260200101511515600115151461125b576000816001600160401b0381111561112757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611150578160200160208202803683370190505b50905060005b828110156111de57600061116a858361150c565b90508083838151811061118d57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060018982815181106111bb57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015250806111d681614eb0565b915050611156565b508289878151811061120057634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508088878151811061124157634e487b7160e01b600052603260045260246000fd5b6020908102919091010152611257600187614de7565b9550505b505050808061126990614eb0565b91505061109b565b506000816001600160401b0381111561129a57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112c3578160200160208202803683370190505b5090506000826001600160401b038111156112ee57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561132157816020015b606081526020019060019003908161130c5790505b50905060005b838110156113fd5786818151811061134f57634e487b7160e01b600052603260045260246000fd5b602002602001015183828151811061137757634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b0316815250508581815181106113b757634e487b7160e01b600052603260045260246000fd5b60200260200101518282815181106113df57634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806113f590614eb0565b915050611327565b50909890975095505050505050565b6114163382613644565b6114325760405162461bcd60e51b8152600401610e7090614d1b565b610fa683838361373b565b600a546001600160a01b031633146114675760405162461bcd60e51b8152600401610e7090614c6e565b818310801561147557508082105b6114c15760405162461bcd60e51b815260206004820152601f60248201527f45523a20496e76616c69642074696d657374616d7020666f722073616c6573006044820152606401610e70565b601e92909255601f55602055565b600a546001600160a01b031633146114f95760405162461bcd60e51b8152600401610e7090614c6e565b6023805460ff1916911515919091179055565b60006115178361208f565b82106115795760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e70565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b601881815481106115b257600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350916001600160a01b03169084565b600a546001600160a01b0316331461160f5760405162461bcd60e51b8152600401610e7090614c6e565b60005b81811015610fa657600083838381811061163c57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061165191906144f8565b6001600160a01b0316141561169b5760405162461bcd60e51b815260206004820152601060248201526f45523a204e756c6c204164647265737360801b6044820152606401610e70565b600c60008484848181106116bf57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906116d491906144f8565b6001600160a01b0316815260208101919091526040016000205460ff16156117345760405162461bcd60e51b815260206004820152601360248201527245523a204475706c696361746520456e74727960681b6044820152606401610e70565b6001600c600085858581811061175a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061176f91906144f8565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806117a181614eb0565b915050611612565b610fa683838360405180602001604052806000815250612f1f565b600a546001600160a01b031633146117ee5760405162461bcd60e51b8152600401610e7090614c6e565b6000602254116118105760405162461bcd60e51b8152600401610e7090614c37565b60008151116118615760405162461bcd60e51b815260206004820152601860248201527f45523a20496e76616c6964204368617269747920496e666f00000000000000006044820152606401610e70565b601854156118b15760405162461bcd60e51b815260206004820152601f60248201527f45723a204368617269747920496e666f20697320616c726561647920736574006044820152606401610e70565b60006118bb6122ce565b91505060008060008451905060005b8181101561193f5760008682815181106118f457634e487b7160e01b600052603260045260246000fd5b60200260200101516020015190508085141561191c578361191481614eb0565b94505061192c565b8085101561192c57809450600193505b508061193781614eb0565b9150506118ca565b5060005b81811015611af757600086828151811061196d57634e487b7160e01b600052603260045260246000fd5b602002602001015190508481602001511415611a085761198f84612710614dff565b606082015260006119a08588614dff565b90506119b08260400151826138e6565b15611a025781604001516001600160a01b031682600001517f1f2dd07bb1e982cdc7a2f721e7b19d89c89591a400c1984e3d4c2c2a7828566c836040516119f991815260200190565b60405180910390a35b50611a10565b600060608201525b6018805460018101825560009190915281517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e60049092029182015560208201517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2f82015560408201517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d30820180546001600160a01b0319166001600160a01b039092169190911790556060909101517fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d319091015580611aef81614eb0565b915050611943565b505050505050565b6000611b0a60085490565b8210611b6d5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e70565b60088281548110611b8e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314611bca5760405162461bcd60e51b8152600401610e7090614c6e565b60235460ff16611c1c5760405162461bcd60e51b815260206004820152601960248201527f4d455441444154415f46554e4354494f4e535f4c4f434b4544000000000000006044820152606401610e70565b8051611c2f906015906020840190614263565b5050565b6060806010601181805480602002602001604051908101604052809291908181526020018280548015611c8f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c71575b5050505050915080805480602002602001604051908101604052809291908181526020016000905b82821015611d2357600084815260209081902083018054604080518285028101850190915281815292830182828015611d0f57602002820191906000526020600020905b815481526020019060010190808311611cfb575b505050505081526020019060010190611cb7565b505050509050915091509091565b600060225411611d535760405162461bcd60e51b8152600401610e7090614c37565b6001600160a01b03831660009081526017602052604090205460ff1615611dbc5760405162461bcd60e51b815260206004820152601d60248201527f45523a20436f6d6d756e69747920636c61696d656420616c72656164790000006044820152606401610e70565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052600090605401604051602081830303815290604052805190602001209050611e0a82601654836139a1565b611e565760405162461bcd60e51b815260206004820152601f60248201527f45523a20436f6d6d756e69747920636c61696d2077726f6e672070726f6f66006044820152606401610e70565b6000611e606122ce565b5090506000612710611e728684614e13565b611e7c9190614dff565b6001600160a01b0387166000908152601760205260409020805460ff191660011790559050611eab86826138e6565b15611af757856001600160a01b03167f8c01a8ebfc2c99320db31369562fc6ae84feed66beee97c5c412a90829e228f782604051611eeb91815260200190565b60405180910390a2505050505050565b6000818152600260205260408120546001600160a01b031680610d635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e70565b600a546001600160a01b03163314611f9c5760405162461bcd60e51b8152600401610e7090614c6e565b600060215411611fee5760405162461bcd60e51b815260206004820152601b60248201527f45523a2047616d65206973206e6f7420737461727465642079657400000000006044820152606401610e70565b6022541561203e5760405162461bcd60e51b815260206004820152601d60248201527f45523a2047616d652069732068617320616c726561647920656e6465640000006044820152606401610e70565b4260225560008061204d610fab565b9150915061205b8282613a5e565b6022546040517ff17f8a7ba1cc9ab696225d16f43470811b34953153618c7d120f3878383e084390600090a2611c2f613a8a565b60006001600160a01b0382166120fa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e70565b506001600160a01b031660009081526003602052604090205490565b6060612120613bcf565b905090565b600a546001600160a01b0316331461214f5760405162461bcd60e51b8152600401610e7090614c6e565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b031633146121c35760405162461bcd60e51b8152600401610e7090614c6e565b602555565b600a546001600160a01b031633146121f25760405162461bcd60e51b8152600401610e7090614c6e565b6000602254116122145760405162461bcd60e51b8152600401610e7090614c37565b6016541561226e5760405162461bcd60e51b815260206004820152602160248201527f45523a20436f6d6d756e69747920526f6f7420697320616c72656164792073656044820152601d60fa1b6064820152608401610e70565b60168190556040517f7af7c3d9f00b77472c5352bcb4fc37e4aeb15a1b32f753b38204eaf8f49275a490600090a150565b600a546001600160a01b031633146122c95760405162461bcd60e51b8152600401610e7090614c6e565b600d55565b6000806000620697806021546022546122e79190614e32565b111561230e57620697806021546022546123019190614e32565b61230b9190614e32565b90505b600061231d6201518083614ecb565b9050600061232e6201518084614dff565b90506000806127106107d06024546123469190614e13565b6123509190614dff565b90506201518085101561239c576507dba8218000846107d06024546123759190614e13565b61237f9190614e13565b61238b906101f4614e13565b6123959190614dff565b91506124ef565b6201518085101580156123b157506202a30085105b15612425576305f5e1006107d06024546123cb9190614e13565b6123d7906101f4614e13565b6123e19190614dff565b91506507dba8218000846107d06024546123fb9190614e13565b6124059190614e13565b612411906103e8614e13565b61241b9190614dff565b6123959083614de7565b6305f5e1006107d060245461243a9190614e13565b612446906101f4614e13565b6124509190614dff565b91506305f5e1006107d06024546124679190614e13565b612473906103e8614e13565b61247d9190614dff565b6124879083614de7565b91506507dba82180006124b28561249f866002613bde565b6124ac9062015180614e13565b90613bf1565b6107d06024546124c29190614e13565b6124ce906105dc614e13565b6124d89190614e13565b6124e29190614dff565b6124ec9083614de7565b91505b60006124fb8383614e32565b905060008161271061250f6107d080614de7565b60245461251c9190614e13565b6125269190614dff565b6125309190614e32565b9199919850909650505050505050565b606060018054610d7890614e75565b600a546001600160a01b031633146125795760405162461bcd60e51b8152600401610e7090614c6e565b6001600160a01b0381166125cf5760405162461bcd60e51b815260206004820181905260248201527f45523a20496e76616c696420426f7265642050757a7a6c6520616464726573736044820152606401610e70565b6021541561261f5760405162461bcd60e51b815260206004820152601960248201527f45523a2047616d6520697320616c726561647920626567616e000000000000006044820152606401610e70565b42602155601980546001600160a01b0319166001600160a01b038316179055601c54602454600091612710916126589061177090614e13565b6126629190614e32565b61266c9190614dff565b601954909150612685906001600160a01b0316826138e6565b6126e25760405162461bcd60e51b815260206004820152602860248201527f45523a20455448207472616e7366657220746f20426f7265642050757a7a6c656044820152671cc819985a5b195960c21b6064820152608401610e70565b6021546040517f12333b322723ec26360eb708b341801ecca576387b55caa77d6e408107d2c70f90600090a25050565b6011828154811061272257600080fd5b90600052602060002001818154811061273a57600080fd5b90600052602060002001600091509150505481565b6020544210158061276457506107d0601b5410155b6127b05760405162461bcd60e51b815260206004820152601e60248201527f45523a205075626c69632073616c65206973206e6f74207374617274656400006044820152606401610e70565b611600816127bd60085490565b6127c79190614de7565b11156127e55760405162461bcd60e51b8152600401610e7090614ca3565b336000908152600b6020526040902054600a90612803908390614de7565b111561286f5760405162461bcd60e51b815260206004820152603560248201527f45523a20596f752063616e206e6f74206d696e74206d6f7265207468616e206d6044820152746178696d756d20616c6c6f77656420746f6b656e7360581b6064820152608401610e70565b60006025543a61287f9190614e13565b82600d5461288d9190614e13565b6128979190614e32565b9050348111156128de5760405162461bcd60e51b815260206004820152601260248201527108aa474409cdee840cadcdeeaced0408aa8960731b6044820152606401610e70565b60006128ea8234614e32565b90508015612918576128fc33826138e6565b6129185760405162461bcd60e51b8152600401610e7090614cda565b82601a600082825461292a9190614de7565b9250508190555081602460008282546129439190614de7565b9091555050336000908152600b602052604081208054859290612967908490614de7565b90915550600090505b838110156129a7576129953361298560085490565b612990906001614de7565b613bfd565b6129a0600182614de7565b9050612970565b50505050565b6001600160a01b038216331415612a065760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e70565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601e54421015612ac45760405162461bcd60e51b815260206004820152601f60248201527f45523a20507269766174652073616c65206973206e6f742073746172746564006044820152606401610e70565b601f544210612b215760405162461bcd60e51b8152602060048201526024808201527f45523a20507269766174652073616c652069732063757272656e746c7920636c6044820152631bdcd95960e21b6064820152608401610e70565b336000908152600c602052604090205460ff16612b925760405162461bcd60e51b815260206004820152602960248201527f45523a20596f7520617265206e6f74207175616c696669656420666f72207468604482015268652070726573616c6560b81b6064820152608401610e70565b61160081612b9f60085490565b612ba99190614de7565b1115612bc75760405162461bcd60e51b8152600401610e7090614ca3565b6102ee81601d54612bd89190614de7565b1115612c3a5760405162461bcd60e51b815260206004820152602b60248201527f45523a204e6f7420656e6f756768204a696773617773206c65667420666f722060448201526a7468652070726573616c6560a81b6064820152608401610e70565b336000908152600b6020526040902054600290612c58908390614de7565b1115612ccc5760405162461bcd60e51b815260206004820152603860248201527f45523a20596f75206861766520616c7265616479206d696e746564206d61786960448201527f6d756d20666f722077686974656c69737465642073616c6500000000000000006064820152608401610e70565b60006025543a612cdc9190614e13565b82600d54612cea9190614e13565b612cf49190614e32565b905034811115612d3b5760405162461bcd60e51b815260206004820152601260248201527108aa474409cdee840cadcdeeaced0408aa8960731b6044820152606401610e70565b6000612d478234614e32565b90508015612d7557612d5933826138e6565b612d755760405162461bcd60e51b8152600401610e7090614cda565b82601d6000828254612d879190614de7565b925050819055508160246000828254612da09190614de7565b9091555050336000908152600b602052604081208054859290612dc4908490614de7565b90915550600090505b838110156129a757612de23361298560085490565b612ded600182614de7565b9050612dcd565b600a546001600160a01b03163314612e1e5760405162461bcd60e51b8152600401610e7090614c6e565b60005b81811015610fa6576000838383818110612e4b57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612e6091906144f8565b6001600160a01b03161415612eaa5760405162461bcd60e51b815260206004820152601060248201526f45523a204e756c6c204164647265737360801b6044820152606401610e70565b6000600c6000858585818110612ed057634e487b7160e01b600052603260045260246000fd5b9050602002016020810190612ee591906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612f1781614eb0565b915050612e21565b612f293383613644565b612f455760405162461bcd60e51b8152600401610e7090614d1b565b6129a784848484613c17565b600a546001600160a01b03163314612f7b5760405162461bcd60e51b8152600401610e7090614c6e565b602192909255602255602455565b6000818152600260205260409020546060906001600160a01b0316612ff05760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e006044820152606401610e70565b611600821161303157613001613bcf565b61300a83613c4a565b60405160200161301b929190614a3f565b6040516020818303038152906040529050919050565b505060408051808201909152601581527422a91d102737ba1030903b30b634b2103a37b5b2b760591b602082015290565b919050565b600a546001600160a01b031633146130915760405162461bcd60e51b8152600401610e7090614c6e565b601f54421015806130a657506102ee601d5410155b6130f25760405162461bcd60e51b815260206004820152601c60248201527f45523a20466961742073616c65206973206e6f742073746172746564000000006044820152606401610e70565b602054421061314d5760405162461bcd60e51b815260206004820152602160248201527f45523a20466961742073616c652069732063757272656e746c7920636c6f73656044820152601960fa1b6064820152608401610e70565b815160005b818110156129a757600084828151811061317c57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008483815181106131a857634e487b7160e01b600052603260045260246000fd5b6020026020010151905060005b8181101561332e576001600160a01b0383166000908152600b6020526040902054600a1115613317576116006131ea60085490565b106132075760405162461bcd60e51b8152600401610e7090614ca3565b6107d0601b54106132705760405162461bcd60e51b815260206004820152602d60248201527f45523a204e6f7420656e6f756768204a696773617773206c65667420666f722060448201526c74686520666961742073616c6560981b6064820152608401610e70565b601b805490600061328083614eb0565b90915550506001600160a01b0383166000908152600b602052604081208054600192906132ae908490614de7565b90915550506025546000906132c3903a614e13565b600d546132d09190614e32565b905080602460008282546132e49190614de7565b9091555050600d54601c80546000906132fe908490614de7565b9091555061331190508461298560085490565b5061331c565b61332e565b8061332681614eb0565b9150506131b5565b505050808061333c90614eb0565b915050613152565b6010818154811061335457600080fd5b6000918252602090912001546001600160a01b0316905081565b600a546001600160a01b031633146133985760405162461bcd60e51b8152600401610e7090614c6e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146133e45760405162461bcd60e51b8152600401610e7090614c6e565b6001600160a01b0381166134495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e70565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146134cf5760405162461bcd60e51b8152600401610e7090614c6e565b60006127106134de8347614e13565b6134e89190614dff565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114613537576040519150601f19603f3d011682016040523d82523d6000602084013e61353c565b606091505b50509050806129a75760405162461bcd60e51b815260206004820152601660248201527515da5d1a191c985dc8185b5bdd5b9d0819985a5b195960521b6044820152606401610e70565b60006001600160e01b031982166380ac58cd60e01b14806135b757506001600160e01b03198216635b5e139f60e01b145b80610d6357506301ffc9a760e01b6001600160e01b0319831614610d63565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061360b82611efb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166136bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e70565b60006136c883611efb565b9050806001600160a01b0316846001600160a01b031614806137035750836001600160a01b03166136f884610dfb565b6001600160a01b0316145b8061373357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661374e82611efb565b6001600160a01b0316146137b65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610e70565b6001600160a01b0382166138185760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e70565b613823838383613d63565b61382e6000826135d6565b6001600160a01b0383166000908152600360205260408120805460019290613857908490614e32565b90915550506001600160a01b0382166000908152600360205260408120805460019290613885908490614de7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600047821115613949576040516001600160a01b038416904790600081818185875af1925050503d8060008114613939576040519150601f19603f3d011682016040523d82523d6000602084013e61393e565b606091505b505080915050610d63565b6040516001600160a01b038416908390600081818185875af1925050503d8060008114613992576040519150601f19603f3d011682016040523d82523d6000602084013e613997565b606091505b5090949350505050565b600081815b8551811015613a535760008682815181106139d157634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613a13576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613a40565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613a4b81614eb0565b9150506139a6565b509092149392505050565b8151600f819055613a769060109060208501906142e7565b508051610fa690601190602084019061433c565b600060225411613adc5760405162461bcd60e51b815260206004820152601a60248201527f45523a2047616d6520686173206e6f7420656e646564207965740000000000006044820152606401610e70565b600f54601054601254613aef9190614de7565b1115613b4e5760405162461bcd60e51b815260206004820152602860248201527f45523a2046696e616c2070757a7a6c652070696374757265732065786365656460448201526765642071756f746160c01b6064820152608401610e70565b600f5460126000828254613b629190614de7565b9091555050600e54604051631269babf60e31b81526001600160a01b0390911690819063934dd5f890613b9a90601090600401614b82565b600060405180830381600087803b158015613bb457600080fd5b505af1158015613bc8573d6000803e3d6000fd5b5050505050565b606060158054610d7890614e75565b6000613bea8284614e32565b9392505050565b6000613bea8284614de7565b611c2f828260405180602001604052806000815250613e1b565b613c2284848461373b565b613c2e84848484613e4e565b6129a75760405162461bcd60e51b8152600401610e7090614be5565b606081613c6e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613c985780613c8281614eb0565b9150613c919050600a83614dff565b9150613c72565b6000816001600160401b03811115613cc057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613cea576020820181803683370190505b5090505b841561373357613cff600183614e32565b9150613d0c600a86614ecb565b613d17906030614de7565b60f81b818381518110613d3a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613d5c600a86614dff565b9450613cee565b6001600160a01b038316613dbe57613db981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613de1565b816001600160a01b0316836001600160a01b031614613de157613de18382613f5b565b6001600160a01b038216613df857610fa681613ff8565b826001600160a01b0316826001600160a01b031614610fa657610fa682826140d1565b613e258383614115565b613e326000848484613e4e565b610fa65760405162461bcd60e51b8152600401610e7090614be5565b60006001600160a01b0384163b15613f5057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e92903390899088908890600401614a7e565b602060405180830381600087803b158015613eac57600080fd5b505af1925050508015613edc575060408051601f3d908101601f19168201909252613ed991810190614966565b60015b613f36573d808015613f0a576040519150601f19603f3d011682016040523d82523d6000602084013e613f0f565b606091505b508051613f2e5760405162461bcd60e51b8152600401610e7090614be5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613733565b506001949350505050565b60006001613f688461208f565b613f729190614e32565b600083815260076020526040902054909150808214613fc5576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061400a90600190614e32565b6000838152600960205260408120546008805493945090928490811061404057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061406f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806140b557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006140dc8361208f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661416b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e70565b6000818152600260205260409020546001600160a01b0316156141d05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e70565b6141dc60008383613d63565b6001600160a01b0382166000908152600360205260408120805460019290614205908490614de7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461426f90614e75565b90600052602060002090601f01602090048101928261429157600085556142d7565b82601f106142aa57805160ff19168380011785556142d7565b828001600101855582156142d7579182015b828111156142d75782518255916020019190600101906142bc565b506142e3929150614395565b5090565b8280548282559060005260206000209081019282156142d7579160200282015b828111156142d757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614307565b828054828255906000526020600020908101928215614389579160200282015b8281111561438957825180516143799184916020909101906143aa565b509160200191906001019061435c565b506142e39291506143e4565b5b808211156142e35760008155600101614396565b8280548282559060005260206000209081019282156142d757916020028201828111156142d75782518255916020019190600101906142bc565b808211156142e35760006143f88282614401565b506001016143e4565b508054600082559060005260206000209081019061441f9190614395565b50565b60006001600160401b0383111561443b5761443b614f0b565b61444e601f8401601f1916602001614d94565b905082815283838301111561446257600080fd5b828260208301376000602084830101529392505050565b600082601f830112614489578081fd5b8135602061449e61449983614dc4565b614d94565b80838252828201915082860187848660051b89010111156144bd578586fd5b855b858110156144db578135845292840192908401906001016144bf565b5090979650505050505050565b8035801515811461306257600080fd5b600060208284031215614509578081fd5b8135613bea81614f21565b60008060408385031215614526578081fd5b823561453181614f21565b9150602083013561454181614f21565b809150509250929050565b600080600060608486031215614560578081fd5b833561456b81614f21565b9250602084013561457b81614f21565b929592945050506040919091013590565b600080600080608085870312156145a1578182fd5b84356145ac81614f21565b935060208501356145bc81614f21565b92506040850135915060608501356001600160401b038111156145dd578182fd5b8501601f810187136145ed578182fd5b6145fc87823560208401614422565b91505092959194509250565b6000806040838503121561461a578182fd5b823561462581614f21565b9150614633602084016144e8565b90509250929050565b6000806040838503121561464e578182fd5b823561465981614f21565b946020939093013593505050565b60008060006060848603121561467b578081fd5b833561468681614f21565b9250602084810135925060408501356001600160401b038111156146a8578283fd5b8501601f810187136146b8578283fd5b80356146c661449982614dc4565b8082825284820191508484018a868560051b87010111156146e5578687fd5b8694505b838510156147075780358352600194909401939185019185016146e9565b5080955050505050509250925092565b60008060208385031215614729578182fd5b82356001600160401b038082111561473f578384fd5b818501915085601f830112614752578384fd5b813581811115614760578485fd5b8660208260051b8501011115614774578485fd5b60209290920196919550909350505050565b60008060408385031215614798578182fd5b82356001600160401b03808211156147ae578384fd5b818501915085601f8301126147c1578384fd5b813560206147d161449983614dc4565b8083825282820191508286018a848660051b89010111156147f0578889fd5b8896505b8487101561481b57803561480781614f21565b8352600196909601959183019183016147f4565b5096505086013592505080821115614831578283fd5b5061483e85828601614479565b9150509250929050565b6000602080838503121561485a578182fd5b82356001600160401b0381111561486f578283fd5b8301601f8101851361487f578283fd5b803561488d61449982614dc4565b80828252848201915084840188868560071b87010111156148ac578687fd5b8694505b8385101561490c57608080828b0312156148c8578788fd5b6148d0614d6c565b8235815287830135888201526040808401356148eb81614f21565b908201526060838101359082015284526001959095019492860192016148b0565b50979650505050505050565b600060208284031215614929578081fd5b613bea826144e8565b600060208284031215614943578081fd5b5035919050565b60006020828403121561495b578081fd5b8135613bea81614f36565b600060208284031215614977578081fd5b8151613bea81614f36565b600060208284031215614993578081fd5b81356001600160401b038111156149a8578182fd5b8201601f810184136149b8578182fd5b61373384823560208401614422565b600080604083850312156149d9578182fd5b50508035926020909101359150565b6000806000606084860312156149fc578081fd5b505081359360208301359350604090920135919050565b60008151808452614a2b816020860160208601614e49565b601f01601f19169290920160200192915050565b60008351614a51818460208801614e49565b835190830190614a65818360208801614e49565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614ab190830184614a13565b9695505050505050565b604080825283519082018190526000906020906060840190828701845b82811015614aff5781516001600160a01b0316845260208401935090840190600101614ad8565b50505083810382850152845180825282820190600581901b83018401878501865b83811015614b7357858303601f190185528151805180855290880190888501908a5b81811015614b5e5783518352928a0192918a0191600101614b42565b50509588019593505090860190600101614b20565b50909998505050505050505050565b6020808252825482820181905260008481528281209092916040850190845b81811015614bc65783546001600160a01b031683526001938401939285019201614ba1565b50909695505050505050565b602081526000613bea6020830184614a13565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526019908201527f45523a2047616d65206973206e6f7420656e6465642079657400000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f45523a205468652073616c6520697320736f6c64206f75740000000000000000604082015260600190565b60208082526021908201527f45523a2052657475726e20616e792045544820746f20626520726566756e64656040820152601960fa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051608081016001600160401b0381118282101715614d8e57614d8e614f0b565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614dbc57614dbc614f0b565b604052919050565b60006001600160401b03821115614ddd57614ddd614f0b565b5060051b60200190565b60008219821115614dfa57614dfa614edf565b500190565b600082614e0e57614e0e614ef5565b500490565b6000816000190483118215151615614e2d57614e2d614edf565b500290565b600082821015614e4457614e44614edf565b500390565b60005b83811015614e64578181015183820152602001614e4c565b838111156129a75750506000910152565b600181811c90821680614e8957607f821691505b60208210811415614eaa57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614ec457614ec4614edf565b5060010190565b600082614eda57614eda614ef5565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461441f57600080fd5b6001600160e01b03198116811461441f57600080fdfea26469706673582212201a937d48ff191b034494404b201233af568bd45fb11fd5a4ea07f63f0d1bf66f64736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.