ERC-721
Overview
Max Total Supply
1,048 ABC
Holders
548
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ABCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ApeBankingClub
Compiler Version
v0.8.10+commit.fc410830
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.2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; /// @title ApeBankingClub - Join the Banking club a collection of 10 322 unique NFTs /// @notice Each owner of an ABC NFT will be automatically eligible to open a bank account on the ABC META BANK | First bank of the metaverse. /// @author Tavux - <[email protected]> /// @custom:project-website https://www.apebanking.club/ /// @custom:security-contact [email protected] contract ApeBankingClub is ERC721, ERC721Enumerable, Pausable, AccessControl, Ownable, PaymentSplitter { using SafeMath for uint256; using ECDSA for bytes32; using Strings for uint256; /* ======================== * Events * ======================== */ event AddedToReservedTokens(uint256[] ids); event RemovedFromReservedTokens(uint256[] ids); event ChangeMaxMintAmountFor(address indexed to, uint256 value); event ChangeMaxWalletSupplyFor(address indexed to, uint256 value); event ChangeMaxMintAmount(uint256 value); event ChangeMaxWalletSupply(uint256 value); event ChangePresaleConfig( uint256 newPrice, uint256 newDuration, uint256 newMaxMintPerWallet, uint256 newStartTime ); event ChangeSaleConfig( uint256 newMin, uint256 newMax, uint256 newDecreaseAmount, uint256 newDecreaseTime, uint256 startTime ); event SaleMint(address indexed minter, uint256 amount, uint256 price); event PresaleMint(address indexed minter, uint256 amount, uint256 price); event BurntToken(address indexed burner, uint256 tokenId); event SoldOut(uint256 totalMinted); event AllSoldOut(uint256 totalMinted); event ChangedBaseURI(string newURI); event ChangedNotRevealedUri(string newURI); event ChangedBaseExtension(string newURI); event RevealedTokens(); event ChangedIsBurnEnabled(bool isEnabled); /* ======================== * Structures * ======================== */ struct PresaleConfig { uint256 price; uint256 duration; uint256 maxMintPerWallet; uint256 startTime; } struct SaleConfig { uint256 minPrice; uint256 maxPrice; uint256 decreaseAmount; uint256 decreaseTime; uint256 startTime; } enum WorkflowStatus { NotStarted, Presale, PresaleEnded, Sale, SoldOut, AllSoldOut } /* ======================== * Constants & Immutables * ======================== */ bytes32 public constant DISTRIBUTOR_ROLE = keccak256("DISTRIBUTOR_ROLE"); bytes32 public constant VALIDATOR_ROLE = keccak256("VALIDATOR_ROLE"); uint256 public constant MAX_TOTAL_SUPPLY = 10322; /* ======================== * Storage * ======================== */ mapping(uint256 => bool) private _reservedTokens; mapping(address => uint256) private _maxMintPerAddress; mapping(address => uint256) private _maxWalletSupplyPerAddress; mapping(address => uint256) private _mintPerAddress; mapping(address => uint256[]) private _burntTokensPerAddress; mapping(uint256 => bool) private _burntTokens; uint256[] private _burntTokensList; uint256 public reservedTokensCount; uint256 public distributeMintCount; uint256 public saleMintCount; uint256 public presaleMintCount; uint256 public maxMintAmount = 10322; uint256 public maxWalletSupplyAmount = 10322; bool public isBurnEnabled; uint256 private _tokenIdCounter; // URI and revealed bool public revealed = false; string private baseURI; string public baseExtension = ".json"; string public notRevealedUri; // prices SaleConfig public saleConfig; PresaleConfig public presaleConfig; // Payments uint256[] private _teamShares = [29, 29, 29, 10, 3]; address[] private _team = [ 0x4f5d20491D9fD522898da93f05F0adEa6C73ac1C, 0x9e78a07aD7db4213E2405a168fEDEa72D41dEaCE, 0xDA7EC08572F2cae2816A5528427baA731A95D8d3, 0x72dd10C9C9d47316fF740c9AfDA36DAEf1e058c9, 0x49B730F78f8dCC4f7cd091D6a52b01915002A834 ]; /* ======================== * Public Functions * ======================== */ constructor() ERC721("APE BANKING CLUB", "ABC") PaymentSplitter(_team, _teamShares) { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(DISTRIBUTOR_ROLE, msg.sender); _setupRole(VALIDATOR_ROLE, msg.sender); } /* ======================== * Modifiers * ======================== */ modifier isWhitelisted(bytes32 hash, bytes memory sig) { require(isValidated(hash, sig), "ABC: user is not whitelisted"); _; } modifier canHaveNewTokens(address wallet, uint256 amount) { require( getRemainingWalletSupplyFor(wallet) >= amount, "ABC: number of tokens exceeded" ); _; } modifier canHaveNewTokensOr0Address(address wallet, uint256 amount) { require( wallet == address(0) || getRemainingWalletSupplyFor(wallet) >= amount, "ABC: number of tokens exceeded" ); _; } modifier canMintNewTokens(address wallet, uint256 amount) { require( getRemainingMintAmountFor(wallet) >= amount && getRemainingTokens() >= amount, "ABC: number of minted tokens exceeded" ); _; } /* ======================== * External * ======================== */ /// @dev Mint the `amount` of token in presale if msg.sender is whitelisted by a validator /// @param payloadExpiration The maximum timestamp before the signature is considered invalid /// @param sig The EC signature generated by an validator function presaleMint( uint256 amount, uint256 payloadExpiration, bytes memory sig ) external payable whenNotPaused isWhitelisted( keccak256(abi.encodePacked(msg.sender, payloadExpiration)) .toEthSignedMessageHash(), sig ) canHaveNewTokens(msg.sender, amount) canMintNewTokens(msg.sender, amount) { require(payloadExpiration >= block.timestamp, "ABC: payload expired"); _presaleMint(amount); } /// @notice Mint the `amount` of token in public sale function mint(uint256 amount) external payable whenNotPaused canHaveNewTokens(msg.sender, amount) canMintNewTokens(msg.sender, amount) { _saleMint(amount); } /// @notice Burn the `tokenId` if burning is enabled function burn(uint256 tokenId) external { require(isBurnEnabled, "ABC: burning is disabled"); require( _isApprovedOrOwner(msg.sender, tokenId), "ABC: burn caller is not owner nor approved" ); _burn(tokenId); _burntTokensPerAddress[msg.sender].push(tokenId); _burntTokens[tokenId] = true; _burntTokensList.push(tokenId); emit BurntToken(msg.sender, tokenId); } /// @notice Mint `tokenId` (if not already minted) and transfers it to `to`. Only `DISTRIBUTOR_ROLE`. function distribute(address to, uint256 tokenId) external onlyRole(DISTRIBUTOR_ROLE) { _safeDistribute(to, tokenId); distributeMintCount = distributeMintCount.add(1); } /// @notice Mint all `tokenIds` (if not already minted) and transfers them to `to`. Only `DISTRIBUTOR_ROLE`. function distributeMultiple(address to, uint256[] calldata tokenIds) external onlyRole(DISTRIBUTOR_ROLE) { for (uint256 i = 0; i < tokenIds.length; i++) { _safeDistribute(to, tokenIds[i]); } distributeMintCount = distributeMintCount.add(tokenIds.length); } /// @notice Mint all `tokenIds` (if not already minted) and transfer them respectively to `toList`. Only `DISTRIBUTOR_ROLE`. function distributeRespectively( address[] calldata toList, uint256[] calldata tokenIds ) external onlyRole(DISTRIBUTOR_ROLE) { require( toList.length == tokenIds.length, "The two lists must have the same size" ); for (uint256 i = 0; i < tokenIds.length; i++) { _safeDistribute(toList[i], tokenIds[i]); } } /// @notice Add tokens to the _reservedTokens list. Only `DISTRIBUTOR_ROLE`. /// @param ids Array of id to add function addToReservedTokens(uint256[] calldata ids) external onlyRole(DISTRIBUTOR_ROLE) { for (uint256 i = 0; i < ids.length; i++) { require(!_existsOrBurn(ids[i]), "ERC721: token already minted"); require(ids[i] <= MAX_TOTAL_SUPPLY, "ABC: max supply exceeded"); if (_reservedTokens[ids[i]] == false) { _reservedTokens[ids[i]] = true; reservedTokensCount = reservedTokensCount.add(1); } } emit AddedToReservedTokens(ids); } /// @notice Remove tokens from the _reservedTokens list. Ids to be removed must be greater than the last public mined token. Only `DISTRIBUTOR_ROLE`. /// @param ids Array of id to remove function removeFromReservedTokens(uint256[] calldata ids) external onlyRole(DISTRIBUTOR_ROLE) { for (uint256 i = 0; i < ids.length; i++) { require(ids[i] <= MAX_TOTAL_SUPPLY, "ABC: max supply exceeded"); require( _existsOrBurn(ids[i]) || ids[i] > _tokenIdCounter, "ABC: token already mined" ); if (_reservedTokens[ids[i]]) { _reservedTokens[ids[i]] = false; reservedTokensCount = reservedTokensCount.sub(1); } } emit RemovedFromReservedTokens(ids); } /// @notice Set the maximum of NFT that `to` wallet can mint. Only `DEFAULT_ADMIN_ROLE`. /// @param to The wallet that has a specific maximum /// @param value The maximum of NFT (0 for default maximum) function setMaxMintAmountFor(address to, uint256 value) external onlyRole(DEFAULT_ADMIN_ROLE) { require( _mintPerAddress[to] <= value || (value == 0 && _mintPerAddress[to] <= maxMintAmount), "ABC: already exceeded the new maximum" ); require(_maxMintPerAddress[to] != value); _maxMintPerAddress[to] = value; emit ChangeMaxMintAmountFor(to, value); } /// @notice Set the maximum of NFT that `to` wallet can hold. Only `DEFAULT_ADMIN_ROLE`. /// @param to The wallet that has a specific maximum /// @param value The maximum of NFT (0 for default maximum) function setMaxWalletSupplyFor(address to, uint256 value) external onlyRole(DEFAULT_ADMIN_ROLE) { require( balanceOf(to) <= value || (value == 0 && balanceOf(to) <= maxWalletSupplyAmount), "ABC: already exceeded the new maximum" ); require(_maxWalletSupplyPerAddress[to] != value); _maxWalletSupplyPerAddress[to] = value; emit ChangeMaxWalletSupplyFor(to, value); } /// @notice Set the maximum of NFT that a wallet can mint. Only `DEFAULT_ADMIN_ROLE`. /// @param newMaxMintAmount The new maximum mint amount function setMaxMintAmount(uint256 newMaxMintAmount) external onlyRole(DEFAULT_ADMIN_ROLE) { require( newMaxMintAmount > maxMintAmount, "ABC: the new amount is lower than the old one" ); maxMintAmount = newMaxMintAmount; emit ChangeMaxMintAmount(newMaxMintAmount); } /// @notice Set the maximum of NFT that a wallet can hold. Only `DEFAULT_ADMIN_ROLE`. /// @param newMaxWalletSupplyAmount The new maximum mint amount function setMaxWalletSupplyAmount(uint256 newMaxWalletSupplyAmount) external onlyRole(DEFAULT_ADMIN_ROLE) { require( newMaxWalletSupplyAmount > maxWalletSupplyAmount, "ABC: the new amount is lower than the old one" ); maxWalletSupplyAmount = newMaxWalletSupplyAmount; emit ChangeMaxWalletSupply(newMaxWalletSupplyAmount); } /// @notice Set the presale configuration. Only `DEFAULT_ADMIN_ROLE`. /// @param newPrice The new price /// @param newStartTime The pre sale start time (0 if pre sale is not active) /// @param newMaxMintPerWallet The maximum that a user can mint during the presale /// @param newDuration The number of seconds to wait before the end of the presale function setPresaleConfig( uint256 newPrice, uint256 newStartTime, uint256 newMaxMintPerWallet, uint256 newDuration ) external onlyRole(DEFAULT_ADMIN_ROLE) { require( newDuration > 900, "ABC: the duration has to be greater than 900 seconds" ); presaleConfig = PresaleConfig( newPrice, newDuration, newMaxMintPerWallet, newStartTime ); emit ChangePresaleConfig( newPrice, newDuration, newMaxMintPerWallet, newStartTime ); } /// @notice Set the sale configuration for set the price. Only `DEFAULT_ADMIN_ROLE`. /// @param newMin The new minimum price /// @param newMax The new maximum price which will be decreasing /// @param newDecreaseAmount The number of gwei that will be subtracted from the price every `newDecreaseTime` (0 if no decrease) /// @param newDecreaseTime The number of seconds to wait between each decreasing (must be > 900) /// @param newStartTime The sale start time (0 if sale is not active) function setSaleConfig( uint256 newMin, uint256 newMax, uint256 newDecreaseAmount, uint256 newDecreaseTime, uint256 newStartTime ) external onlyRole(DEFAULT_ADMIN_ROLE) { require( newDecreaseTime > 900, "ABC: the decrease time has to be greater than 900 seconds" ); require( newMax >= newMin, "ABC: the maximum price has to be greater than the minimum" ); saleConfig = SaleConfig( newMin, newMax, newDecreaseAmount, newDecreaseTime, newStartTime ); emit ChangeSaleConfig( newMin, newMax, newDecreaseAmount, newDecreaseTime, newStartTime ); } /// @notice Change the baseURI. Only `DEFAULT_ADMIN_ROLE`. function setBaseURI(string memory _newBaseURI) external onlyRole(DEFAULT_ADMIN_ROLE) { baseURI = _newBaseURI; emit ChangedBaseURI(_newBaseURI); } /// @notice Change the URI base extension (ex: .json). Only `DEFAULT_ADMIN_ROLE`. function setBaseExtension(string memory _newBaseExtension) external onlyRole(DEFAULT_ADMIN_ROLE) { baseExtension = _newBaseExtension; emit ChangedBaseExtension(_newBaseExtension); } /// @notice Change the URI of the NotRevealed animation. Only `DEFAULT_ADMIN_ROLE`. function setNotRevealedURI(string memory _notRevealedURI) external onlyRole(DEFAULT_ADMIN_ROLE) { notRevealedUri = _notRevealedURI; emit ChangedNotRevealedUri(_notRevealedURI); } /// @notice Activate or disabled the burn function function setIsBurnEnabled(bool enabledBurn) external onlyRole(DEFAULT_ADMIN_ROLE) { isBurnEnabled = enabledBurn; emit ChangedIsBurnEnabled(enabledBurn); } /// @notice Triggers stopped state. Only `DEFAULT_ADMIN_ROLE`. function pause() external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); } /// @notice Returns to normal state. Only `DEFAULT_ADMIN_ROLE`. function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) { _unpause(); } /// @notice Activate token revelation. Only `DEFAULT_ADMIN_ROLE`. function reveal() external onlyRole(DEFAULT_ADMIN_ROLE) { require(!revealed, "ABC: tokens are already revealed"); revealed = true; emit RevealedTokens(); } /// @dev Transfers ownership of the contract to a new account (`newOwner`). /// Can only be called by the current owner or an administrator. function transferOwnership(address newOwner) public override { require( owner() == msg.sender || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "ABC: caller is not admin nor owner" ); require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /* ======================== * Views * ======================== */ /// @notice Return the sale price of a token function getPrice() public view returns (uint256) { SaleConfig memory saleConfig_ = saleConfig; if ( saleConfig_.decreaseTime == 0 || block.timestamp < saleConfig_.startTime ) { return saleConfig_.maxPrice; } uint256 decreaseBy = block .timestamp .sub(saleConfig_.startTime) .div(saleConfig_.decreaseTime) .mul(saleConfig_.decreaseAmount); if ( decreaseBy > saleConfig_.maxPrice || saleConfig_.maxPrice.sub(decreaseBy) <= saleConfig_.minPrice ) { return saleConfig_.minPrice; } return saleConfig_.maxPrice.sub(decreaseBy); } /// @notice Get the maximum of NFT that `to` wallet can mint function getMaxMintAmountFor(address to) public view returns (uint256) { if (_maxMintPerAddress[to] > 0) { return _maxMintPerAddress[to]; } return maxMintAmount; } /// @notice Get the maximum of NFT that `to` wallet can hold function getMaxWalletSupplyFor(address to) public view returns (uint256) { if (_maxWalletSupplyPerAddress[to] > 0) { return _maxWalletSupplyPerAddress[to]; } return maxWalletSupplyAmount; } /// @notice Get the remaining NFT number that `to` wallet can mint function getRemainingMintAmountFor(address to) public view returns (uint256) { if (_mintPerAddress[to] >= getMaxMintAmountFor(to)) { return 0; } return getMaxMintAmountFor(to).sub(_mintPerAddress[to]); } /// @notice Get the remaining NFT number that `to` wallet can mint on presale function getRemainingPresaleMintAmountFor(address to) public view returns (uint256) { if (_mintPerAddress[to] >= presaleConfig.maxMintPerWallet) { return 0; } uint256 remainingPresaleMintAmount = presaleConfig.maxMintPerWallet.sub( _mintPerAddress[to] ); uint256 remainingMintAmount = getRemainingMintAmountFor(to); return remainingPresaleMintAmount <= remainingMintAmount ? remainingPresaleMintAmount : remainingMintAmount; } /// @notice Get remaining NFT number that `to` wallet can hold function getRemainingWalletSupplyFor(address to) public view returns (uint256) { if (balanceOf(to) >= getMaxWalletSupplyFor(to)) { return 0; } return getMaxWalletSupplyFor(to).sub(balanceOf(to)); } /// @notice Returns the number of tokens that can still be mined by the public function getRemainingTokens() public view returns (uint256) { return MAX_TOTAL_SUPPLY.sub( saleMintCount.add(presaleMintCount).add(reservedTokensCount) ); } /// @notice Returns the URI of `tokenId` or the `notRevealedUri` if the tokens have not been revealed yet function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (!revealed) { return notRevealedUri; } else { string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), baseExtension ) ) : ""; } } /// @notice Return the array of burnt tokens for `wallet` function getBurntTokensFor(address wallet) external view returns (uint256[] memory) { return _burntTokensPerAddress[wallet]; } /// @notice Return whether `tokenId` was burned function isBurnt(uint256 tokenId) external view returns (bool) { return _burntTokens[tokenId]; } /// @notice Return the array of burnt tokens for all `wallet` function getBurntTokensList() external view returns (uint256[] memory) { return _burntTokensList; } /// @notice Returns the baseURI in memory function _baseURI() internal view override returns (string memory) { return baseURI; } /// @notice Returns whether `tokenId` exists or has existed function _existsOrBurn(uint256 tokenId) internal view returns (bool) { return _exists(tokenId) || _burntTokens[tokenId]; } /** * @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) public view override(ERC721, ERC721Enumerable, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } /// @dev Checks if a hash has been signed by a validator /// @param hash The data that was used to generate the signature /// @param sig The EC signature generated by an validator /// @return True if the signature was generated by an validator function isValidated(bytes32 hash, bytes memory sig) public view returns (bool) { return hasRole(VALIDATOR_ROLE, hash.recover(sig)); } /// @dev Return the workflow status (view WorkflowStatus enum) function getWorkflowStatus() external view returns (WorkflowStatus) { // AllSoldOut if (totalSupply() == MAX_TOTAL_SUPPLY) { return WorkflowStatus.AllSoldOut; } // SoldOut, if (getRemainingTokens() == 0) { return WorkflowStatus.SoldOut; } // Sale SaleConfig memory saleConfig_ = saleConfig; if ( saleConfig_.startTime > 0 && block.timestamp >= saleConfig_.startTime ) { return WorkflowStatus.Sale; } // Presale and PresaleEnded PresaleConfig memory presaleConfig_ = presaleConfig; if ( presaleConfig_.startTime > 0 && block.timestamp >= presaleConfig_.startTime ) { if ( block.timestamp <= presaleConfig_.startTime.add(presaleConfig_.duration) ) { return WorkflowStatus.Presale; } return WorkflowStatus.PresaleEnded; } // NotStarted return WorkflowStatus.NotStarted; } /* ======================== * INTERNAL * ======================== */ /// @dev Safely mint `tokenId` (if not already minted) and transfers it to `to`. function _safeDistribute(address to, uint256 tokenId) internal canHaveNewTokens(to, 1) { require(tokenId > 0, "ABC: Token ID can be 0"); require(tokenId <= MAX_TOTAL_SUPPLY, "ABC: max supply exceeded"); require(!_existsOrBurn(tokenId), "ABC: token already minted or burnt"); if (_reservedTokens[tokenId] == false) { _reservedTokens[tokenId] = true; reservedTokensCount = reservedTokensCount.add(1); } _safeMint(to, tokenId); if (totalSupply() >= MAX_TOTAL_SUPPLY) { emit AllSoldOut(totalSupply()); } } /// @dev Safely mint the next token that is not in the reserved list and transfers it to `to`. function _safeMint(address to) internal canHaveNewTokens(to, 1) canMintNewTokens(to, 1) { uint256 tokenId = _tokenIdCounter.add(1); // pass the reserved identifiers while ( (_reservedTokens[tokenId] || _existsOrBurn(tokenId)) && tokenId <= MAX_TOTAL_SUPPLY ) { tokenId = tokenId.add(1); } require(tokenId <= MAX_TOTAL_SUPPLY, "ABC: max supply exceeded"); _safeMint(to, tokenId); _tokenIdCounter = tokenId; if (_tokenIdCounter >= MAX_TOTAL_SUPPLY) { emit SoldOut(totalSupply()); } if (totalSupply() >= MAX_TOTAL_SUPPLY) { emit AllSoldOut(totalSupply()); } } /// @dev Mint the `amount` of token in presale function _presaleMint(uint256 amount) internal { PresaleConfig memory presaleConfig_ = presaleConfig; require(amount > 0, "ABC: zero amount"); require(presaleConfig_.startTime > 0, "ABC: presale is not active"); require( block.timestamp >= presaleConfig_.startTime, "ABC: presale not started" ); require( block.timestamp <= presaleConfig_.startTime.add(presaleConfig_.duration), "ABC: presale is ended" ); require( _mintPerAddress[msg.sender].add(amount) <= presaleConfig_.maxMintPerWallet, "ABC: maximum mint number exceeded" ); require( presaleConfig_.price * amount <= msg.value, "ABC: Ether value sent is not correct" ); for (uint256 i = 0; i < amount; i++) { _safeMint(msg.sender); } _mintPerAddress[msg.sender] = _mintPerAddress[msg.sender].add(amount); presaleMintCount = presaleMintCount.add(amount); emit PresaleMint(msg.sender, amount, msg.value); } /// @dev Mint the `amount` of token in public sale function _saleMint(uint256 amount) internal { SaleConfig memory saleConfig_ = saleConfig; require(amount > 0, "ABC: zero amount"); require(saleConfig_.startTime > 0, "ABC: sale is not active"); require( block.timestamp >= saleConfig_.startTime, "ABC: sale not started" ); uint256 price = getPrice(); require( price * amount <= msg.value, "ABC: Ether value sent is not correct" ); for (uint256 i = 0; i < amount; i++) { _safeMint(msg.sender); } _mintPerAddress[msg.sender] = _mintPerAddress[msg.sender].add(amount); saleMintCount = saleMintCount.add(amount); emit SaleMint(msg.sender, amount, msg.value); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) whenNotPaused canHaveNewTokensOr0Address(to, 1) { super._beforeTokenTransfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"AddedToReservedTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalMinted","type":"uint256"}],"name":"AllSoldOut","type":"event"},{"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":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BurntToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ChangeMaxMintAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ChangeMaxMintAmountFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ChangeMaxWalletSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"ChangeMaxWalletSupplyFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxMintPerWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newStartTime","type":"uint256"}],"name":"ChangePresaleConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMin","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDecreaseAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDecreaseTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"ChangeSaleConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"ChangedBaseExtension","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"ChangedBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"ChangedIsBurnEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"ChangedNotRevealedUri","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PresaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"RemovedFromReservedTokens","type":"event"},{"anonymous":false,"inputs":[],"name":"RevealedTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"SaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalMinted","type":"uint256"}],"name":"SoldOut","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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISTRIBUTOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VALIDATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"addToReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"distributeMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"toList","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"distributeRespectively","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":"wallet","type":"address"}],"name":"getBurntTokensFor","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBurntTokensList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getMaxMintAmountFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getMaxWalletSupplyFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getRemainingMintAmountFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getRemainingPresaleMintAmountFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getRemainingWalletSupplyFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWorkflowStatus","outputs":[{"internalType":"enum ApeBankingClub.WorkflowStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isBurnt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"isValidated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletSupplyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleConfig","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"payloadExpiration","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"removeFromReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTokensCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"minPrice","type":"uint256"},{"internalType":"uint256","name":"maxPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseAmount","type":"uint256"},{"internalType":"uint256","name":"decreaseTime","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabledBurn","type":"bool"}],"name":"setIsBurnEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxMintAmountFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxWalletSupplyAmount","type":"uint256"}],"name":"setMaxWalletSupplyAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxWalletSupplyFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"},{"internalType":"uint256","name":"newStartTime","type":"uint256"},{"internalType":"uint256","name":"newMaxMintPerWallet","type":"uint256"},{"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"setPresaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMin","type":"uint256"},{"internalType":"uint256","name":"newMax","type":"uint256"},{"internalType":"uint256","name":"newDecreaseAmount","type":"uint256"},{"internalType":"uint256","name":"newDecreaseTime","type":"uint256"},{"internalType":"uint256","name":"newStartTime","type":"uint256"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
612852601f8190556020556023805460ff1916905560c06040526005608081905264173539b7b760d91b60a09081526200003d9160259190620006ec565b506040805160a081018252601d8082526020820181905291810191909152600a606082015260036080820152620000799060309060056200077b565b506040805160a081018252734f5d20491d9fd522898da93f05f0adea6c73ac1c8152739e78a07ad7db4213e2405a168fedea72d41deace602082015273da7ec08572f2cae2816a5528427baa731a95d8d3918101919091527372dd10c9c9d47316ff740c9afda36daef1e058c960608201527349b730f78f8dcc4f7cd091d6a52b01915002a834608082015262000115906031906005620007be565b503480156200012357600080fd5b5060318054806020026020016040519081016040528092919081815260200182805480156200017c57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116200015d575b50505050506030805480602002602001604051908101604052809291908181526020018280548015620001cf57602002820191906000526020600020905b815481526020019060010190808311620001ba575b5050604080518082018252601081526f20a822902120a725a4a7239021a62aa160811b60208083019182528351808501909452600384526241424360e81b90840152815191955091935062000229925060009190620006ec565b5080516200023f906001906020840190620006ec565b5050600a805460ff19169055506200025733620003f8565b8051825114620002c95760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200031c5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002c0565b60005b82518110156200038857620003738382815181106200034257620003426200082d565b60200260200101518383815181106200035f576200035f6200082d565b60200260200101516200044a60201b60201c565b806200037f8162000859565b9150506200031f565b506200039a9150600090503362000638565b620003c67ffbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313c3362000638565b620003f27f21702c8af46127c7fa207f89d0b0a8441bb32959a0ac7df790e9ab1a25c989263362000638565b620008cf565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004b75760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002c0565b60008111620005095760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002c0565b6001600160a01b0382166000908152600f602052604090205415620005855760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002c0565b60118054600181019091557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319166001600160a01b0384169081179091556000908152600f60205260409020819055600d54620005ef90829062000877565b600d55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b62000644828262000648565b5050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1662000644576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620006a83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620006fa9062000892565b90600052602060002090601f0160209004810192826200071e576000855562000769565b82601f106200073957805160ff191683800117855562000769565b8280016001018555821562000769579182015b82811115620007695782518255916020019190600101906200074c565b506200077792915062000816565b5090565b82805482825590600052602060002090810192821562000769579160200282015b8281111562000769578251829060ff169055916020019190600101906200079c565b82805482825590600052602060002090810192821562000769579160200282015b828111156200076957825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620007df565b5b8082111562000777576000815560010162000817565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141562000870576200087062000843565b5060010190565b600082198211156200088d576200088d62000843565b500190565b600181811c90821680620008a757607f821691505b60208210811415620008c957634e487b7160e01b600052602260045260246000fd5b50919050565b615cfb80620008df6000396000f3fe6080604052600436106104985760003560e01c80637cd1507511610260578063c49baebe11610144578063e62aa543116100c1578063f0bd87cc11610085578063f0bd87cc14610eb2578063f2c4ce1e14610ed4578063f2fde38b14610ef4578063f75d64a614610f14578063fb93210814610f36578063fd88fa6914610f5657600080fd5b8063e62aa54314610dd9578063e6f3350014610df9578063e8bc0b7914610e19578063e985e9c514610e39578063eba4f2f214610e8257600080fd5b8063d63ba14911610108578063d63ba14914610d3b578063d79779b214610d4e578063da3ef23f14610d84578063def9a6f114610da4578063e33b7de314610dc457600080fd5b8063c49baebe14610c7c578063c668286214610cb0578063c87b56dd14610cc5578063ce7c2ac214610ce5578063d547741f14610d1b57600080fd5b806398d5fdca116101dd578063a22cb465116101a1578063a22cb46514610bdc578063a475b5dd14610bfc578063a48256c214610c11578063af35ae2714610c31578063b7d1919c14610c46578063b88d4fde14610c5c57600080fd5b806398d5fdca14610b6a5780639de5e7ba14610b7f578063a0712d6814610b94578063a10e8a8b14610ba7578063a217fddf14610bc757600080fd5b80638da5cb5b116102245780638da5cb5b14610a9257806390aa0b0f14610ab057806391d1485414610aff57806395d89b4114610b1f5780639852595c14610b3457600080fd5b80637cd15075146109fd57806381ad2eb114610a1d578063838b1df014610a3d5780638456cb5914610a5d5780638b83209b14610a7257600080fd5b806336568abe116103875780635492364b1161030457806363e0d09c116102c857806363e0d09c146109485780636e0e5b19146109685780637063c8821461098857806370a08231146109a8578063715018a6146109c85780637616dcbd146109dd57600080fd5b80635492364b146108a357806355f804b3146108d057806356813ad0146108f05780635c975abb146109105780636352211e1461092857600080fd5b806342966c681161034b57806342966c681461081357806348b75044146108335780634e4165a4146108535780634f6ccce714610869578063518302271461088957600080fd5b806336568abe146107635780633a98ef39146107835780633f4ba83a14610798578063406072a9146107ad57806342842e0e146107f357600080fd5b80631d8df630116104155780632f2ff15d116103d95780632f2ff15d146106d75780632f5c1ee1146106f75780632f745c591461070d5780632f92bb9c1461072d57806333039d3d1461074d57600080fd5b80631d8df630146106455780631e4d8cc01461065b578063239c70ae1461067157806323b872dd14610687578063248a9ca3146106a757600080fd5b8063088a4ed01161045c578063088a4ed0146105a4578063095ea7b3146105c6578063155e1c39146105e657806318160ddd14610606578063191655871461062557600080fd5b806301ffc9a7146104e657806306fdde031461051b57806307ebec271461053d578063081812fc14610557578063081c8c441461058f57600080fd5b366104e1577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156104f257600080fd5b5061050661050136600461503c565b610f99565b60405190151581526020015b60405180910390f35b34801561052757600080fd5b50610530610faa565b60405161051291906150b1565b34801561054957600080fd5b506021546105069060ff1681565b34801561056357600080fd5b506105776105723660046150c4565b61103c565b6040516001600160a01b039091168152602001610512565b34801561059b57600080fd5b506105306110d6565b3480156105b057600080fd5b506105c46105bf3660046150c4565b611164565b005b3480156105d257600080fd5b506105c46105e13660046150f2565b6111ce565b3480156105f257600080fd5b506105c461060136600461511e565b6112e4565b34801561061257600080fd5b506008545b604051908152602001610512565b34801561063157600080fd5b506105c4610640366004615150565b6113df565b34801561065157600080fd5b50610617601b5481565b34801561066757600080fd5b50610617601d5481565b34801561067d57600080fd5b50610617601f5481565b34801561069357600080fd5b506105c46106a236600461516d565b61150e565b3480156106b357600080fd5b506106176106c23660046150c4565b6000908152600b602052604090206001015490565b3480156106e357600080fd5b506105c46106f23660046151ae565b61153f565b34801561070357600080fd5b50610617601c5481565b34801561071957600080fd5b506106176107283660046150f2565b611565565b34801561073957600080fd5b50610617610748366004615150565b6115fb565b34801561075957600080fd5b5061061761285281565b34801561076f57600080fd5b506105c461077e3660046151ae565b611637565b34801561078f57600080fd5b50600d54610617565b3480156107a457600080fd5b506105c46116b5565b3480156107b957600080fd5b506106176107c83660046151de565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b3480156107ff57600080fd5b506105c461080e36600461516d565b6116cc565b34801561081f57600080fd5b506105c461082e3660046150c4565b6116e7565b34801561083f57600080fd5b506105c461084e3660046151de565b61184a565b34801561085f57600080fd5b5061061760205481565b34801561087557600080fd5b506106176108843660046150c4565b611a23565b34801561089557600080fd5b506023546105069060ff1681565b3480156108af57600080fd5b506108c36108be366004615150565b611ab6565b604051610512919061520c565b3480156108dc57600080fd5b506105c46108eb3660046152dc565b611b22565b3480156108fc57600080fd5b506105c461090b3660046150f2565b611b71565b34801561091c57600080fd5b50600a5460ff16610506565b34801561093457600080fd5b506105776109433660046150c4565b611c42565b34801561095457600080fd5b50610506610963366004615345565b611cb9565b34801561097457600080fd5b506105c461098336600461539a565b611cf0565b34801561099457600080fd5b506105c46109a33660046153b7565b611d3d565b3480156109b457600080fd5b506106176109c3366004615150565b611ecc565b3480156109d457600080fd5b506105c4611f53565b3480156109e957600080fd5b506105c46109f83660046150f2565b611fb9565b348015610a0957600080fd5b50610617610a18366004615150565b61209d565b348015610a2957600080fd5b506105c4610a38366004615437565b612114565b348015610a4957600080fd5b50610617610a58366004615150565b6121f7565b348015610a6957600080fd5b506105c4612239565b348015610a7e57600080fd5b50610577610a8d3660046150c4565b61224d565b348015610a9e57600080fd5b50600c546001600160a01b0316610577565b348015610abc57600080fd5b50602754602854602954602a54602b54610ad7949392919085565b604080519586526020860194909452928401919091526060830152608082015260a001610512565b348015610b0b57600080fd5b50610506610b1a3660046151ae565b61227d565b348015610b2b57600080fd5b506105306122a8565b348015610b4057600080fd5b50610617610b4f366004615150565b6001600160a01b031660009081526010602052604090205490565b348015610b7657600080fd5b506106176122b7565b348015610b8b57600080fd5b506108c3612385565b6105c4610ba23660046150c4565b6123dc565b348015610bb357600080fd5b506105c4610bc23660046154a3565b612476565b348015610bd357600080fd5b50610617600081565b348015610be857600080fd5b506105c4610bf73660046154f8565b6124d9565b348015610c0857600080fd5b506105c46124e4565b348015610c1d57600080fd5b506105c4610c2c366004615526565b61257c565b348015610c3d57600080fd5b50610617612715565b348015610c5257600080fd5b50610617601e5481565b348015610c6857600080fd5b506105c4610c77366004615568565b61274b565b348015610c8857600080fd5b506106177f21702c8af46127c7fa207f89d0b0a8441bb32959a0ac7df790e9ab1a25c9892681565b348015610cbc57600080fd5b50610530612783565b348015610cd157600080fd5b50610530610ce03660046150c4565b612790565b348015610cf157600080fd5b50610617610d00366004615150565b6001600160a01b03166000908152600f602052604090205490565b348015610d2757600080fd5b506105c4610d363660046151ae565b6128ff565b6105c4610d493660046155d4565b612925565b348015610d5a57600080fd5b50610617610d69366004615150565b6001600160a01b031660009081526012602052604090205490565b348015610d9057600080fd5b506105c4610d9f3660046152dc565b612af3565b348015610db057600080fd5b506105c4610dbf3660046150c4565b612b42565b348015610dd057600080fd5b50600e54610617565b348015610de557600080fd5b50610617610df4366004615150565b612ba2565b348015610e0557600080fd5b50610617610e14366004615150565b612be4565b348015610e2557600080fd5b506105c4610e34366004615526565b612c3b565b348015610e4557600080fd5b50610506610e543660046151de565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e8e57600080fd5b50610506610e9d3660046150c4565b60009081526019602052604090205460ff1690565b348015610ebe57600080fd5b50610617600080516020615ca683398151915281565b348015610ee057600080fd5b506105c4610eef3660046152dc565b612dec565b348015610f0057600080fd5b506105c4610f0f366004615150565b612e3b565b348015610f2057600080fd5b50610f29612f2e565b604051610512919061563a565b348015610f4257600080fd5b506105c4610f513660046150f2565b613022565b348015610f6257600080fd5b50602c54602d54602e54602f54610f799392919084565b604080519485526020850193909352918301526060820152608001610512565b6000610fa48261305b565b92915050565b606060008054610fb990615662565b80601f0160208091040260200160405190810160405280929190818152602001828054610fe590615662565b80156110325780601f1061100757610100808354040283529160200191611032565b820191906000526020600020905b81548152906001019060200180831161101557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166110ba5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b602680546110e390615662565b80601f016020809104026020016040519081016040528092919081815260200182805461110f90615662565b801561115c5780601f106111315761010080835404028352916020019161115c565b820191906000526020600020905b81548152906001019060200180831161113f57829003601f168201915b505050505081565b60006111708133613080565b601f5482116111915760405162461bcd60e51b81526004016110b19061569d565b601f8290556040518281527fddc0f2faab931ffe55bb99e40973b8994d09d6ea43cec7d7960daa0d364bf429906020015b60405180910390a15050565b60006111d982611c42565b9050806001600160a01b0316836001600160a01b031614156112475760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016110b1565b336001600160a01b038216148061126357506112638133610e54565b6112d55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016110b1565b6112df83836130e4565b505050565b60006112f08133613080565b610384821161135e5760405162461bcd60e51b815260206004820152603460248201527f4142433a20746865206475726174696f6e2068617320746f2062652067726561604482015273746572207468616e20393030207365636f6e647360601b60648201526084016110b1565b604080516080808201835287825260208083018690528284018790526060928301889052602c899055602d869055602e879055602f88905583518981529081018690529283018690529082018690527f92189319fc7988ebf1234f53a5f159f3b1d24cd982b3df882f79127970a8c5b4910160405180910390a15050505050565b6001600160a01b0381166000908152600f60205260409020546114145760405162461bcd60e51b81526004016110b1906156ea565b600061141f600e5490565b6114299047615746565b905060006114568383611451866001600160a01b031660009081526010602052604090205490565b613152565b9050806114755760405162461bcd60e51b81526004016110b19061575e565b6001600160a01b0383166000908152601060205260408120805483929061149d908490615746565b9250508190555080600e60008282546114b69190615746565b909155506114c690508382613190565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05691015b60405180910390a1505050565b61151833826132a9565b6115345760405162461bcd60e51b81526004016110b1906157a9565b6112df83838361339c565b6000828152600b602052604090206001015461155b8133613080565b6112df8383613547565b600061157083611ecc565b82106115d25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016110b1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000611606826121f7565b61160f83611ecc565b1061161c57506000919050565b610fa461162883611ecc565b611631846121f7565b906135cd565b6001600160a01b03811633146116a75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016110b1565b6116b182826135d9565b5050565b60006116c18133613080565b6116c9613640565b50565b6112df8383836040518060200160405280600081525061274b565b60215460ff166117395760405162461bcd60e51b815260206004820152601860248201527f4142433a206275726e696e672069732064697361626c6564000000000000000060448201526064016110b1565b61174333826132a9565b6117a25760405162461bcd60e51b815260206004820152602a60248201527f4142433a206275726e2063616c6c6572206973206e6f74206f776e6572206e6f6044820152691c88185c1c1c9bdd995960b21b60648201526084016110b1565b6117ab816136d3565b3360008181526018602090815260408083208054600180820183559185528385200186905585845260198352818420805460ff191682179055601a805491820181559093527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e90920184905590518381527f97abcfbb181557ec4125ceac20fe3a0ee14ced1cbd51f014c85088fa5d140e38910160405180910390a250565b6001600160a01b0381166000908152600f602052604090205461187f5760405162461bcd60e51b81526004016110b1906156ea565b6001600160a01b0382166000908152601260205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa1580156118dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190091906157fa565b61190a9190615746565b90506000611943838361145187876001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b9050806119625760405162461bcd60e51b81526004016110b19061575e565b6001600160a01b03808516600090815260136020908152604080832093871683529290529081208054839290611999908490615746565b90915550506001600160a01b038416600090815260126020526040812080548392906119c6908490615746565b909155506119d7905084848361377a565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611a2e60085490565b8210611a915760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016110b1565b60088281548110611aa457611aa4615813565b90600052602060002001549050919050565b6001600160a01b038116600090815260186020908152604091829020805483518184028101840190945280845260609392830182828015611b1657602002820191906000526020600020905b815481526020019060010190808311611b02575b50505050509050919050565b6000611b2e8133613080565b8151611b41906024906020850190614f8d565b507f9bda31c5daf938016d59248ce284119fc191a83aabdfb40b4405397af0a9c97b826040516111c291906150b1565b6000611b7d8133613080565b81611b8784611ecc565b111580611ba7575081158015611ba75750602054611ba484611ecc565b11155b611bc35760405162461bcd60e51b81526004016110b190615829565b6001600160a01b038316600090815260166020526040902054821415611be857600080fd5b6001600160a01b03831660008181526016602052604090819020849055517f669bc4c6b40685819ed65eb5f3c82c498b3a7c14a4b26638fef64c0c963bfeea90611c359085815260200190565b60405180910390a2505050565b6000818152600260205260408120546001600160a01b031680610fa45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016110b1565b6000611ce97f21702c8af46127c7fa207f89d0b0a8441bb32959a0ac7df790e9ab1a25c98926610b1a85856137cc565b9392505050565b6000611cfc8133613080565b6021805460ff19168315159081179091556040519081527f161cb975aaa8adda6bbb1a4beec533c685d6f89788868f866475a90abb7daa64906020016111c2565b6000611d498133613080565b6103848311611dc05760405162461bcd60e51b815260206004820152603960248201527f4142433a207468652064656372656173652074696d652068617320746f20626560448201527f2067726561746572207468616e20393030207365636f6e64730000000000000060648201526084016110b1565b85851015611e365760405162461bcd60e51b815260206004820152603960248201527f4142433a20746865206d6178696d756d2070726963652068617320746f20626560448201527f2067726561746572207468616e20746865206d696e696d756d0000000000000060648201526084016110b1565b6040805160a0808201835288825260208083018990528284018890526060808401889052608093840187905260278b905560288a90556029899055602a889055602b87905584518b81529182018a90529381018890529283018690529082018490527f09f5eef026e2374137113ce1b2bd2d7e055cb80e5de12979821422d6781eecae91015b60405180910390a1505050505050565b60006001600160a01b038216611f375760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016110b1565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b03163314611fad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110b1565b611fb760006137f0565b565b6000611fc58133613080565b6001600160a01b0383166000908152601760205260409020548210158061200f57508115801561200f5750601f546001600160a01b03841660009081526017602052604090205411155b61202b5760405162461bcd60e51b81526004016110b190615829565b6001600160a01b03831660009081526015602052604090205482141561205057600080fd5b6001600160a01b03831660008181526015602052604090819020849055517f63a94ece0aa093915b9b3f9671c6a3fd5c6f3d7380f5668a1cb04620205715e890611c359085815260200190565b602e546001600160a01b0382166000908152601760205260408120549091116120c857506000919050565b6001600160a01b038216600090815260176020526040812054602e546120ed916135cd565b905060006120fa84612be4565b90508082111561210a578061210c565b815b949350505050565b600080516020615ca683398151915261212d8133613080565b83821461218a5760405162461bcd60e51b815260206004820152602560248201527f5468652074776f206c69737473206d7573742068617665207468652073616d656044820152642073697a6560d81b60648201526084016110b1565b60005b828110156121ef576121dd8686838181106121aa576121aa615813565b90506020020160208101906121bf9190615150565b8585848181106121d1576121d1615813565b90506020020135613842565b806121e78161586e565b91505061218d565b505050505050565b6001600160a01b0381166000908152601660205260408120541561223157506001600160a01b031660009081526016602052604090205490565b505060205490565b60006122458133613080565b6116c96139d7565b60006011828154811061226257612262615813565b6000918252602090912001546001600160a01b031692915050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610fb990615662565b6040805160a0810182526027548152602854602082015260295491810191909152602a5460608201819052602b5460808301526000919015806122fd5750806080015142105b1561230b5760200151919050565b6000612340826040015161233a84606001516123348660800151426135cd90919063ffffffff16565b90613a2f565b90613a3b565b9050816020015181118061236357508151602083015161236090836135cd565b11155b1561236f575051919050565b602082015161237e90826135cd565b9250505090565b6060601a80548060200260200160405190810160405280929190818152602001828054801561103257602002820191906000526020600020905b8154815260200190600101908083116123bf575050505050905090565b600a5460ff16156123ff5760405162461bcd60e51b81526004016110b190615889565b33818061240b836115fb565b10156124295760405162461bcd60e51b81526004016110b1906158b3565b33838061243583612be4565b1015801561244a575080612447612715565b10155b6124665760405162461bcd60e51b81526004016110b1906158ea565b61246f85613a47565b5050505050565b600080516020615ca683398151915261248f8133613080565b60005b828110156124c2576124b0858585848181106121d1576121d1615813565b806124ba8161586e565b915050612492565b50601c546124d09083613c25565b601c5550505050565b6116b1338383613c31565b60006124f08133613080565b60235460ff16156125435760405162461bcd60e51b815260206004820181905260248201527f4142433a20746f6b656e732061726520616c72656164792072657665616c656460448201526064016110b1565b6023805460ff191660011790556040517f363fa74723e9c79886f81f22581617531687bc64bc880da875f217a6054fcf8e90600090a150565b600080516020615ca68339815191526125958133613080565b60005b828110156126e3576125c18484838181106125b5576125b5615813565b90506020020135613d00565b1561260e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b1565b61285284848381811061262357612623615813565b9050602002013511156126485760405162461bcd60e51b81526004016110b19061592f565b6014600085858481811061265e5761265e615813565b602090810292909201358352508101919091526040016000205460ff166126d15760016014600086868581811061269757612697615813565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055601b546126cd906001613c25565b601b555b806126db8161586e565b915050612598565b507fddef1802c261b9771472bfe851a62419572c075d8c9aede82f647c0c4f6867438383604051611501929190615966565b600061274661273d601b54612737601e54601d54613c2590919063ffffffff16565b90613c25565b612852906135cd565b905090565b61275533836132a9565b6127715760405162461bcd60e51b81526004016110b1906157a9565b61277d84848484613d36565b50505050565b602580546110e390615662565b6000818152600260205260409020546060906001600160a01b031661280f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016110b1565b60235460ff166128a1576026805461282690615662565b80601f016020809104026020016040519081016040528092919081815260200182805461285290615662565b8015611b165780601f1061287457610100808354040283529160200191611b16565b820191906000526020600020905b8154815290600101906020018083116128825750939695505050505050565b60006128ab613d69565b905060008151116128cb5760405180602001604052806000815250611ce9565b806128d584613d78565b60256040516020016128e9939291906159a2565b6040516020818303038152906040529392505050565b6000828152600b602052604090206001015461291b8133613080565b6112df83836135d9565b600a5460ff16156129485760405162461bcd60e51b81526004016110b190615889565b6040516bffffffffffffffffffffffff193360601b166020820152603481018390526129da90605401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b816129e58282611cb9565b612a315760405162461bcd60e51b815260206004820152601c60248201527f4142433a2075736572206973206e6f742077686974656c69737465640000000060448201526064016110b1565b338580612a3d836115fb565b1015612a5b5760405162461bcd60e51b81526004016110b1906158b3565b338780612a6783612be4565b10158015612a7c575080612a79612715565b10155b612a985760405162461bcd60e51b81526004016110b1906158ea565b42881015612adf5760405162461bcd60e51b8152602060048201526014602482015273105090ce881c185e5b1bd85908195e1c1a5c995960621b60448201526064016110b1565b612ae889613e76565b505050505050505050565b6000612aff8133613080565b8151612b12906025906020850190614f8d565b507fbd07a8ca2b3fa520529df4025f6bafa65b823904d02147bfdd55efc3fee24a17826040516111c291906150b1565b6000612b4e8133613080565b6020548211612b6f5760405162461bcd60e51b81526004016110b19061569d565b60208281556040518381527f96033fa2864d17d673d4404062e1813166c9b790b34b181ac9ef2c9958a9426191016111c2565b6001600160a01b03811660009081526015602052604081205415612bdc57506001600160a01b031660009081526015602052604090205490565b5050601f5490565b6000612bef82612ba2565b6001600160a01b03831660009081526017602052604090205410612c1557506000919050565b6001600160a01b038216600090815260176020526040902054610fa49061163184612ba2565b600080516020615ca6833981519152612c548133613080565b60005b82811015612dba57612852848483818110612c7457612c74615813565b905060200201351115612c995760405162461bcd60e51b81526004016110b19061592f565b612cae8484838181106125b5576125b5615813565b80612cd25750602254848483818110612cc957612cc9615813565b90506020020135115b612d1e5760405162461bcd60e51b815260206004820152601860248201527f4142433a20746f6b656e20616c7265616479206d696e6564000000000000000060448201526064016110b1565b60146000858584818110612d3457612d34615813565b602090810292909201358352508101919091526040016000205460ff1615612da857600060146000868685818110612d6e57612d6e615813565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055601b54612da49060016135cd565b601b555b80612db28161586e565b915050612c57565b507f0f00fd3e0c1cc5d8f79ed66a62ed790b62e0e0ab62918ac7d5993d3d7f17b3328383604051611501929190615966565b6000612df88133613080565b8151612e0b906026906020850190614f8d565b507f9fb45bd03b0ab294ee4706a8d9be948b5ff170990a56b5a6d530c83ef21f9f88826040516111c291906150b1565b33612e4e600c546001600160a01b031690565b6001600160a01b03161480612e695750612e6960003361227d565b612ec05760405162461bcd60e51b815260206004820152602260248201527f4142433a2063616c6c6572206973206e6f742061646d696e206e6f72206f776e60448201526132b960f11b60648201526084016110b1565b6001600160a01b038116612f255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110b1565b6116c9816137f0565b6000612852612f3c60085490565b1415612f485750600590565b612f50612715565b612f5a5750600490565b6040805160a0810182526027548152602854602082015260295491810191909152602a546060820152602b546080820181905215801590612f9f575080608001514210155b15612fac57600391505090565b60408051608081018252602c548152602d546020820152602e5491810191909152602f546060820181905215801590612fe9575080606001514210155b15613019576020810151606082015161300191613c25565b42116130105760019250505090565b60029250505090565b60009250505090565b600080516020615ca683398151915261303b8133613080565b6130458383613842565b601c54613053906001613c25565b601c55505050565b60006001600160e01b03198216637965db0b60e01b1480610fa45750610fa482614125565b61308a828261227d565b6116b1576130a2816001600160a01b0316601461414a565b6130ad83602061414a565b6040516020016130be929190615a66565b60408051601f198184030181529082905262461bcd60e51b82526110b1916004016150b1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061311982611c42565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600d546001600160a01b0384166000908152600f60205260408120549091839161317c9086615adb565b6131869190615b10565b61210c9190615b24565b804710156131e05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016110b1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461322d576040519150601f19603f3d011682016040523d82523d6000602084013e613232565b606091505b50509050806112df5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016110b1565b6000818152600260205260408120546001600160a01b03166133225760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016110b1565b600061332d83611c42565b9050806001600160a01b0316846001600160a01b031614806133685750836001600160a01b031661335d8461103c565b6001600160a01b0316145b8061210c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661210c565b826001600160a01b03166133af82611c42565b6001600160a01b0316146134175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016110b1565b6001600160a01b0382166134795760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016110b1565b6134848383836142e6565b61348f6000826130e4565b6001600160a01b03831660009081526003602052604081208054600192906134b8908490615b24565b90915550506001600160a01b03821660009081526003602052604081208054600192906134e6908490615746565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b613551828261227d565b6116b1576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556135893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611ce98284615b24565b6135e3828261227d565b156116b1576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600a5460ff166136895760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016110b1565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006136de82611c42565b90506136ec816000846142e6565b6136f76000836130e4565b6001600160a01b0381166000908152600360205260408120805460019290613720908490615b24565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112df908490614351565b60008060006137db8585614423565b915091506137e881614493565b509392505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8160018061384f836115fb565b101561386d5760405162461bcd60e51b81526004016110b1906158b3565b600083116138b65760405162461bcd60e51b815260206004820152601660248201527504142433a20546f6b656e2049442063616e20626520360541b60448201526064016110b1565b6128528311156138d85760405162461bcd60e51b81526004016110b19061592f565b6138e183613d00565b156139395760405162461bcd60e51b815260206004820152602260248201527f4142433a20746f6b656e20616c7265616479206d696e746564206f72206275726044820152611b9d60f21b60648201526084016110b1565b60008381526014602052604090205460ff1661397b576000838152601460205260409020805460ff19166001908117909155601b5461397791613c25565b601b555b613985848461464e565b61285261399160085490565b1061277d577fee66f9f21aca78ff32f79a7e6e5160544693aeaf0fd6c9105059993e83881f056139c060085490565b60405190815260200160405180910390a150505050565b600a5460ff16156139fa5760405162461bcd60e51b81526004016110b190615889565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586136b63390565b6000611ce98284615b10565b6000611ce98284615adb565b6040805160a0810182526027548152602854602082015260295491810191909152602a546060820152602b54608082015281613ab85760405162461bcd60e51b815260206004820152601060248201526f105090ce881e995c9bc8185b5bdd5b9d60821b60448201526064016110b1565b6000816080015111613b0c5760405162461bcd60e51b815260206004820152601760248201527f4142433a2073616c65206973206e6f742061637469766500000000000000000060448201526064016110b1565b8060800151421015613b585760405162461bcd60e51b8152602060048201526015602482015274105090ce881cd85b19481b9bdd081cdd185c9d1959605a1b60448201526064016110b1565b6000613b626122b7565b905034613b6f8483615adb565b1115613b8d5760405162461bcd60e51b81526004016110b190615b3b565b60005b83811015613bb357613ba133614668565b80613bab8161586e565b915050613b90565b5033600090815260176020526040902054613bce9084613c25565b33600090815260176020526040902055601d54613beb9084613c25565b601d556040805184815234602082015233917f0d905a2e95960c2ad9e627d829fae00e7f3b9794c3b62a5c376cf5deee8f2a209101611c35565b6000611ce98284615746565b816001600160a01b0316836001600160a01b03161415613c935760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016110b1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000818152600260205260408120546001600160a01b0316151580610fa457505060009081526019602052604090205460ff1690565b613d4184848461339c565b613d4d848484846147ea565b61277d5760405162461bcd60e51b81526004016110b190615b7f565b606060248054610fb990615662565b606081613d9c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613dc65780613db08161586e565b9150613dbf9050600a83615b10565b9150613da0565b60008167ffffffffffffffff811115613de157613de1615250565b6040519080825280601f01601f191660200182016040528015613e0b576020820181803683370190505b5090505b841561210c57613e20600183615b24565b9150613e2d600a86615bd1565b613e38906030615746565b60f81b818381518110613e4d57613e4d615813565b60200101906001600160f81b031916908160001a905350613e6f600a86615b10565b9450613e0f565b60408051608081018252602c548152602d546020820152602e5491810191909152602f54606082015281613edf5760405162461bcd60e51b815260206004820152601060248201526f105090ce881e995c9bc8185b5bdd5b9d60821b60448201526064016110b1565b6000816060015111613f335760405162461bcd60e51b815260206004820152601a60248201527f4142433a2070726573616c65206973206e6f742061637469766500000000000060448201526064016110b1565b8060600151421015613f875760405162461bcd60e51b815260206004820152601860248201527f4142433a2070726573616c65206e6f742073746172746564000000000000000060448201526064016110b1565b60208101516060820151613f9a91613c25565b421115613fe15760405162461bcd60e51b8152602060048201526015602482015274105090ce881c1c995cd85b19481a5cc8195b991959605a1b60448201526064016110b1565b604080820151336000908152601760205291909120546140019084613c25565b11156140595760405162461bcd60e51b815260206004820152602160248201527f4142433a206d6178696d756d206d696e74206e756d62657220657863656564656044820152601960fa1b60648201526084016110b1565b80513490614068908490615adb565b11156140865760405162461bcd60e51b81526004016110b190615b3b565b60005b828110156140ac5761409a33614668565b806140a48161586e565b915050614089565b50336000908152601760205260409020546140c79083613c25565b33600090815260176020526040902055601e546140e49083613c25565b601e556040805183815234602082015233917f40038d437ff4cece80b344923544b3c8527d7f6aa2f9202a9734d5d9c7ffa0e0910160405180910390a25050565b60006001600160e01b0319821663780e9d6360e01b1480610fa45750610fa4826148e8565b60606000614159836002615adb565b614164906002615746565b67ffffffffffffffff81111561417c5761417c615250565b6040519080825280601f01601f1916602001820160405280156141a6576020820181803683370190505b509050600360fc1b816000815181106141c1576141c1615813565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106141f0576141f0615813565b60200101906001600160f81b031916908160001a9053506000614214846002615adb565b61421f906001615746565b90505b6001811115614297576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061425357614253615813565b1a60f81b82828151811061426957614269615813565b60200101906001600160f81b031916908160001a90535060049490941c9361429081615be5565b9050614222565b508315611ce95760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110b1565b600a5460ff16156143095760405162461bcd60e51b81526004016110b190615889565b8160016001600160a01b038216158061432a575080614327836115fb565b10155b6143465760405162461bcd60e51b81526004016110b1906158b3565b61246f858585614938565b60006143a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166149f09092919063ffffffff16565b8051909150156112df57808060200190518101906143c49190615bfc565b6112df5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016110b1565b60008082516041141561445a5760208301516040840151606085015160001a61444e878285856149ff565b9450945050505061448c565b8251604014156144845760208301516040840151614479868383614aec565b93509350505061448c565b506000905060025b9250929050565b60008160048111156144a7576144a7615624565b14156144b05750565b60018160048111156144c4576144c4615624565b14156145125760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016110b1565b600281600481111561452657614526615624565b14156145745760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016110b1565b600381600481111561458857614588615624565b14156145e15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016110b1565b60048160048111156145f5576145f5615624565b14156116c95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016110b1565b6116b1828260405180602001604052806000815250614b1b565b80600180614675836115fb565b10156146935760405162461bcd60e51b81526004016110b1906158b3565b826001806146a083612be4565b101580156146b55750806146b2612715565b10155b6146d15760405162461bcd60e51b81526004016110b1906158ea565b6022546000906146e2906001613c25565b90505b60008181526014602052604090205460ff1680614706575061470681613d00565b801561471457506128528111155b1561472b57614724816001613c25565b90506146e5565b61285281111561474d5760405162461bcd60e51b81526004016110b19061592f565b614757868261464e565b602281905561285281106147a1577f7e1f5a77187e90f1751221bbd46ae08322d11774a58ae99cdb7d8573f4140c9061478f60085490565b60405190815260200160405180910390a15b6128526147ad60085490565b106121ef577fee66f9f21aca78ff32f79a7e6e5160544693aeaf0fd6c9105059993e83881f056147dc60085490565b604051908152602001611ebc565b60006001600160a01b0384163b156148dd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061482e903390899088908890600401615c19565b6020604051808303816000875af1925050508015614869575060408051601f3d908101601f1916820190925261486691810190615c56565b60015b6148c3573d808015614897576040519150601f19603f3d011682016040523d82523d6000602084013e61489c565b606091505b5080516148bb5760405162461bcd60e51b81526004016110b190615b7f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061210c565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061491957506001600160e01b03198216635b5e139f60e01b145b80610fa457506301ffc9a760e01b6001600160e01b0319831614610fa4565b6001600160a01b0383166149935761498e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6149b6565b816001600160a01b0316836001600160a01b0316146149b6576149b68382614b4e565b6001600160a01b0382166149cd576112df81614beb565b826001600160a01b0316826001600160a01b0316146112df576112df8282614c9a565b606061210c8484600085614cde565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115614a365750600090506003614ae3565b8460ff16601b14158015614a4e57508460ff16601c14155b15614a5f5750600090506004614ae3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614ab3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116614adc57600060019250925050614ae3565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01614b0d878288856149ff565b935093505050935093915050565b614b258383614e06565b614b3260008484846147ea565b6112df5760405162461bcd60e51b81526004016110b190615b7f565b60006001614b5b84611ecc565b614b659190615b24565b600083815260076020526040902054909150808214614bb8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614bfd90600190615b24565b60008381526009602052604081205460088054939450909284908110614c2557614c25615813565b906000526020600020015490508060088381548110614c4657614c46615813565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614c7e57614c7e615c73565b6001900381819060005260206000200160009055905550505050565b6000614ca583611ecc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b606082471015614d3f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016110b1565b843b614d8d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016110b1565b600080866001600160a01b03168587604051614da99190615c89565b60006040518083038185875af1925050503d8060008114614de6576040519150601f19603f3d011682016040523d82523d6000602084013e614deb565b606091505b5091509150614dfb828286614f54565b979650505050505050565b6001600160a01b038216614e5c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016110b1565b6000818152600260205260409020546001600160a01b031615614ec15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b1565b614ecd600083836142e6565b6001600160a01b0382166000908152600360205260408120805460019290614ef6908490615746565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60608315614f63575081611ce9565b825115614f735782518084602001fd5b8160405162461bcd60e51b81526004016110b191906150b1565b828054614f9990615662565b90600052602060002090601f016020900481019282614fbb5760008555615001565b82601f10614fd457805160ff1916838001178555615001565b82800160010185558215615001579182015b82811115615001578251825591602001919060010190614fe6565b5061500d929150615011565b5090565b5b8082111561500d5760008155600101615012565b6001600160e01b0319811681146116c957600080fd5b60006020828403121561504e57600080fd5b8135611ce981615026565b60005b8381101561507457818101518382015260200161505c565b8381111561277d5750506000910152565b6000815180845261509d816020860160208601615059565b601f01601f19169290920160200192915050565b602081526000611ce96020830184615085565b6000602082840312156150d657600080fd5b5035919050565b6001600160a01b03811681146116c957600080fd5b6000806040838503121561510557600080fd5b8235615110816150dd565b946020939093013593505050565b6000806000806080858703121561513457600080fd5b5050823594602084013594506040840135936060013592509050565b60006020828403121561516257600080fd5b8135611ce9816150dd565b60008060006060848603121561518257600080fd5b833561518d816150dd565b9250602084013561519d816150dd565b929592945050506040919091013590565b600080604083850312156151c157600080fd5b8235915060208301356151d3816150dd565b809150509250929050565b600080604083850312156151f157600080fd5b82356151fc816150dd565b915060208301356151d3816150dd565b6020808252825182820181905260009190848201906040850190845b8181101561524457835183529284019291840191600101615228565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561528157615281615250565b604051601f8501601f19908116603f011681019082821181831017156152a9576152a9615250565b816040528093508581528686860111156152c257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156152ee57600080fd5b813567ffffffffffffffff81111561530557600080fd5b8201601f8101841361531657600080fd5b61210c84823560208401615266565b600082601f83011261533657600080fd5b611ce983833560208501615266565b6000806040838503121561535857600080fd5b82359150602083013567ffffffffffffffff81111561537657600080fd5b61538285828601615325565b9150509250929050565b80151581146116c957600080fd5b6000602082840312156153ac57600080fd5b8135611ce98161538c565b600080600080600060a086880312156153cf57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60008083601f84011261540457600080fd5b50813567ffffffffffffffff81111561541c57600080fd5b6020830191508360208260051b850101111561448c57600080fd5b6000806000806040858703121561544d57600080fd5b843567ffffffffffffffff8082111561546557600080fd5b615471888389016153f2565b9096509450602087013591508082111561548a57600080fd5b50615497878288016153f2565b95989497509550505050565b6000806000604084860312156154b857600080fd5b83356154c3816150dd565b9250602084013567ffffffffffffffff8111156154df57600080fd5b6154eb868287016153f2565b9497909650939450505050565b6000806040838503121561550b57600080fd5b8235615516816150dd565b915060208301356151d38161538c565b6000806020838503121561553957600080fd5b823567ffffffffffffffff81111561555057600080fd5b61555c858286016153f2565b90969095509350505050565b6000806000806080858703121561557e57600080fd5b8435615589816150dd565b93506020850135615599816150dd565b925060408501359150606085013567ffffffffffffffff8111156155bc57600080fd5b6155c887828801615325565b91505092959194509250565b6000806000606084860312156155e957600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561560e57600080fd5b61561a86828701615325565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b602081016006831061565c57634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c9082168061567657607f821691505b6020821081141561569757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4142433a20746865206e657720616d6f756e74206973206c6f7765722074686160408201526c6e20746865206f6c64206f6e6560981b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561575957615759615730565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60006020828403121561580c57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60208082526025908201527f4142433a20616c726561647920657863656564656420746865206e6577206d6160408201526478696d756d60d81b606082015260800190565b600060001982141561588257615882615730565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f4142433a206e756d626572206f6620746f6b656e732065786365656465640000604082015260600190565b60208082526025908201527f4142433a206e756d626572206f66206d696e74656420746f6b656e7320657863604082015264195959195960da1b606082015260800190565b60208082526018908201527f4142433a206d617820737570706c792065786365656465640000000000000000604082015260600190565b6020808252810182905260006001600160fb1b0383111561598657600080fd5b8260051b80856040850137600092016040019182525092915050565b6000845160206159b58285838a01615059565b8551918401916159c88184848a01615059565b8554920191600090600181811c90808316806159e557607f831692505b858310811415615a0357634e487b7160e01b85526022600452602485fd5b808015615a175760018114615a2857615a55565b60ff19851688528388019550615a55565b60008b81526020902060005b85811015615a4d5781548a820152908401908801615a34565b505083880195505b50939b9a5050505050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615a9e816017850160208801615059565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615acf816028840160208801615059565b01602801949350505050565b6000816000190483118215151615615af557615af5615730565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615b1f57615b1f615afa565b500490565b600082821015615b3657615b36615730565b500390565b60208082526024908201527f4142433a2045746865722076616c75652073656e74206973206e6f7420636f726040820152631c9958dd60e21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082615be057615be0615afa565b500690565b600081615bf457615bf4615730565b506000190190565b600060208284031215615c0e57600080fd5b8151611ce98161538c565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615c4c90830184615085565b9695505050505050565b600060208284031215615c6857600080fd5b8151611ce981615026565b634e487b7160e01b600052603160045260246000fd5b60008251615c9b818460208701615059565b919091019291505056fefbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313ca2646970667358221220ace6bb3a5cc56f3c0d133b080ef9418e5c0ab4cf017bc05806407cd0be6a7aab64736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106104985760003560e01c80637cd1507511610260578063c49baebe11610144578063e62aa543116100c1578063f0bd87cc11610085578063f0bd87cc14610eb2578063f2c4ce1e14610ed4578063f2fde38b14610ef4578063f75d64a614610f14578063fb93210814610f36578063fd88fa6914610f5657600080fd5b8063e62aa54314610dd9578063e6f3350014610df9578063e8bc0b7914610e19578063e985e9c514610e39578063eba4f2f214610e8257600080fd5b8063d63ba14911610108578063d63ba14914610d3b578063d79779b214610d4e578063da3ef23f14610d84578063def9a6f114610da4578063e33b7de314610dc457600080fd5b8063c49baebe14610c7c578063c668286214610cb0578063c87b56dd14610cc5578063ce7c2ac214610ce5578063d547741f14610d1b57600080fd5b806398d5fdca116101dd578063a22cb465116101a1578063a22cb46514610bdc578063a475b5dd14610bfc578063a48256c214610c11578063af35ae2714610c31578063b7d1919c14610c46578063b88d4fde14610c5c57600080fd5b806398d5fdca14610b6a5780639de5e7ba14610b7f578063a0712d6814610b94578063a10e8a8b14610ba7578063a217fddf14610bc757600080fd5b80638da5cb5b116102245780638da5cb5b14610a9257806390aa0b0f14610ab057806391d1485414610aff57806395d89b4114610b1f5780639852595c14610b3457600080fd5b80637cd15075146109fd57806381ad2eb114610a1d578063838b1df014610a3d5780638456cb5914610a5d5780638b83209b14610a7257600080fd5b806336568abe116103875780635492364b1161030457806363e0d09c116102c857806363e0d09c146109485780636e0e5b19146109685780637063c8821461098857806370a08231146109a8578063715018a6146109c85780637616dcbd146109dd57600080fd5b80635492364b146108a357806355f804b3146108d057806356813ad0146108f05780635c975abb146109105780636352211e1461092857600080fd5b806342966c681161034b57806342966c681461081357806348b75044146108335780634e4165a4146108535780634f6ccce714610869578063518302271461088957600080fd5b806336568abe146107635780633a98ef39146107835780633f4ba83a14610798578063406072a9146107ad57806342842e0e146107f357600080fd5b80631d8df630116104155780632f2ff15d116103d95780632f2ff15d146106d75780632f5c1ee1146106f75780632f745c591461070d5780632f92bb9c1461072d57806333039d3d1461074d57600080fd5b80631d8df630146106455780631e4d8cc01461065b578063239c70ae1461067157806323b872dd14610687578063248a9ca3146106a757600080fd5b8063088a4ed01161045c578063088a4ed0146105a4578063095ea7b3146105c6578063155e1c39146105e657806318160ddd14610606578063191655871461062557600080fd5b806301ffc9a7146104e657806306fdde031461051b57806307ebec271461053d578063081812fc14610557578063081c8c441461058f57600080fd5b366104e1577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156104f257600080fd5b5061050661050136600461503c565b610f99565b60405190151581526020015b60405180910390f35b34801561052757600080fd5b50610530610faa565b60405161051291906150b1565b34801561054957600080fd5b506021546105069060ff1681565b34801561056357600080fd5b506105776105723660046150c4565b61103c565b6040516001600160a01b039091168152602001610512565b34801561059b57600080fd5b506105306110d6565b3480156105b057600080fd5b506105c46105bf3660046150c4565b611164565b005b3480156105d257600080fd5b506105c46105e13660046150f2565b6111ce565b3480156105f257600080fd5b506105c461060136600461511e565b6112e4565b34801561061257600080fd5b506008545b604051908152602001610512565b34801561063157600080fd5b506105c4610640366004615150565b6113df565b34801561065157600080fd5b50610617601b5481565b34801561066757600080fd5b50610617601d5481565b34801561067d57600080fd5b50610617601f5481565b34801561069357600080fd5b506105c46106a236600461516d565b61150e565b3480156106b357600080fd5b506106176106c23660046150c4565b6000908152600b602052604090206001015490565b3480156106e357600080fd5b506105c46106f23660046151ae565b61153f565b34801561070357600080fd5b50610617601c5481565b34801561071957600080fd5b506106176107283660046150f2565b611565565b34801561073957600080fd5b50610617610748366004615150565b6115fb565b34801561075957600080fd5b5061061761285281565b34801561076f57600080fd5b506105c461077e3660046151ae565b611637565b34801561078f57600080fd5b50600d54610617565b3480156107a457600080fd5b506105c46116b5565b3480156107b957600080fd5b506106176107c83660046151de565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b3480156107ff57600080fd5b506105c461080e36600461516d565b6116cc565b34801561081f57600080fd5b506105c461082e3660046150c4565b6116e7565b34801561083f57600080fd5b506105c461084e3660046151de565b61184a565b34801561085f57600080fd5b5061061760205481565b34801561087557600080fd5b506106176108843660046150c4565b611a23565b34801561089557600080fd5b506023546105069060ff1681565b3480156108af57600080fd5b506108c36108be366004615150565b611ab6565b604051610512919061520c565b3480156108dc57600080fd5b506105c46108eb3660046152dc565b611b22565b3480156108fc57600080fd5b506105c461090b3660046150f2565b611b71565b34801561091c57600080fd5b50600a5460ff16610506565b34801561093457600080fd5b506105776109433660046150c4565b611c42565b34801561095457600080fd5b50610506610963366004615345565b611cb9565b34801561097457600080fd5b506105c461098336600461539a565b611cf0565b34801561099457600080fd5b506105c46109a33660046153b7565b611d3d565b3480156109b457600080fd5b506106176109c3366004615150565b611ecc565b3480156109d457600080fd5b506105c4611f53565b3480156109e957600080fd5b506105c46109f83660046150f2565b611fb9565b348015610a0957600080fd5b50610617610a18366004615150565b61209d565b348015610a2957600080fd5b506105c4610a38366004615437565b612114565b348015610a4957600080fd5b50610617610a58366004615150565b6121f7565b348015610a6957600080fd5b506105c4612239565b348015610a7e57600080fd5b50610577610a8d3660046150c4565b61224d565b348015610a9e57600080fd5b50600c546001600160a01b0316610577565b348015610abc57600080fd5b50602754602854602954602a54602b54610ad7949392919085565b604080519586526020860194909452928401919091526060830152608082015260a001610512565b348015610b0b57600080fd5b50610506610b1a3660046151ae565b61227d565b348015610b2b57600080fd5b506105306122a8565b348015610b4057600080fd5b50610617610b4f366004615150565b6001600160a01b031660009081526010602052604090205490565b348015610b7657600080fd5b506106176122b7565b348015610b8b57600080fd5b506108c3612385565b6105c4610ba23660046150c4565b6123dc565b348015610bb357600080fd5b506105c4610bc23660046154a3565b612476565b348015610bd357600080fd5b50610617600081565b348015610be857600080fd5b506105c4610bf73660046154f8565b6124d9565b348015610c0857600080fd5b506105c46124e4565b348015610c1d57600080fd5b506105c4610c2c366004615526565b61257c565b348015610c3d57600080fd5b50610617612715565b348015610c5257600080fd5b50610617601e5481565b348015610c6857600080fd5b506105c4610c77366004615568565b61274b565b348015610c8857600080fd5b506106177f21702c8af46127c7fa207f89d0b0a8441bb32959a0ac7df790e9ab1a25c9892681565b348015610cbc57600080fd5b50610530612783565b348015610cd157600080fd5b50610530610ce03660046150c4565b612790565b348015610cf157600080fd5b50610617610d00366004615150565b6001600160a01b03166000908152600f602052604090205490565b348015610d2757600080fd5b506105c4610d363660046151ae565b6128ff565b6105c4610d493660046155d4565b612925565b348015610d5a57600080fd5b50610617610d69366004615150565b6001600160a01b031660009081526012602052604090205490565b348015610d9057600080fd5b506105c4610d9f3660046152dc565b612af3565b348015610db057600080fd5b506105c4610dbf3660046150c4565b612b42565b348015610dd057600080fd5b50600e54610617565b348015610de557600080fd5b50610617610df4366004615150565b612ba2565b348015610e0557600080fd5b50610617610e14366004615150565b612be4565b348015610e2557600080fd5b506105c4610e34366004615526565b612c3b565b348015610e4557600080fd5b50610506610e543660046151de565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e8e57600080fd5b50610506610e9d3660046150c4565b60009081526019602052604090205460ff1690565b348015610ebe57600080fd5b50610617600080516020615ca683398151915281565b348015610ee057600080fd5b506105c4610eef3660046152dc565b612dec565b348015610f0057600080fd5b506105c4610f0f366004615150565b612e3b565b348015610f2057600080fd5b50610f29612f2e565b604051610512919061563a565b348015610f4257600080fd5b506105c4610f513660046150f2565b613022565b348015610f6257600080fd5b50602c54602d54602e54602f54610f799392919084565b604080519485526020850193909352918301526060820152608001610512565b6000610fa48261305b565b92915050565b606060008054610fb990615662565b80601f0160208091040260200160405190810160405280929190818152602001828054610fe590615662565b80156110325780601f1061100757610100808354040283529160200191611032565b820191906000526020600020905b81548152906001019060200180831161101557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166110ba5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b602680546110e390615662565b80601f016020809104026020016040519081016040528092919081815260200182805461110f90615662565b801561115c5780601f106111315761010080835404028352916020019161115c565b820191906000526020600020905b81548152906001019060200180831161113f57829003601f168201915b505050505081565b60006111708133613080565b601f5482116111915760405162461bcd60e51b81526004016110b19061569d565b601f8290556040518281527fddc0f2faab931ffe55bb99e40973b8994d09d6ea43cec7d7960daa0d364bf429906020015b60405180910390a15050565b60006111d982611c42565b9050806001600160a01b0316836001600160a01b031614156112475760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016110b1565b336001600160a01b038216148061126357506112638133610e54565b6112d55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016110b1565b6112df83836130e4565b505050565b60006112f08133613080565b610384821161135e5760405162461bcd60e51b815260206004820152603460248201527f4142433a20746865206475726174696f6e2068617320746f2062652067726561604482015273746572207468616e20393030207365636f6e647360601b60648201526084016110b1565b604080516080808201835287825260208083018690528284018790526060928301889052602c899055602d869055602e879055602f88905583518981529081018690529283018690529082018690527f92189319fc7988ebf1234f53a5f159f3b1d24cd982b3df882f79127970a8c5b4910160405180910390a15050505050565b6001600160a01b0381166000908152600f60205260409020546114145760405162461bcd60e51b81526004016110b1906156ea565b600061141f600e5490565b6114299047615746565b905060006114568383611451866001600160a01b031660009081526010602052604090205490565b613152565b9050806114755760405162461bcd60e51b81526004016110b19061575e565b6001600160a01b0383166000908152601060205260408120805483929061149d908490615746565b9250508190555080600e60008282546114b69190615746565b909155506114c690508382613190565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05691015b60405180910390a1505050565b61151833826132a9565b6115345760405162461bcd60e51b81526004016110b1906157a9565b6112df83838361339c565b6000828152600b602052604090206001015461155b8133613080565b6112df8383613547565b600061157083611ecc565b82106115d25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016110b1565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000611606826121f7565b61160f83611ecc565b1061161c57506000919050565b610fa461162883611ecc565b611631846121f7565b906135cd565b6001600160a01b03811633146116a75760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016110b1565b6116b182826135d9565b5050565b60006116c18133613080565b6116c9613640565b50565b6112df8383836040518060200160405280600081525061274b565b60215460ff166117395760405162461bcd60e51b815260206004820152601860248201527f4142433a206275726e696e672069732064697361626c6564000000000000000060448201526064016110b1565b61174333826132a9565b6117a25760405162461bcd60e51b815260206004820152602a60248201527f4142433a206275726e2063616c6c6572206973206e6f74206f776e6572206e6f6044820152691c88185c1c1c9bdd995960b21b60648201526084016110b1565b6117ab816136d3565b3360008181526018602090815260408083208054600180820183559185528385200186905585845260198352818420805460ff191682179055601a805491820181559093527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e90920184905590518381527f97abcfbb181557ec4125ceac20fe3a0ee14ced1cbd51f014c85088fa5d140e38910160405180910390a250565b6001600160a01b0381166000908152600f602052604090205461187f5760405162461bcd60e51b81526004016110b1906156ea565b6001600160a01b0382166000908152601260205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa1580156118dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061190091906157fa565b61190a9190615746565b90506000611943838361145187876001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b9050806119625760405162461bcd60e51b81526004016110b19061575e565b6001600160a01b03808516600090815260136020908152604080832093871683529290529081208054839290611999908490615746565b90915550506001600160a01b038416600090815260126020526040812080548392906119c6908490615746565b909155506119d7905084848361377a565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000611a2e60085490565b8210611a915760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016110b1565b60088281548110611aa457611aa4615813565b90600052602060002001549050919050565b6001600160a01b038116600090815260186020908152604091829020805483518184028101840190945280845260609392830182828015611b1657602002820191906000526020600020905b815481526020019060010190808311611b02575b50505050509050919050565b6000611b2e8133613080565b8151611b41906024906020850190614f8d565b507f9bda31c5daf938016d59248ce284119fc191a83aabdfb40b4405397af0a9c97b826040516111c291906150b1565b6000611b7d8133613080565b81611b8784611ecc565b111580611ba7575081158015611ba75750602054611ba484611ecc565b11155b611bc35760405162461bcd60e51b81526004016110b190615829565b6001600160a01b038316600090815260166020526040902054821415611be857600080fd5b6001600160a01b03831660008181526016602052604090819020849055517f669bc4c6b40685819ed65eb5f3c82c498b3a7c14a4b26638fef64c0c963bfeea90611c359085815260200190565b60405180910390a2505050565b6000818152600260205260408120546001600160a01b031680610fa45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016110b1565b6000611ce97f21702c8af46127c7fa207f89d0b0a8441bb32959a0ac7df790e9ab1a25c98926610b1a85856137cc565b9392505050565b6000611cfc8133613080565b6021805460ff19168315159081179091556040519081527f161cb975aaa8adda6bbb1a4beec533c685d6f89788868f866475a90abb7daa64906020016111c2565b6000611d498133613080565b6103848311611dc05760405162461bcd60e51b815260206004820152603960248201527f4142433a207468652064656372656173652074696d652068617320746f20626560448201527f2067726561746572207468616e20393030207365636f6e64730000000000000060648201526084016110b1565b85851015611e365760405162461bcd60e51b815260206004820152603960248201527f4142433a20746865206d6178696d756d2070726963652068617320746f20626560448201527f2067726561746572207468616e20746865206d696e696d756d0000000000000060648201526084016110b1565b6040805160a0808201835288825260208083018990528284018890526060808401889052608093840187905260278b905560288a90556029899055602a889055602b87905584518b81529182018a90529381018890529283018690529082018490527f09f5eef026e2374137113ce1b2bd2d7e055cb80e5de12979821422d6781eecae91015b60405180910390a1505050505050565b60006001600160a01b038216611f375760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016110b1565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b03163314611fad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110b1565b611fb760006137f0565b565b6000611fc58133613080565b6001600160a01b0383166000908152601760205260409020548210158061200f57508115801561200f5750601f546001600160a01b03841660009081526017602052604090205411155b61202b5760405162461bcd60e51b81526004016110b190615829565b6001600160a01b03831660009081526015602052604090205482141561205057600080fd5b6001600160a01b03831660008181526015602052604090819020849055517f63a94ece0aa093915b9b3f9671c6a3fd5c6f3d7380f5668a1cb04620205715e890611c359085815260200190565b602e546001600160a01b0382166000908152601760205260408120549091116120c857506000919050565b6001600160a01b038216600090815260176020526040812054602e546120ed916135cd565b905060006120fa84612be4565b90508082111561210a578061210c565b815b949350505050565b600080516020615ca683398151915261212d8133613080565b83821461218a5760405162461bcd60e51b815260206004820152602560248201527f5468652074776f206c69737473206d7573742068617665207468652073616d656044820152642073697a6560d81b60648201526084016110b1565b60005b828110156121ef576121dd8686838181106121aa576121aa615813565b90506020020160208101906121bf9190615150565b8585848181106121d1576121d1615813565b90506020020135613842565b806121e78161586e565b91505061218d565b505050505050565b6001600160a01b0381166000908152601660205260408120541561223157506001600160a01b031660009081526016602052604090205490565b505060205490565b60006122458133613080565b6116c96139d7565b60006011828154811061226257612262615813565b6000918252602090912001546001600160a01b031692915050565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610fb990615662565b6040805160a0810182526027548152602854602082015260295491810191909152602a5460608201819052602b5460808301526000919015806122fd5750806080015142105b1561230b5760200151919050565b6000612340826040015161233a84606001516123348660800151426135cd90919063ffffffff16565b90613a2f565b90613a3b565b9050816020015181118061236357508151602083015161236090836135cd565b11155b1561236f575051919050565b602082015161237e90826135cd565b9250505090565b6060601a80548060200260200160405190810160405280929190818152602001828054801561103257602002820191906000526020600020905b8154815260200190600101908083116123bf575050505050905090565b600a5460ff16156123ff5760405162461bcd60e51b81526004016110b190615889565b33818061240b836115fb565b10156124295760405162461bcd60e51b81526004016110b1906158b3565b33838061243583612be4565b1015801561244a575080612447612715565b10155b6124665760405162461bcd60e51b81526004016110b1906158ea565b61246f85613a47565b5050505050565b600080516020615ca683398151915261248f8133613080565b60005b828110156124c2576124b0858585848181106121d1576121d1615813565b806124ba8161586e565b915050612492565b50601c546124d09083613c25565b601c5550505050565b6116b1338383613c31565b60006124f08133613080565b60235460ff16156125435760405162461bcd60e51b815260206004820181905260248201527f4142433a20746f6b656e732061726520616c72656164792072657665616c656460448201526064016110b1565b6023805460ff191660011790556040517f363fa74723e9c79886f81f22581617531687bc64bc880da875f217a6054fcf8e90600090a150565b600080516020615ca68339815191526125958133613080565b60005b828110156126e3576125c18484838181106125b5576125b5615813565b90506020020135613d00565b1561260e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b1565b61285284848381811061262357612623615813565b9050602002013511156126485760405162461bcd60e51b81526004016110b19061592f565b6014600085858481811061265e5761265e615813565b602090810292909201358352508101919091526040016000205460ff166126d15760016014600086868581811061269757612697615813565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055601b546126cd906001613c25565b601b555b806126db8161586e565b915050612598565b507fddef1802c261b9771472bfe851a62419572c075d8c9aede82f647c0c4f6867438383604051611501929190615966565b600061274661273d601b54612737601e54601d54613c2590919063ffffffff16565b90613c25565b612852906135cd565b905090565b61275533836132a9565b6127715760405162461bcd60e51b81526004016110b1906157a9565b61277d84848484613d36565b50505050565b602580546110e390615662565b6000818152600260205260409020546060906001600160a01b031661280f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016110b1565b60235460ff166128a1576026805461282690615662565b80601f016020809104026020016040519081016040528092919081815260200182805461285290615662565b8015611b165780601f1061287457610100808354040283529160200191611b16565b820191906000526020600020905b8154815290600101906020018083116128825750939695505050505050565b60006128ab613d69565b905060008151116128cb5760405180602001604052806000815250611ce9565b806128d584613d78565b60256040516020016128e9939291906159a2565b6040516020818303038152906040529392505050565b6000828152600b602052604090206001015461291b8133613080565b6112df83836135d9565b600a5460ff16156129485760405162461bcd60e51b81526004016110b190615889565b6040516bffffffffffffffffffffffff193360601b166020820152603481018390526129da90605401604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b816129e58282611cb9565b612a315760405162461bcd60e51b815260206004820152601c60248201527f4142433a2075736572206973206e6f742077686974656c69737465640000000060448201526064016110b1565b338580612a3d836115fb565b1015612a5b5760405162461bcd60e51b81526004016110b1906158b3565b338780612a6783612be4565b10158015612a7c575080612a79612715565b10155b612a985760405162461bcd60e51b81526004016110b1906158ea565b42881015612adf5760405162461bcd60e51b8152602060048201526014602482015273105090ce881c185e5b1bd85908195e1c1a5c995960621b60448201526064016110b1565b612ae889613e76565b505050505050505050565b6000612aff8133613080565b8151612b12906025906020850190614f8d565b507fbd07a8ca2b3fa520529df4025f6bafa65b823904d02147bfdd55efc3fee24a17826040516111c291906150b1565b6000612b4e8133613080565b6020548211612b6f5760405162461bcd60e51b81526004016110b19061569d565b60208281556040518381527f96033fa2864d17d673d4404062e1813166c9b790b34b181ac9ef2c9958a9426191016111c2565b6001600160a01b03811660009081526015602052604081205415612bdc57506001600160a01b031660009081526015602052604090205490565b5050601f5490565b6000612bef82612ba2565b6001600160a01b03831660009081526017602052604090205410612c1557506000919050565b6001600160a01b038216600090815260176020526040902054610fa49061163184612ba2565b600080516020615ca6833981519152612c548133613080565b60005b82811015612dba57612852848483818110612c7457612c74615813565b905060200201351115612c995760405162461bcd60e51b81526004016110b19061592f565b612cae8484838181106125b5576125b5615813565b80612cd25750602254848483818110612cc957612cc9615813565b90506020020135115b612d1e5760405162461bcd60e51b815260206004820152601860248201527f4142433a20746f6b656e20616c7265616479206d696e6564000000000000000060448201526064016110b1565b60146000858584818110612d3457612d34615813565b602090810292909201358352508101919091526040016000205460ff1615612da857600060146000868685818110612d6e57612d6e615813565b60209081029290920135835250810191909152604001600020805460ff1916911515919091179055601b54612da49060016135cd565b601b555b80612db28161586e565b915050612c57565b507f0f00fd3e0c1cc5d8f79ed66a62ed790b62e0e0ab62918ac7d5993d3d7f17b3328383604051611501929190615966565b6000612df88133613080565b8151612e0b906026906020850190614f8d565b507f9fb45bd03b0ab294ee4706a8d9be948b5ff170990a56b5a6d530c83ef21f9f88826040516111c291906150b1565b33612e4e600c546001600160a01b031690565b6001600160a01b03161480612e695750612e6960003361227d565b612ec05760405162461bcd60e51b815260206004820152602260248201527f4142433a2063616c6c6572206973206e6f742061646d696e206e6f72206f776e60448201526132b960f11b60648201526084016110b1565b6001600160a01b038116612f255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016110b1565b6116c9816137f0565b6000612852612f3c60085490565b1415612f485750600590565b612f50612715565b612f5a5750600490565b6040805160a0810182526027548152602854602082015260295491810191909152602a546060820152602b546080820181905215801590612f9f575080608001514210155b15612fac57600391505090565b60408051608081018252602c548152602d546020820152602e5491810191909152602f546060820181905215801590612fe9575080606001514210155b15613019576020810151606082015161300191613c25565b42116130105760019250505090565b60029250505090565b60009250505090565b600080516020615ca683398151915261303b8133613080565b6130458383613842565b601c54613053906001613c25565b601c55505050565b60006001600160e01b03198216637965db0b60e01b1480610fa45750610fa482614125565b61308a828261227d565b6116b1576130a2816001600160a01b0316601461414a565b6130ad83602061414a565b6040516020016130be929190615a66565b60408051601f198184030181529082905262461bcd60e51b82526110b1916004016150b1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061311982611c42565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600d546001600160a01b0384166000908152600f60205260408120549091839161317c9086615adb565b6131869190615b10565b61210c9190615b24565b804710156131e05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016110b1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461322d576040519150601f19603f3d011682016040523d82523d6000602084013e613232565b606091505b50509050806112df5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016110b1565b6000818152600260205260408120546001600160a01b03166133225760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016110b1565b600061332d83611c42565b9050806001600160a01b0316846001600160a01b031614806133685750836001600160a01b031661335d8461103c565b6001600160a01b0316145b8061210c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661210c565b826001600160a01b03166133af82611c42565b6001600160a01b0316146134175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016110b1565b6001600160a01b0382166134795760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016110b1565b6134848383836142e6565b61348f6000826130e4565b6001600160a01b03831660009081526003602052604081208054600192906134b8908490615b24565b90915550506001600160a01b03821660009081526003602052604081208054600192906134e6908490615746565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b613551828261227d565b6116b1576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556135893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611ce98284615b24565b6135e3828261227d565b156116b1576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600a5460ff166136895760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016110b1565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006136de82611c42565b90506136ec816000846142e6565b6136f76000836130e4565b6001600160a01b0381166000908152600360205260408120805460019290613720908490615b24565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112df908490614351565b60008060006137db8585614423565b915091506137e881614493565b509392505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8160018061384f836115fb565b101561386d5760405162461bcd60e51b81526004016110b1906158b3565b600083116138b65760405162461bcd60e51b815260206004820152601660248201527504142433a20546f6b656e2049442063616e20626520360541b60448201526064016110b1565b6128528311156138d85760405162461bcd60e51b81526004016110b19061592f565b6138e183613d00565b156139395760405162461bcd60e51b815260206004820152602260248201527f4142433a20746f6b656e20616c7265616479206d696e746564206f72206275726044820152611b9d60f21b60648201526084016110b1565b60008381526014602052604090205460ff1661397b576000838152601460205260409020805460ff19166001908117909155601b5461397791613c25565b601b555b613985848461464e565b61285261399160085490565b1061277d577fee66f9f21aca78ff32f79a7e6e5160544693aeaf0fd6c9105059993e83881f056139c060085490565b60405190815260200160405180910390a150505050565b600a5460ff16156139fa5760405162461bcd60e51b81526004016110b190615889565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586136b63390565b6000611ce98284615b10565b6000611ce98284615adb565b6040805160a0810182526027548152602854602082015260295491810191909152602a546060820152602b54608082015281613ab85760405162461bcd60e51b815260206004820152601060248201526f105090ce881e995c9bc8185b5bdd5b9d60821b60448201526064016110b1565b6000816080015111613b0c5760405162461bcd60e51b815260206004820152601760248201527f4142433a2073616c65206973206e6f742061637469766500000000000000000060448201526064016110b1565b8060800151421015613b585760405162461bcd60e51b8152602060048201526015602482015274105090ce881cd85b19481b9bdd081cdd185c9d1959605a1b60448201526064016110b1565b6000613b626122b7565b905034613b6f8483615adb565b1115613b8d5760405162461bcd60e51b81526004016110b190615b3b565b60005b83811015613bb357613ba133614668565b80613bab8161586e565b915050613b90565b5033600090815260176020526040902054613bce9084613c25565b33600090815260176020526040902055601d54613beb9084613c25565b601d556040805184815234602082015233917f0d905a2e95960c2ad9e627d829fae00e7f3b9794c3b62a5c376cf5deee8f2a209101611c35565b6000611ce98284615746565b816001600160a01b0316836001600160a01b03161415613c935760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016110b1565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000818152600260205260408120546001600160a01b0316151580610fa457505060009081526019602052604090205460ff1690565b613d4184848461339c565b613d4d848484846147ea565b61277d5760405162461bcd60e51b81526004016110b190615b7f565b606060248054610fb990615662565b606081613d9c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613dc65780613db08161586e565b9150613dbf9050600a83615b10565b9150613da0565b60008167ffffffffffffffff811115613de157613de1615250565b6040519080825280601f01601f191660200182016040528015613e0b576020820181803683370190505b5090505b841561210c57613e20600183615b24565b9150613e2d600a86615bd1565b613e38906030615746565b60f81b818381518110613e4d57613e4d615813565b60200101906001600160f81b031916908160001a905350613e6f600a86615b10565b9450613e0f565b60408051608081018252602c548152602d546020820152602e5491810191909152602f54606082015281613edf5760405162461bcd60e51b815260206004820152601060248201526f105090ce881e995c9bc8185b5bdd5b9d60821b60448201526064016110b1565b6000816060015111613f335760405162461bcd60e51b815260206004820152601a60248201527f4142433a2070726573616c65206973206e6f742061637469766500000000000060448201526064016110b1565b8060600151421015613f875760405162461bcd60e51b815260206004820152601860248201527f4142433a2070726573616c65206e6f742073746172746564000000000000000060448201526064016110b1565b60208101516060820151613f9a91613c25565b421115613fe15760405162461bcd60e51b8152602060048201526015602482015274105090ce881c1c995cd85b19481a5cc8195b991959605a1b60448201526064016110b1565b604080820151336000908152601760205291909120546140019084613c25565b11156140595760405162461bcd60e51b815260206004820152602160248201527f4142433a206d6178696d756d206d696e74206e756d62657220657863656564656044820152601960fa1b60648201526084016110b1565b80513490614068908490615adb565b11156140865760405162461bcd60e51b81526004016110b190615b3b565b60005b828110156140ac5761409a33614668565b806140a48161586e565b915050614089565b50336000908152601760205260409020546140c79083613c25565b33600090815260176020526040902055601e546140e49083613c25565b601e556040805183815234602082015233917f40038d437ff4cece80b344923544b3c8527d7f6aa2f9202a9734d5d9c7ffa0e0910160405180910390a25050565b60006001600160e01b0319821663780e9d6360e01b1480610fa45750610fa4826148e8565b60606000614159836002615adb565b614164906002615746565b67ffffffffffffffff81111561417c5761417c615250565b6040519080825280601f01601f1916602001820160405280156141a6576020820181803683370190505b509050600360fc1b816000815181106141c1576141c1615813565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106141f0576141f0615813565b60200101906001600160f81b031916908160001a9053506000614214846002615adb565b61421f906001615746565b90505b6001811115614297576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061425357614253615813565b1a60f81b82828151811061426957614269615813565b60200101906001600160f81b031916908160001a90535060049490941c9361429081615be5565b9050614222565b508315611ce95760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016110b1565b600a5460ff16156143095760405162461bcd60e51b81526004016110b190615889565b8160016001600160a01b038216158061432a575080614327836115fb565b10155b6143465760405162461bcd60e51b81526004016110b1906158b3565b61246f858585614938565b60006143a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166149f09092919063ffffffff16565b8051909150156112df57808060200190518101906143c49190615bfc565b6112df5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016110b1565b60008082516041141561445a5760208301516040840151606085015160001a61444e878285856149ff565b9450945050505061448c565b8251604014156144845760208301516040840151614479868383614aec565b93509350505061448c565b506000905060025b9250929050565b60008160048111156144a7576144a7615624565b14156144b05750565b60018160048111156144c4576144c4615624565b14156145125760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016110b1565b600281600481111561452657614526615624565b14156145745760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016110b1565b600381600481111561458857614588615624565b14156145e15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016110b1565b60048160048111156145f5576145f5615624565b14156116c95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016110b1565b6116b1828260405180602001604052806000815250614b1b565b80600180614675836115fb565b10156146935760405162461bcd60e51b81526004016110b1906158b3565b826001806146a083612be4565b101580156146b55750806146b2612715565b10155b6146d15760405162461bcd60e51b81526004016110b1906158ea565b6022546000906146e2906001613c25565b90505b60008181526014602052604090205460ff1680614706575061470681613d00565b801561471457506128528111155b1561472b57614724816001613c25565b90506146e5565b61285281111561474d5760405162461bcd60e51b81526004016110b19061592f565b614757868261464e565b602281905561285281106147a1577f7e1f5a77187e90f1751221bbd46ae08322d11774a58ae99cdb7d8573f4140c9061478f60085490565b60405190815260200160405180910390a15b6128526147ad60085490565b106121ef577fee66f9f21aca78ff32f79a7e6e5160544693aeaf0fd6c9105059993e83881f056147dc60085490565b604051908152602001611ebc565b60006001600160a01b0384163b156148dd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061482e903390899088908890600401615c19565b6020604051808303816000875af1925050508015614869575060408051601f3d908101601f1916820190925261486691810190615c56565b60015b6148c3573d808015614897576040519150601f19603f3d011682016040523d82523d6000602084013e61489c565b606091505b5080516148bb5760405162461bcd60e51b81526004016110b190615b7f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061210c565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061491957506001600160e01b03198216635b5e139f60e01b145b80610fa457506301ffc9a760e01b6001600160e01b0319831614610fa4565b6001600160a01b0383166149935761498e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6149b6565b816001600160a01b0316836001600160a01b0316146149b6576149b68382614b4e565b6001600160a01b0382166149cd576112df81614beb565b826001600160a01b0316826001600160a01b0316146112df576112df8282614c9a565b606061210c8484600085614cde565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115614a365750600090506003614ae3565b8460ff16601b14158015614a4e57508460ff16601c14155b15614a5f5750600090506004614ae3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614ab3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116614adc57600060019250925050614ae3565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01614b0d878288856149ff565b935093505050935093915050565b614b258383614e06565b614b3260008484846147ea565b6112df5760405162461bcd60e51b81526004016110b190615b7f565b60006001614b5b84611ecc565b614b659190615b24565b600083815260076020526040902054909150808214614bb8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090614bfd90600190615b24565b60008381526009602052604081205460088054939450909284908110614c2557614c25615813565b906000526020600020015490508060088381548110614c4657614c46615813565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480614c7e57614c7e615c73565b6001900381819060005260206000200160009055905550505050565b6000614ca583611ecc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b606082471015614d3f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016110b1565b843b614d8d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016110b1565b600080866001600160a01b03168587604051614da99190615c89565b60006040518083038185875af1925050503d8060008114614de6576040519150601f19603f3d011682016040523d82523d6000602084013e614deb565b606091505b5091509150614dfb828286614f54565b979650505050505050565b6001600160a01b038216614e5c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016110b1565b6000818152600260205260409020546001600160a01b031615614ec15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016110b1565b614ecd600083836142e6565b6001600160a01b0382166000908152600360205260408120805460019290614ef6908490615746565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60608315614f63575081611ce9565b825115614f735782518084602001fd5b8160405162461bcd60e51b81526004016110b191906150b1565b828054614f9990615662565b90600052602060002090601f016020900481019282614fbb5760008555615001565b82601f10614fd457805160ff1916838001178555615001565b82800160010185558215615001579182015b82811115615001578251825591602001919060010190614fe6565b5061500d929150615011565b5090565b5b8082111561500d5760008155600101615012565b6001600160e01b0319811681146116c957600080fd5b60006020828403121561504e57600080fd5b8135611ce981615026565b60005b8381101561507457818101518382015260200161505c565b8381111561277d5750506000910152565b6000815180845261509d816020860160208601615059565b601f01601f19169290920160200192915050565b602081526000611ce96020830184615085565b6000602082840312156150d657600080fd5b5035919050565b6001600160a01b03811681146116c957600080fd5b6000806040838503121561510557600080fd5b8235615110816150dd565b946020939093013593505050565b6000806000806080858703121561513457600080fd5b5050823594602084013594506040840135936060013592509050565b60006020828403121561516257600080fd5b8135611ce9816150dd565b60008060006060848603121561518257600080fd5b833561518d816150dd565b9250602084013561519d816150dd565b929592945050506040919091013590565b600080604083850312156151c157600080fd5b8235915060208301356151d3816150dd565b809150509250929050565b600080604083850312156151f157600080fd5b82356151fc816150dd565b915060208301356151d3816150dd565b6020808252825182820181905260009190848201906040850190845b8181101561524457835183529284019291840191600101615228565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561528157615281615250565b604051601f8501601f19908116603f011681019082821181831017156152a9576152a9615250565b816040528093508581528686860111156152c257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156152ee57600080fd5b813567ffffffffffffffff81111561530557600080fd5b8201601f8101841361531657600080fd5b61210c84823560208401615266565b600082601f83011261533657600080fd5b611ce983833560208501615266565b6000806040838503121561535857600080fd5b82359150602083013567ffffffffffffffff81111561537657600080fd5b61538285828601615325565b9150509250929050565b80151581146116c957600080fd5b6000602082840312156153ac57600080fd5b8135611ce98161538c565b600080600080600060a086880312156153cf57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60008083601f84011261540457600080fd5b50813567ffffffffffffffff81111561541c57600080fd5b6020830191508360208260051b850101111561448c57600080fd5b6000806000806040858703121561544d57600080fd5b843567ffffffffffffffff8082111561546557600080fd5b615471888389016153f2565b9096509450602087013591508082111561548a57600080fd5b50615497878288016153f2565b95989497509550505050565b6000806000604084860312156154b857600080fd5b83356154c3816150dd565b9250602084013567ffffffffffffffff8111156154df57600080fd5b6154eb868287016153f2565b9497909650939450505050565b6000806040838503121561550b57600080fd5b8235615516816150dd565b915060208301356151d38161538c565b6000806020838503121561553957600080fd5b823567ffffffffffffffff81111561555057600080fd5b61555c858286016153f2565b90969095509350505050565b6000806000806080858703121561557e57600080fd5b8435615589816150dd565b93506020850135615599816150dd565b925060408501359150606085013567ffffffffffffffff8111156155bc57600080fd5b6155c887828801615325565b91505092959194509250565b6000806000606084860312156155e957600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561560e57600080fd5b61561a86828701615325565b9150509250925092565b634e487b7160e01b600052602160045260246000fd5b602081016006831061565c57634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c9082168061567657607f821691505b6020821081141561569757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4142433a20746865206e657720616d6f756e74206973206c6f7765722074686160408201526c6e20746865206f6c64206f6e6560981b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561575957615759615730565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60006020828403121561580c57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60208082526025908201527f4142433a20616c726561647920657863656564656420746865206e6577206d6160408201526478696d756d60d81b606082015260800190565b600060001982141561588257615882615730565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f4142433a206e756d626572206f6620746f6b656e732065786365656465640000604082015260600190565b60208082526025908201527f4142433a206e756d626572206f66206d696e74656420746f6b656e7320657863604082015264195959195960da1b606082015260800190565b60208082526018908201527f4142433a206d617820737570706c792065786365656465640000000000000000604082015260600190565b6020808252810182905260006001600160fb1b0383111561598657600080fd5b8260051b80856040850137600092016040019182525092915050565b6000845160206159b58285838a01615059565b8551918401916159c88184848a01615059565b8554920191600090600181811c90808316806159e557607f831692505b858310811415615a0357634e487b7160e01b85526022600452602485fd5b808015615a175760018114615a2857615a55565b60ff19851688528388019550615a55565b60008b81526020902060005b85811015615a4d5781548a820152908401908801615a34565b505083880195505b50939b9a5050505050505050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615a9e816017850160208801615059565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615acf816028840160208801615059565b01602801949350505050565b6000816000190483118215151615615af557615af5615730565b500290565b634e487b7160e01b600052601260045260246000fd5b600082615b1f57615b1f615afa565b500490565b600082821015615b3657615b36615730565b500390565b60208082526024908201527f4142433a2045746865722076616c75652073656e74206973206e6f7420636f726040820152631c9958dd60e21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082615be057615be0615afa565b500690565b600081615bf457615bf4615730565b506000190190565b600060208284031215615c0e57600080fd5b8151611ce98161538c565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615c4c90830184615085565b9695505050505050565b600060208284031215615c6857600080fd5b8151611ce981615026565b634e487b7160e01b600052603160045260246000fd5b60008251615c9b818460208701615059565b919091019291505056fefbd454f36a7e1a388bd6fc3ab10d434aa4578f811acbbcf33afb1c697486313ca2646970667358221220ace6bb3a5cc56f3c0d133b080ef9418e5c0ab4cf017bc05806407cd0be6a7aab64736f6c634300080a0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.