Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
1086
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Cyberwalkers
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; // ____ _ _ ___ ____ ____ _ _ _ ____ _ _ _ ____ ____ ____ // | \_/ |__] |___ |__/ | | | |__| | |_/ |___ |__/ [__ // |___ | |__] |___ | \ |_|_| | | |___ | \_ |___ | \ ___] /// @title The Cyberwalkers NFT Smart Contract. /// @author The Cyberwalkers NFT project. /// @notice This contract allows users to mint and transfer the Cyberwalkers NFTs. /// @dev The contract inherits from the ERC721 contract. contract Cyberwalkers is ERC721, Pausable, Ownable, ReentrancyGuard { using Counters for Counters.Counter; using Strings for uint256; using SafeMath for uint256; using SafeMath for uint8; /// @dev Maximum elite supply. uint256 public maxEliteSupply; /// @dev Maximum supply. uint256 public maxSaleSupply; /// @dev Maximum supply. uint256 public maxTotalSupply; /// @dev Sale configuration struct. struct SaleConfig { uint256 presaleMintPrice; uint256 publicSaleMintPrice; uint256 eliteSaleStartTime; uint256 presaleStartTime; uint256 publicSaleStartTime; uint256 freeMintStartTime; } /// @dev Sale configuration instance. SaleConfig public saleConfig; /// @dev Max mint per address per profile. uint8 public maxLegendaryPresaleMintPerWallet = 6; uint8 public maxVeteranPresaleMintPerWallet = 5; uint8 public maxRookiePresaleMintPerWallet = 4; uint8 public maxPresaleMintPerWallet = 4; uint8 public maxPublicMintPerWallet = 6; uint8 public maxLegendaryFreeMintPerWallet = 3; uint8 public maxVeteranFreeMintPerWallet = 2; uint8 public maxRookieFreeMintPerWallet = 1; /// @dev Token counter. Counters.Counter private _tokenIdCounter; /// @dev Sale State. bool private saleState; /// @dev Sale Revealed. bool private isRevealed; /// @dev Merke root that contains all the elite addresses. bytes32 private merkleRootElite; /// @dev Merke root that contains all the whitelisted addresses. bytes32 private merkleRootWhitelist; /// @dev Merke root that contains all the free mint addresses. bytes32 private merkleRootLegendary; /// @dev Merke root that contains all the free mint addresses. bytes32 private merkleRootVeteran; /// @dev Merke root that contains all the free mint addresses. bytes32 private merkleRootRookie; /// @dev Mapping of the amount of NFT minted during the elite sale. mapping(address => uint256) private amountMintedElite; /// @dev Mapping of the amount of NFT minted during the presale. mapping(address => uint256) private amountMintedPresale; /// @dev Mapping of the amount of NFT minted during the public sale. mapping(address => uint256) private amountMintedPublic; /// @dev Mapping of the amount of NFT minted during the free mint. mapping(address => uint256) private amountMintedFreeMint; /// @dev Base token URI used as a prefix by tokenURI(). string private baseTokenURI; /// @dev Base token URI used as a suffix by tokenURI(). string private extensionTokenURI; /// @dev Unrevealed toke URI. string private unrevealedTokenURI; constructor() ERC721("Cyberwalkers", "CW") { baseTokenURI = ""; extensionTokenURI = ".json"; unrevealedTokenURI = ""; saleConfig.presaleMintPrice = 0.08 ether; saleConfig.publicSaleMintPrice = 0.1 ether; saleConfig.eliteSaleStartTime = 1665252000; saleConfig.presaleStartTime = 1665338370; saleConfig.publicSaleStartTime = 1665341970; saleConfig.freeMintStartTime = 1665424800; maxEliteSupply = 11; maxSaleSupply = 1601; maxTotalSupply = 2222; isRevealed = false; saleState = true; } /// @dev Modifier used in the mint functions in order to stop/unstop the mint. modifier whenNotLocked() { require(saleState, "Sale is locked."); _; } /// @dev Modifier used in the mint functions in order to avoid contract calls. modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract."); _; } /// @dev Pause the contract. function pause() external onlyOwner { _pause(); } /// @dev Unpause the contract. function unpause() external onlyOwner { _unpause(); } /// @dev Making the token transfer pausable. function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); } /// @dev Elite sale mint. function eliteMint(bytes32[] calldata _merkleProof) external payable whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.eliteSaleStartTime && block.timestamp < config.presaleStartTime, "Elite sale is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId < maxEliteSupply, "Max Elite supply reached"); require(msg.value >= config.publicSaleMintPrice, "Tr. value did not equal the mint price."); require(amountMintedElite[msg.sender] < 1, "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootElite, leaf), "Invalid Elite Merkle Proof."); amountMintedElite[msg.sender] += 1; _tokenIdCounter.increment(); _safeMint(msg.sender, tokenId); } /// @dev Presale mint for whitelisted addresses. function allowlistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) external payable whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.presaleStartTime && block.timestamp < config.publicSaleStartTime, "Presale is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxSaleSupply.add(1), "Max sale supply reached."); require(msg.value >= config.presaleMintPrice.mul(_mintAmount), "Tr. value did not equal the mint price."); require(amountMintedPresale[msg.sender].add(_mintAmount) < maxPresaleMintPerWallet.add(1), "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootWhitelist, leaf), "Invalid Whitelist Merkle Proof."); amountMintedPresale[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Presale mint for legendary addresses. function allowlistMintLegendary(uint256 _mintAmount, bytes32[] calldata _merkleProof) external payable whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.presaleStartTime && block.timestamp < config.publicSaleStartTime, "Presale is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxSaleSupply.add(1), "Max sale supply reached."); require(msg.value >= config.presaleMintPrice.mul(_mintAmount), "Tr. value did not equal the mint price."); require(amountMintedPresale[msg.sender].add(_mintAmount) < maxLegendaryPresaleMintPerWallet.add(1), "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootLegendary, leaf), "Invalid Legendary Merkle Proof."); amountMintedPresale[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Presale mint for veteran addresses. function allowlistMintVeteran(uint256 _mintAmount, bytes32[] calldata _merkleProof) external payable whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.presaleStartTime && block.timestamp < config.publicSaleStartTime, "Presale is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxSaleSupply.add(1), "Max sale supply reached."); require(msg.value >= config.presaleMintPrice.mul(_mintAmount), "Tr. value did not equal the mint price."); require(amountMintedPresale[msg.sender].add(_mintAmount) < maxVeteranPresaleMintPerWallet.add(1), "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootVeteran, leaf), "Invalid Veteran Merkle Proof."); amountMintedPresale[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Presale mint for rookie addresses. function allowlistMintRookie(uint256 _mintAmount, bytes32[] calldata _merkleProof) external payable whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.presaleStartTime && block.timestamp < config.publicSaleStartTime, "Presale is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxSaleSupply.add(1), "Max supply reached."); require(msg.value >= config.presaleMintPrice.mul(_mintAmount), "Tr. value did not equal the mint price."); require(amountMintedPresale[msg.sender].add(_mintAmount) < maxRookiePresaleMintPerWallet.add(1), "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootRookie, leaf), "Invalid Rookie Merkle Proof."); amountMintedPresale[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Public sale mint. function publicSaleMint(uint256 _mintAmount) external payable whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.publicSaleStartTime && block.timestamp < config.freeMintStartTime, "Public sale is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxSaleSupply.add(1), "Max supply reached."); require(msg.value >= config.publicSaleMintPrice.mul(_mintAmount), "Tr. value did not equal the mint price."); require(amountMintedPublic[msg.sender].add(_mintAmount) < maxPublicMintPerWallet.add(1), "You cannot mint that much."); amountMintedPublic[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Free mint for legendary addresses. function freeMintLegendary(uint256 _mintAmount, bytes32[] calldata _merkleProof) external whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.freeMintStartTime, "Free mint is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxTotalSupply.add(1), "Max supply reached."); require(amountMintedFreeMint[msg.sender].add(_mintAmount) < maxLegendaryFreeMintPerWallet.add(1), "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootLegendary, leaf), "Invalid Legendary Merkle Proof."); amountMintedFreeMint[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Free mint for veteran addresses. function freeMintVeteran(uint256 _mintAmount, bytes32[] calldata _merkleProof) external whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.freeMintStartTime, "Free mint is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxTotalSupply.add(1), "Max supply reached."); require(amountMintedFreeMint[msg.sender].add(_mintAmount) < maxVeteranFreeMintPerWallet.add(1), "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootVeteran, leaf), "Invalid Veteran Merkle Proof."); amountMintedFreeMint[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Free mint for rookies addresses. function freeMintRookie(uint256 _mintAmount, bytes32[] calldata _merkleProof) external whenNotLocked callerIsUser { SaleConfig memory config = saleConfig; require(block.timestamp > config.freeMintStartTime, "Free mint is closed."); uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxTotalSupply.add(1), "Max supply reached."); require(amountMintedFreeMint[msg.sender].add(_mintAmount) < maxRookieFreeMintPerWallet.add(1), "You cannot mint that much."); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRootRookie, leaf), "Invalid Rookie Merkle Proof."); amountMintedFreeMint[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Dev mint. function devMint(uint256 _mintAmount) external onlyOwner { uint256 tokenId = _tokenIdCounter.current(); require(tokenId.add(_mintAmount) < maxTotalSupply.add(1), "Max supply reached."); amountMintedPublic[msg.sender] += _mintAmount; for (uint256 i = 0; i < _mintAmount; i++) { uint256 newItemId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, newItemId); } } /// @dev Override the tokenURI to add our a custom base prefix and suffix. function tokenURI(uint256 tokenId) public view override returns (string memory) { _requireMinted(tokenId); if (!isRevealed) { return unrevealedTokenURI; } string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), extensionTokenURI)) : ""; } /// @dev Returns an URI for a given token ID. function _baseURI() internal view override returns (string memory) { return baseTokenURI; } /// @dev Sets the base token URI prefix. function setBaseTokenURI(string memory _baseTokenURI) external onlyOwner { baseTokenURI = _baseTokenURI; } /// @dev Sets the base token URI suffix. function setExtensionTokenURI(string memory _extensionTokenURI) external onlyOwner { extensionTokenURI = _extensionTokenURI; } /// @dev Sets the unrevealed token URI. function setUnrevealedTokenURI(string memory _unrevealedTokenURI) external onlyOwner { unrevealedTokenURI = _unrevealedTokenURI; } /// @dev Sets the isRevealed state. function setRevealed(bool _revealState) external onlyOwner { isRevealed = _revealState; } /// @dev Sets the public sale mint price. function setPublicSaleMintPrice(uint64 _publicSaleMintPrice) external onlyOwner { saleConfig.publicSaleMintPrice = _publicSaleMintPrice; } /// @dev Sets the presale mint price. function setPresaleMintPrice(uint64 _presaleMintPrice) external onlyOwner { saleConfig.presaleMintPrice = _presaleMintPrice; } /// @dev Sets the elite sale date. function setEliteSaleStartTime(uint256 _eliteSaleStartTime) external onlyOwner { saleConfig.eliteSaleStartTime = _eliteSaleStartTime; } /// @dev Sets the presale date. function setPresaleStartTime(uint256 _presaleStartTime) external onlyOwner { saleConfig.presaleStartTime = _presaleStartTime; } /// @dev Sets the public sale date. function setPublicSaleStartTime(uint256 _publicSaleStartTime) external onlyOwner { saleConfig.publicSaleStartTime = _publicSaleStartTime; } /// @dev Sets the free mint date. function setFreeMintStartTime(uint256 _freeMintStartTime) external onlyOwner { saleConfig.freeMintStartTime = _freeMintStartTime; } /// @dev Sets the max presale mint per legendary address allowed. function setMaxLegendaryPresaleMintPerWallet(uint8 _maxLegendaryPresaleMintPerWallet) external onlyOwner { maxLegendaryPresaleMintPerWallet = _maxLegendaryPresaleMintPerWallet; } /// @dev Sets the max presale mint per veteran address allowed. function setMaxVeteranPresaleMintPerWallet(uint8 _maxVeteranPresaleMintPerWallet) external onlyOwner { maxVeteranPresaleMintPerWallet = _maxVeteranPresaleMintPerWallet; } /// @dev Sets the max presale mint per rookie address allowed. function setMaxRookiePresaleMintPerWallet(uint8 _maxRookiePresaleMintPerWallet) external onlyOwner { maxRookiePresaleMintPerWallet = _maxRookiePresaleMintPerWallet; } /// @dev Sets the max presale mint per whitelisted address allowed. function setMaxPresaleMintPerWallet(uint8 _maxPresaleMintPerWallet) external onlyOwner { maxPresaleMintPerWallet = _maxPresaleMintPerWallet; } /// @dev Sets the max public mint per address allowed. function setMaxPublicMintPerWallet(uint8 _maxPublicMintPerWallet) external onlyOwner { maxPublicMintPerWallet = _maxPublicMintPerWallet; } /// @dev Sets the max free mint per legendary address allowed. function setMaxLegendaryFreeMintPerWallet(uint8 _maxLegendaryFreeMintPerWallet) external onlyOwner { maxLegendaryFreeMintPerWallet = _maxLegendaryFreeMintPerWallet; } /// @dev Sets the max free mint per veteran address allowed. function setMaxVeteranFreeMintPerWallet(uint8 _maxVeteranFreeMintPerWallet) external onlyOwner { maxVeteranFreeMintPerWallet = _maxVeteranFreeMintPerWallet; } /// @dev Sets the max free mint per rookie address allowed. function setMaxRookieFreeMintPerWallet(uint8 _maxRookieFreeMintPerWallet) external onlyOwner { maxRookieFreeMintPerWallet = _maxRookieFreeMintPerWallet; } /// @dev Set sale state. function setSaleState(bool _saleState) external onlyOwner { saleState = _saleState; } /// @dev Set the merkle root for elite addresses. function setMerkleRootElite(bytes32 _merkleRootElite) external onlyOwner { merkleRootElite = _merkleRootElite; } /// @dev Set the merkle root for whitelisted addresses. function setMerkleRootWhitelist(bytes32 _merkleRootWhitelist) external onlyOwner { merkleRootWhitelist = _merkleRootWhitelist; } /// @dev Set the merkle root for legendary addresses. function setMerkleRootLegendary(bytes32 _merkleRootLegendary) external onlyOwner { merkleRootLegendary = _merkleRootLegendary; } /// @dev Set the merkle root for veteran addresses. function setMerkleRootVeteran(bytes32 _merkleRootVeteran) external onlyOwner { merkleRootVeteran = _merkleRootVeteran; } /// @dev Set the merkle root for rookie addresses. function setMerkleRootRookie(bytes32 _merkleRootRookie) external onlyOwner { merkleRootRookie = _merkleRootRookie; } /// @dev Set the max elite supply. function setMaxEliteSupply(uint256 _maxEliteSupply) external onlyOwner { require(_maxEliteSupply <= maxSaleSupply, "Elite supply must be lower than the sale supply."); maxEliteSupply = _maxEliteSupply; } /// @dev Set the max sale supply (in case we need to cut the supply). function setMaxSaleSupply(uint256 _maxSaleSupply) external onlyOwner { require(_maxSaleSupply <= maxTotalSupply, "Sale supply must be lower than the total supply."); maxSaleSupply = _maxSaleSupply; } /// @dev Set the max supply (in case we need to cut the supply). function setMaxTotalSupply(uint256 _maxTotalSupply) external onlyOwner { maxTotalSupply = _maxTotalSupply; } /// @dev Get the current total supply. function totalSupply() public view returns (uint256) { return _tokenIdCounter.current(); } /// @dev Withdraw the contract funds to the contract owner. The nonReentrant guard is useless but...safety first ! function withdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.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 (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 (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/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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMintLegendary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMintRookie","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMintVeteran","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"eliteMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"freeMintLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"freeMintRookie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"freeMintVeteran","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxEliteSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLegendaryFreeMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLegendaryPresaleMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxRookieFreeMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxRookiePresaleMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxVeteranFreeMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxVeteranPresaleMintPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","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":"saleConfig","outputs":[{"internalType":"uint256","name":"presaleMintPrice","type":"uint256"},{"internalType":"uint256","name":"publicSaleMintPrice","type":"uint256"},{"internalType":"uint256","name":"eliteSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"presaleStartTime","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"freeMintStartTime","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":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eliteSaleStartTime","type":"uint256"}],"name":"setEliteSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_extensionTokenURI","type":"string"}],"name":"setExtensionTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_freeMintStartTime","type":"uint256"}],"name":"setFreeMintStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxEliteSupply","type":"uint256"}],"name":"setMaxEliteSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxLegendaryFreeMintPerWallet","type":"uint8"}],"name":"setMaxLegendaryFreeMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxLegendaryPresaleMintPerWallet","type":"uint8"}],"name":"setMaxLegendaryPresaleMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxPresaleMintPerWallet","type":"uint8"}],"name":"setMaxPresaleMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxPublicMintPerWallet","type":"uint8"}],"name":"setMaxPublicMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxRookieFreeMintPerWallet","type":"uint8"}],"name":"setMaxRookieFreeMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxRookiePresaleMintPerWallet","type":"uint8"}],"name":"setMaxRookiePresaleMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSaleSupply","type":"uint256"}],"name":"setMaxSaleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTotalSupply","type":"uint256"}],"name":"setMaxTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxVeteranFreeMintPerWallet","type":"uint8"}],"name":"setMaxVeteranFreeMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxVeteranPresaleMintPerWallet","type":"uint8"}],"name":"setMaxVeteranPresaleMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootElite","type":"bytes32"}],"name":"setMerkleRootElite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootLegendary","type":"bytes32"}],"name":"setMerkleRootLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootRookie","type":"bytes32"}],"name":"setMerkleRootRookie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootVeteran","type":"bytes32"}],"name":"setMerkleRootVeteran","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootWhitelist","type":"bytes32"}],"name":"setMerkleRootWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_presaleMintPrice","type":"uint64"}],"name":"setPresaleMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleStartTime","type":"uint256"}],"name":"setPresaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_publicSaleMintPrice","type":"uint64"}],"name":"setPublicSaleMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleStartTime","type":"uint256"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealState","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleState","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedTokenURI","type":"string"}],"name":"setUnrevealedTokenURI","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":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052601180546001600160401b0319166701020306040405061790553480156200002b57600080fd5b50604080518082018252600c81526b437962657277616c6b65727360a01b602080830191825283518085019094526002845261435760f01b9084015281519192916200007a91600091620001d5565b50805162000090906001906020840190620001d5565b50506006805460ff1916905550620000a8336200017b565b6001600755604080516020810191829052600090819052620000cd91601d91620001d5565b5060408051808201909152600580825264173539b7b760d91b6020909201918252620000fc91601e91620001d5565b506040805160208101918290526000908190526200011d91601f91620001d5565b5067011c37937e080000600b90815567016345785d8a0000600c55636341baa0600d556363430c02600e556363431a12600f556363445da06010556008556106416009556108ae600a556013805461ffff19166001179055620002b8565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001e3906200027b565b90600052602060002090601f01602090048101928262000207576000855562000252565b82601f106200022257805160ff191683800117855562000252565b8280016001018555821562000252579182015b828111156200025257825182559160200191906001019062000235565b506200026092915062000264565b5090565b5b8082111562000260576000815560010162000265565b600181811c908216806200029057607f821691505b60208210811415620002b257634e487b7160e01b600052602260045260246000fd5b50919050565b6140a080620002c86000396000f3fe6080604052600436106104055760003560e01c8063702f5a2f11610213578063b29418d511610123578063d3152ebc116100ab578063e985e9c51161007a578063e985e9c514610c0d578063eb00052e14610c56578063ee0795b914610c77578063f2fde38b14610c8a578063f9a9b2f614610caa57600080fd5b8063d3152ebc14610b8d578063dc04f66e14610bad578063de72038514610bcd578063e0a8085314610bed57600080fd5b8063bc2aa6a4116100f2578063bc2aa6a414610aed578063c4e3709514610b0d578063c87b56dd14610b2d578063c87dc7a314610b4d578063d03a12f914610b6d57600080fd5b8063b29418d514610a84578063b3ab66b014610a9a578063b88d4fde14610aad578063b99ba08314610acd57600080fd5b80638456cb59116101a657806390f4a7c91161017557806390f4a7c9146109ef57806395d89b4114610a0f578063a01e906414610a24578063a22cb46514610a44578063aa1906e714610a6457600080fd5b80638456cb591461093d578063857c4b62146109525780638da5cb5b1461097457806390aa0b0f1461099757600080fd5b80637bc9200e116101e25780637bc9200e146108cf5780637ed3328a146108e2578063820de0c5146108fc57806383217ba21461091c57600080fd5b8063702f5a2f1461085a57806370a082311461087a578063715018a61461089a5780637a58c0ae146108af57600080fd5b80632ab4d0521161031957806342842e0e116102a157806364198b291161027057806364198b29146107ba57806364760fd9146107da57806365aca0c2146107fb5780636a71c8571461081b5780636d5d40c61461083a57600080fd5b806342842e0e1461073f5780634c05a2ba1461075f5780635c975abb146107825780636352211e1461079a57600080fd5b8063375a069a116102e8578063375a069a146106bf5780633c44d5b5146106df5780633ccfd60b146106f55780633f3e4c111461070a5780633f4ba83a1461072a57600080fd5b80632ab4d052146106495780632eca36121461065f57806330176e131461067f578063360bede81461069f57600080fd5b806315a8ebb11161039c578063206514801161036b57806320651480146105c357806320fd712d146105d657806323b872dd146105e9578063296cab551461060957806329ca194a1461062957600080fd5b806315a8ebb11461052e578063181606511461054e57806318160ddd146105805780631841ff1b146105a357600080fd5b8063095ea7b3116103d8578063095ea7b3146104ae5780630a8f0955146104ce57806310ddba56146104ee578063157ce8a51461050e57600080fd5b8063014571881461040a57806301ffc9a71461041f57806306fdde0314610454578063081812fc14610476575b600080fd5b61041d6104183660046137dd565b610cca565b005b34801561042b57600080fd5b5061043f61043a366004613835565b610f4a565b60405190151581526020015b60405180910390f35b34801561046057600080fd5b50610469610f9c565b60405161044b91906138aa565b34801561048257600080fd5b506104966104913660046138bd565b61102e565b6040516001600160a01b03909116815260200161044b565b3480156104ba57600080fd5b5061041d6104c93660046138f2565b611055565b3480156104da57600080fd5b5061041d6104e936600461391c565b61116b565b3480156104fa57600080fd5b5061041d610509366004613946565b611182565b34801561051a57600080fd5b5061041d6105293660046138bd565b6111aa565b34801561053a57600080fd5b5061041d6105493660046138bd565b6111b7565b34801561055a57600080fd5b5060115461056e9062010000900460ff1681565b60405160ff909116815260200161044b565b34801561058c57600080fd5b506105956111c4565b60405190815260200161044b565b3480156105af57600080fd5b5061041d6105be366004613946565b6111d4565b61041d6105d1366004613969565b6111fa565b61041d6105e4366004613969565b611482565b3480156105f557600080fd5b5061041d6106043660046139b5565b611707565b34801561061557600080fd5b5061041d6106243660046138bd565b611738565b34801561063557600080fd5b5061041d61064436600461391c565b611745565b34801561065557600080fd5b50610595600a5481565b34801561066b57600080fd5b5061041d61067a366004613946565b61175c565b34801561068b57600080fd5b5061041d61069a366004613a7d565b611787565b3480156106ab57600080fd5b5061041d6106ba3660046138bd565b6117a6565b3480156106cb57600080fd5b5061041d6106da3660046138bd565b6117b3565b3480156106eb57600080fd5b5061059560085481565b34801561070157600080fd5b5061041d611866565b34801561071657600080fd5b5061041d6107253660046138bd565b611959565b34801561073657600080fd5b5061041d611966565b34801561074b57600080fd5b5061041d61075a3660046139b5565b611978565b34801561076b57600080fd5b5060115461056e9065010000000000900460ff1681565b34801561078e57600080fd5b5060065460ff1661043f565b3480156107a657600080fd5b506104966107b53660046138bd565b611993565b3480156107c657600080fd5b5061041d6107d5366004613946565b6119f3565b3480156107e657600080fd5b5060115461056e90600160381b900460ff1681565b34801561080757600080fd5b5061041d6108163660046138bd565b611a17565b34801561082757600080fd5b5060115461056e90610100900460ff1681565b34801561084657600080fd5b5061041d6108553660046138bd565b611a24565b34801561086657600080fd5b5061041d610875366004613969565b611a31565b34801561088657600080fd5b50610595610895366004613ac6565b611c7d565b3480156108a657600080fd5b5061041d611d03565b3480156108bb57600080fd5b5061041d6108ca3660046138bd565b611d15565b61041d6108dd366004613969565b611d22565b3480156108ee57600080fd5b5060115461056e9060ff1681565b34801561090857600080fd5b5061041d610917366004613a7d565b611fa8565b34801561092857600080fd5b5060115461056e906301000000900460ff1681565b34801561094957600080fd5b5061041d611fc3565b34801561095e57600080fd5b5060115461056e90640100000000900460ff1681565b34801561098057600080fd5b5060065461010090046001600160a01b0316610496565b3480156109a357600080fd5b50600b54600c54600d54600e54600f546010546109c295949392919086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161044b565b3480156109fb57600080fd5b5061041d610a0a366004613969565b611fd3565b348015610a1b57600080fd5b5061046961221f565b348015610a3057600080fd5b5061041d610a3f3660046138bd565b61222e565b348015610a5057600080fd5b5061041d610a5f366004613af1565b61223b565b348015610a7057600080fd5b5061041d610a7f3660046138bd565b612246565b348015610a9057600080fd5b5061059560095481565b61041d610aa83660046138bd565b6122be565b348015610ab957600080fd5b5061041d610ac8366004613b24565b6124bf565b348015610ad957600080fd5b5061041d610ae8366004613946565b6124f1565b348015610af957600080fd5b5061041d610b083660046138bd565b61251d565b348015610b1957600080fd5b5061041d610b28366004613ba0565b612595565b348015610b3957600080fd5b50610469610b483660046138bd565b6125b0565b348015610b5957600080fd5b5061041d610b68366004613946565b6126bb565b348015610b7957600080fd5b5061041d610b88366004613946565b6126e5565b348015610b9957600080fd5b5061041d610ba8366004613a7d565b612711565b348015610bb957600080fd5b5061041d610bc8366004613969565b61272c565b348015610bd957600080fd5b5061041d610be83660046138bd565b61297a565b348015610bf957600080fd5b5061041d610c08366004613ba0565b612987565b348015610c1957600080fd5b5061043f610c28366004613bbb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c6257600080fd5b5060115461056e90600160301b900460ff1681565b61041d610c85366004613969565b6129a9565b348015610c9657600080fd5b5061041d610ca5366004613ac6565b612c2d565b348015610cb657600080fd5b5061041d610cc5366004613946565b612ca6565b60135460ff16610cf55760405162461bcd60e51b8152600401610cec90613be5565b60405180910390fd5b323314610d145760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d54918101829052600e546060820152600f54608082015260105460a08201529042118015610d5e5750806060015142105b610da25760405162461bcd60e51b815260206004820152601560248201527422b634ba329039b0b6329034b99031b637b9b2b21760591b6044820152606401610cec565b6000610dad60125490565b90506008548110610e005760405162461bcd60e51b815260206004820152601860248201527f4d617820456c69746520737570706c79207265616368656400000000000000006044820152606401610cec565b8160200151341015610e245760405162461bcd60e51b8152600401610cec90613c45565b33600090815260196020526040902054600111610e535760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001610e669190613cc3565b604051602081830303815290604052805190602001209050610ebf858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014549150849050612cc4565b610f0b5760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420456c697465204d65726b6c652050726f6f662e00000000006044820152606401610cec565b336000908152601960205260408120805460019290610f2b908490613cf6565b9091555050601280546001019055610f433383612cda565b5050505050565b60006001600160e01b031982166380ac58cd60e01b1480610f7b57506001600160e01b03198216635b5e139f60e01b145b80610f9657506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610fab90613d0e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd790613d0e565b80156110245780601f10610ff957610100808354040283529160200191611024565b820191906000526020600020905b81548152906001019060200180831161100757829003601f168201915b5050505050905090565b600061103982612cf4565b506000908152600460205260409020546001600160a01b031690565b600061106082611993565b9050806001600160a01b0316836001600160a01b031614156110ce5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cec565b336001600160a01b03821614806110ea57506110ea8133610c28565b61115c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610cec565b6111668383612d53565b505050565b611173612dc1565b67ffffffffffffffff16600c55565b61118a612dc1565b6011805460ff90921663010000000263ff00000019909216919091179055565b6111b2612dc1565b601055565b6111bf612dc1565b601655565b60006111cf60125490565b905090565b6111dc612dc1565b6011805460ff909216620100000262ff000019909216919091179055565b60135460ff1661121c5760405162461bcd60e51b8152600401610cec90613be5565b32331461123b5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a0830152421180156112875750806080015142105b6112a35760405162461bcd60e51b8152600401610cec90613d49565b60006112ae60125490565b6009549091506112bf906001612e21565b6112c98287612e21565b106112e65760405162461bcd60e51b8152600401610cec90613d75565b81516112f29086612e2d565b3410156113115760405162461bcd60e51b8152600401610cec90613c45565b6011546113229060ff166001612e21565b336000908152601a602052604090205461133c9087612e21565b106113595760405162461bcd60e51b8152600401610cec90613c8c565b60003360405160200161136c9190613cc3565b6040516020818303038152906040528051906020012090506113c5858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506016549150849050612cc4565b6114115760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964204c6567656e64617279204d65726b6c652050726f6f662e006044820152606401610cec565b336000908152601a602052604081208054889290611430908490613cf6565b90915550600090505b8681101561147957600061144c60125490565b905061145c601280546001019055565b6114663382612cda565b508061147181613dac565b915050611439565b50505050505050565b60135460ff166114a45760405162461bcd60e51b8152600401610cec90613be5565b3233146114c35760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a08301524211801561150f5750806080015142105b61152b5760405162461bcd60e51b8152600401610cec90613d49565b600061153660125490565b600954909150611547906001612e21565b6115518287612e21565b1061156e5760405162461bcd60e51b8152600401610cec90613dc7565b815161157a9086612e2d565b3410156115995760405162461bcd60e51b8152600401610cec90613c45565b6011546115b09062010000900460ff166001612e21565b336000908152601a60205260409020546115ca9087612e21565b106115e75760405162461bcd60e51b8152600401610cec90613c8c565b6000336040516020016115fa9190613cc3565b604051602081830303815290604052805190602001209050611653858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018549150849050612cc4565b61169f5760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420526f6f6b6965204d65726b6c652050726f6f662e000000006044820152606401610cec565b336000908152601a6020526040812080548892906116be908490613cf6565b90915550600090505b868110156114795760006116da60125490565b90506116ea601280546001019055565b6116f43382612cda565b50806116ff81613dac565b9150506116c7565b6117113382612e39565b61172d5760405162461bcd60e51b8152600401610cec90613df4565b611166838383612eb8565b611740612dc1565b600e55565b61174d612dc1565b67ffffffffffffffff16600b55565b611764612dc1565b6011805460ff909216600160301b0266ff00000000000019909216919091179055565b61178f612dc1565b80516117a290601d9060208401906136f8565b5050565b6117ae612dc1565b601555565b6117bb612dc1565b60006117c660125490565b600a549091506117d7906001612e21565b6117e18284612e21565b106117fe5760405162461bcd60e51b8152600401610cec90613dc7565b336000908152601b60205260408120805484929061181d908490613cf6565b90915550600090505b8281101561116657600061183960125490565b9050611849601280546001019055565b6118533382612cda565b508061185e81613dac565b915050611826565b61186e612dc1565b600260075414156118c15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cec565b6002600755604051600090339047908381818185875af1925050503d8060008114611908576040519150601f19603f3d011682016040523d82523d6000602084013e61190d565b606091505b50509050806119515760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610cec565b506001600755565b611961612dc1565b600a55565b61196e612dc1565b61197661305f565b565b611166838383604051806020016040528060008152506124bf565b6000818152600260205260408120546001600160a01b031680610f965760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cec565b6119fb612dc1565b6011805460ff9092166101000261ff0019909216919091179055565b611a1f612dc1565b601855565b611a2c612dc1565b600f55565b60135460ff16611a535760405162461bcd60e51b8152600401610cec90613be5565b323314611a725760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f54608082015260105460a082018190524211611acb5760405162461bcd60e51b8152600401610cec90613e42565b6000611ad660125490565b600a54909150611ae7906001612e21565b611af18287612e21565b10611b0e5760405162461bcd60e51b8152600401610cec90613dc7565b601154611b2690600160381b900460ff166001612e21565b336000908152601c6020526040902054611b409087612e21565b10611b5d5760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001611b709190613cc3565b604051602081830303815290604052805190602001209050611bc9858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018549150849050612cc4565b611c155760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420526f6f6b6965204d65726b6c652050726f6f662e000000006044820152606401610cec565b336000908152601c602052604081208054889290611c34908490613cf6565b90915550600090505b86811015611479576000611c5060125490565b9050611c60601280546001019055565b611c6a3382612cda565b5080611c7581613dac565b915050611c3d565b60006001600160a01b038216611ce75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610cec565b506001600160a01b031660009081526003602052604090205490565b611d0b612dc1565b61197660006130b1565b611d1d612dc1565b601755565b60135460ff16611d445760405162461bcd60e51b8152600401610cec90613be5565b323314611d635760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a083015242118015611daf5750806080015142105b611dcb5760405162461bcd60e51b8152600401610cec90613d49565b6000611dd660125490565b600954909150611de7906001612e21565b611df18287612e21565b10611e0e5760405162461bcd60e51b8152600401610cec90613d75565b8151611e1a9086612e2d565b341015611e395760405162461bcd60e51b8152600401610cec90613c45565b601154611e51906301000000900460ff166001612e21565b336000908152601a6020526040902054611e6b9087612e21565b10611e885760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001611e9b9190613cc3565b604051602081830303815290604052805190602001209050611ef4858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015549150849050612cc4565b611f405760405162461bcd60e51b815260206004820152601f60248201527f496e76616c69642057686974656c697374204d65726b6c652050726f6f662e006044820152606401610cec565b336000908152601a602052604081208054889290611f5f908490613cf6565b90915550600090505b86811015611479576000611f7b60125490565b9050611f8b601280546001019055565b611f953382612cda565b5080611fa081613dac565b915050611f68565b611fb0612dc1565b80516117a290601f9060208401906136f8565b611fcb612dc1565b61197661310b565b60135460ff16611ff55760405162461bcd60e51b8152600401610cec90613be5565b3233146120145760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f54608082015260105460a08201819052421161206d5760405162461bcd60e51b8152600401610cec90613e42565b600061207860125490565b600a54909150612089906001612e21565b6120938287612e21565b106120b05760405162461bcd60e51b8152600401610cec90613dc7565b6011546120c890600160301b900460ff166001612e21565b336000908152601c60205260409020546120e29087612e21565b106120ff5760405162461bcd60e51b8152600401610cec90613c8c565b6000336040516020016121129190613cc3565b60405160208183030381529060405280519060200120905061216b858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017549150849050612cc4565b6121b75760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964205665746572616e204d65726b6c652050726f6f662e0000006044820152606401610cec565b336000908152601c6020526040812080548892906121d6908490613cf6565b90915550600090505b868110156114795760006121f260125490565b9050612202601280546001019055565b61220c3382612cda565b508061221781613dac565b9150506121df565b606060018054610fab90613d0e565b612236612dc1565b601455565b6117a2338383613148565b61224e612dc1565b600a548111156122b95760405162461bcd60e51b815260206004820152603060248201527f53616c6520737570706c79206d757374206265206c6f776572207468616e207460448201526f3432903a37ba30b61039bab838363c9760811b6064820152608401610cec565b600955565b60135460ff166122e05760405162461bcd60e51b8152600401610cec90613be5565b3233146122ff5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f546080820181905260105460a08301524211801561234b57508060a0015142105b6123905760405162461bcd60e51b8152602060048201526016602482015275283ab13634b19039b0b6329034b99031b637b9b2b21760511b6044820152606401610cec565b600061239b60125490565b6009549091506123ac906001612e21565b6123b68285612e21565b106123d35760405162461bcd60e51b8152600401610cec90613dc7565b60208201516123e29084612e2d565b3410156124015760405162461bcd60e51b8152600401610cec90613c45565b60115461241a90640100000000900460ff166001612e21565b336000908152601b60205260409020546124349085612e21565b106124515760405162461bcd60e51b8152600401610cec90613c8c565b336000908152601b602052604081208054859290612470908490613cf6565b90915550600090505b838110156124b957600061248c60125490565b905061249c601280546001019055565b6124a63382612cda565b50806124b181613dac565b915050612479565b50505050565b6124c93383612e39565b6124e55760405162461bcd60e51b8152600401610cec90613df4565b6124b984848484613217565b6124f9612dc1565b6011805460ff909216650100000000000265ff000000000019909216919091179055565b612525612dc1565b6009548111156125905760405162461bcd60e51b815260206004820152603060248201527f456c69746520737570706c79206d757374206265206c6f776572207468616e2060448201526f3a34329039b0b6329039bab838363c9760811b6064820152608401610cec565b600855565b61259d612dc1565b6013805460ff1916911515919091179055565b60606125bb82612cf4565b601354610100900460ff1661265c57601f80546125d790613d0e565b80601f016020809104026020016040519081016040528092919081815260200182805461260390613d0e565b80156126505780601f1061262557610100808354040283529160200191612650565b820191906000526020600020905b81548152906001019060200180831161263357829003601f168201915b50505050509050919050565b600061266661324a565b9050600081511161268657604051806020016040528060008152506126b4565b8061269084613259565b601e6040516020016126a493929190613e70565b6040516020818303038152906040525b9392505050565b6126c3612dc1565b6011805460ff9092166401000000000264ff0000000019909216919091179055565b6126ed612dc1565b6011805460ff909216600160381b0267ff0000000000000019909216919091179055565b612719612dc1565b80516117a290601e9060208401906136f8565b60135460ff1661274e5760405162461bcd60e51b8152600401610cec90613be5565b32331461276d5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f54608082015260105460a0820181905242116127c65760405162461bcd60e51b8152600401610cec90613e42565b60006127d160125490565b600a549091506127e2906001612e21565b6127ec8287612e21565b106128095760405162461bcd60e51b8152600401610cec90613dc7565b6011546128239065010000000000900460ff166001612e21565b336000908152601c602052604090205461283d9087612e21565b1061285a5760405162461bcd60e51b8152600401610cec90613c8c565b60003360405160200161286d9190613cc3565b6040516020818303038152906040528051906020012090506128c6858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506016549150849050612cc4565b6129125760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964204c6567656e64617279204d65726b6c652050726f6f662e006044820152606401610cec565b336000908152601c602052604081208054889290612931908490613cf6565b90915550600090505b8681101561147957600061294d60125490565b905061295d601280546001019055565b6129673382612cda565b508061297281613dac565b91505061293a565b612982612dc1565b600d55565b61298f612dc1565b601380549115156101000261ff0019909216919091179055565b60135460ff166129cb5760405162461bcd60e51b8152600401610cec90613be5565b3233146129ea5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a083015242118015612a365750806080015142105b612a525760405162461bcd60e51b8152600401610cec90613d49565b6000612a5d60125490565b600954909150612a6e906001612e21565b612a788287612e21565b10612a955760405162461bcd60e51b8152600401610cec90613d75565b8151612aa19086612e2d565b341015612ac05760405162461bcd60e51b8152600401610cec90613c45565b601154612ad690610100900460ff166001612e21565b336000908152601a6020526040902054612af09087612e21565b10612b0d5760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001612b209190613cc3565b604051602081830303815290604052805190602001209050612b79858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017549150849050612cc4565b612bc55760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964205665746572616e204d65726b6c652050726f6f662e0000006044820152606401610cec565b336000908152601a602052604081208054889290612be4908490613cf6565b90915550600090505b86811015611479576000612c0060125490565b9050612c10601280546001019055565b612c1a3382612cda565b5080612c2581613dac565b915050612bed565b612c35612dc1565b6001600160a01b038116612c9a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cec565b612ca3816130b1565b50565b612cae612dc1565b6011805460ff191660ff92909216919091179055565b600082612cd18584613357565b14949350505050565b6117a28282604051806020016040528060008152506133a4565b6000818152600260205260409020546001600160a01b0316612ca35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cec565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d8882611993565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b036101009091041633146119765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cec565b60006126b48284613cf6565b60006126b48284613f34565b600080612e4583611993565b9050806001600160a01b0316846001600160a01b03161480612e8c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612eb05750836001600160a01b0316612ea58461102e565b6001600160a01b0316145b949350505050565b826001600160a01b0316612ecb82611993565b6001600160a01b031614612f2f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610cec565b6001600160a01b038216612f915760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cec565b612f9c8383836133d7565b612fa7600082612d53565b6001600160a01b0383166000908152600360205260408120805460019290612fd0908490613f53565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ffe908490613cf6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6130676133df565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613113613428565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130943390565b816001600160a01b0316836001600160a01b031614156131aa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cec565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613222848484612eb8565b61322e8484848461346e565b6124b95760405162461bcd60e51b8152600401610cec90613f6a565b6060601d8054610fab90613d0e565b60608161327d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156132a7578061329181613dac565b91506132a09050600a83613fd2565b9150613281565b60008167ffffffffffffffff8111156132c2576132c26139f1565b6040519080825280601f01601f1916602001820160405280156132ec576020820181803683370190505b5090505b8415612eb057613301600183613f53565b915061330e600a86613fe6565b613319906030613cf6565b60f81b81838151811061332e5761332e613ffa565b60200101906001600160f81b031916908160001a905350613350600a86613fd2565b94506132f0565b600081815b845181101561339c576133888286838151811061337b5761337b613ffa565b602002602001015161357b565b91508061339481613dac565b91505061335c565b509392505050565b6133ae83836135aa565b6133bb600084848461346e565b6111665760405162461bcd60e51b8152600401610cec90613f6a565b611166613428565b60065460ff166119765760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cec565b60065460ff16156119765760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cec565b60006001600160a01b0384163b1561357057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134b2903390899088908890600401614010565b602060405180830381600087803b1580156134cc57600080fd5b505af19250505080156134fc575060408051601f3d908101601f191682019092526134f99181019061404d565b60015b613556573d80801561352a576040519150601f19603f3d011682016040523d82523d6000602084013e61352f565b606091505b50805161354e5760405162461bcd60e51b8152600401610cec90613f6a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612eb0565b506001949350505050565b60008183106135975760008281526020849052604090206126b4565b60008381526020839052604090206126b4565b6001600160a01b0382166136005760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cec565b6000818152600260205260409020546001600160a01b0316156136655760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cec565b613671600083836133d7565b6001600160a01b038216600090815260036020526040812080546001929061369a908490613cf6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461370490613d0e565b90600052602060002090601f016020900481019282613726576000855561376c565b82601f1061373f57805160ff191683800117855561376c565b8280016001018555821561376c579182015b8281111561376c578251825591602001919060010190613751565b5061377892915061377c565b5090565b5b80821115613778576000815560010161377d565b60008083601f8401126137a357600080fd5b50813567ffffffffffffffff8111156137bb57600080fd5b6020830191508360208260051b85010111156137d657600080fd5b9250929050565b600080602083850312156137f057600080fd5b823567ffffffffffffffff81111561380757600080fd5b61381385828601613791565b90969095509350505050565b6001600160e01b031981168114612ca357600080fd5b60006020828403121561384757600080fd5b81356126b48161381f565b60005b8381101561386d578181015183820152602001613855565b838111156124b95750506000910152565b60008151808452613896816020860160208601613852565b601f01601f19169290920160200192915050565b6020815260006126b4602083018461387e565b6000602082840312156138cf57600080fd5b5035919050565b80356001600160a01b03811681146138ed57600080fd5b919050565b6000806040838503121561390557600080fd5b61390e836138d6565b946020939093013593505050565b60006020828403121561392e57600080fd5b813567ffffffffffffffff811681146126b457600080fd5b60006020828403121561395857600080fd5b813560ff811681146126b457600080fd5b60008060006040848603121561397e57600080fd5b83359250602084013567ffffffffffffffff81111561399c57600080fd5b6139a886828701613791565b9497909650939450505050565b6000806000606084860312156139ca57600080fd5b6139d3846138d6565b92506139e1602085016138d6565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613a2257613a226139f1565b604051601f8501601f19908116603f01168101908282118183101715613a4a57613a4a6139f1565b81604052809350858152868686011115613a6357600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613a8f57600080fd5b813567ffffffffffffffff811115613aa657600080fd5b8201601f81018413613ab757600080fd5b612eb084823560208401613a07565b600060208284031215613ad857600080fd5b6126b4826138d6565b803580151581146138ed57600080fd5b60008060408385031215613b0457600080fd5b613b0d836138d6565b9150613b1b60208401613ae1565b90509250929050565b60008060008060808587031215613b3a57600080fd5b613b43856138d6565b9350613b51602086016138d6565b925060408501359150606085013567ffffffffffffffff811115613b7457600080fd5b8501601f81018713613b8557600080fd5b613b9487823560208401613a07565b91505092959194509250565b600060208284031215613bb257600080fd5b6126b482613ae1565b60008060408385031215613bce57600080fd5b613bd7836138d6565b9150613b1b602084016138d6565b6020808252600f908201526e29b0b6329034b9903637b1b5b2b21760891b604082015260600190565b6020808252601f908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604082015260600190565b60208082526027908201527f54722e2076616c756520646964206e6f7420657175616c20746865206d696e7460408201526610383934b1b29760c91b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686174206d7563682e000000000000604082015260600190565b60609190911b6bffffffffffffffffffffffff1916815260140190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613d0957613d09613ce0565b500190565b600181811c90821680613d2257607f821691505b60208210811415613d4357634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260129082015271283932b9b0b6329034b99031b637b9b2b21760711b604082015260600190565b60208082526018908201527f4d61782073616c6520737570706c7920726561636865642e0000000000000000604082015260600190565b6000600019821415613dc057613dc0613ce0565b5060010190565b60208082526013908201527226b0bc1039bab838363c903932b0b1b432b21760691b604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b602080825260149082015273233932b29036b4b73a1034b99031b637b9b2b21760611b604082015260600190565b600084516020613e838285838a01613852565b855191840191613e968184848a01613852565b8554920191600090600181811c9080831680613eb357607f831692505b858310811415613ed157634e487b7160e01b85526022600452602485fd5b808015613ee55760018114613ef657613f23565b60ff19851688528388019550613f23565b60008b81526020902060005b85811015613f1b5781548a820152908401908801613f02565b505083880195505b50939b9a5050505050505050505050565b6000816000190483118215151615613f4e57613f4e613ce0565b500290565b600082821015613f6557613f65613ce0565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613fe157613fe1613fbc565b500490565b600082613ff557613ff5613fbc565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140439083018461387e565b9695505050505050565b60006020828403121561405f57600080fd5b81516126b48161381f56fea26469706673582212208aa064e6f369f137f0598247d5fae845f5c750f9000cd58ac38a203a7397857664736f6c63430008090033
Deployed Bytecode
0x6080604052600436106104055760003560e01c8063702f5a2f11610213578063b29418d511610123578063d3152ebc116100ab578063e985e9c51161007a578063e985e9c514610c0d578063eb00052e14610c56578063ee0795b914610c77578063f2fde38b14610c8a578063f9a9b2f614610caa57600080fd5b8063d3152ebc14610b8d578063dc04f66e14610bad578063de72038514610bcd578063e0a8085314610bed57600080fd5b8063bc2aa6a4116100f2578063bc2aa6a414610aed578063c4e3709514610b0d578063c87b56dd14610b2d578063c87dc7a314610b4d578063d03a12f914610b6d57600080fd5b8063b29418d514610a84578063b3ab66b014610a9a578063b88d4fde14610aad578063b99ba08314610acd57600080fd5b80638456cb59116101a657806390f4a7c91161017557806390f4a7c9146109ef57806395d89b4114610a0f578063a01e906414610a24578063a22cb46514610a44578063aa1906e714610a6457600080fd5b80638456cb591461093d578063857c4b62146109525780638da5cb5b1461097457806390aa0b0f1461099757600080fd5b80637bc9200e116101e25780637bc9200e146108cf5780637ed3328a146108e2578063820de0c5146108fc57806383217ba21461091c57600080fd5b8063702f5a2f1461085a57806370a082311461087a578063715018a61461089a5780637a58c0ae146108af57600080fd5b80632ab4d0521161031957806342842e0e116102a157806364198b291161027057806364198b29146107ba57806364760fd9146107da57806365aca0c2146107fb5780636a71c8571461081b5780636d5d40c61461083a57600080fd5b806342842e0e1461073f5780634c05a2ba1461075f5780635c975abb146107825780636352211e1461079a57600080fd5b8063375a069a116102e8578063375a069a146106bf5780633c44d5b5146106df5780633ccfd60b146106f55780633f3e4c111461070a5780633f4ba83a1461072a57600080fd5b80632ab4d052146106495780632eca36121461065f57806330176e131461067f578063360bede81461069f57600080fd5b806315a8ebb11161039c578063206514801161036b57806320651480146105c357806320fd712d146105d657806323b872dd146105e9578063296cab551461060957806329ca194a1461062957600080fd5b806315a8ebb11461052e578063181606511461054e57806318160ddd146105805780631841ff1b146105a357600080fd5b8063095ea7b3116103d8578063095ea7b3146104ae5780630a8f0955146104ce57806310ddba56146104ee578063157ce8a51461050e57600080fd5b8063014571881461040a57806301ffc9a71461041f57806306fdde0314610454578063081812fc14610476575b600080fd5b61041d6104183660046137dd565b610cca565b005b34801561042b57600080fd5b5061043f61043a366004613835565b610f4a565b60405190151581526020015b60405180910390f35b34801561046057600080fd5b50610469610f9c565b60405161044b91906138aa565b34801561048257600080fd5b506104966104913660046138bd565b61102e565b6040516001600160a01b03909116815260200161044b565b3480156104ba57600080fd5b5061041d6104c93660046138f2565b611055565b3480156104da57600080fd5b5061041d6104e936600461391c565b61116b565b3480156104fa57600080fd5b5061041d610509366004613946565b611182565b34801561051a57600080fd5b5061041d6105293660046138bd565b6111aa565b34801561053a57600080fd5b5061041d6105493660046138bd565b6111b7565b34801561055a57600080fd5b5060115461056e9062010000900460ff1681565b60405160ff909116815260200161044b565b34801561058c57600080fd5b506105956111c4565b60405190815260200161044b565b3480156105af57600080fd5b5061041d6105be366004613946565b6111d4565b61041d6105d1366004613969565b6111fa565b61041d6105e4366004613969565b611482565b3480156105f557600080fd5b5061041d6106043660046139b5565b611707565b34801561061557600080fd5b5061041d6106243660046138bd565b611738565b34801561063557600080fd5b5061041d61064436600461391c565b611745565b34801561065557600080fd5b50610595600a5481565b34801561066b57600080fd5b5061041d61067a366004613946565b61175c565b34801561068b57600080fd5b5061041d61069a366004613a7d565b611787565b3480156106ab57600080fd5b5061041d6106ba3660046138bd565b6117a6565b3480156106cb57600080fd5b5061041d6106da3660046138bd565b6117b3565b3480156106eb57600080fd5b5061059560085481565b34801561070157600080fd5b5061041d611866565b34801561071657600080fd5b5061041d6107253660046138bd565b611959565b34801561073657600080fd5b5061041d611966565b34801561074b57600080fd5b5061041d61075a3660046139b5565b611978565b34801561076b57600080fd5b5060115461056e9065010000000000900460ff1681565b34801561078e57600080fd5b5060065460ff1661043f565b3480156107a657600080fd5b506104966107b53660046138bd565b611993565b3480156107c657600080fd5b5061041d6107d5366004613946565b6119f3565b3480156107e657600080fd5b5060115461056e90600160381b900460ff1681565b34801561080757600080fd5b5061041d6108163660046138bd565b611a17565b34801561082757600080fd5b5060115461056e90610100900460ff1681565b34801561084657600080fd5b5061041d6108553660046138bd565b611a24565b34801561086657600080fd5b5061041d610875366004613969565b611a31565b34801561088657600080fd5b50610595610895366004613ac6565b611c7d565b3480156108a657600080fd5b5061041d611d03565b3480156108bb57600080fd5b5061041d6108ca3660046138bd565b611d15565b61041d6108dd366004613969565b611d22565b3480156108ee57600080fd5b5060115461056e9060ff1681565b34801561090857600080fd5b5061041d610917366004613a7d565b611fa8565b34801561092857600080fd5b5060115461056e906301000000900460ff1681565b34801561094957600080fd5b5061041d611fc3565b34801561095e57600080fd5b5060115461056e90640100000000900460ff1681565b34801561098057600080fd5b5060065461010090046001600160a01b0316610496565b3480156109a357600080fd5b50600b54600c54600d54600e54600f546010546109c295949392919086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161044b565b3480156109fb57600080fd5b5061041d610a0a366004613969565b611fd3565b348015610a1b57600080fd5b5061046961221f565b348015610a3057600080fd5b5061041d610a3f3660046138bd565b61222e565b348015610a5057600080fd5b5061041d610a5f366004613af1565b61223b565b348015610a7057600080fd5b5061041d610a7f3660046138bd565b612246565b348015610a9057600080fd5b5061059560095481565b61041d610aa83660046138bd565b6122be565b348015610ab957600080fd5b5061041d610ac8366004613b24565b6124bf565b348015610ad957600080fd5b5061041d610ae8366004613946565b6124f1565b348015610af957600080fd5b5061041d610b083660046138bd565b61251d565b348015610b1957600080fd5b5061041d610b28366004613ba0565b612595565b348015610b3957600080fd5b50610469610b483660046138bd565b6125b0565b348015610b5957600080fd5b5061041d610b68366004613946565b6126bb565b348015610b7957600080fd5b5061041d610b88366004613946565b6126e5565b348015610b9957600080fd5b5061041d610ba8366004613a7d565b612711565b348015610bb957600080fd5b5061041d610bc8366004613969565b61272c565b348015610bd957600080fd5b5061041d610be83660046138bd565b61297a565b348015610bf957600080fd5b5061041d610c08366004613ba0565b612987565b348015610c1957600080fd5b5061043f610c28366004613bbb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610c6257600080fd5b5060115461056e90600160301b900460ff1681565b61041d610c85366004613969565b6129a9565b348015610c9657600080fd5b5061041d610ca5366004613ac6565b612c2d565b348015610cb657600080fd5b5061041d610cc5366004613946565b612ca6565b60135460ff16610cf55760405162461bcd60e51b8152600401610cec90613be5565b60405180910390fd5b323314610d145760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d54918101829052600e546060820152600f54608082015260105460a08201529042118015610d5e5750806060015142105b610da25760405162461bcd60e51b815260206004820152601560248201527422b634ba329039b0b6329034b99031b637b9b2b21760591b6044820152606401610cec565b6000610dad60125490565b90506008548110610e005760405162461bcd60e51b815260206004820152601860248201527f4d617820456c69746520737570706c79207265616368656400000000000000006044820152606401610cec565b8160200151341015610e245760405162461bcd60e51b8152600401610cec90613c45565b33600090815260196020526040902054600111610e535760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001610e669190613cc3565b604051602081830303815290604052805190602001209050610ebf858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014549150849050612cc4565b610f0b5760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420456c697465204d65726b6c652050726f6f662e00000000006044820152606401610cec565b336000908152601960205260408120805460019290610f2b908490613cf6565b9091555050601280546001019055610f433383612cda565b5050505050565b60006001600160e01b031982166380ac58cd60e01b1480610f7b57506001600160e01b03198216635b5e139f60e01b145b80610f9657506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610fab90613d0e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd790613d0e565b80156110245780601f10610ff957610100808354040283529160200191611024565b820191906000526020600020905b81548152906001019060200180831161100757829003601f168201915b5050505050905090565b600061103982612cf4565b506000908152600460205260409020546001600160a01b031690565b600061106082611993565b9050806001600160a01b0316836001600160a01b031614156110ce5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cec565b336001600160a01b03821614806110ea57506110ea8133610c28565b61115c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610cec565b6111668383612d53565b505050565b611173612dc1565b67ffffffffffffffff16600c55565b61118a612dc1565b6011805460ff90921663010000000263ff00000019909216919091179055565b6111b2612dc1565b601055565b6111bf612dc1565b601655565b60006111cf60125490565b905090565b6111dc612dc1565b6011805460ff909216620100000262ff000019909216919091179055565b60135460ff1661121c5760405162461bcd60e51b8152600401610cec90613be5565b32331461123b5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a0830152421180156112875750806080015142105b6112a35760405162461bcd60e51b8152600401610cec90613d49565b60006112ae60125490565b6009549091506112bf906001612e21565b6112c98287612e21565b106112e65760405162461bcd60e51b8152600401610cec90613d75565b81516112f29086612e2d565b3410156113115760405162461bcd60e51b8152600401610cec90613c45565b6011546113229060ff166001612e21565b336000908152601a602052604090205461133c9087612e21565b106113595760405162461bcd60e51b8152600401610cec90613c8c565b60003360405160200161136c9190613cc3565b6040516020818303038152906040528051906020012090506113c5858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506016549150849050612cc4565b6114115760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964204c6567656e64617279204d65726b6c652050726f6f662e006044820152606401610cec565b336000908152601a602052604081208054889290611430908490613cf6565b90915550600090505b8681101561147957600061144c60125490565b905061145c601280546001019055565b6114663382612cda565b508061147181613dac565b915050611439565b50505050505050565b60135460ff166114a45760405162461bcd60e51b8152600401610cec90613be5565b3233146114c35760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a08301524211801561150f5750806080015142105b61152b5760405162461bcd60e51b8152600401610cec90613d49565b600061153660125490565b600954909150611547906001612e21565b6115518287612e21565b1061156e5760405162461bcd60e51b8152600401610cec90613dc7565b815161157a9086612e2d565b3410156115995760405162461bcd60e51b8152600401610cec90613c45565b6011546115b09062010000900460ff166001612e21565b336000908152601a60205260409020546115ca9087612e21565b106115e75760405162461bcd60e51b8152600401610cec90613c8c565b6000336040516020016115fa9190613cc3565b604051602081830303815290604052805190602001209050611653858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018549150849050612cc4565b61169f5760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420526f6f6b6965204d65726b6c652050726f6f662e000000006044820152606401610cec565b336000908152601a6020526040812080548892906116be908490613cf6565b90915550600090505b868110156114795760006116da60125490565b90506116ea601280546001019055565b6116f43382612cda565b50806116ff81613dac565b9150506116c7565b6117113382612e39565b61172d5760405162461bcd60e51b8152600401610cec90613df4565b611166838383612eb8565b611740612dc1565b600e55565b61174d612dc1565b67ffffffffffffffff16600b55565b611764612dc1565b6011805460ff909216600160301b0266ff00000000000019909216919091179055565b61178f612dc1565b80516117a290601d9060208401906136f8565b5050565b6117ae612dc1565b601555565b6117bb612dc1565b60006117c660125490565b600a549091506117d7906001612e21565b6117e18284612e21565b106117fe5760405162461bcd60e51b8152600401610cec90613dc7565b336000908152601b60205260408120805484929061181d908490613cf6565b90915550600090505b8281101561116657600061183960125490565b9050611849601280546001019055565b6118533382612cda565b508061185e81613dac565b915050611826565b61186e612dc1565b600260075414156118c15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cec565b6002600755604051600090339047908381818185875af1925050503d8060008114611908576040519150601f19603f3d011682016040523d82523d6000602084013e61190d565b606091505b50509050806119515760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610cec565b506001600755565b611961612dc1565b600a55565b61196e612dc1565b61197661305f565b565b611166838383604051806020016040528060008152506124bf565b6000818152600260205260408120546001600160a01b031680610f965760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cec565b6119fb612dc1565b6011805460ff9092166101000261ff0019909216919091179055565b611a1f612dc1565b601855565b611a2c612dc1565b600f55565b60135460ff16611a535760405162461bcd60e51b8152600401610cec90613be5565b323314611a725760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f54608082015260105460a082018190524211611acb5760405162461bcd60e51b8152600401610cec90613e42565b6000611ad660125490565b600a54909150611ae7906001612e21565b611af18287612e21565b10611b0e5760405162461bcd60e51b8152600401610cec90613dc7565b601154611b2690600160381b900460ff166001612e21565b336000908152601c6020526040902054611b409087612e21565b10611b5d5760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001611b709190613cc3565b604051602081830303815290604052805190602001209050611bc9858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018549150849050612cc4565b611c155760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420526f6f6b6965204d65726b6c652050726f6f662e000000006044820152606401610cec565b336000908152601c602052604081208054889290611c34908490613cf6565b90915550600090505b86811015611479576000611c5060125490565b9050611c60601280546001019055565b611c6a3382612cda565b5080611c7581613dac565b915050611c3d565b60006001600160a01b038216611ce75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610cec565b506001600160a01b031660009081526003602052604090205490565b611d0b612dc1565b61197660006130b1565b611d1d612dc1565b601755565b60135460ff16611d445760405162461bcd60e51b8152600401610cec90613be5565b323314611d635760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a083015242118015611daf5750806080015142105b611dcb5760405162461bcd60e51b8152600401610cec90613d49565b6000611dd660125490565b600954909150611de7906001612e21565b611df18287612e21565b10611e0e5760405162461bcd60e51b8152600401610cec90613d75565b8151611e1a9086612e2d565b341015611e395760405162461bcd60e51b8152600401610cec90613c45565b601154611e51906301000000900460ff166001612e21565b336000908152601a6020526040902054611e6b9087612e21565b10611e885760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001611e9b9190613cc3565b604051602081830303815290604052805190602001209050611ef4858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015549150849050612cc4565b611f405760405162461bcd60e51b815260206004820152601f60248201527f496e76616c69642057686974656c697374204d65726b6c652050726f6f662e006044820152606401610cec565b336000908152601a602052604081208054889290611f5f908490613cf6565b90915550600090505b86811015611479576000611f7b60125490565b9050611f8b601280546001019055565b611f953382612cda565b5080611fa081613dac565b915050611f68565b611fb0612dc1565b80516117a290601f9060208401906136f8565b611fcb612dc1565b61197661310b565b60135460ff16611ff55760405162461bcd60e51b8152600401610cec90613be5565b3233146120145760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f54608082015260105460a08201819052421161206d5760405162461bcd60e51b8152600401610cec90613e42565b600061207860125490565b600a54909150612089906001612e21565b6120938287612e21565b106120b05760405162461bcd60e51b8152600401610cec90613dc7565b6011546120c890600160301b900460ff166001612e21565b336000908152601c60205260409020546120e29087612e21565b106120ff5760405162461bcd60e51b8152600401610cec90613c8c565b6000336040516020016121129190613cc3565b60405160208183030381529060405280519060200120905061216b858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017549150849050612cc4565b6121b75760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964205665746572616e204d65726b6c652050726f6f662e0000006044820152606401610cec565b336000908152601c6020526040812080548892906121d6908490613cf6565b90915550600090505b868110156114795760006121f260125490565b9050612202601280546001019055565b61220c3382612cda565b508061221781613dac565b9150506121df565b606060018054610fab90613d0e565b612236612dc1565b601455565b6117a2338383613148565b61224e612dc1565b600a548111156122b95760405162461bcd60e51b815260206004820152603060248201527f53616c6520737570706c79206d757374206265206c6f776572207468616e207460448201526f3432903a37ba30b61039bab838363c9760811b6064820152608401610cec565b600955565b60135460ff166122e05760405162461bcd60e51b8152600401610cec90613be5565b3233146122ff5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f546080820181905260105460a08301524211801561234b57508060a0015142105b6123905760405162461bcd60e51b8152602060048201526016602482015275283ab13634b19039b0b6329034b99031b637b9b2b21760511b6044820152606401610cec565b600061239b60125490565b6009549091506123ac906001612e21565b6123b68285612e21565b106123d35760405162461bcd60e51b8152600401610cec90613dc7565b60208201516123e29084612e2d565b3410156124015760405162461bcd60e51b8152600401610cec90613c45565b60115461241a90640100000000900460ff166001612e21565b336000908152601b60205260409020546124349085612e21565b106124515760405162461bcd60e51b8152600401610cec90613c8c565b336000908152601b602052604081208054859290612470908490613cf6565b90915550600090505b838110156124b957600061248c60125490565b905061249c601280546001019055565b6124a63382612cda565b50806124b181613dac565b915050612479565b50505050565b6124c93383612e39565b6124e55760405162461bcd60e51b8152600401610cec90613df4565b6124b984848484613217565b6124f9612dc1565b6011805460ff909216650100000000000265ff000000000019909216919091179055565b612525612dc1565b6009548111156125905760405162461bcd60e51b815260206004820152603060248201527f456c69746520737570706c79206d757374206265206c6f776572207468616e2060448201526f3a34329039b0b6329039bab838363c9760811b6064820152608401610cec565b600855565b61259d612dc1565b6013805460ff1916911515919091179055565b60606125bb82612cf4565b601354610100900460ff1661265c57601f80546125d790613d0e565b80601f016020809104026020016040519081016040528092919081815260200182805461260390613d0e565b80156126505780601f1061262557610100808354040283529160200191612650565b820191906000526020600020905b81548152906001019060200180831161263357829003601f168201915b50505050509050919050565b600061266661324a565b9050600081511161268657604051806020016040528060008152506126b4565b8061269084613259565b601e6040516020016126a493929190613e70565b6040516020818303038152906040525b9392505050565b6126c3612dc1565b6011805460ff9092166401000000000264ff0000000019909216919091179055565b6126ed612dc1565b6011805460ff909216600160381b0267ff0000000000000019909216919091179055565b612719612dc1565b80516117a290601e9060208401906136f8565b60135460ff1661274e5760405162461bcd60e51b8152600401610cec90613be5565b32331461276d5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e546060820152600f54608082015260105460a0820181905242116127c65760405162461bcd60e51b8152600401610cec90613e42565b60006127d160125490565b600a549091506127e2906001612e21565b6127ec8287612e21565b106128095760405162461bcd60e51b8152600401610cec90613dc7565b6011546128239065010000000000900460ff166001612e21565b336000908152601c602052604090205461283d9087612e21565b1061285a5760405162461bcd60e51b8152600401610cec90613c8c565b60003360405160200161286d9190613cc3565b6040516020818303038152906040528051906020012090506128c6858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506016549150849050612cc4565b6129125760405162461bcd60e51b815260206004820152601f60248201527f496e76616c6964204c6567656e64617279204d65726b6c652050726f6f662e006044820152606401610cec565b336000908152601c602052604081208054889290612931908490613cf6565b90915550600090505b8681101561147957600061294d60125490565b905061295d601280546001019055565b6129673382612cda565b508061297281613dac565b91505061293a565b612982612dc1565b600d55565b61298f612dc1565b601380549115156101000261ff0019909216919091179055565b60135460ff166129cb5760405162461bcd60e51b8152600401610cec90613be5565b3233146129ea5760405162461bcd60e51b8152600401610cec90613c0e565b6040805160c081018252600b548152600c546020820152600d5491810191909152600e5460608201819052600f54608083015260105460a083015242118015612a365750806080015142105b612a525760405162461bcd60e51b8152600401610cec90613d49565b6000612a5d60125490565b600954909150612a6e906001612e21565b612a788287612e21565b10612a955760405162461bcd60e51b8152600401610cec90613d75565b8151612aa19086612e2d565b341015612ac05760405162461bcd60e51b8152600401610cec90613c45565b601154612ad690610100900460ff166001612e21565b336000908152601a6020526040902054612af09087612e21565b10612b0d5760405162461bcd60e51b8152600401610cec90613c8c565b600033604051602001612b209190613cc3565b604051602081830303815290604052805190602001209050612b79858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506017549150849050612cc4565b612bc55760405162461bcd60e51b815260206004820152601d60248201527f496e76616c6964205665746572616e204d65726b6c652050726f6f662e0000006044820152606401610cec565b336000908152601a602052604081208054889290612be4908490613cf6565b90915550600090505b86811015611479576000612c0060125490565b9050612c10601280546001019055565b612c1a3382612cda565b5080612c2581613dac565b915050612bed565b612c35612dc1565b6001600160a01b038116612c9a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cec565b612ca3816130b1565b50565b612cae612dc1565b6011805460ff191660ff92909216919091179055565b600082612cd18584613357565b14949350505050565b6117a28282604051806020016040528060008152506133a4565b6000818152600260205260409020546001600160a01b0316612ca35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610cec565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d8882611993565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b036101009091041633146119765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cec565b60006126b48284613cf6565b60006126b48284613f34565b600080612e4583611993565b9050806001600160a01b0316846001600160a01b03161480612e8c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80612eb05750836001600160a01b0316612ea58461102e565b6001600160a01b0316145b949350505050565b826001600160a01b0316612ecb82611993565b6001600160a01b031614612f2f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610cec565b6001600160a01b038216612f915760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cec565b612f9c8383836133d7565b612fa7600082612d53565b6001600160a01b0383166000908152600360205260408120805460019290612fd0908490613f53565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ffe908490613cf6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6130676133df565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613113613428565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130943390565b816001600160a01b0316836001600160a01b031614156131aa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cec565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613222848484612eb8565b61322e8484848461346e565b6124b95760405162461bcd60e51b8152600401610cec90613f6a565b6060601d8054610fab90613d0e565b60608161327d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156132a7578061329181613dac565b91506132a09050600a83613fd2565b9150613281565b60008167ffffffffffffffff8111156132c2576132c26139f1565b6040519080825280601f01601f1916602001820160405280156132ec576020820181803683370190505b5090505b8415612eb057613301600183613f53565b915061330e600a86613fe6565b613319906030613cf6565b60f81b81838151811061332e5761332e613ffa565b60200101906001600160f81b031916908160001a905350613350600a86613fd2565b94506132f0565b600081815b845181101561339c576133888286838151811061337b5761337b613ffa565b602002602001015161357b565b91508061339481613dac565b91505061335c565b509392505050565b6133ae83836135aa565b6133bb600084848461346e565b6111665760405162461bcd60e51b8152600401610cec90613f6a565b611166613428565b60065460ff166119765760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cec565b60065460ff16156119765760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cec565b60006001600160a01b0384163b1561357057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134b2903390899088908890600401614010565b602060405180830381600087803b1580156134cc57600080fd5b505af19250505080156134fc575060408051601f3d908101601f191682019092526134f99181019061404d565b60015b613556573d80801561352a576040519150601f19603f3d011682016040523d82523d6000602084013e61352f565b606091505b50805161354e5760405162461bcd60e51b8152600401610cec90613f6a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612eb0565b506001949350505050565b60008183106135975760008281526020849052604090206126b4565b60008381526020839052604090206126b4565b6001600160a01b0382166136005760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cec565b6000818152600260205260409020546001600160a01b0316156136655760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cec565b613671600083836133d7565b6001600160a01b038216600090815260036020526040812080546001929061369a908490613cf6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461370490613d0e565b90600052602060002090601f016020900481019282613726576000855561376c565b82601f1061373f57805160ff191683800117855561376c565b8280016001018555821561376c579182015b8281111561376c578251825591602001919060010190613751565b5061377892915061377c565b5090565b5b80821115613778576000815560010161377d565b60008083601f8401126137a357600080fd5b50813567ffffffffffffffff8111156137bb57600080fd5b6020830191508360208260051b85010111156137d657600080fd5b9250929050565b600080602083850312156137f057600080fd5b823567ffffffffffffffff81111561380757600080fd5b61381385828601613791565b90969095509350505050565b6001600160e01b031981168114612ca357600080fd5b60006020828403121561384757600080fd5b81356126b48161381f565b60005b8381101561386d578181015183820152602001613855565b838111156124b95750506000910152565b60008151808452613896816020860160208601613852565b601f01601f19169290920160200192915050565b6020815260006126b4602083018461387e565b6000602082840312156138cf57600080fd5b5035919050565b80356001600160a01b03811681146138ed57600080fd5b919050565b6000806040838503121561390557600080fd5b61390e836138d6565b946020939093013593505050565b60006020828403121561392e57600080fd5b813567ffffffffffffffff811681146126b457600080fd5b60006020828403121561395857600080fd5b813560ff811681146126b457600080fd5b60008060006040848603121561397e57600080fd5b83359250602084013567ffffffffffffffff81111561399c57600080fd5b6139a886828701613791565b9497909650939450505050565b6000806000606084860312156139ca57600080fd5b6139d3846138d6565b92506139e1602085016138d6565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613a2257613a226139f1565b604051601f8501601f19908116603f01168101908282118183101715613a4a57613a4a6139f1565b81604052809350858152868686011115613a6357600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613a8f57600080fd5b813567ffffffffffffffff811115613aa657600080fd5b8201601f81018413613ab757600080fd5b612eb084823560208401613a07565b600060208284031215613ad857600080fd5b6126b4826138d6565b803580151581146138ed57600080fd5b60008060408385031215613b0457600080fd5b613b0d836138d6565b9150613b1b60208401613ae1565b90509250929050565b60008060008060808587031215613b3a57600080fd5b613b43856138d6565b9350613b51602086016138d6565b925060408501359150606085013567ffffffffffffffff811115613b7457600080fd5b8501601f81018713613b8557600080fd5b613b9487823560208401613a07565b91505092959194509250565b600060208284031215613bb257600080fd5b6126b482613ae1565b60008060408385031215613bce57600080fd5b613bd7836138d6565b9150613b1b602084016138d6565b6020808252600f908201526e29b0b6329034b9903637b1b5b2b21760891b604082015260600190565b6020808252601f908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604082015260600190565b60208082526027908201527f54722e2076616c756520646964206e6f7420657175616c20746865206d696e7460408201526610383934b1b29760c91b606082015260800190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686174206d7563682e000000000000604082015260600190565b60609190911b6bffffffffffffffffffffffff1916815260140190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613d0957613d09613ce0565b500190565b600181811c90821680613d2257607f821691505b60208210811415613d4357634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260129082015271283932b9b0b6329034b99031b637b9b2b21760711b604082015260600190565b60208082526018908201527f4d61782073616c6520737570706c7920726561636865642e0000000000000000604082015260600190565b6000600019821415613dc057613dc0613ce0565b5060010190565b60208082526013908201527226b0bc1039bab838363c903932b0b1b432b21760691b604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b602080825260149082015273233932b29036b4b73a1034b99031b637b9b2b21760611b604082015260600190565b600084516020613e838285838a01613852565b855191840191613e968184848a01613852565b8554920191600090600181811c9080831680613eb357607f831692505b858310811415613ed157634e487b7160e01b85526022600452602485fd5b808015613ee55760018114613ef657613f23565b60ff19851688528388019550613f23565b60008b81526020902060005b85811015613f1b5781548a820152908401908801613f02565b505083880195505b50939b9a5050505050505050505050565b6000816000190483118215151615613f4e57613f4e613ce0565b500290565b600082821015613f6557613f65613ce0565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613fe157613fe1613fbc565b500490565b600082613ff557613ff5613fbc565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140439083018461387e565b9695505050505050565b60006020828403121561405f57600080fd5b81516126b48161381f56fea26469706673582212208aa064e6f369f137f0598247d5fae845f5c750f9000cd58ac38a203a7397857664736f6c63430008090033
Loading...
Loading
Loading...
Loading
[ 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.