Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,705 PRINTERTEST
Holders
549
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 PRINTERTESTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xA0254bc6...0F8C84f4b The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ManeBase
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// contracts/nftclub.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; // Share configure struct TShare { address owner; uint256 ratioPPM; } abstract contract ERC721AM is ERC721A { mapping(address => uint256[]) public tokenIDByHolder; // Override the _transfer function to record holders function _transfer(address from, address to, uint256 tokenId) internal override { super._transfer(from, to, tokenId); updateHolderInfo(from, to, tokenId); } function updateHolderInfo(address from, address to, uint256 tokenId) internal { tokenIDByHolder[to].push(tokenId); for (uint256 i = 0; i < tokenIDByHolder[from].length; i++) { if (tokenIDByHolder[from][i] == tokenId) { tokenIDByHolder[from][i] = tokenIDByHolder[from][tokenIDByHolder[from].length - 1]; tokenIDByHolder[from].pop(); break; } } } } contract ManeBase is ERC721AM, Ownable { // Mint price in sale period uint256 public _salePrice; address public factory; uint256 public platformBalance; uint256 public ownerBalance; uint256 public collectorBalance; uint256 private _reserveQuantity; // Max number allow to mint uint256 public _maxSupply; // Presale and Publicsale start time uint256 public presaleStartTime; uint256 public presaleEndTime; uint256 public saleStartTime; uint256 public saleEndTime; // Presale Mintable Number uint256 public presaleMaxSupply = 0; uint256 public presaleMintedCount = 0; // Mint count per address mapping(address => uint256) public presaleMintCountByAddress; uint256 public presaleMaxMintCountPerAddress; mapping(address => uint256) public saleMintCountByAddress; uint256 public saleMaxMintCountPerAddress; // Platform fee ratio in PPM uint256 public platformFeePPM = 0; // Super admin is able to set isForceRefundable flag to true in 7 days since the first token was minted in the public sale period or all tokens were minted in the presale period. // When isForceRefundable is set to true, token holders can get a full refund in 7 days. // Neither Creators nor platform is also not allowed to withdraw in 7 days when isForceRefundable is set to true. uint256 public isForceRefundable = 0; uint256 public forceRefundDeadline = 2**32; // Is the contract paused uint256 public paused = 0; event TokenMinted(address minter, uint256 tokenId , uint256 mintPrice, uint256 platformFee); //event ContractDeployed(address sender, address contract_address, uint256 reserveQuantity, uint256 clubId); // Mint Information // mapping(tokenID => TMintInfO) struct TMintInfo { uint256 isPreMint; uint256 isRefunded; //address minter; uint256 price; } mapping(uint256 => TMintInfo) public _mintInfo; // Refund Times and Ratios struct TRefundTime { uint256 endTime; /// Refund is available before this time (and isRefundable == true). In unix timestamp. uint256 ratioPPM; /// How much ratio can be refund } // Share list TShare[] public _shareList; // Refund Time List TRefundTime[] public _refundTimeList; /** u256[0] => reserveQuantity [1] => maxSupply [2] => presaleMaxSupply [3] => clubID (obsoleted) [4] => presaleStartTime [5] => presaleEndTime [6] => saleStartTime [7] => saleEndTime [8] => presalePrice (obsoleted) [9] => salePrice /// How many tokens a wallet can mint [10] => presalePerWalletCount [11] => salePerWalletCount [12] => signature nonce */ constructor(string memory name_, string memory symbol_, uint256[] memory u256s, address[] memory shareAddresses_, uint256[] memory shareRatios_, uint256[] memory refundTimes_, uint256[] memory refundRatios_ ) ERC721A(name_, symbol_) { require(u256s[0] + u256s[2] <= u256s[1], "MB:small maxSupply"); // 1. Deplay and log the create event factory = msg.sender; _reserveQuantity = u256s[0]; presaleMaxSupply = u256s[2]; setPresaleTimes(u256s[4], u256s[5]); setSaleTimes(u256s[6], u256s[7]); setMintPrice(u256s[9]); _maxSupply = u256s[1]; transferOwnership(tx.origin); //emit ContractDeployed(tx.origin, address(this), u256s[0], u256s[3]); /// 2. Reserve tokens for creator initReserve(u256s[0]); /// 3. Setting share list uint256 totalShareRatios = 0; for (uint256 i = 0; i < shareAddresses_.length; i++) { TShare memory t; t.owner = shareAddresses_[i]; t.ratioPPM = shareRatios_[i]; totalShareRatios += t.ratioPPM; _shareList.push(t); } require(totalShareRatios <= 1 * 1000 * 1000, "MB:shareRatios overflow"); /// 4. Setting refund times require(refundTimes_.length == refundRatios_.length, "MB:length mismatch"); uint256 oldEndTime = 0; uint256 oldRatio = 1e9; for( uint256 i = 0; i < refundTimes_.length; i++) { TRefundTime memory t; t.endTime = refundTimes_[i]; t.ratioPPM = refundRatios_[i]; require(t.endTime > oldEndTime, "MB:refundTimes invalid"); require(t.ratioPPM < oldRatio, "MB:refundRatio invalid"); oldEndTime = t.endTime; oldRatio = t.ratioPPM; _refundTimeList.push(t); } /// 5. Setting mint limit for wallets presaleMaxMintCountPerAddress = u256s[10]; saleMaxMintCountPerAddress = u256s[11]; unchecked{ if (presaleMaxMintCountPerAddress == 0) { presaleMaxMintCountPerAddress -= 1; } if (saleMaxMintCountPerAddress == 0) { saleMaxMintCountPerAddress -= 1; } } /// 6. Setting platform PPM platformFeePPM = ManeFactory(factory).platformFeePPM(); } function initReserve(uint256 reserveQuantity) private { if (reserveQuantity > 0) { uint256 currentIndex = _currentIndex; _mint(tx.origin, reserveQuantity, "", false); for (uint256 i = currentIndex; i < currentIndex + reserveQuantity; i++) { emit TokenMinted(tx.origin, i, 0, 0); tokenIDByHolder[tx.origin].push(i); } } } function getAll() public view returns (uint256[] memory) { uint256[] memory u = new uint256[](12); u[0] = _reserveQuantity; u[1] = _maxSupply; u[2] = presaleMaxSupply; // u[3] = clubId; // (obsoleted) u[4] = presaleStartTime; u[5] = presaleEndTime; u[6] = saleStartTime; u[7] = saleEndTime; // u[8] = 0; // (obsoleted) u[9] = _salePrice; // u[10] = presaleMaxMintCountPerAddress; // Shrink contract size // u[11] = saleMaxMintCountPerAddress; // Shrink contract size return (u); } // Minted token will be sent to minter // sign_deadline, r, s, v is only require at presale perioid. These parameters are server-side signature data. function mint(address minter, uint256 mint_price, uint256 count, uint256 sign_deadline, bytes32 r, bytes32 s, uint8 v) payable whenNotPaused public { uint256 isPresale = 0; uint256 isSale = 0; // 0. Check is mintable if (block.timestamp < presaleStartTime) { // Period: Sale not started revert("MB:Not started"); } else if (block.timestamp >= presaleStartTime && block.timestamp < presaleEndTime) { // Period: Pre-sale period require(msg.value >= mint_price * count, "MB:presale val"); isPresale = 1; } else if (block.timestamp >= saleStartTime && block.timestamp <= saleEndTime) { // Period: Public sale perild require(mint_price == _salePrice, "MB:mint_price"); require(msg.value >= _salePrice * count, "MB:sale val"); isSale = 1; } else { revert("MB:Invalid period"); } /// Mint `count` number of tokens for (uint256 i = 0; i < count; i++) { require(totalMinted() < _maxSupply, "MB:No more"); if (isPresale == 1) { requireMintSign(minter, mint_price, count, sign_deadline, r, s, v); presaleMintedCount++; require(presaleMintedCount <= presaleMaxSupply, "MB:Exceed"); presaleMintCountByAddress[msg.sender]++; require(presaleMintCountByAddress[msg.sender] <= presaleMaxMintCountPerAddress, "MB:addr(A)"); } else if (isSale == 1) { //requireMintSign(minter, mint_price, sign_deadline, r, s, v); saleMintCountByAddress[msg.sender]++; require(saleMintCountByAddress[msg.sender] <= saleMaxMintCountPerAddress, "MB:addr(B)"); } else { revert("MB:Not sale period"); } // 1. Mint it uint256 currentIndex = _currentIndex; _mint(minter, 1, "", false); tokenIDByHolder[minter].push(currentIndex); // 2. Send mint value to creator and platform and collectors uint256 platformGot = mint_price * platformFeePPM / 1e6; uint256 collectorGot = (mint_price - platformGot) * getCollectorTotalRatioPPM() / 1e6; uint256 ownerGot = mint_price - platformGot - collectorGot; platformBalance += platformGot; collectorBalance += collectorGot; ownerBalance += ownerGot; // 4. Log events and other data _mintInfo[currentIndex] = TMintInfo({ isPreMint: isPresale, isRefunded: 0, //minter: minter, price: mint_price }); emit TokenMinted(minter, currentIndex, mint_price, platformGot); } // Init 7-days refund time if (isSale == 1 || _currentIndex == _maxSupply - 1) { if (forceRefundDeadline == 2**32) { forceRefundDeadline = block.timestamp + 86400 * 7; } } // Mint finished successfully } /// User request to refund function refund(uint256 tokenID) public { require(msg.sender == ownerOf(tokenID), "MB:owner"); /// 1. Get refund ratio // If forceRefundable is true, holder can refund all. Otherwise holder can only refund before refund time uint256 refundRatioPPM = 0; if (isForceRefundable == 1) { refundRatioPPM = 1e6; } else { for (uint256 i = 0; i < _refundTimeList.length; i++) { if (block.timestamp < _refundTimeList[i].endTime) { refundRatioPPM = _refundTimeList[i].ratioPPM; break; } } } require(refundRatioPPM > 0, "MB:refund not avail"); /// 2. Get mint info and check if this token is refundable TMintInfo storage mintInfo = _mintInfo[tokenID]; require(mintInfo.isRefunded == 0, "MB:refunded"); /// 3. Caculate the refundable value uint256 refundValue = mintInfo.price * refundRatioPPM / 1e6; /// 4. Do refund uint256 platformReturn = refundValue * platformFeePPM / 1e6; uint256 collectorReturn = (refundValue - platformReturn) * getCollectorTotalRatioPPM() / 1e6; uint256 ownerReturn = refundValue - platformReturn - collectorReturn; platformBalance -= platformReturn; collectorBalance -= collectorReturn; ownerBalance -= ownerReturn; transferFrom(msg.sender, this.owner(), tokenID); mintInfo.isRefunded = 1; payable(msg.sender).transfer(refundValue); } // Send shares to share holders and owner function collect() public onlyOwner { /// 1. Check if collect is open requireCollectable(); /// 2. Find the collector and transfer uint256 b = collectorBalance; uint256 totalRatioPPM = getCollectorTotalRatioPPM(); for (uint256 i = 0; i < _shareList.length; i++) { uint256 collectValue = b * _shareList[i].ratioPPM / totalRatioPPM; collectorBalance -= collectValue; payable(_shareList[i].owner).transfer(collectValue); } /// 3. send balance to owner uint256 oBalance = ownerBalance; ownerBalance = 0; payable(owner()).transfer(oBalance); } // Platform (ManeStudio) collect it's shares function platformCollect(address to) public onlyFactoryOwner { requireCollectable(); uint256 b = platformBalance; platformBalance = 0; payable(to).transfer(b); } function requireCollectable() view internal { for (uint256 i = 0; i < _refundTimeList.length; i++) { require(block.timestamp > _refundTimeList[i].endTime, "MB:refund deadline"); } /// Not allow collect in 7 days. See forceRefundDeadline for more detail require(block.timestamp > forceRefundDeadline, "MB:7d limit"); require(isForceRefundable == 0, "MB:force refund"); } /// If signagure is not valid, throw exception and stop function requireMintSign(address minter, uint256 price, uint256 count, uint256 deadline, bytes32 r, bytes32 s, uint8 v) internal view { bytes memory prefix = "\x19Ethereum Signed Message:\n32"; bytes32 userHash = encodeMint(minter, price, count, deadline); bytes32 prefixHash = keccak256(abi.encodePacked(prefix, userHash)); address hash_address = ecrecover(prefixHash, v, r, s); require(hash_address == ManeFactory(factory).signerAddress(), "MB:sign"); } function encodeMint( address minter, uint256 price, uint256 count, uint256 deadline) internal pure returns (bytes32) { return keccak256(abi.encodePacked(minter, price, count, deadline)); } function totalMinted() public view returns (uint256) { return _totalMinted(); } function _baseURI() override internal view returns (string memory) { string memory factoryBaseURI = ManeFactory(factory).factoryBaseURI(); return string(abi.encodePacked(factoryBaseURI, toString(abi.encodePacked(this)), "/")); } // Set the mint price for sale period function setMintPrice(uint256 sale_price) public onlyOwner { _salePrice = sale_price; } function setPresaleMaxSupply(uint256 max_) public onlyOwner { presaleMaxSupply = max_; } function adminSetRefund(uint256 is_refundable_) public onlyFactoryOwner { require(block.timestamp < forceRefundDeadline, "MF: time"); isForceRefundable = is_refundable_; } function setPresaleMaxMintCountPerAddress(uint256 max_) public onlyOwner { presaleMaxMintCountPerAddress = max_; } function setSaleMaxMintCountPerAddress(uint256 max_) public onlyOwner { saleMaxMintCountPerAddress = max_; } function getCollectorTotalRatioPPM() internal view returns (uint256) { uint256 ratioPPM = 0; for (uint256 i =0; i < _shareList.length; i++) { ratioPPM += _shareList[i].ratioPPM; } require(ratioPPM <= 1e6, "MB:ratio"); return ratioPPM; } function setPresaleTimes(uint256 startTime_, uint256 endTime_) public onlyOwner { presaleStartTime = startTime_; if (endTime_ == 0) { unchecked { presaleEndTime = endTime_ - 1; } } else { presaleEndTime = endTime_; } } function setSaleTimes(uint256 startTime_, uint256 endTime_) public onlyOwner { saleStartTime = startTime_; if (endTime_ == 0) { unchecked { saleEndTime = endTime_ - 1; } } else { saleEndTime = endTime_; } } // Get the token id list of the given address. If the address holds no token, empty array is return function getTokenIDsByHolder(address holder, uint256 offset, uint256 limit) public view returns (uint256[] memory) { uint256 size = tokenIDByHolder[holder].length - offset; if (size > limit) { size = limit; } uint256[] memory ret = new uint256[](size); for (uint256 i = 0; i < limit; i++) { if (i + offset >= tokenIDByHolder[holder].length) { break; } ret[i] = (tokenIDByHolder[holder][i + offset]); } return ret; } function getShareListLength() public view returns (uint256) { return _shareList.length; } function getRefundTimeListLength() public view returns (uint256) { return _refundTimeList.length; } function setPaused(uint256 is_pause) public onlyOwner { paused = is_pause; } function destroy() public onlyOwner { require(_currentIndex == _reserveQuantity, "MB:not allow"); selfdestruct(payable(this.owner())); } modifier onlyFactoryOwner() { ManeFactory(factory).requireOriginIsOwner(); _; } modifier whenNotPaused() { require(paused == 0, "MB:paused"); _; } } contract SignAndOwnable is Ownable { address public signerAddress; constructor() Ownable() { signerAddress = tx.origin; } // Check if the signature is valid. Returns true if signagure is valid, otherwise returns false. function verifySignature(bytes32 h, uint8 v, bytes32 r, bytes32 s) view internal returns (bool) { return (ecrecover(h, v, r, s) == signerAddress); } // Set the derived address of the public key of the signer private key function setSignaturePublic(address newAddress) public onlyOwner { signerAddress = newAddress; } } contract ManeFactory is SignAndOwnable { uint256 public platformFeePPM = 100 * 1e3; string public factoryBaseURI = "https://meta.manestudio.xyz/nft/"; mapping(uint256 => uint256) private _usedNonces; // Mapping club_id => token_contract_address mapping(uint256 => address) public clubMap; constructor() SignAndOwnable() { } function deploy(string memory name_, string memory symbol_, uint256[] memory u256s, address[] memory shareAddresses_, uint256[] memory shareRatios_, uint256[] memory refundEndTimes_, uint256[] memory refundRatios_, uint8 v, bytes32 r, bytes32 s) public returns (address) { /// 1. Check signagure bytes memory ethereum_prefix = "\x19Ethereum Signed Message:\n32"; bytes32 user_hash =keccak256(abi.encodePacked(ethereum_prefix, keccak256(abi.encodePacked(u256s[3], u256s[12])))); require(_usedNonces[u256s[12]] == 0, "MF: dup nonce"); _usedNonces[u256s[12]] = 1; require(verifySignature(user_hash, v, r, s) == true, "MF: invalid sign"); /// 2. Deploy contract ManeBase c = new ManeBase(name_, symbol_, u256s, shareAddresses_, shareRatios_, refundEndTimes_, refundRatios_); //contracts.push(address(c)); clubMap[u256s[3]] = address(c); return address(c); } function setPlatformFeePPM(uint256 newFeePPM) public onlyOwner { platformFeePPM = newFeePPM; } /// Set the factoryBaseURI, must include trailing slashes function setFactoryBaseURI(string memory newBaseURI) public onlyOwner { factoryBaseURI = newBaseURI; } function requireOriginIsOwner() view public { require(tx.origin == owner(), "MF: Not owner"); } } function toString(bytes memory data) pure returns(string memory) { bytes memory alphabet = "0123456789abcdef"; bytes memory str = new bytes(2 + data.length * 2); str[0] = "0"; str[1] = "x"; for (uint i = 0; i < data.length; i++) { str[2+i*2] = alphabet[uint(uint8(data[i] >> 4))]; str[3+i*2] = alphabet[uint(uint8(data[i] & 0x0f))]; } return string(str); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _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 { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { 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 TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 20, "details": { "yul": true, "yulDetails": { "stackAllocation": true, "optimizerSteps": "dhfoDgvulfnTUtnIf" } } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256[]","name":"u256s","type":"uint256[]"},{"internalType":"address[]","name":"shareAddresses_","type":"address[]"},{"internalType":"uint256[]","name":"shareRatios_","type":"uint256[]"},{"internalType":"uint256[]","name":"refundTimes_","type":"uint256[]"},{"internalType":"uint256[]","name":"refundRatios_","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"platformFee","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_mintInfo","outputs":[{"internalType":"uint256","name":"isPreMint","type":"uint256"},{"internalType":"uint256","name":"isRefunded","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_refundTimeList","outputs":[{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"ratioPPM","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_shareList","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"ratioPPM","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"is_refundable_","type":"uint256"}],"name":"adminSetRefund","outputs":[],"stateMutability":"nonpayable","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":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectorBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"destroy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forceRefundDeadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAll","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":"getRefundTimeListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getShareListLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getTokenIDsByHolder","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isForceRefundable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"mint_price","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"sign_deadline","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"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":[],"name":"ownerBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"platformCollect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"platformFeePPM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxMintCountPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMintCountByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleMaxMintCountPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"saleMintCountByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sale_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"is_pause","type":"uint256"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max_","type":"uint256"}],"name":"setPresaleMaxMintCountPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max_","type":"uint256"}],"name":"setPresaleMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime_","type":"uint256"},{"internalType":"uint256","name":"endTime_","type":"uint256"}],"name":"setPresaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max_","type":"uint256"}],"name":"setSaleMaxMintCountPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime_","type":"uint256"},{"internalType":"uint256","name":"endTime_","type":"uint256"}],"name":"setSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIDByHolder","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":"totalMinted","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"}]
Contract Creation Code
6080604052600060155560006016556000601b556000601c55640100000000601d556000601e553480156200003357600080fd5b5060405162004e3b38038062004e3b833981016040819052620000569162000ead565b8651879087906200006f90600290602085019062000b5b565b5080516200008590600390602084019062000b5b565b50506000805550620000973362000653565b84600181518110620000ad57620000ad6200102b565b602002602001015185600281518110620000cb57620000cb6200102b565b602002602001015186600081518110620000e957620000e96200102b565b6020026020010151620000fd919062001057565b1115620001275760405162461bcd60e51b81526004016200011e906200109b565b60405180910390fd5b600b80546001600160a01b03191633179055845185906000906200014f576200014f6200102b565b6020026020010151600f81905550846002815181106200017357620001736200102b565b6020026020010151601581905550620001cd856004815181106200019b576200019b6200102b565b602002602001015186600581518110620001b957620001b96200102b565b6020026020010151620006a560201b60201c565b6200021985600681518110620001e757620001e76200102b565b6020026020010151866007815181106200020557620002056200102b565b6020026020010151620006f160201b60201c565b62000247856009815181106200023357620002336200102b565b60200260200101516200073d60201b60201c565b846001815181106200025d576200025d6200102b565b602090810291909101015160105562000276326200076f565b620002a4856000815181106200029057620002906200102b565b6020026020010151620007d360201b60201c565b6000805b8551811015620003bf576040805180820190915260008082526020820152868281518110620002db57620002db6200102b565b60209081029190910101516001600160a01b0316815285518690839081106200030857620003086200102b565b60209081029190910181015190820181905262000326908462001057565b60208054600181018255600082905283517fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb600290920291820180546001600160a01b0319166001600160a01b039092169190911790559201517fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bc90920191909155915080620003b681620010ad565b915050620002a8565b50620f4240811115620003e65760405162461bcd60e51b81526004016200011e90620010fc565b81518351146200040a5760405162461bcd60e51b81526004016200011e9062001136565b6000633b9aca00815b8551811015620005505760408051808201909152600080825260208201528682815181106200044657620004466200102b565b60200260200101518160000181815250508582815181106200046c576200046c6200102b565b602002602001015181602001818152505083816000015111620004a35760405162461bcd60e51b81526004016200011e906200117b565b82816020015110620004c95760405162461bcd60e51b81526004016200011e90620011c0565b80516020820180516021805460018101825560009190915293517f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b57060029095029485015590517f3a6357012c1a3ae0a17d304c9920310382d968ebcc4b1771f41c6b304205b5719093019290925593509150806200054781620010ad565b91505062000413565b5087600a815181106200056757620005676200102b565b602002602001015160188190555087600b815181106200058b576200058b6200102b565b6020026020010151601a81905550601854600003620005af57601880546000190190555b601a54600003620005c557601a80546000190190555b600b60009054906101000a90046001600160a01b03166001600160a01b0316638ac433ae6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000619573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200063f9190620011d2565b601b55506200140998505050505050505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6009546001600160a01b03163314620006d25760405162461bcd60e51b81526004016200011e9062001228565b60118290556000819003620006eb576000190160125550565b60125550565b6009546001600160a01b031633146200071e5760405162461bcd60e51b81526004016200011e9062001228565b6013829055600081900362000737576000190160145550565b60145550565b6009546001600160a01b031633146200076a5760405162461bcd60e51b81526004016200011e9062001228565b600a55565b6009546001600160a01b031633146200079c5760405162461bcd60e51b81526004016200011e9062001228565b6001600160a01b038116620007c55760405162461bcd60e51b81526004016200011e906200123a565b620007d08162000653565b50565b8015620007d0576000805490506200080432836040518060200160405280600081525060006200089660201b60201c565b805b62000812838362001057565b81101562000891577f10546b1a6f5245ff0ffa18c256b9e46859c585cbb473b453fcd4c2dc39ae08db3282600080604051620008529493929190620012b9565b60405180910390a132600090815260086020908152604082208054600181018255908352912001819055806200088881620010ad565b91505062000806565b505050565b6000546001600160a01b038516620008c057604051622e076360e81b815260040160405180910390fd5b83600003620008e25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156200099b57506200099b876001600160a01b031662000a6060201b62001cfd1760201c565b1562000a1a575b60405182906001600160a01b0389169060009060008051602062004e1b833981519152908290a46001820191620009df9060009089908862000a66565b620009fd576040516368d2bf6b60e11b815260040160405180910390fd5b808203620009a257826000541462000a1457600080fd5b62000a4f565b5b6040516001830192906001600160a01b0389169060009060008051602062004e1b833981519152908290a480820362000a1b575b506000555050505050565b50505050565b3b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029062000a9d90339089908890889060040162001334565b6020604051808303816000875af192505050801562000adb575060408051601f3d908101601f1916820190925262000ad8918101906200139e565b60015b62000b3d573d80801562000b0c576040519150601f19603f3d011682016040523d82523d6000602084013e62000b11565b606091505b50805160000362000b35576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b82805462000b6990620013d9565b90600052602060002090601f01602090048101928262000b8d576000855562000bd8565b82601f1062000ba857805160ff191683800117855562000bd8565b8280016001018555821562000bd8579182015b8281111562000bd857825182559160200191906001019062000bbb565b5062000be692915062000bea565b5090565b5b8082111562000be6576000815560010162000beb565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681016001600160401b038111828210171562000c3f5762000c3f62000c01565b6040525050565b600062000c5260405190565b905062000c60828262000c17565b919050565b60006001600160401b0382111562000c815762000c8162000c01565b601f19601f83011660200192915050565b60005b8381101562000caf57818101518382015260200162000c95565b8381111562000a5a5750506000910152565b600062000cd862000cd28462000c65565b62000c46565b90508281526020810184848401111562000cf55762000cf5600080fd5b62000d0284828562000c92565b509392505050565b600082601f83011262000d205762000d20600080fd5b815162000b5384826020860162000cc1565b60006001600160401b0382111562000d4e5762000d4e62000c01565b5060209081020190565b805b8114620007d057600080fd5b805162000d738162000d58565b92915050565b600062000d8a62000cd28462000d32565b8381529050602080820190840283018581111562000dab5762000dab600080fd5b835b8181101562000dd15762000dc2878262000d66565b83526020928301920162000dad565b5050509392505050565b600082601f83011262000df15762000df1600080fd5b815162000b5384826020860162000d79565b60006001600160a01b03821662000d73565b62000d5a8162000e03565b805162000d738162000e15565b600062000e3e62000cd28462000d32565b8381529050602080820190840283018581111562000e5f5762000e5f600080fd5b835b8181101562000dd15762000e76878262000e20565b83526020928301920162000e61565b600082601f83011262000e9b5762000e9b600080fd5b815162000b5384826020860162000e2d565b600080600080600080600060e0888a03121562000ecd5762000ecd600080fd5b87516001600160401b0381111562000ee85762000ee8600080fd5b62000ef68a828b0162000d0a565b60208a015190985090506001600160401b0381111562000f195762000f19600080fd5b62000f278a828b0162000d0a565b60408a015190975090506001600160401b0381111562000f4a5762000f4a600080fd5b62000f588a828b0162000ddb565b60608a015190965090506001600160401b0381111562000f7b5762000f7b600080fd5b62000f898a828b0162000e85565b60808a015190955090506001600160401b0381111562000fac5762000fac600080fd5b62000fba8a828b0162000ddb565b60a08a015190945090506001600160401b0381111562000fdd5762000fdd600080fd5b62000feb8a828b0162000ddb565b60c08a015190935090506001600160401b038111156200100e576200100e600080fd5b6200101c8a828b0162000ddb565b91505092959891949750929550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156200106d576200106d62001041565b500190565b6012815260208101714d423a736d616c6c206d6178537570706c7960701b815290505b60200190565b6020808252810162000d738162001072565b600060018201620010c257620010c262001041565b5060010190565b60178152602081017f4d423a7368617265526174696f73206f766572666c6f770000000000000000008152905062001095565b6020808252810162000d7381620010c9565b60128152602081017109a8474d8cadccee8d040dad2e6dac2e8c6d60731b8152905062001095565b6020808252810162000d73816200110e565b60168152602081017f4d423a726566756e6454696d657320696e76616c6964000000000000000000008152905062001095565b6020808252810162000d738162001148565b60168152602081017f4d423a726566756e64526174696f20696e76616c6964000000000000000000008152905062001095565b6020808252810162000d73816200118d565b600060208284031215620011e957620011e9600080fd5b600062000b53848462000d66565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815262001095565b6020808252810162000d7381620011f7565b6020808252810162000d7381602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201526564647265737360d01b604082015260600190565b620012908162000e03565b82525050565b8062001290565b600062000d73620012ab8381565b90565b62001290816200129d565b60808101620012c9828762001285565b620012d8602083018662001296565b620012e76040830185620012ae565b620012f66060830184620012ae565b95945050505050565b60006200130a825190565b8084526020840193506200132381856020860162000c92565b601f01601f19169290920192915050565b6080810162001344828762001285565b62001353602083018662001285565b62001362604083018562001296565b8181036060830152620013768184620012ff565b9695505050505050565b6001600160e01b0319811662000d5a565b805162000d738162001380565b600060208284031215620013b557620013b5600080fd5b600062000b53848462001391565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620013ee57607f821691505b602082108103620014035762001403620013c3565b50919050565b613a0280620014196000396000f3fe6080604052600436106102ac5760003560e01c806383197ef01161016c57806383197ef0146106325780638ac433ae146106475780638da5cb5b1461065d578063952bd0741461067257806395d89b4114610692578063979aea0f146106a7578063a22cb465146106c7578063a2309ff8146106e7578063a7f3e70f146106fc578063a82524b21461071c578063b88d4fde14610732578063bcce582614610752578063bcfdb30914610780578063bedcf00314610793578063c3e386b9146107a9578063c45a0155146107d7578063c7424f67146107f7578063c87b56dd14610824578063d038e28a14610844578063d90f5f4214610859578063da5f524a14610879578063e52253811461088f578063e79f5343146108a4578063e985e9c5146108c4578063ec402175146108e4578063ed338ff1146108fa578063f134e14514610910578063f2fde38b14610925578063f405741c14610945578063f4a0a5281461097257600080fd5b806301ffc9a7146102b157806306fdde03146102e757806307aae87a14610309578063081812fc1461032b57806308fc299b14610358578063095ea7b31461037b5780630a403f041461039b5780630afe6b91146103bb57806313e2e3dd146103d1578063151ba800146103e757806318160ddd146103fd5780631cbaee2d146104165780631ed5b0c41461042c57806322f4596f1461047757806323b872dd1461048d578063249b7c19146104ad578063278ecde1146104c357806341aba9e8146104e357806342842e0e14610503578063498927eb1461052357806351789ea21461054357806353ed5143146105635780635c975abb1461058557806362a5dbbc1461059b5780636352211e146105b157806364de051e146105d157806370a08231146105e7578063715018a6146106075780637d6849c81461061c575b600080fd5b3480156102bd57600080fd5b506102d16102cc366004612ba4565b610992565b6040516102de9190612bcf565b60405180910390f35b3480156102f357600080fd5b506102fc6109e4565b6040516102de9190612c47565b34801561031557600080fd5b50610329610324366004612c69565b610a76565b005b34801561033757600080fd5b5061034b610346366004612c69565b610ab3565b6040516102de9190612caa565b34801561036457600080fd5b5061036e60155481565b6040516102de9190612cbe565b34801561038757600080fd5b50610329610396366004612ce0565b610af7565b3480156103a757600080fd5b506103296103b6366004612c69565b610b84565b3480156103c757600080fd5b5061036e601a5481565b3480156103dd57600080fd5b5061036e60165481565b3480156103f357600080fd5b5061036e600e5481565b34801561040957600080fd5b506001546000540361036e565b34801561042257600080fd5b5061036e60135481565b34801561043857600080fd5b50610468610447366004612c69565b601f6020526000908152604090208054600182015460029092015490919083565b6040516102de93929190612d1d565b34801561048357600080fd5b5061036e60105481565b34801561049957600080fd5b506103296104a8366004612d45565b610bb8565b3480156104b957600080fd5b5061036e60125481565b3480156104cf57600080fd5b506103296104de366004612c69565b610bc3565b3480156104ef57600080fd5b506103296104fe366004612c69565b610e58565b34801561050f57600080fd5b5061032961051e366004612d45565b610e8c565b34801561052f57600080fd5b5061036e61053e366004612ce0565b610ea7565b34801561054f57600080fd5b5061032961055e366004612c69565b610ed8565b34801561056f57600080fd5b50610578610f0c565b6040516102de9190612df3565b34801561059157600080fd5b5061036e601e5481565b3480156105a757600080fd5b5061036e600c5481565b3480156105bd57600080fd5b5061034b6105cc366004612c69565b611049565b3480156105dd57600080fd5b5061036e601d5481565b3480156105f357600080fd5b5061036e610602366004612e04565b61105b565b34801561061357600080fd5b506103296110a9565b34801561062857600080fd5b5061036e60185481565b34801561063e57600080fd5b506103296110e4565b34801561065357600080fd5b5061036e601b5481565b34801561066957600080fd5b5061034b6111a3565b34801561067e57600080fd5b5061032961068d366004612e25565b6111b2565b34801561069e57600080fd5b506102fc6111ff565b3480156106b357600080fd5b506103296106c2366004612e04565b61120e565b3480156106d357600080fd5b506103296106e2366004612e5a565b6112bd565b3480156106f357600080fd5b5060005461036e565b34801561070857600080fd5b50610329610717366004612e25565b611355565b34801561072857600080fd5b5061036e60115481565b34801561073e57600080fd5b5061032961074d366004612f7b565b6113a2565b34801561075e57600080fd5b5061077261076d366004612c69565b6113f3565b6040516102de929190612ff9565b61032961078e366004613028565b61142b565b34801561079f57600080fd5b5061036e600d5481565b3480156107b557600080fd5b506107c96107c4366004612c69565b611876565b6040516102de9291906130c7565b3480156107e357600080fd5b50600b5461034b906001600160a01b031681565b34801561080357600080fd5b5061036e610812366004612e04565b60176020526000908152604090205481565b34801561083057600080fd5b506102fc61083f366004612c69565b6118a4565b34801561085057600080fd5b5060205461036e565b34801561086557600080fd5b50610329610874366004612c69565b611928565b34801561088557600080fd5b5061036e601c5481565b34801561089b57600080fd5b506103296119b4565b3480156108b057600080fd5b506105786108bf3660046130d5565b611b15565b3480156108d057600080fd5b506102d16108df36600461310a565b611c3a565b3480156108f057600080fd5b5061036e600a5481565b34801561090657600080fd5b5061036e60145481565b34801561091c57600080fd5b5060215461036e565b34801561093157600080fd5b50610329610940366004612e04565b611c68565b34801561095157600080fd5b5061036e610960366004612e04565b60196020526000908152604090205481565b34801561097e57600080fd5b5061032961098d366004612c69565b611cc9565b60006001600160e01b031982166380ac58cd60e01b14806109c357506001600160e01b03198216635b5e139f60e01b145b806109de57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546109f390613153565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1f90613153565b8015610a6c5780601f10610a4157610100808354040283529160200191610a6c565b820191906000526020600020905b815481529060010190602001808311610a4f57829003601f168201915b5050505050905090565b33610a7f6111a3565b6001600160a01b031614610aae5760405162461bcd60e51b8152600401610aa5906131af565b60405180910390fd5b601a55565b6000610abe82611d03565b610adb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b0282611049565b9050806001600160a01b0316836001600160a01b031603610b365760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b565750610b548133611c3a565b155b15610b74576040516367d9dca160e11b815260040160405180910390fd5b610b7f838383611d2e565b505050565b33610b8d6111a3565b6001600160a01b031614610bb35760405162461bcd60e51b8152600401610aa5906131af565b601555565b610b7f838383611d8a565b610bcc81611049565b6001600160a01b0316336001600160a01b031614610bfc5760405162461bcd60e51b8152600401610aa5906131dc565b6000601c54600103610c125750620f4240610c8b565b60005b602154811015610c895760218181548110610c3257610c326131ec565b906000526020600020906002020160000154421015610c775760218181548110610c5e57610c5e6131ec565b9060005260206000209060020201600101549150610c89565b80610c8181613218565b915050610c15565b505b60008111610cab5760405162461bcd60e51b8152600401610aa590613259565b6000828152601f60205260409020600181015415610cdb5760405162461bcd60e51b8152600401610aa590613289565b6000620f4240838360020154610cf19190613299565b610cfb91906132ce565b90506000620f4240601b5483610d119190613299565b610d1b91906132ce565b90506000620f4240610d2b611da0565b610d3584866132e2565b610d3f9190613299565b610d4991906132ce565b9050600081610d5884866132e2565b610d6291906132e2565b905082600c6000828254610d7691906132e2565b9250508190555081600e6000828254610d8f91906132e2565b9250508190555080600d6000828254610da891906132e2565b92505081905550610e1b33306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e159190613304565b89610bb8565b600185810155604051339085156108fc029086906000818181858888f19350505050158015610e4e573d6000803e3d6000fd5b5050505050505050565b33610e616111a3565b6001600160a01b031614610e875760405162461bcd60e51b8152600401610aa5906131af565b601855565b610b7f838383604051806020016040528060008152506113a2565b60086020528160005260406000208181548110610ec357600080fd5b90600052602060002001600091509150505481565b33610ee16111a3565b6001600160a01b031614610f075760405162461bcd60e51b8152600401610aa5906131af565b601e55565b60408051600c8082526101a08201909252606091600091906020820161018080368337019050509050600f5481600081518110610f4b57610f4b6131ec565b60200260200101818152505060105481600181518110610f6d57610f6d6131ec565b60200260200101818152505060155481600281518110610f8f57610f8f6131ec565b60200260200101818152505060115481600481518110610fb157610fb16131ec565b60200260200101818152505060125481600581518110610fd357610fd36131ec565b60200260200101818152505060135481600681518110610ff557610ff56131ec565b60200260200101818152505060145481600781518110611017576110176131ec565b602002602001018181525050600a5481600981518110611039576110396131ec565b6020908102919091010152919050565b600061105482611e1c565b5192915050565b60006001600160a01b038216611084576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b336110b26111a3565b6001600160a01b0316146110d85760405162461bcd60e51b8152600401610aa5906131af565b6110e26000611f36565b565b336110ed6111a3565b6001600160a01b0316146111135760405162461bcd60e51b8152600401610aa5906131af565b600f54600054146111365760405162461bcd60e51b8152600401610aa590613346565b306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611174573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111989190613304565b6001600160a01b0316ff5b6009546001600160a01b031690565b336111bb6111a3565b6001600160a01b0316146111e15760405162461bcd60e51b8152600401610aa5906131af565b601182905560008190036111f9576000190160125550565b60125550565b6060600380546109f390613153565b600b60009054906101000a90046001600160a01b03166001600160a01b03166360755dc76040518163ffffffff1660e01b815260040160006040518083038186803b15801561125c57600080fd5b505afa158015611270573d6000803e3d6000fd5b5050505061127c611f88565b600c805460009182905560405190916001600160a01b0384169183156108fc0291849190818181858888f19350505050158015610b7f573d6000803e3d6000fd5b336001600160a01b038316036112e65760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611349908590612bcf565b60405180910390a35050565b3361135e6111a3565b6001600160a01b0316146113845760405162461bcd60e51b8152600401610aa5906131af565b6013829055600081900361139c576000190160145550565b60145550565b6113ad848484611d8a565b6001600160a01b0383163b151580156113cf57506113cd8484848461202c565b155b156113ed576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6020818154811061140357600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b601e541561144b5760405162461bcd60e51b8152600401610aa590613374565b6000806011544210156114705760405162461bcd60e51b8152600401610aa5906133a7565b6011544210158015611483575060125442105b156114ba576114928789613299565b3410156114b15760405162461bcd60e51b8152600401610aa5906133da565b60019150611541565b60135442101580156114ce57506014544211155b1561152957600a5488146114f45760405162461bcd60e51b8152600401610aa59061340c565b86600a546115029190613299565b3410156115215760405162461bcd60e51b8152600401610aa59061343c565b506001611541565b60405162461bcd60e51b8152600401610aa590613472565b60005b87811015611829576010546000541061156f5760405162461bcd60e51b8152600401610aa5906134a1565b82600103611615576115868a8a8a8a8a8a8a612118565b6016805490600061159683613218565b919050555060155460165411156115bf5760405162461bcd60e51b8152600401610aa5906134cf565b3360009081526017602052604081208054916115da83613218565b90915550506018543360009081526017602052604090205411156116105760405162461bcd60e51b8152600401610aa5906134fe565b611686565b8160010361166e5733600090815260196020526040812080549161163883613218565b9091555050601a543360009081526019602052604090205411156116105760405162461bcd60e51b8152600401610aa59061352d565b60405162461bcd60e51b8152600401610aa590613564565b6000805490506116a98b6001604051806020016040528060008152506000612285565b6001600160a01b038b1660009081526008602090815260408220805460018101825590835290822001829055601b54620f4240906116e7908d613299565b6116f191906132ce565b90506000620f4240611701611da0565b61170b848f6132e2565b6117159190613299565b61171f91906132ce565b905060008161172e848f6132e2565b61173891906132e2565b905082600c600082825461174c9190613574565b9250508190555081600e60008282546117659190613574565b9250508190555080600d600082825461177e9190613574565b925050819055506040518060600160405280888152602001600081526020018e815250601f60008681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050507f10546b1a6f5245ff0ffa18c256b9e46859c585cbb473b453fcd4c2dc39ae08db8e858f8660405161180a949392919061358c565b60405180910390a150505050808061182190613218565b915050611544565b5080600114806118485750600160105461184391906132e2565b600054145b1561186b57601d54600160201b0361186b576118674262093a80613574565b601d555b505050505050505050565b6021818154811061188657600080fd5b60009182526020909120600290910201805460019091015490915082565b60606118af82611d03565b6118cc57604051630a14c4b560e41b815260040160405180910390fd5b60006118d6612426565b905080516000036118f65760405180602001604052806000815250611921565b80611900846124f6565b6040516020016119119291906135ec565b6040516020818303038152906040525b9392505050565b600b60009054906101000a90046001600160a01b03166001600160a01b03166360755dc76040518163ffffffff1660e01b815260040160006040518083038186803b15801561197657600080fd5b505afa15801561198a573d6000803e3d6000fd5b50505050601d5442106119af5760405162461bcd60e51b8152600401610aa59061361f565b601c55565b336119bd6111a3565b6001600160a01b0316146119e35760405162461bcd60e51b8152600401610aa5906131af565b6119eb611f88565b600e5460006119f8611da0565b905060005b602054811015611acb5760008260208381548110611a1d57611a1d6131ec565b90600052602060002090600202016001015485611a3a9190613299565b611a4491906132ce565b905080600e6000828254611a5891906132e2565b90915550506020805483908110611a7157611a716131ec565b600091825260208220600290910201546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015611ab6573d6000803e3d6000fd5b50508080611ac390613218565b9150506119fd565b50600d80546000909155611add6111a3565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156113ed573d6000803e3d6000fd5b6001600160a01b03831660009081526008602052604081205460609190611b3d9085906132e2565b905082811115611b4a5750815b6000816001600160401b03811115611b6457611b64612e8d565b604051908082528060200260200182016040528015611b8d578160200160208202803683370190505b50905060005b84811015611c30576001600160a01b038716600090815260086020526040902054611bbe8783613574565b1015611c30576001600160a01b0387166000908152600860205260409020611be68783613574565b81548110611bf657611bf66131ec565b9060005260206000200154828281518110611c1357611c136131ec565b602090810291909101015280611c2881613218565b915050611b93565b5095945050505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b33611c716111a3565b6001600160a01b031614611c975760405162461bcd60e51b8152600401610aa5906131af565b6001600160a01b038116611cbd5760405162461bcd60e51b8152600401610aa59061362f565b611cc681611f36565b50565b33611cd26111a3565b6001600160a01b031614611cf85760405162461bcd60e51b8152600401610aa5906131af565b600a55565b3b151590565b60008054821080156109de575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611d958383836125f6565b610b7f8383836127ce565b600080805b602054811015611df35760208181548110611dc257611dc26131ec565b90600052602060002090600202016001015482611ddf9190613574565b915080611deb81613218565b915050611da5565b50620f4240811115611e175760405162461bcd60e51b8152600401610aa590613696565b919050565b604080516060810182526000808252602082018190529181019190915281600054811015611f1d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611f1b5780516001600160a01b031615611eb2579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611f16579392505050565b611eb2565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b602154811015611fea5760218181548110611fa857611fa86131ec565b9060005260206000209060020201600001544211611fd85760405162461bcd60e51b8152600401610aa5906136cd565b80611fe281613218565b915050611f8b565b50601d54421161200c5760405162461bcd60e51b8152600401610aa5906136fd565b601c54156110e25760405162461bcd60e51b8152600401610aa590613731565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612061903390899088908890600401613741565b6020604051808303816000875af192505050801561209c575060408051601f3d908101601f1916820190925261209991810190613790565b60015b6120fa573d8080156120ca576040519150601f19603f3d011682016040523d82523d6000602084013e6120cf565b606091505b5080516000036120f2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60408051808201909152601c81527b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152600061215989898989612931565b9050600082826040516020016121709291906137b4565b6040516020818303038152906040528051906020012090506000600182868989604051600081526020016040526040516121ad94939291906137d3565b6020604051602081039080840390855afa1580156121cf573d6000803e3d6000fd5b505060408051601f19810151600b546305b7633d60e41b835292519094506001600160a01b039092169250635b7633d09160048083019260209291908290030181865afa158015612224573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122489190613304565b6001600160a01b0316816001600160a01b0316146122785760405162461bcd60e51b8152600401610aa59061380a565b5050505050505050505050565b6000546001600160a01b0385166122ae57604051622e076360e81b815260040160405180910390fd5b836000036122cf5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b6001600160401b031990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561237157506001600160a01b0387163b15155b156123e7575b60405182906001600160a01b038916906000906000805160206139ad833981519152908290a46123b0600088848060010195508861202c565b6123cd576040516368d2bf6b60e11b815260040160405180910390fd5b8082036123775782600054146123e257600080fd5b61241a565b5b6040516001830192906001600160a01b038916906000906000805160206139ad833981519152908290a48082036123e8575b506000555b5050505050565b60606000600b60009054906101000a90046001600160a01b03166001600160a01b031663891678566040518163ffffffff1660e01b8152600401600060405180830381865afa15801561247d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124a59190810190613872565b9050806124d0306040516020016124bc9190613900565b60405160208183030381529060405261296a565b6040516020016124e1929190613912565b60405160208183030381529060405291505090565b60608160000361251d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612547578061253181613218565b91506125409050600a836132ce565b9150612521565b6000816001600160401b0381111561256157612561612e8d565b6040519080825280601f01601f19166020018201604052801561258b576020820181803683370190505b5090505b8415612110576125a06001836132e2565b91506125ad600a8661393a565b6125b8906030613574565b60f81b8183815181106125cd576125cd6131ec565b60200101906001600160f81b031916908160001a9053506125ef600a866132ce565b945061258f565b600061260182611e1c565b9050836001600160a01b031681600001516001600160a01b0316146126385760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061265657506126568533611c3a565b8061267157503361266684610ab3565b6001600160a01b0316145b90508061269157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166126b857604051633a954ecd60e21b815260040160405180910390fd5b6126c460008487611d2e565b6001600160a01b03858116600090815260056020908152604080832080546001600160401b03198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661279757600054821461279757805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206139ad83398151915260405160405180910390a461241f565b6001600160a01b038216600090815260086020908152604082208054600181018255908352908220018290555b6001600160a01b0384166000908152600860205260409020548110156113ed576001600160a01b0384166000908152600860205260409020805483919083908110612848576128486131ec565b90600052602060002001540361291f576001600160a01b0384166000908152600860205260409020805461287e906001906132e2565b8154811061288e5761288e6131ec565b906000526020600020015460086000866001600160a01b03166001600160a01b0316815260200190815260200160002082815481106128cf576128cf6131ec565b60009182526020808320909101929092556001600160a01b03861681526008909152604090208054806129045761290461394e565b600190038181906000526020600020016000905590556113ed565b8061292981613218565b9150506127fb565b60008484848460405160200161294a9493929190613970565b604051602081830303815290604052805190602001209050949350505050565b60408051808201909152601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151606091906000906129a5906002613299565b6129b0906002613574565b6001600160401b038111156129c7576129c7612e8d565b6040519080825280601f01601f1916602001820160405280156129f1576020820181803683370190505b509050600360fc1b81600081518110612a0c57612a0c6131ec565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a3b57612a3b6131ec565b60200101906001600160f81b031916908160001a90535060005b8451811015612b7a57826004868381518110612a7357612a736131ec565b016020015182516001600160f81b031990911690911c60f81c908110612a9b57612a9b6131ec565b01602001516001600160f81b03191682612ab6836002613299565b612ac1906002613574565b81518110612ad157612ad16131ec565b60200101906001600160f81b031916908160001a90535082858281518110612afb57612afb6131ec565b602091010151815160f89190911c600f16908110612b1b57612b1b6131ec565b01602001516001600160f81b03191682612b36836002613299565b612b41906003613574565b81518110612b5157612b516131ec565b60200101906001600160f81b031916908160001a90535080612b7281613218565b915050612a55565b509392505050565b6001600160e01b031981165b8114611cc657600080fd5b80356109de81612b82565b600060208284031215612bb957612bb9600080fd5b60006121108484612b99565b8015155b82525050565b602081016109de8284612bc5565b60005b83811015612bf8578181015183820152602001612be0565b838111156113ed5750506000910152565b601f01601f191690565b6000612c1d825190565b808452602084019350612c34818560208601612bdd565b612c3d81612c09565b9093019392505050565b602080825281016119218184612c13565b80612b8e565b80356109de81612c58565b600060208284031215612c7e57612c7e600080fd5b60006121108484612c5e565b6001600160a01b031690565b60006109de82612c8a565b612bc981612c96565b602081016109de8284612ca1565b80612bc9565b602081016109de8284612cb8565b612b8e81612c96565b80356109de81612ccc565b60008060408385031215612cf657612cf6600080fd5b6000612d028585612cd5565b9250506020612d1385828601612c5e565b9150509250929050565b60608101612d2b8286612cb8565b612d386020830185612cb8565b6121106040830184612cb8565b600080600060608486031215612d5d57612d5d600080fd5b6000612d698686612cd5565b9350506020612d7a86828701612cd5565b9250506040612d8b86828701612c5e565b9150509250925092565b612d9f8282612cb8565b5060200190565b60200190565b6000612db6825190565b808452602093840193830160005b82811015612de9578151612dd88782612d95565b965050602082019150600101612dc4565b5093949350505050565b602080825281016119218184612dac565b600060208284031215612e1957612e19600080fd5b60006121108484612cd5565b60008060408385031215612e3b57612e3b600080fd5b6000612d028585612c5e565b801515612b8e565b80356109de81612e47565b60008060408385031215612e7057612e70600080fd5b6000612e7c8585612cd5565b9250506020612d1385828601612e4f565b634e487b7160e01b600052604160045260246000fd5b612eac82612c09565b81018181106001600160401b0382111715612ec957612ec9612e8d565b6040525050565b6000612edb60405190565b9050611e178282612ea3565b60006001600160401b03821115612f0057612f00612e8d565b612f0982612c09565b60200192915050565b82818337506000910152565b6000612f31612f2c84612ee7565b612ed0565b905082815260208101848484011115612f4c57612f4c600080fd5b612b7a848285612f12565b600082601f830112612f6b57612f6b600080fd5b8135612110848260208601612f1e565b60008060008060808587031215612f9457612f94600080fd5b6000612fa08787612cd5565b9450506020612fb187828801612cd5565b9350506040612fc287828801612c5e565b92505060608501356001600160401b03811115612fe157612fe1600080fd5b612fed87828801612f57565b91505092959194509250565b604081016130078285612ca1565b6119216020830184612cb8565b60ff8116612b8e565b80356109de81613014565b600080600080600080600060e0888a03121561304657613046600080fd5b60006130528a8a612cd5565b97505060206130638a828b01612c5e565b96505060406130748a828b01612c5e565b95505060606130858a828b01612c5e565b94505060806130968a828b01612c5e565b93505060a06130a78a828b01612c5e565b92505060c06130b88a828b0161301d565b91505092959891949750929550565b604081016130078285612cb8565b6000806000606084860312156130ed576130ed600080fd5b60006130f98686612cd5565b9350506020612d7a86828701612c5e565b6000806040838503121561312057613120600080fd5b600061312c8585612cd5565b9250506020612d1385828601612cd5565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061316757607f821691505b6020821081036131795761317961313d565b50919050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612da6565b602080825281016109de8161317f565b60088152602081016726a11d37bbb732b960c11b81529050612da6565b602080825281016109de816131bf565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161322a5761322a613202565b5060010190565b60138152602081017213508e9c99599d5b99081b9bdd08185d985a5b606a1b81529050612da6565b602080825281016109de81613231565b600b8152602081016a13508e9c99599d5b99195960aa1b81529050612da6565b602080825281016109de81613269565b60008160001904831182151516156132b3576132b3613202565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826132dd576132dd6132b8565b500490565b6000828210156132f4576132f4613202565b500390565b80516109de81612ccc565b60006020828403121561331957613319600080fd5b600061211084846132f9565b600c8152602081016b4d423a6e6f7420616c6c6f7760a01b81529050612da6565b602080825281016109de81613325565b60098152602081016813508e9c185d5cd95960ba1b81529050612da6565b602080825281016109de81613356565b600e8152602081016d13508e939bdd081cdd185c9d195960921b81529050612da6565b602080825281016109de81613384565b600e8152602081016d13508e9c1c995cd85b19481d985b60921b81529050612da6565b602080825281016109de816133b7565b600d8152602081016c4d423a6d696e745f707269636560981b81529050612da6565b602080825281016109de816133ea565b600b8152602081016a13508e9cd85b19481d985b60aa1b81529050612da6565b602080825281016109de8161341c565b60118152602081017013508e925b9d985b1a59081c195c9a5bd9607a1b81529050612da6565b602080825281016109de8161344c565b600a815260208101694d423a4e6f206d6f726560b01b81529050612da6565b602080825281016109de81613482565b60098152602081016813508e915e18d9595960ba1b81529050612da6565b602080825281016109de816134b1565b600a815260208101694d423a6164647228412960b01b81529050612da6565b602080825281016109de816134df565b600a815260208101694d423a6164647228422960b01b81529050612da6565b602080825281016109de8161350e565b60128152602081017113508e939bdd081cd85b19481c195c9a5bd960721b81529050612da6565b602080825281016109de8161353d565b6000821982111561358757613587613202565b500190565b6080810161359a8287612ca1565b6135a76020830186612cb8565b6135b46040830185612cb8565b6135c16060830184612cb8565b95945050505050565b60006135d4825190565b6135e2818560208601612bdd565b9290920192915050565b6135f681846135ca565b905061192181836135ca565b6008815260208101674d463a2074696d6560c01b81529050612da6565b602080825281016109de81613602565b602080825281016109de81602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201526564647265737360d01b604082015260600190565b6008815260208101674d423a726174696f60c01b81529050612da6565b602080825281016109de81613679565b6012815260208101714d423a726566756e6420646561646c696e6560701b81529050612da6565b602080825281016109de816136a6565b600b8152602081016a13508e8dd9081b1a5b5a5d60aa1b81529050612da6565b602080825281016109de816136dd565b600f8152602081016e13508e999bdc98d9481c99599d5b99608a1b81529050612da6565b602080825281016109de8161370d565b6080810161374f8287612ca1565b61375c6020830186612ca1565b6137696040830185612cb8565b818103606083015261377b8184612c13565b9695505050505050565b80516109de81612b82565b6000602082840312156137a5576137a5600080fd5b60006121108484613785565b90565b6137be81846135ca565b9050612f098183612cb8565b60ff8116612bc9565b608081016137e18287612cb8565b6135a760208301866137ca565b60078152602081016626a11d39b4b3b760c91b81529050612da6565b602080825281016109de816137ee565b6000613828612f2c84612ee7565b90508281526020810184848401111561384357613843600080fd5b612b7a848285612bdd565b600082601f83011261386257613862600080fd5b815161211084826020860161381a565b60006020828403121561388757613887600080fd5b81516001600160401b038111156138a0576138a0600080fd5b6121108482850161384e565b60006109de6138bd6137b184612c8a565b612c8a565b60006109de826138ac565b60006109de826138c2565b60006109de8260601b90565b60006109de826138d8565b612bc96138fb826138cd565b6138e4565b61390a81836138ef565b601401919050565b61391c81846135ca565b905061392881836135ca565b602f60f81b8152905060018101611921565b600082613949576139496132b8565b500690565b634e487b7160e01b600052603160045260246000fd5b612bc96138fb82612c96565b61397a8186613964565b6014016139878185612cb8565b6020016139948184612cb8565b6020016139a18183612cb8565b60200194935050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e1798fd171fe25f81e7f58af53045c78198932365a46a1206fd80828fec1fef264736f6c634300080e0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000000000000000000000000000000000000000000005464952535400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034653540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000063250e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000063256a81000000000000000000000000000000000000000000000000000000000000000100000000000000000000000010240994e25e3f36b8a84a752e2fe4f21ab0123100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000632cf700000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a0
Deployed Bytecode
0x6080604052600436106102ac5760003560e01c806383197ef01161016c57806383197ef0146106325780638ac433ae146106475780638da5cb5b1461065d578063952bd0741461067257806395d89b4114610692578063979aea0f146106a7578063a22cb465146106c7578063a2309ff8146106e7578063a7f3e70f146106fc578063a82524b21461071c578063b88d4fde14610732578063bcce582614610752578063bcfdb30914610780578063bedcf00314610793578063c3e386b9146107a9578063c45a0155146107d7578063c7424f67146107f7578063c87b56dd14610824578063d038e28a14610844578063d90f5f4214610859578063da5f524a14610879578063e52253811461088f578063e79f5343146108a4578063e985e9c5146108c4578063ec402175146108e4578063ed338ff1146108fa578063f134e14514610910578063f2fde38b14610925578063f405741c14610945578063f4a0a5281461097257600080fd5b806301ffc9a7146102b157806306fdde03146102e757806307aae87a14610309578063081812fc1461032b57806308fc299b14610358578063095ea7b31461037b5780630a403f041461039b5780630afe6b91146103bb57806313e2e3dd146103d1578063151ba800146103e757806318160ddd146103fd5780631cbaee2d146104165780631ed5b0c41461042c57806322f4596f1461047757806323b872dd1461048d578063249b7c19146104ad578063278ecde1146104c357806341aba9e8146104e357806342842e0e14610503578063498927eb1461052357806351789ea21461054357806353ed5143146105635780635c975abb1461058557806362a5dbbc1461059b5780636352211e146105b157806364de051e146105d157806370a08231146105e7578063715018a6146106075780637d6849c81461061c575b600080fd5b3480156102bd57600080fd5b506102d16102cc366004612ba4565b610992565b6040516102de9190612bcf565b60405180910390f35b3480156102f357600080fd5b506102fc6109e4565b6040516102de9190612c47565b34801561031557600080fd5b50610329610324366004612c69565b610a76565b005b34801561033757600080fd5b5061034b610346366004612c69565b610ab3565b6040516102de9190612caa565b34801561036457600080fd5b5061036e60155481565b6040516102de9190612cbe565b34801561038757600080fd5b50610329610396366004612ce0565b610af7565b3480156103a757600080fd5b506103296103b6366004612c69565b610b84565b3480156103c757600080fd5b5061036e601a5481565b3480156103dd57600080fd5b5061036e60165481565b3480156103f357600080fd5b5061036e600e5481565b34801561040957600080fd5b506001546000540361036e565b34801561042257600080fd5b5061036e60135481565b34801561043857600080fd5b50610468610447366004612c69565b601f6020526000908152604090208054600182015460029092015490919083565b6040516102de93929190612d1d565b34801561048357600080fd5b5061036e60105481565b34801561049957600080fd5b506103296104a8366004612d45565b610bb8565b3480156104b957600080fd5b5061036e60125481565b3480156104cf57600080fd5b506103296104de366004612c69565b610bc3565b3480156104ef57600080fd5b506103296104fe366004612c69565b610e58565b34801561050f57600080fd5b5061032961051e366004612d45565b610e8c565b34801561052f57600080fd5b5061036e61053e366004612ce0565b610ea7565b34801561054f57600080fd5b5061032961055e366004612c69565b610ed8565b34801561056f57600080fd5b50610578610f0c565b6040516102de9190612df3565b34801561059157600080fd5b5061036e601e5481565b3480156105a757600080fd5b5061036e600c5481565b3480156105bd57600080fd5b5061034b6105cc366004612c69565b611049565b3480156105dd57600080fd5b5061036e601d5481565b3480156105f357600080fd5b5061036e610602366004612e04565b61105b565b34801561061357600080fd5b506103296110a9565b34801561062857600080fd5b5061036e60185481565b34801561063e57600080fd5b506103296110e4565b34801561065357600080fd5b5061036e601b5481565b34801561066957600080fd5b5061034b6111a3565b34801561067e57600080fd5b5061032961068d366004612e25565b6111b2565b34801561069e57600080fd5b506102fc6111ff565b3480156106b357600080fd5b506103296106c2366004612e04565b61120e565b3480156106d357600080fd5b506103296106e2366004612e5a565b6112bd565b3480156106f357600080fd5b5060005461036e565b34801561070857600080fd5b50610329610717366004612e25565b611355565b34801561072857600080fd5b5061036e60115481565b34801561073e57600080fd5b5061032961074d366004612f7b565b6113a2565b34801561075e57600080fd5b5061077261076d366004612c69565b6113f3565b6040516102de929190612ff9565b61032961078e366004613028565b61142b565b34801561079f57600080fd5b5061036e600d5481565b3480156107b557600080fd5b506107c96107c4366004612c69565b611876565b6040516102de9291906130c7565b3480156107e357600080fd5b50600b5461034b906001600160a01b031681565b34801561080357600080fd5b5061036e610812366004612e04565b60176020526000908152604090205481565b34801561083057600080fd5b506102fc61083f366004612c69565b6118a4565b34801561085057600080fd5b5060205461036e565b34801561086557600080fd5b50610329610874366004612c69565b611928565b34801561088557600080fd5b5061036e601c5481565b34801561089b57600080fd5b506103296119b4565b3480156108b057600080fd5b506105786108bf3660046130d5565b611b15565b3480156108d057600080fd5b506102d16108df36600461310a565b611c3a565b3480156108f057600080fd5b5061036e600a5481565b34801561090657600080fd5b5061036e60145481565b34801561091c57600080fd5b5060215461036e565b34801561093157600080fd5b50610329610940366004612e04565b611c68565b34801561095157600080fd5b5061036e610960366004612e04565b60196020526000908152604090205481565b34801561097e57600080fd5b5061032961098d366004612c69565b611cc9565b60006001600160e01b031982166380ac58cd60e01b14806109c357506001600160e01b03198216635b5e139f60e01b145b806109de57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546109f390613153565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1f90613153565b8015610a6c5780601f10610a4157610100808354040283529160200191610a6c565b820191906000526020600020905b815481529060010190602001808311610a4f57829003601f168201915b5050505050905090565b33610a7f6111a3565b6001600160a01b031614610aae5760405162461bcd60e51b8152600401610aa5906131af565b60405180910390fd5b601a55565b6000610abe82611d03565b610adb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b0282611049565b9050806001600160a01b0316836001600160a01b031603610b365760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b565750610b548133611c3a565b155b15610b74576040516367d9dca160e11b815260040160405180910390fd5b610b7f838383611d2e565b505050565b33610b8d6111a3565b6001600160a01b031614610bb35760405162461bcd60e51b8152600401610aa5906131af565b601555565b610b7f838383611d8a565b610bcc81611049565b6001600160a01b0316336001600160a01b031614610bfc5760405162461bcd60e51b8152600401610aa5906131dc565b6000601c54600103610c125750620f4240610c8b565b60005b602154811015610c895760218181548110610c3257610c326131ec565b906000526020600020906002020160000154421015610c775760218181548110610c5e57610c5e6131ec565b9060005260206000209060020201600101549150610c89565b80610c8181613218565b915050610c15565b505b60008111610cab5760405162461bcd60e51b8152600401610aa590613259565b6000828152601f60205260409020600181015415610cdb5760405162461bcd60e51b8152600401610aa590613289565b6000620f4240838360020154610cf19190613299565b610cfb91906132ce565b90506000620f4240601b5483610d119190613299565b610d1b91906132ce565b90506000620f4240610d2b611da0565b610d3584866132e2565b610d3f9190613299565b610d4991906132ce565b9050600081610d5884866132e2565b610d6291906132e2565b905082600c6000828254610d7691906132e2565b9250508190555081600e6000828254610d8f91906132e2565b9250508190555080600d6000828254610da891906132e2565b92505081905550610e1b33306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610df1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e159190613304565b89610bb8565b600185810155604051339085156108fc029086906000818181858888f19350505050158015610e4e573d6000803e3d6000fd5b5050505050505050565b33610e616111a3565b6001600160a01b031614610e875760405162461bcd60e51b8152600401610aa5906131af565b601855565b610b7f838383604051806020016040528060008152506113a2565b60086020528160005260406000208181548110610ec357600080fd5b90600052602060002001600091509150505481565b33610ee16111a3565b6001600160a01b031614610f075760405162461bcd60e51b8152600401610aa5906131af565b601e55565b60408051600c8082526101a08201909252606091600091906020820161018080368337019050509050600f5481600081518110610f4b57610f4b6131ec565b60200260200101818152505060105481600181518110610f6d57610f6d6131ec565b60200260200101818152505060155481600281518110610f8f57610f8f6131ec565b60200260200101818152505060115481600481518110610fb157610fb16131ec565b60200260200101818152505060125481600581518110610fd357610fd36131ec565b60200260200101818152505060135481600681518110610ff557610ff56131ec565b60200260200101818152505060145481600781518110611017576110176131ec565b602002602001018181525050600a5481600981518110611039576110396131ec565b6020908102919091010152919050565b600061105482611e1c565b5192915050565b60006001600160a01b038216611084576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b336110b26111a3565b6001600160a01b0316146110d85760405162461bcd60e51b8152600401610aa5906131af565b6110e26000611f36565b565b336110ed6111a3565b6001600160a01b0316146111135760405162461bcd60e51b8152600401610aa5906131af565b600f54600054146111365760405162461bcd60e51b8152600401610aa590613346565b306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611174573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111989190613304565b6001600160a01b0316ff5b6009546001600160a01b031690565b336111bb6111a3565b6001600160a01b0316146111e15760405162461bcd60e51b8152600401610aa5906131af565b601182905560008190036111f9576000190160125550565b60125550565b6060600380546109f390613153565b600b60009054906101000a90046001600160a01b03166001600160a01b03166360755dc76040518163ffffffff1660e01b815260040160006040518083038186803b15801561125c57600080fd5b505afa158015611270573d6000803e3d6000fd5b5050505061127c611f88565b600c805460009182905560405190916001600160a01b0384169183156108fc0291849190818181858888f19350505050158015610b7f573d6000803e3d6000fd5b336001600160a01b038316036112e65760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611349908590612bcf565b60405180910390a35050565b3361135e6111a3565b6001600160a01b0316146113845760405162461bcd60e51b8152600401610aa5906131af565b6013829055600081900361139c576000190160145550565b60145550565b6113ad848484611d8a565b6001600160a01b0383163b151580156113cf57506113cd8484848461202c565b155b156113ed576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6020818154811061140357600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b601e541561144b5760405162461bcd60e51b8152600401610aa590613374565b6000806011544210156114705760405162461bcd60e51b8152600401610aa5906133a7565b6011544210158015611483575060125442105b156114ba576114928789613299565b3410156114b15760405162461bcd60e51b8152600401610aa5906133da565b60019150611541565b60135442101580156114ce57506014544211155b1561152957600a5488146114f45760405162461bcd60e51b8152600401610aa59061340c565b86600a546115029190613299565b3410156115215760405162461bcd60e51b8152600401610aa59061343c565b506001611541565b60405162461bcd60e51b8152600401610aa590613472565b60005b87811015611829576010546000541061156f5760405162461bcd60e51b8152600401610aa5906134a1565b82600103611615576115868a8a8a8a8a8a8a612118565b6016805490600061159683613218565b919050555060155460165411156115bf5760405162461bcd60e51b8152600401610aa5906134cf565b3360009081526017602052604081208054916115da83613218565b90915550506018543360009081526017602052604090205411156116105760405162461bcd60e51b8152600401610aa5906134fe565b611686565b8160010361166e5733600090815260196020526040812080549161163883613218565b9091555050601a543360009081526019602052604090205411156116105760405162461bcd60e51b8152600401610aa59061352d565b60405162461bcd60e51b8152600401610aa590613564565b6000805490506116a98b6001604051806020016040528060008152506000612285565b6001600160a01b038b1660009081526008602090815260408220805460018101825590835290822001829055601b54620f4240906116e7908d613299565b6116f191906132ce565b90506000620f4240611701611da0565b61170b848f6132e2565b6117159190613299565b61171f91906132ce565b905060008161172e848f6132e2565b61173891906132e2565b905082600c600082825461174c9190613574565b9250508190555081600e60008282546117659190613574565b9250508190555080600d600082825461177e9190613574565b925050819055506040518060600160405280888152602001600081526020018e815250601f60008681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050507f10546b1a6f5245ff0ffa18c256b9e46859c585cbb473b453fcd4c2dc39ae08db8e858f8660405161180a949392919061358c565b60405180910390a150505050808061182190613218565b915050611544565b5080600114806118485750600160105461184391906132e2565b600054145b1561186b57601d54600160201b0361186b576118674262093a80613574565b601d555b505050505050505050565b6021818154811061188657600080fd5b60009182526020909120600290910201805460019091015490915082565b60606118af82611d03565b6118cc57604051630a14c4b560e41b815260040160405180910390fd5b60006118d6612426565b905080516000036118f65760405180602001604052806000815250611921565b80611900846124f6565b6040516020016119119291906135ec565b6040516020818303038152906040525b9392505050565b600b60009054906101000a90046001600160a01b03166001600160a01b03166360755dc76040518163ffffffff1660e01b815260040160006040518083038186803b15801561197657600080fd5b505afa15801561198a573d6000803e3d6000fd5b50505050601d5442106119af5760405162461bcd60e51b8152600401610aa59061361f565b601c55565b336119bd6111a3565b6001600160a01b0316146119e35760405162461bcd60e51b8152600401610aa5906131af565b6119eb611f88565b600e5460006119f8611da0565b905060005b602054811015611acb5760008260208381548110611a1d57611a1d6131ec565b90600052602060002090600202016001015485611a3a9190613299565b611a4491906132ce565b905080600e6000828254611a5891906132e2565b90915550506020805483908110611a7157611a716131ec565b600091825260208220600290910201546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015611ab6573d6000803e3d6000fd5b50508080611ac390613218565b9150506119fd565b50600d80546000909155611add6111a3565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156113ed573d6000803e3d6000fd5b6001600160a01b03831660009081526008602052604081205460609190611b3d9085906132e2565b905082811115611b4a5750815b6000816001600160401b03811115611b6457611b64612e8d565b604051908082528060200260200182016040528015611b8d578160200160208202803683370190505b50905060005b84811015611c30576001600160a01b038716600090815260086020526040902054611bbe8783613574565b1015611c30576001600160a01b0387166000908152600860205260409020611be68783613574565b81548110611bf657611bf66131ec565b9060005260206000200154828281518110611c1357611c136131ec565b602090810291909101015280611c2881613218565b915050611b93565b5095945050505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b33611c716111a3565b6001600160a01b031614611c975760405162461bcd60e51b8152600401610aa5906131af565b6001600160a01b038116611cbd5760405162461bcd60e51b8152600401610aa59061362f565b611cc681611f36565b50565b33611cd26111a3565b6001600160a01b031614611cf85760405162461bcd60e51b8152600401610aa5906131af565b600a55565b3b151590565b60008054821080156109de575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611d958383836125f6565b610b7f8383836127ce565b600080805b602054811015611df35760208181548110611dc257611dc26131ec565b90600052602060002090600202016001015482611ddf9190613574565b915080611deb81613218565b915050611da5565b50620f4240811115611e175760405162461bcd60e51b8152600401610aa590613696565b919050565b604080516060810182526000808252602082018190529181019190915281600054811015611f1d57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611f1b5780516001600160a01b031615611eb2579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611f16579392505050565b611eb2565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b602154811015611fea5760218181548110611fa857611fa86131ec565b9060005260206000209060020201600001544211611fd85760405162461bcd60e51b8152600401610aa5906136cd565b80611fe281613218565b915050611f8b565b50601d54421161200c5760405162461bcd60e51b8152600401610aa5906136fd565b601c54156110e25760405162461bcd60e51b8152600401610aa590613731565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612061903390899088908890600401613741565b6020604051808303816000875af192505050801561209c575060408051601f3d908101601f1916820190925261209991810190613790565b60015b6120fa573d8080156120ca576040519150601f19603f3d011682016040523d82523d6000602084013e6120cf565b606091505b5080516000036120f2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60408051808201909152601c81527b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152600061215989898989612931565b9050600082826040516020016121709291906137b4565b6040516020818303038152906040528051906020012090506000600182868989604051600081526020016040526040516121ad94939291906137d3565b6020604051602081039080840390855afa1580156121cf573d6000803e3d6000fd5b505060408051601f19810151600b546305b7633d60e41b835292519094506001600160a01b039092169250635b7633d09160048083019260209291908290030181865afa158015612224573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122489190613304565b6001600160a01b0316816001600160a01b0316146122785760405162461bcd60e51b8152600401610aa59061380a565b5050505050505050505050565b6000546001600160a01b0385166122ae57604051622e076360e81b815260040160405180910390fd5b836000036122cf5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b6001600160401b031990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561237157506001600160a01b0387163b15155b156123e7575b60405182906001600160a01b038916906000906000805160206139ad833981519152908290a46123b0600088848060010195508861202c565b6123cd576040516368d2bf6b60e11b815260040160405180910390fd5b8082036123775782600054146123e257600080fd5b61241a565b5b6040516001830192906001600160a01b038916906000906000805160206139ad833981519152908290a48082036123e8575b506000555b5050505050565b60606000600b60009054906101000a90046001600160a01b03166001600160a01b031663891678566040518163ffffffff1660e01b8152600401600060405180830381865afa15801561247d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124a59190810190613872565b9050806124d0306040516020016124bc9190613900565b60405160208183030381529060405261296a565b6040516020016124e1929190613912565b60405160208183030381529060405291505090565b60608160000361251d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612547578061253181613218565b91506125409050600a836132ce565b9150612521565b6000816001600160401b0381111561256157612561612e8d565b6040519080825280601f01601f19166020018201604052801561258b576020820181803683370190505b5090505b8415612110576125a06001836132e2565b91506125ad600a8661393a565b6125b8906030613574565b60f81b8183815181106125cd576125cd6131ec565b60200101906001600160f81b031916908160001a9053506125ef600a866132ce565b945061258f565b600061260182611e1c565b9050836001600160a01b031681600001516001600160a01b0316146126385760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061265657506126568533611c3a565b8061267157503361266684610ab3565b6001600160a01b0316145b90508061269157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166126b857604051633a954ecd60e21b815260040160405180910390fd5b6126c460008487611d2e565b6001600160a01b03858116600090815260056020908152604080832080546001600160401b03198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661279757600054821461279757805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206139ad83398151915260405160405180910390a461241f565b6001600160a01b038216600090815260086020908152604082208054600181018255908352908220018290555b6001600160a01b0384166000908152600860205260409020548110156113ed576001600160a01b0384166000908152600860205260409020805483919083908110612848576128486131ec565b90600052602060002001540361291f576001600160a01b0384166000908152600860205260409020805461287e906001906132e2565b8154811061288e5761288e6131ec565b906000526020600020015460086000866001600160a01b03166001600160a01b0316815260200190815260200160002082815481106128cf576128cf6131ec565b60009182526020808320909101929092556001600160a01b03861681526008909152604090208054806129045761290461394e565b600190038181906000526020600020016000905590556113ed565b8061292981613218565b9150506127fb565b60008484848460405160200161294a9493929190613970565b604051602081830303815290604052805190602001209050949350505050565b60408051808201909152601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151606091906000906129a5906002613299565b6129b0906002613574565b6001600160401b038111156129c7576129c7612e8d565b6040519080825280601f01601f1916602001820160405280156129f1576020820181803683370190505b509050600360fc1b81600081518110612a0c57612a0c6131ec565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a3b57612a3b6131ec565b60200101906001600160f81b031916908160001a90535060005b8451811015612b7a57826004868381518110612a7357612a736131ec565b016020015182516001600160f81b031990911690911c60f81c908110612a9b57612a9b6131ec565b01602001516001600160f81b03191682612ab6836002613299565b612ac1906002613574565b81518110612ad157612ad16131ec565b60200101906001600160f81b031916908160001a90535082858281518110612afb57612afb6131ec565b602091010151815160f89190911c600f16908110612b1b57612b1b6131ec565b01602001516001600160f81b03191682612b36836002613299565b612b41906003613574565b81518110612b5157612b516131ec565b60200101906001600160f81b031916908160001a90535080612b7281613218565b915050612a55565b509392505050565b6001600160e01b031981165b8114611cc657600080fd5b80356109de81612b82565b600060208284031215612bb957612bb9600080fd5b60006121108484612b99565b8015155b82525050565b602081016109de8284612bc5565b60005b83811015612bf8578181015183820152602001612be0565b838111156113ed5750506000910152565b601f01601f191690565b6000612c1d825190565b808452602084019350612c34818560208601612bdd565b612c3d81612c09565b9093019392505050565b602080825281016119218184612c13565b80612b8e565b80356109de81612c58565b600060208284031215612c7e57612c7e600080fd5b60006121108484612c5e565b6001600160a01b031690565b60006109de82612c8a565b612bc981612c96565b602081016109de8284612ca1565b80612bc9565b602081016109de8284612cb8565b612b8e81612c96565b80356109de81612ccc565b60008060408385031215612cf657612cf6600080fd5b6000612d028585612cd5565b9250506020612d1385828601612c5e565b9150509250929050565b60608101612d2b8286612cb8565b612d386020830185612cb8565b6121106040830184612cb8565b600080600060608486031215612d5d57612d5d600080fd5b6000612d698686612cd5565b9350506020612d7a86828701612cd5565b9250506040612d8b86828701612c5e565b9150509250925092565b612d9f8282612cb8565b5060200190565b60200190565b6000612db6825190565b808452602093840193830160005b82811015612de9578151612dd88782612d95565b965050602082019150600101612dc4565b5093949350505050565b602080825281016119218184612dac565b600060208284031215612e1957612e19600080fd5b60006121108484612cd5565b60008060408385031215612e3b57612e3b600080fd5b6000612d028585612c5e565b801515612b8e565b80356109de81612e47565b60008060408385031215612e7057612e70600080fd5b6000612e7c8585612cd5565b9250506020612d1385828601612e4f565b634e487b7160e01b600052604160045260246000fd5b612eac82612c09565b81018181106001600160401b0382111715612ec957612ec9612e8d565b6040525050565b6000612edb60405190565b9050611e178282612ea3565b60006001600160401b03821115612f0057612f00612e8d565b612f0982612c09565b60200192915050565b82818337506000910152565b6000612f31612f2c84612ee7565b612ed0565b905082815260208101848484011115612f4c57612f4c600080fd5b612b7a848285612f12565b600082601f830112612f6b57612f6b600080fd5b8135612110848260208601612f1e565b60008060008060808587031215612f9457612f94600080fd5b6000612fa08787612cd5565b9450506020612fb187828801612cd5565b9350506040612fc287828801612c5e565b92505060608501356001600160401b03811115612fe157612fe1600080fd5b612fed87828801612f57565b91505092959194509250565b604081016130078285612ca1565b6119216020830184612cb8565b60ff8116612b8e565b80356109de81613014565b600080600080600080600060e0888a03121561304657613046600080fd5b60006130528a8a612cd5565b97505060206130638a828b01612c5e565b96505060406130748a828b01612c5e565b95505060606130858a828b01612c5e565b94505060806130968a828b01612c5e565b93505060a06130a78a828b01612c5e565b92505060c06130b88a828b0161301d565b91505092959891949750929550565b604081016130078285612cb8565b6000806000606084860312156130ed576130ed600080fd5b60006130f98686612cd5565b9350506020612d7a86828701612c5e565b6000806040838503121561312057613120600080fd5b600061312c8585612cd5565b9250506020612d1385828601612cd5565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061316757607f821691505b6020821081036131795761317961313d565b50919050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152612da6565b602080825281016109de8161317f565b60088152602081016726a11d37bbb732b960c11b81529050612da6565b602080825281016109de816131bf565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161322a5761322a613202565b5060010190565b60138152602081017213508e9c99599d5b99081b9bdd08185d985a5b606a1b81529050612da6565b602080825281016109de81613231565b600b8152602081016a13508e9c99599d5b99195960aa1b81529050612da6565b602080825281016109de81613269565b60008160001904831182151516156132b3576132b3613202565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826132dd576132dd6132b8565b500490565b6000828210156132f4576132f4613202565b500390565b80516109de81612ccc565b60006020828403121561331957613319600080fd5b600061211084846132f9565b600c8152602081016b4d423a6e6f7420616c6c6f7760a01b81529050612da6565b602080825281016109de81613325565b60098152602081016813508e9c185d5cd95960ba1b81529050612da6565b602080825281016109de81613356565b600e8152602081016d13508e939bdd081cdd185c9d195960921b81529050612da6565b602080825281016109de81613384565b600e8152602081016d13508e9c1c995cd85b19481d985b60921b81529050612da6565b602080825281016109de816133b7565b600d8152602081016c4d423a6d696e745f707269636560981b81529050612da6565b602080825281016109de816133ea565b600b8152602081016a13508e9cd85b19481d985b60aa1b81529050612da6565b602080825281016109de8161341c565b60118152602081017013508e925b9d985b1a59081c195c9a5bd9607a1b81529050612da6565b602080825281016109de8161344c565b600a815260208101694d423a4e6f206d6f726560b01b81529050612da6565b602080825281016109de81613482565b60098152602081016813508e915e18d9595960ba1b81529050612da6565b602080825281016109de816134b1565b600a815260208101694d423a6164647228412960b01b81529050612da6565b602080825281016109de816134df565b600a815260208101694d423a6164647228422960b01b81529050612da6565b602080825281016109de8161350e565b60128152602081017113508e939bdd081cd85b19481c195c9a5bd960721b81529050612da6565b602080825281016109de8161353d565b6000821982111561358757613587613202565b500190565b6080810161359a8287612ca1565b6135a76020830186612cb8565b6135b46040830185612cb8565b6135c16060830184612cb8565b95945050505050565b60006135d4825190565b6135e2818560208601612bdd565b9290920192915050565b6135f681846135ca565b905061192181836135ca565b6008815260208101674d463a2074696d6560c01b81529050612da6565b602080825281016109de81613602565b602080825281016109de81602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201526564647265737360d01b604082015260600190565b6008815260208101674d423a726174696f60c01b81529050612da6565b602080825281016109de81613679565b6012815260208101714d423a726566756e6420646561646c696e6560701b81529050612da6565b602080825281016109de816136a6565b600b8152602081016a13508e8dd9081b1a5b5a5d60aa1b81529050612da6565b602080825281016109de816136dd565b600f8152602081016e13508e999bdc98d9481c99599d5b99608a1b81529050612da6565b602080825281016109de8161370d565b6080810161374f8287612ca1565b61375c6020830186612ca1565b6137696040830185612cb8565b818103606083015261377b8184612c13565b9695505050505050565b80516109de81612b82565b6000602082840312156137a5576137a5600080fd5b60006121108484613785565b90565b6137be81846135ca565b9050612f098183612cb8565b60ff8116612bc9565b608081016137e18287612cb8565b6135a760208301866137ca565b60078152602081016626a11d39b4b3b760c91b81529050612da6565b602080825281016109de816137ee565b6000613828612f2c84612ee7565b90508281526020810184848401111561384357613843600080fd5b612b7a848285612bdd565b600082601f83011261386257613862600080fd5b815161211084826020860161381a565b60006020828403121561388757613887600080fd5b81516001600160401b038111156138a0576138a0600080fd5b6121108482850161384e565b60006109de6138bd6137b184612c8a565b612c8a565b60006109de826138ac565b60006109de826138c2565b60006109de8260601b90565b60006109de826138d8565b612bc96138fb826138cd565b6138e4565b61390a81836138ef565b601401919050565b61391c81846135ca565b905061392881836135ca565b602f60f81b8152905060018101611921565b600082613949576139496132b8565b500690565b634e487b7160e01b600052603160045260246000fd5b612bc96138fb82612c96565b61397a8186613964565b6014016139878185612cb8565b6020016139948184612cb8565b6020016139a18183612cb8565b60200194935050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e1798fd171fe25f81e7f58af53045c78198932365a46a1206fd80828fec1fef264736f6c634300080e0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.