Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 23 from a total of 23 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 14400104 | 1004 days ago | IN | 0 ETH | 0.00249586 | ||||
Safe Transfer Fr... | 14391784 | 1006 days ago | IN | 0 ETH | 0.00171437 | ||||
Safe Transfer Fr... | 14387792 | 1006 days ago | IN | 0 ETH | 0.00174933 | ||||
Safe Transfer Fr... | 14387329 | 1006 days ago | IN | 0 ETH | 0.00198664 | ||||
Safe Transfer Fr... | 14387278 | 1006 days ago | IN | 0 ETH | 0.00309882 | ||||
Safe Transfer Fr... | 14387137 | 1006 days ago | IN | 0 ETH | 0.00392398 | ||||
Owner Mint | 14385084 | 1007 days ago | IN | 0 ETH | 0.00239636 | ||||
Owner Mint | 14375864 | 1008 days ago | IN | 0 ETH | 0.00285641 | ||||
Owner Mint | 14334755 | 1014 days ago | IN | 0 ETH | 0.0051065 | ||||
Transfer From | 14334255 | 1014 days ago | IN | 0 ETH | 0.00186788 | ||||
Set Approval For... | 14334010 | 1015 days ago | IN | 0 ETH | 0.0015377 | ||||
Owner Mint | 14333421 | 1015 days ago | IN | 0 ETH | 0.00229465 | ||||
Set Approval For... | 14333060 | 1015 days ago | IN | 0 ETH | 0.00103841 | ||||
Owner Mint | 14330079 | 1015 days ago | IN | 0 ETH | 0.00302862 | ||||
Owner Mint | 14330018 | 1015 days ago | IN | 0 ETH | 0.00354217 | ||||
Owner Mint | 14330012 | 1015 days ago | IN | 0 ETH | 0.00515382 | ||||
Owner Mint | 14330009 | 1015 days ago | IN | 0 ETH | 0.00421167 | ||||
Owner Mint | 14329941 | 1015 days ago | IN | 0 ETH | 0.00346164 | ||||
Owner Mint | 14329505 | 1015 days ago | IN | 0 ETH | 0.0077549 | ||||
Set Approval For... | 14303441 | 1019 days ago | IN | 0 ETH | 0.0020881 | ||||
Set Approval For... | 14303071 | 1019 days ago | IN | 0 ETH | 0.00231235 | ||||
Owner Mint | 14298114 | 1020 days ago | IN | 0 ETH | 0.00953667 | ||||
Transfer Ownersh... | 14298034 | 1020 days ago | IN | 0 ETH | 0.00261947 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AlphaPass
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; /* NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNmmmmmNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNmmddmNNNmddmmNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNmhhdNNNNmdddmNNNNmhhmNNNNNNNNNNNNNNN NNNNNNNNNNmhs+///+syhdmNNNmmhyo/:::/shmNNNNNNNNNNN NNNNNNNNNNy:::::/:://+shdho/:-------..oNNNNNNNNNNN NNNNNNNNNNs::::::::::::::.............+NNNNNNNNNNN NNNNNNNNNNs:::::::::::::-.....--......+NNNNNNNNNNN NNNNNNNNNNs:::::://:///:--------......+NNNNNNNNNNN NNNNNNNNNNs::::+///:////:::------:....+NNNNNNNNNNN NNNNNNNNNNs::::mdyo/////:::-::+ydm:...+NNNNNNNNNNN NNNNNNNNNNs::::NNNNhdyo+:/+ydhNNNN:...+NNNNNNNNNNN NNNNNNNNNNs::::mNNNdNNNmymNNNdNNNm:...+NNNNNNNNNNN NNNNNNNNNNs:::/mmmmhNNNNdNNNNhmmmm:...+NNNNNNNNNNN NNNNNNNNNNd+//:NNNNhmmmmdNmmmhNNNN:.-/yNNNNNNNNNNN NNNNNNNNNNNNmdymmNNdNNNNhmNNNdNNNmyhmNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNmmhmNNNdNNNNhmmmNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNmmmhmmmmNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN */ /// @title ERC-721 token for Meta Mint Alpha Pass. /// @author @ItsCuzzo contract AlphaPass is Ownable, ERC721 { using Strings for uint; using Counters for Counters.Counter; string private _tokenURI; string private _contractURI; Counters.Counter private _tokenIdCounter; uint public maxSupply = 300; uint public tokenPrice = 0.4 ether; uint public renewalPrice = 0.1 ether; uint public maxTokensPerTx = 3; uint public gracePeriod = 3 days; mapping(uint => uint) public expiryTime; mapping(uint => bool) public isBanned; struct DutchAuction { uint32 startTime; uint72 startingPrice; uint16 stepDuration; uint72 reservePrice; uint64 decrementAmount; } enum SaleStates { PAUSED, FCFS_MINT, DUTCH_AUCTION } DutchAuction public auction; SaleStates public saleState; event Minted(address indexed _from, uint _amount); event Renewed(address indexed _from, uint _tokenId); event RenewedBatch(address indexed _from, uint[] _tokenIds); event Banned(address indexed _from, uint _tokenId); event Unbanned(address indexed _from, uint _tokenId); constructor( string memory tokenURI_, string memory contractURI_ ) ERC721("Alpha Pass", "ALPHA") { _tokenURI = tokenURI_; _contractURI = contractURI_; } /// @notice Function used to mint a token during the `DUTCH_AUCTION` sale. function auctionMint() external payable { require(tx.origin == msg.sender, "Caller should not be a contract."); require(SaleStates.DUTCH_AUCTION == saleState, "Auction not active."); require(auction.startTime <= block.timestamp, "Auction has not started."); uint tokenIndex = _tokenIdCounter.current() + 1; require(maxSupply >= tokenIndex, "Minted tokens would exceed supply."); require(msg.value >= getAuctionPrice(), "Incorrect Ether amount."); _tokenIdCounter.increment(); _safeMint(msg.sender, tokenIndex); expiryTime[tokenIndex] = block.timestamp + 30 days; emit Minted(msg.sender, 1); } /// @notice Function used to mint tokens during the `FCFS_MINT` sale. /// @param numTokens The desired number of tokens to mint. function mint(uint numTokens) external payable { require(tx.origin == msg.sender, "Caller should not be a contract."); require(saleState == SaleStates.FCFS_MINT, "FCFS minting is not active."); require(tokenPrice * numTokens == msg.value, "Incorrect Ether amount."); require(maxSupply >= _tokenIdCounter.current() + numTokens, "Minted tokens would exceed supply."); require(maxTokensPerTx >= numTokens, "Token tx limit exceeded."); for (uint i=0; i<numTokens; i++) { _tokenIdCounter.increment(); uint tokenIndex = _tokenIdCounter.current(); _safeMint(msg.sender, tokenIndex); expiryTime[tokenIndex] = block.timestamp + 30 days; } emit Minted(msg.sender, numTokens); } /// @notice Function that is used to extend/renew a tokens expiry date /// in increments of 30 days. /// @param tokenId The token ID to extend/renew. function renewToken(uint tokenId) public payable { require(_exists(tokenId), "Token does not exist."); require(ownerOf(tokenId) == msg.sender, "Caller does not own token."); require(!isBanned[tokenId], "Token is banned."); require(msg.value == renewalPrice, "Incorrect Ether amount."); uint _currentexpiryTime = expiryTime[tokenId]; if (block.timestamp > _currentexpiryTime) { expiryTime[tokenId] = block.timestamp + 30 days; } else { expiryTime[tokenId] += 30 days; } emit Renewed(msg.sender, tokenId); } /// @notice Function that is used to extend/renew multiple tokens expiry date /// in increments of 30 days. /// @param tokenIds The token IDs to extend/renew. function batchRenewToken(uint[] calldata tokenIds) public payable { require(tokenIds.length >= 2, "Invalid array length."); require(renewalPrice * tokenIds.length == msg.value, "Incorrect Ether amount."); for (uint i=0; i<tokenIds.length; i++) { require(_exists(tokenIds[i]), "Token does not exist."); require(ownerOf(tokenIds[i]) == msg.sender, "Caller does not own token."); require(!isBanned[tokenIds[i]], "Token is banned."); uint _currentexpiryTime = expiryTime[tokenIds[i]]; if (block.timestamp > _currentexpiryTime) { expiryTime[tokenIds[i]] = block.timestamp + 30 days; } else { expiryTime[tokenIds[i]] += 30 days; } } emit RenewedBatch(msg.sender, tokenIds); } /// @notice Function that is used to mint a token free of charge, only /// callable by the owner. function ownerMint(address receiver) public onlyOwner { uint tokenIndex = _tokenIdCounter.current() + 1; require(maxSupply >= tokenIndex, "Minted tokens would exceed supply."); _tokenIdCounter.increment(); _safeMint(receiver, tokenIndex); expiryTime[tokenIndex] = block.timestamp + 30 days; emit Minted(msg.sender, 1); } /// @notice Function that is used to extend/renew a tokens expiry date /// in increments of 30 days free of charge, only callable by the owner. /// @param tokenId The token ID to extend/renew. function ownerRenewToken(uint tokenId) public onlyOwner { require(_exists(tokenId), "Token does not exist."); uint _currentexpiryTime = expiryTime[tokenId]; if (block.timestamp > _currentexpiryTime) { expiryTime[tokenId] = block.timestamp + 30 days; } else { expiryTime[tokenId] += 30 days; } emit Renewed(msg.sender, tokenId); } /// @notice Function that is used to extend/renew multiple tokens expiry date /// in increments of 30 days free of charge, only callable by the owner. /// @param tokenIds The token IDs to extend/renew. function ownerBatchRenewToken(uint[] calldata tokenIds) public onlyOwner { require(tokenIds.length >= 2, "Invalid array length."); for (uint i=0; i<tokenIds.length; i++) { require(_exists(tokenIds[i]), "Token does not exist."); uint _currentexpiryTime = expiryTime[tokenIds[i]]; if (block.timestamp > _currentexpiryTime) { expiryTime[tokenIds[i]] = block.timestamp + 30 days; } else { expiryTime[tokenIds[i]] += 30 days; } } emit RenewedBatch(msg.sender, tokenIds); } /// @notice Function used to get the current price of a token during the /// dutch auction. /// @dev This function should be polled externally to determine how much /// Ether a participant should send. /// @return Returns a uint indicating the current price of the token in /// wei. function getAuctionPrice() public view returns (uint72) { if (saleState != SaleStates.DUTCH_AUCTION || auction.startTime >= block.timestamp) { return auction.startingPrice; } uint72 decrements = (uint72(block.timestamp) - auction.startTime) / auction.stepDuration; if (decrements * auction.decrementAmount >= auction.startingPrice) { return auction.reservePrice; } if (auction.startingPrice - decrements * auction.decrementAmount < auction.reservePrice) { return auction.reservePrice; } return auction.startingPrice - decrements * auction.decrementAmount; } /// @notice Function used to define the dutch auction settings. /// @param _startTime Starting time for the auction in seconds. /// @param _startingPrice Starting price for the auction in wei. /// @param _stepDuration Time between each price decrease, in seconds. /// @param _reservePrice Reserve price for the auction in wei. /// @param _decrementAmount Amount that price decreases every step, in wei. /// @dev Reasoning for doing one function for all updates is that once the /// auction is configured once, it shouldn't need changing until afterwards. function setAuctionBulk( uint32 _startTime, uint72 _startingPrice, uint16 _stepDuration, uint72 _reservePrice, uint64 _decrementAmount ) external onlyOwner { require(_startTime > block.timestamp, "Invalid start time."); require(_startingPrice > _reservePrice, "Initial price must exceed reserve."); auction.startTime = _startTime; auction.startingPrice = _startingPrice; auction.stepDuration = _stepDuration; auction.reservePrice = _reservePrice; auction.decrementAmount = _decrementAmount; } /// @notice Function used to set the dutch auction start time. /// @param _startTime A UNIX epoch, in seconds, of the intended start time. /// @dev Pssst, https://www.epochconverter.com/ function setAuctionStartTime(uint32 _startTime) external onlyOwner { require(_startTime > block.timestamp, "Invalid start time."); auction.startTime = _startTime; } /// @notice Function used to set the starting price of the dutch auction. /// @param _startingPrice uint value in wei representing the starting price. function setAuctionStartingPrice(uint72 _startingPrice) external onlyOwner { require(auction.startingPrice != _startingPrice, "Price has not changed."); auction.startingPrice = _startingPrice; } /// @notice Function used to set the step time during the dutch auction. /// @param _stepDuration uint value is seconds representing how frequently the /// price will drop. E.g. Input of 120 is equivalent to 2 minutes. function setAuctionStepDuration(uint16 _stepDuration) external onlyOwner { require(auction.stepDuration != _stepDuration, "Duration has not changed."); auction.stepDuration = _stepDuration; } /// @notice Function used to set the dutch auction reserve price. /// @param _reservePrice Represents the reserve price in units of wei. function setAuctionReservePrice(uint72 _reservePrice) external onlyOwner { require(auction.reservePrice != _reservePrice, "Price has not changed."); auction.reservePrice = _reservePrice; } /// @notice Function used to set the dutch auction decrement amount. /// @param _decrementAmount uint value representing how much the price /// will drop each step. E.g. 25000000000000000 is 0.025 Ether. function setAuctionDecrementAmount(uint64 _decrementAmount) external onlyOwner { require(auction.decrementAmount != _decrementAmount, "Decrement has not changed."); auction.decrementAmount = _decrementAmount; } /// @notice Function that is used to update the `renewalPrice` variable, /// only callable by the owner. /// @param newRenewalPrice The new renewal price in units of wei. E.g. /// 500000000000000000 is 0.50 Ether. function updateRenewalPrice(uint newRenewalPrice) external onlyOwner { require(renewalPrice != newRenewalPrice, "Price has not changed."); renewalPrice = newRenewalPrice; } /// @notice Function that is used to update the `tokenPrice` variable, /// only callable by the owner. /// @param newTokenPrice The new initial token price in units of wei. E.g. /// 2000000000000000000 is 2 Ether. function updateTokenPrice(uint newTokenPrice) external onlyOwner { require(tokenPrice != newTokenPrice, "Price has not changed."); tokenPrice = newTokenPrice; } /// @notice Function that is used to update the `maxTokensPerTx` variable, /// only callable by the owner. /// @param newMaxTokensPerTx The new maximum amount of tokens a user can /// mint in a single tx. function updateMaxTokensPerTx(uint newMaxTokensPerTx) external onlyOwner { require(maxTokensPerTx != newMaxTokensPerTx, "Max tokens has not changed."); maxTokensPerTx = newMaxTokensPerTx; } /// @notice Function that is used to update the `GRACE_PERIOD` variable, /// only callable by the owner. /// @param newGracePeriod The new grace period in units of seconds in wei. /// E.g. 2592000 is 30 days. /// @dev Grace period should be atleast 1 day, uint value of 86400. function updateGracePeriod(uint newGracePeriod) external onlyOwner { require(gracePeriod != newGracePeriod, "Duration has not changed."); require(newGracePeriod % 1 days == 0, "Must provide 1 day increments."); gracePeriod = newGracePeriod; } /// @notice Function used to set a new `saleState` value. /// @param newSaleState The newly desired sale state. /// @dev 0 = PAUSED, 1 = FCFS_MINT, 2 = DUTCH_AUCTION. function setSaleState(uint newSaleState) external onlyOwner { require(uint(SaleStates.DUTCH_AUCTION) >= newSaleState, "Invalid sale state."); saleState = SaleStates(newSaleState); } /// @notice Function that is used to authenticate a user. /// @param tokenId The desired token owned by a user. /// @return Returns a bool value determining if authentication was /// was successful. `true` is successful, `false` if otherwise. function authenticateUser(uint tokenId) public view returns (bool) { require(_exists(tokenId), "Token does not exist."); require(!isBanned[tokenId], "Token is banned."); require(expiryTime[tokenId] + gracePeriod > block.timestamp, "Token has expired. Please renew!"); return msg.sender == ownerOf(tokenId) ? true : false; } /// @notice Function used to increment the `maxSupply` value. /// @param numTokens The amount of tokens to add to `maxSupply`. function addTokens(uint numTokens) external onlyOwner { maxSupply += numTokens; } /// @notice Function used to decrement the `maxSupply` value. /// @param numTokens The amount of tokens to remove from `maxSupply`. function removeTokens(uint numTokens) external onlyOwner { require(maxSupply - numTokens >= _tokenIdCounter.current(), "Supply cannot fall below minted tokens."); maxSupply -= numTokens; } /// @notice Function used to ban a token, only callable by the owner. /// @param tokenId The token ID to ban. function banToken(uint tokenId) external onlyOwner { require(!isBanned[tokenId], "Token already banned."); expiryTime[tokenId] = block.timestamp; isBanned[tokenId] = true; emit Banned(msg.sender, tokenId); } /// @notice Function used to unban a token, only callable by the owner. /// @param tokenId The token ID to unban. function unbanToken(uint tokenId) external onlyOwner { require(isBanned[tokenId], "Token is not banned."); isBanned[tokenId] = false; emit Unbanned(msg.sender, tokenId); } /// @notice Function that is used to get the current `_contractURI` value. /// @return Returns a string value of `_contractURI`. function contractURI() public view returns (string memory) { return _contractURI; } /// @notice Function that is used to update the `_contractURI` value, only /// callable by the owner. /// @param contractURI_ A string value to replace the current 'contractURI_'. function setContractURI(string calldata contractURI_) external onlyOwner { _contractURI = contractURI_; } /// @notice Function that is used to get the `_tokenURI` for `tokenId`. /// @param tokenId The `tokenId` to get the `_tokenURI` for. /// @return Returns a string representing the `_tokenURI` for `tokenId`. function tokenURI(uint tokenId) public view override returns (string memory) { require(_exists(tokenId), "Token does not exist."); return string(abi.encodePacked(_tokenURI, tokenId.toString())); } /// @notice Function that is used to update the `_tokenURI` value, only /// callable by the owner. /// @param tokenURI_ A string value to replace the current `_tokenURI` value. function setTokenURI(string calldata tokenURI_) external onlyOwner { _tokenURI = tokenURI_; } /// @notice Function used to get the total number of minted tokens. function totalSupply() public view returns (uint) { return _tokenIdCounter.current(); } /// @notice Function that is used to withdraw the total balance of the /// contract, only callable by the owner. function withdrawBalance() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } /// @notice Function used to get the tokens owned by a provided address. /// @param _address The specified address to perform a lookup for. /// @dev DO NOT CALL THIS FUNCTION ON-CHAIN. function getTokensOwnedByAddress(address _address) external view returns (uint[] memory) { uint tokenBalance = balanceOf(_address); if (tokenBalance == 0) { return new uint[](0); } uint[] memory tokensOwned = new uint[](tokenBalance); uint resultIndex = 0; for (uint i=1; i<=_tokenIdCounter.current(); i++) { if (ownerOf(i) == _address) { tokensOwned[resultIndex] = i; resultIndex++; } } return tokensOwned; } /// @notice Function used to get the tokens currently within the grace period. /// @dev DO NOT CALL THIS FUNCTION ON-CHAIN. function getTokensInGracePeriod() external view returns (uint[] memory) { uint tokenSupply = _tokenIdCounter.current(); uint numTokens = 0; for (uint i=1; i<=tokenSupply; i++) { if (block.timestamp > expiryTime[i] && expiryTime[i] + gracePeriod > block.timestamp) { if (!isBanned[i]) { numTokens++; } } } uint[] memory graceTokens = new uint[](numTokens); uint index = 0; for (uint i=1; i<=tokenSupply; i++) { if (block.timestamp > expiryTime[i] && expiryTime[i] + gracePeriod > block.timestamp) { if (!isBanned[i]) { graceTokens[index] = i; index++; } } } return graceTokens; } /// @notice Function that is used to safely transfer a token from one owner to another. function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "Transfer caller is not owner nor approved."); if (owner() != msg.sender) { require(!isBanned[tokenId], "Token is banned."); require(expiryTime[tokenId] > block.timestamp, "Token has expired."); } _safeTransfer(from, to, tokenId, _data); } /// @notice Function that is used to transfer a token from one owner to another. function transferFrom( address from, address to, uint256 tokenId ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "Transfer caller is not owner nor approved."); if (owner() != msg.sender) { require(!isBanned[tokenId], "Token is banned."); require(expiryTime[tokenId] > block.timestamp, "Token has expired."); } _transfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"tokenURI_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Banned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Renewed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"RenewedBatch","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":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Unbanned","type":"event"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"addTokens","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":[],"name":"auction","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint72","name":"startingPrice","type":"uint72"},{"internalType":"uint16","name":"stepDuration","type":"uint16"},{"internalType":"uint72","name":"reservePrice","type":"uint72"},{"internalType":"uint64","name":"decrementAmount","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"authenticateUser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"banToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchRenewToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"expiryTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAuctionPrice","outputs":[{"internalType":"uint72","name":"","type":"uint72"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensInGracePeriod","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTokensOwnedByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gracePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isBanned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownerBatchRenewToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerRenewToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"removeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"renewToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renewalPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum AlphaPass.SaleStates","name":"","type":"uint8"}],"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":"uint32","name":"_startTime","type":"uint32"},{"internalType":"uint72","name":"_startingPrice","type":"uint72"},{"internalType":"uint16","name":"_stepDuration","type":"uint16"},{"internalType":"uint72","name":"_reservePrice","type":"uint72"},{"internalType":"uint64","name":"_decrementAmount","type":"uint64"}],"name":"setAuctionBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_decrementAmount","type":"uint64"}],"name":"setAuctionDecrementAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint72","name":"_reservePrice","type":"uint72"}],"name":"setAuctionReservePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_startTime","type":"uint32"}],"name":"setAuctionStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint72","name":"_startingPrice","type":"uint72"}],"name":"setAuctionStartingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_stepDuration","type":"uint16"}],"name":"setAuctionStepDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSaleState","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unbanToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newGracePeriod","type":"uint256"}],"name":"updateGracePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxTokensPerTx","type":"uint256"}],"name":"updateMaxTokensPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRenewalPrice","type":"uint256"}],"name":"updateRenewalPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTokenPrice","type":"uint256"}],"name":"updateTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405261012c600a5567058d15e176280000600b5567016345785d8a0000600c556003600d556203f480600e553480156200003b57600080fd5b5060405162004189380380620041898339810160408190526200005e91620002e2565b6040518060400160405280600a815260200169416c706861205061737360b01b81525060405180604001604052806005815260200164414c50484160d81b815250620000b9620000b36200011b60201b60201c565b6200011f565b8151620000ce9060019060208501906200016f565b508051620000e49060029060208401906200016f565b50508251620000fc915060079060208501906200016f565b508051620001129060089060208401906200016f565b50505062000389565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200017d906200034c565b90600052602060002090601f016020900481019282620001a15760008555620001ec565b82601f10620001bc57805160ff1916838001178555620001ec565b82800160010185558215620001ec579182015b82811115620001ec578251825591602001919060010190620001cf565b50620001fa929150620001fe565b5090565b5b80821115620001fa5760008155600101620001ff565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023d57600080fd5b81516001600160401b03808211156200025a576200025a62000215565b604051601f8301601f19908116603f0116810190828211818310171562000285576200028562000215565b81604052838152602092508683858801011115620002a257600080fd5b600091505b83821015620002c65785820183015181830184015290820190620002a7565b83821115620002d85760008385830101525b9695505050505050565b60008060408385031215620002f657600080fd5b82516001600160401b03808211156200030e57600080fd5b6200031c868387016200022b565b935060208501519150808211156200033357600080fd5b5062000342858286016200022b565b9150509250929050565b600181811c908216806200036157607f821691505b602082108114156200038357634e487b7160e01b600052602260045260246000fd5b50919050565b613df080620003996000396000f3fe60806040526004361061036b5760003560e01c8063715018a6116101c6578063b8cb65ee116100f7578063d5abeb0111610095578063e8a3d4851161006f578063e8a3d48514610a44578063e985e9c514610a59578063f2fde38b14610aa2578063faab3def14610ac257600080fd5b8063d5abeb01146109ee578063d854b99114610a04578063e0df5b6f14610a2457600080fd5b8063c57a9c56116100d1578063c57a9c561461095e578063c6ed89901461098e578063c87b56dd146109ae578063cdffd6ed146109ce57600080fd5b8063b8cb65ee14610909578063be010c4014610929578063c46ebe711461095657600080fd5b8063938e3d7b11610164578063a0712d681161013e578063a0712d68146108a3578063a22cb465146108b6578063a6761150146108d6578063b88d4fde146108e957600080fd5b8063938e3d7b1461085857806395d89b4114610878578063a06db7dc1461088d57600080fd5b80637d9f6db5116101a05780637d9f6db51461076e5780637ff9b5961461080f5780638d597f87146108255780638da5cb5b1461083a57600080fd5b8063715018a61461073057806371e23947146107455780637b55297a1461075857600080fd5b806348bb30e7116102a0578063603f4d521161023e578063676c0d7711610218578063676c0d77146106b05780636a91ccd0146106d05780636e304201146106f057806370a082311461071057600080fd5b8063603f4d52146106495780636352211e146106705780636693e9581461069057600080fd5b806355da57461161027a57806355da5746146105de5780635ab98d5a146105fe5780635e307a481461061e5780635fd8c7101461063457600080fd5b806348bb30e7146105715780634bd25c6f146105915780634e1073e7146105be57600080fd5b806318160ddd1161030d5780632d7d1cd3116102e75780632d7d1cd3146104e457806342842e0e14610504578063483e23181461052457806348756c171461054457600080fd5b806318160ddd146104815780631e3bcc8e146104a457806323b872dd146104c457600080fd5b8063081812fc11610349578063081812fc146103e9578063084c408814610421578063095ea7b31461044157806311bb01ed1461046157600080fd5b806301ffc9a7146103705780630697346f146103a557806306fdde03146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b3660046133e4565b610ae2565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c0366004613421565b610b34565b005b3480156103d357600080fd5b506103dc610bce565b60405161039c9190613494565b3480156103f557600080fd5b506104096104043660046134a7565b610c60565b6040516001600160a01b03909116815260200161039c565b34801561042d57600080fd5b506103c561043c3660046134a7565b610ce8565b34801561044d57600080fd5b506103c561045c3660046134d7565b610d8f565b34801561046d57600080fd5b506103c561047c366004613541565b610ea5565b34801561048d57600080fd5b50610496611020565b60405190815260200161039c565b3480156104b057600080fd5b506103c56104bf3660046135a6565b611030565b3480156104d057600080fd5b506103c56104df3660046135c1565b611106565b3480156104f057600080fd5b506103c56104ff3660046135fd565b6111d9565b34801561051057600080fd5b506103c561051f3660046135c1565b611281565b34801561053057600080fd5b506103c561053f3660046134a7565b61129c565b34801561055057600080fd5b5061056461055f3660046135a6565b61137a565b60405161039c9190613618565b34801561057d57600080fd5b506103c561058c3660046134a7565b611462565b34801561059d57600080fd5b506105a66114b3565b6040516001600160481b03909116815260200161039c565b3480156105ca57600080fd5b506103c56105d93660046134a7565b611636565b3480156105ea57600080fd5b506103c56105f936600461365c565b6116ff565b34801561060a57600080fd5b506103c56106193660046134a7565b6117b6565b34801561062a57600080fd5b50610496600d5481565b34801561064057600080fd5b506103c561188d565b34801561065557600080fd5b506012546106639060ff1681565b60405161039c919061368d565b34801561067c57600080fd5b5061040961068b3660046134a7565b6118e6565b34801561069c57600080fd5b506103c56106ab3660046136b5565b61195d565b3480156106bc57600080fd5b506103c56106cb3660046134a7565b6119eb565b3480156106dc57600080fd5b506103c56106eb3660046134a7565b611a3c565b3480156106fc57600080fd5b506103c561070b3660046136b5565b611abd565b34801561071c57600080fd5b5061049661072b3660046135a6565b611b4a565b34801561073c57600080fd5b506103c5611bd1565b6103c56107533660046134a7565b611c07565b34801561076457600080fd5b50610496600c5481565b34801561077a57600080fd5b506011546107c59063ffffffff8116906001600160481b03600160201b820481169161ffff600160681b82041691600160781b820416906001600160401b03600160c01b9091041685565b6040805163ffffffff90961686526001600160481b03948516602087015261ffff909316928501929092529190911660608301526001600160401b0316608082015260a00161039c565b34801561081b57600080fd5b50610496600b5481565b34801561083157600080fd5b50610564611d6d565b34801561084657600080fd5b506000546001600160a01b0316610409565b34801561086457600080fd5b506103c56108733660046136d0565b611edd565b34801561088457600080fd5b506103dc611f13565b34801561089957600080fd5b50610496600e5481565b6103c56108b13660046134a7565b611f22565b3480156108c257600080fd5b506103c56108d1366004613741565b61211c565b6103c56108e436600461377d565b61212b565b3480156108f557600080fd5b506103c56109043660046137f5565b6123bd565b34801561091557600080fd5b506103c56109243660046134a7565b612497565b34801561093557600080fd5b506104966109443660046134a7565b600f6020526000908152604090205481565b6103c561254a565b34801561096a57600080fd5b506103906109793660046134a7565b60106020526000908152604090205460ff1681565b34801561099a57600080fd5b506103c56109a93660046134a7565b612723565b3480156109ba57600080fd5b506103dc6109c93660046134a7565b61275f565b3480156109da57600080fd5b506103906109e93660046134a7565b6127b8565b3480156109fa57600080fd5b50610496600a5481565b348015610a1057600080fd5b506103c5610a1f36600461377d565b6128a8565b348015610a3057600080fd5b506103c5610a3f3660046136d0565b612a27565b348015610a5057600080fd5b506103dc612a5d565b348015610a6557600080fd5b50610390610a743660046138d0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610aae57600080fd5b506103c5610abd3660046135a6565b612a6c565b348015610ace57600080fd5b506103c5610add3660046134a7565b612b04565b60006001600160e01b031982166380ac58cd60e01b1480610b1357506001600160e01b03198216635b5e139f60e01b145b80610b2e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b03163314610b675760405162461bcd60e51b8152600401610b5e90613903565b60405180910390fd5b428163ffffffff1611610bb25760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21039ba30b93a103a34b6b29760691b6044820152606401610b5e565b6011805463ffffffff191663ffffffff92909216919091179055565b606060018054610bdd90613938565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0990613938565b8015610c565780601f10610c2b57610100808354040283529160200191610c56565b820191906000526020600020905b815481529060010190602001808311610c3957829003601f168201915b5050505050905090565b6000610c6b82612b53565b610ccc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5e565b506000908152600560205260409020546001600160a01b031690565b6000546001600160a01b03163314610d125760405162461bcd60e51b8152600401610b5e90613903565b8060021015610d595760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21039b0b6329039ba30ba329760691b6044820152606401610b5e565b806002811115610d6b57610d6b613677565b6012805460ff19166001836002811115610d8757610d87613677565b021790555050565b6000610d9a826118e6565b9050806001600160a01b0316836001600160a01b03161415610e085760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b5e565b336001600160a01b0382161480610e245750610e248133610a74565b610e965760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b5e565b610ea08383612b70565b505050565b6000546001600160a01b03163314610ecf5760405162461bcd60e51b8152600401610b5e90613903565b428563ffffffff1611610f1a5760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21039ba30b93a103a34b6b29760691b6044820152606401610b5e565b816001600160481b0316846001600160481b031611610f865760405162461bcd60e51b815260206004820152602260248201527f496e697469616c207072696365206d7573742065786365656420726573657276604482015261329760f11b6064820152608401610b5e565b6011805463ffffffff969096166cffffffffffffffffffffffffff1990961695909517600160201b6001600160481b0395861602176affffffffffffffffffffff60681b1916600160681b61ffff949094169390930268ffffffffffffffffff60781b191692909217600160781b9190931602919091176001600160c01b0316600160c01b6001600160401b039290921691909102179055565b600061102b60095490565b905090565b6000546001600160a01b0316331461105a5760405162461bcd60e51b8152600401610b5e90613903565b600061106560095490565b611070906001613989565b905080600a5410156110945760405162461bcd60e51b8152600401610b5e906139a1565b6110a2600980546001019055565b6110ac8282612bde565b6110b94262278d00613989565b6000828152600f602090815260409182902092909255516001815233917f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe91015b60405180910390a25050565b6111103382612bf8565b61112c5760405162461bcd60e51b8152600401610b5e906139e3565b3361113f6000546001600160a01b031690565b6001600160a01b0316146111ce5760008181526010602052604090205460ff161561117c5760405162461bcd60e51b8152600401610b5e90613a2d565b6000818152600f602052604090205442106111ce5760405162461bcd60e51b81526020600482015260126024820152712a37b5b2b7103430b99032bc3834b932b21760711b6044820152606401610b5e565b610ea0838383612ce2565b6000546001600160a01b031633146112035760405162461bcd60e51b8152600401610b5e90613903565b60115461ffff828116600160681b90920416141561125f5760405162461bcd60e51b8152602060048201526019602482015278223ab930ba34b7b7103430b9903737ba1031b430b733b2b21760391b6044820152606401610b5e565b6011805461ffff909216600160681b0261ffff60681b19909216919091179055565b610ea0838383604051806020016040528060008152506123bd565b6000546001600160a01b031633146112c65760405162461bcd60e51b8152600401610b5e90613903565b60008181526010602052604090205460ff161561131d5760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b71030b63932b0b23c903130b73732b21760591b6044820152606401610b5e565b6000818152600f602090815260408083204290556010825291829020805460ff19166001179055905182815233917f8f9d2f181f599e221d5959b9acbebb1f42c8146251755fd61fc0de85f5d9716291015b60405180910390a250565b6060600061138783611b4a565b9050806113a4575050604080516000815260208101909152919050565b6000816001600160401b038111156113be576113be6137df565b6040519080825280602002602001820160405280156113e7578160200160208202803683370190505b509050600060015b600954811161145857856001600160a01b031661140b826118e6565b6001600160a01b03161415611446578083838151811061142d5761142d613a57565b60209081029190910101528161144281613a6d565b9250505b8061145081613a6d565b9150506113ef565b5090949350505050565b6000546001600160a01b0316331461148c5760405162461bcd60e51b8152600401610b5e90613903565b80600c5414156114ae5760405162461bcd60e51b8152600401610b5e90613a88565b600c55565b6000600260125460ff1660028111156114ce576114ce613677565b1415806114e557506011544263ffffffff90911610155b156115015750601154600160201b90046001600160481b031690565b60115460009061ffff600160681b820416906115239063ffffffff1642613ab8565b61152d9190613af6565b601154909150600160201b81046001600160481b03169061155e90600160c01b90046001600160401b031683613b1c565b6001600160481b031610611584575050601154600160781b90046001600160481b031690565b601154600160781b81046001600160481b0316906115b290600160c01b90046001600160401b031683613b1c565b6011546115cf9190600160201b90046001600160481b0316613ab8565b6001600160481b031610156115f6575050601154600160781b90046001600160481b031690565b60115461161390600160c01b90046001600160401b031682613b1c565b6011546116309190600160201b90046001600160481b0316613ab8565b91505090565b6000546001600160a01b031633146116605760405162461bcd60e51b8152600401610b5e90613903565b60008181526010602052604090205460ff166116b55760405162461bcd60e51b81526020600482015260146024820152732a37b5b2b71034b9903737ba103130b73732b21760611b6044820152606401610b5e565b60008181526010602052604090819020805460ff191690555133907ff46dc693169fba0f08556bb54c8abc995b37535f1c2322598f0e671982d8ff869061136f9084815260200190565b6000546001600160a01b031633146117295760405162461bcd60e51b8152600401610b5e90613903565b6011546001600160401b03828116600160c01b90920416141561178e5760405162461bcd60e51b815260206004820152601a60248201527f44656372656d656e7420686173206e6f74206368616e6765642e0000000000006044820152606401610b5e565b601180546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b6000546001600160a01b031633146117e05760405162461bcd60e51b8152600401610b5e90613903565b80600e54141561182e5760405162461bcd60e51b8152602060048201526019602482015278223ab930ba34b7b7103430b9903737ba1031b430b733b2b21760391b6044820152606401610b5e565b61183b6201518082613b4b565b156118885760405162461bcd60e51b815260206004820152601e60248201527f4d7573742070726f7669646520312064617920696e6372656d656e74732e00006044820152606401610b5e565b600e55565b6000546001600160a01b031633146118b75760405162461bcd60e51b8152600401610b5e90613903565b60405133904780156108fc02916000818181858888f193505050501580156118e3573d6000803e3d6000fd5b50565b6000818152600360205260408120546001600160a01b031680610b2e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b5e565b6000546001600160a01b031633146119875760405162461bcd60e51b8152600401610b5e90613903565b6011546001600160481b03828116600160201b9092041614156119bc5760405162461bcd60e51b8152600401610b5e90613a88565b601180546001600160481b03909216600160201b026cffffffffffffffffff0000000019909216919091179055565b6000546001600160a01b03163314611a155760405162461bcd60e51b8152600401610b5e90613903565b80600b541415611a375760405162461bcd60e51b8152600401610b5e90613a88565b600b55565b6000546001600160a01b03163314611a665760405162461bcd60e51b8152600401610b5e90613903565b80600d541415611ab85760405162461bcd60e51b815260206004820152601b60248201527f4d617820746f6b656e7320686173206e6f74206368616e6765642e00000000006044820152606401610b5e565b600d55565b6000546001600160a01b03163314611ae75760405162461bcd60e51b8152600401610b5e90613903565b6011546001600160481b03828116600160781b909204161415611b1c5760405162461bcd60e51b8152600401610b5e90613a88565b601180546001600160481b03909216600160781b0268ffffffffffffffffff60781b19909216919091179055565b60006001600160a01b038216611bb55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b5e565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611bfb5760405162461bcd60e51b8152600401610b5e90613903565b611c056000612e82565b565b611c1081612b53565b611c2c5760405162461bcd60e51b8152600401610b5e90613b5f565b33611c36826118e6565b6001600160a01b031614611c8c5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220646f6573206e6f74206f776e20746f6b656e2e0000000000006044820152606401610b5e565b60008181526010602052604090205460ff1615611cbb5760405162461bcd60e51b8152600401610b5e90613a2d565b600c543414611cdc5760405162461bcd60e51b8152600401610b5e90613b8e565b6000818152600f602052604090205442811015611d1457611d004262278d00613989565b6000838152600f6020526040902055611d3b565b6000828152600f60205260408120805462278d009290611d35908490613989565b90915550505b60405182815233907f149b8ef5614c26b28a55bb6a04b1b9ca363691c31302c66a7c6a32c91c0653ce906020016110fa565b60606000611d7a60095490565b9050600060015b828111611dfa576000818152600f602052604090205442118015611dbf5750600e546000828152600f60205260409020544291611dbd91613989565b115b15611de85760008181526010602052604090205460ff16611de85781611de481613a6d565b9250505b80611df281613a6d565b915050611d81565b506000816001600160401b03811115611e1557611e156137df565b604051908082528060200260200182016040528015611e3e578160200160208202803683370190505b509050600060015b848111611458576000818152600f602052604090205442118015611e845750600e546000828152600f60205260409020544291611e8291613989565b115b15611ecb5760008181526010602052604090205460ff16611ecb5780838381518110611eb257611eb2613a57565b602090810291909101015281611ec781613a6d565b9250505b80611ed581613a6d565b915050611e46565b6000546001600160a01b03163314611f075760405162461bcd60e51b8152600401610b5e90613903565b610ea060088383613335565b606060028054610bdd90613938565b323314611f715760405162461bcd60e51b815260206004820181905260248201527f43616c6c65722073686f756c64206e6f74206265206120636f6e74726163742e6044820152606401610b5e565b600160125460ff166002811115611f8a57611f8a613677565b14611fd75760405162461bcd60e51b815260206004820152601b60248201527f46434653206d696e74696e67206973206e6f74206163746976652e00000000006044820152606401610b5e565b3481600b54611fe69190613bc5565b146120035760405162461bcd60e51b8152600401610b5e90613b8e565b8061200d60095490565b6120179190613989565b600a5410156120385760405162461bcd60e51b8152600401610b5e906139a1565b80600d54101561208a5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e207478206c696d69742065786365656465642e00000000000000006044820152606401610b5e565b60005b818110156120e9576120a3600980546001019055565b60006120ae60095490565b90506120ba3382612bde565b6120c74262278d00613989565b6000918252600f602052604090912055806120e181613a6d565b91505061208d565b5060405181815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe9060200161136f565b612127338383612ed2565b5050565b60028110156121745760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21030b93930bc903632b733ba341760591b6044820152606401610b5e565b600c543490612184908390613bc5565b146121a15760405162461bcd60e51b8152600401610b5e90613b8e565b60005b81811015612381576121cd8383838181106121c1576121c1613a57565b90506020020135612b53565b6121e95760405162461bcd60e51b8152600401610b5e90613b5f565b3361220b8484848181106121ff576121ff613a57565b905060200201356118e6565b6001600160a01b0316146122615760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220646f6573206e6f74206f776e20746f6b656e2e0000000000006044820152606401610b5e565b6010600084848481811061227757612277613a57565b602090810292909201358352508101919091526040016000205460ff16156122b15760405162461bcd60e51b8152600401610b5e90613a2d565b6000600f60008585858181106122c9576122c9613a57565b9050602002013581526020019081526020016000205490508042111561232a576122f64262278d00613989565b600f600086868681811061230c5761230c613a57565b9050602002013581526020019081526020016000208190555061236e565b62278d00600f600086868681811061234457612344613a57565b90506020020135815260200190815260200160002060008282546123689190613989565b90915550505b508061237981613a6d565b9150506121a4565b50336001600160a01b03167fe7bf5a1d8e243b9332f408be227a992b3ccfc09291afaab341fd8359080d64a783836040516110fa929190613be4565b6123c73383612bf8565b6123e35760405162461bcd60e51b8152600401610b5e906139e3565b336123f66000546001600160a01b031690565b6001600160a01b0316146124855760008281526010602052604090205460ff16156124335760405162461bcd60e51b8152600401610b5e90613a2d565b6000828152600f602052604090205442106124855760405162461bcd60e51b81526020600482015260126024820152712a37b5b2b7103430b99032bc3834b932b21760711b6044820152606401610b5e565b61249184848484612fa1565b50505050565b6000546001600160a01b031633146124c15760405162461bcd60e51b8152600401610b5e90613903565b60095481600a546124d29190613c20565b10156125305760405162461bcd60e51b815260206004820152602760248201527f537570706c792063616e6e6f742066616c6c2062656c6f77206d696e746564206044820152663a37b5b2b7399760c91b6064820152608401610b5e565b80600a60008282546125429190613c20565b909155505050565b3233146125995760405162461bcd60e51b815260206004820181905260248201527f43616c6c65722073686f756c64206e6f74206265206120636f6e74726163742e6044820152606401610b5e565b60125460ff1660028111156125b0576125b0613677565b6002146125f55760405162461bcd60e51b815260206004820152601360248201527220bab1ba34b7b7103737ba1030b1ba34bb329760691b6044820152606401610b5e565b6011544263ffffffff909116111561264f5760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e20686173206e6f7420737461727465642e00000000000000006044820152606401610b5e565b600061265a60095490565b612665906001613989565b905080600a5410156126895760405162461bcd60e51b8152600401610b5e906139a1565b6126916114b3565b6001600160481b03163410156126b95760405162461bcd60e51b8152600401610b5e90613b8e565b6126c7600980546001019055565b6126d13382612bde565b6126de4262278d00613989565b6000828152600f602090815260409182902092909255516001815233917f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910161136f565b6000546001600160a01b0316331461274d5760405162461bcd60e51b8152600401610b5e90613903565b80600a60008282546125429190613989565b606061276a82612b53565b6127865760405162461bcd60e51b8152600401610b5e90613b5f565b600761279183612fd4565b6040516020016127a2929190613c53565b6040516020818303038152906040529050919050565b60006127c382612b53565b6127df5760405162461bcd60e51b8152600401610b5e90613b5f565b60008281526010602052604090205460ff161561280e5760405162461bcd60e51b8152600401610b5e90613a2d565b600e546000838152600f6020526040902054429161282b91613989565b116128785760405162461bcd60e51b815260206004820181905260248201527f546f6b656e2068617320657870697265642e20506c656173652072656e6577216044820152606401610b5e565b612881826118e6565b6001600160a01b0316336001600160a01b0316146128a0576000610b2e565b600192915050565b6000546001600160a01b031633146128d25760405162461bcd60e51b8152600401610b5e90613903565b600281101561291b5760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21030b93930bc903632b733ba341760591b6044820152606401610b5e565b60005b818110156123815761293b8383838181106121c1576121c1613a57565b6129575760405162461bcd60e51b8152600401610b5e90613b5f565b6000600f600085858581811061296f5761296f613a57565b905060200201358152602001908152602001600020549050804211156129d05761299c4262278d00613989565b600f60008686868181106129b2576129b2613a57565b90506020020135815260200190815260200160002081905550612a14565b62278d00600f60008686868181106129ea576129ea613a57565b9050602002013581526020019081526020016000206000828254612a0e9190613989565b90915550505b5080612a1f81613a6d565b91505061291e565b6000546001600160a01b03163314612a515760405162461bcd60e51b8152600401610b5e90613903565b610ea060078383613335565b606060088054610bdd90613938565b6000546001600160a01b03163314612a965760405162461bcd60e51b8152600401610b5e90613903565b6001600160a01b038116612afb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b5e565b6118e381612e82565b6000546001600160a01b03163314612b2e5760405162461bcd60e51b8152600401610b5e90613903565b612b3781612b53565b611cdc5760405162461bcd60e51b8152600401610b5e90613b5f565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ba5826118e6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6121278282604051806020016040528060008152506130d1565b6000612c0382612b53565b612c645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5e565b6000612c6f836118e6565b9050806001600160a01b0316846001600160a01b03161480612caa5750836001600160a01b0316612c9f84610c60565b6001600160a01b0316145b80612cda57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612cf5826118e6565b6001600160a01b031614612d5d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b5e565b6001600160a01b038216612dbf5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b5e565b612dca600082612b70565b6001600160a01b0383166000908152600460205260408120805460019290612df3908490613c20565b90915550506001600160a01b0382166000908152600460205260408120805460019290612e21908490613989565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415612f345760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b5e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fac848484612ce2565b612fb884848484613104565b6124915760405162461bcd60e51b8152600401610b5e90613cfa565b606081612ff85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613022578061300c81613a6d565b915061301b9050600a83613d4c565b9150612ffc565b6000816001600160401b0381111561303c5761303c6137df565b6040519080825280601f01601f191660200182016040528015613066576020820181803683370190505b5090505b8415612cda5761307b600183613c20565b9150613088600a86613b4b565b613093906030613989565b60f81b8183815181106130a8576130a8613a57565b60200101906001600160f81b031916908160001a9053506130ca600a86613d4c565b945061306a565b6130db8383613202565b6130e86000848484613104565b610ea05760405162461bcd60e51b8152600401610b5e90613cfa565b60006001600160a01b0384163b156131f757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613148903390899088908890600401613d60565b6020604051808303816000875af1925050508015613183575060408051601f3d908101601f1916820190925261318091810190613d9d565b60015b6131dd573d8080156131b1576040519150601f19603f3d011682016040523d82523d6000602084013e6131b6565b606091505b5080516131d55760405162461bcd60e51b8152600401610b5e90613cfa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612cda565b506001949350505050565b6001600160a01b0382166132585760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b5e565b61326181612b53565b156132ae5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b5e565b6001600160a01b03821660009081526004602052604081208054600192906132d7908490613989565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461334190613938565b90600052602060002090601f01602090048101928261336357600085556133a9565b82601f1061337c5782800160ff198235161785556133a9565b828001600101855582156133a9579182015b828111156133a957823582559160200191906001019061338e565b506133b59291506133b9565b5090565b5b808211156133b557600081556001016133ba565b6001600160e01b0319811681146118e357600080fd5b6000602082840312156133f657600080fd5b8135613401816133ce565b9392505050565b803563ffffffff8116811461341c57600080fd5b919050565b60006020828403121561343357600080fd5b61340182613408565b60005b8381101561345757818101518382015260200161343f565b838111156124915750506000910152565b6000815180845261348081602086016020860161343c565b601f01601f19169290920160200192915050565b6020815260006134016020830184613468565b6000602082840312156134b957600080fd5b5035919050565b80356001600160a01b038116811461341c57600080fd5b600080604083850312156134ea57600080fd5b6134f3836134c0565b946020939093013593505050565b80356001600160481b038116811461341c57600080fd5b803561ffff8116811461341c57600080fd5b80356001600160401b038116811461341c57600080fd5b600080600080600060a0868803121561355957600080fd5b61356286613408565b945061357060208701613501565b935061357e60408701613518565b925061358c60608701613501565b915061359a6080870161352a565b90509295509295909350565b6000602082840312156135b857600080fd5b613401826134c0565b6000806000606084860312156135d657600080fd5b6135df846134c0565b92506135ed602085016134c0565b9150604084013590509250925092565b60006020828403121561360f57600080fd5b61340182613518565b6020808252825182820181905260009190848201906040850190845b8181101561365057835183529284019291840191600101613634565b50909695505050505050565b60006020828403121561366e57600080fd5b6134018261352a565b634e487b7160e01b600052602160045260246000fd5b60208101600383106136af57634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156136c757600080fd5b61340182613501565b600080602083850312156136e357600080fd5b82356001600160401b03808211156136fa57600080fd5b818501915085601f83011261370e57600080fd5b81358181111561371d57600080fd5b86602082850101111561372f57600080fd5b60209290920196919550909350505050565b6000806040838503121561375457600080fd5b61375d836134c0565b91506020830135801515811461377257600080fd5b809150509250929050565b6000806020838503121561379057600080fd5b82356001600160401b03808211156137a757600080fd5b818501915085601f8301126137bb57600080fd5b8135818111156137ca57600080fd5b8660208260051b850101111561372f57600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561380b57600080fd5b613814856134c0565b9350613822602086016134c0565b92506040850135915060608501356001600160401b038082111561384557600080fd5b818701915087601f83011261385957600080fd5b81358181111561386b5761386b6137df565b604051601f8201601f19908116603f01168101908382118183101715613893576138936137df565b816040528281528a60208487010111156138ac57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156138e357600080fd5b6138ec836134c0565b91506138fa602084016134c0565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061394c57607f821691505b6020821081141561396d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561399c5761399c613973565b500190565b60208082526022908201527f4d696e74656420746f6b656e7320776f756c642065786365656420737570706c6040820152613c9760f11b606082015260800190565b6020808252602a908201527f5472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f726040820152691030b8383937bb32b21760b11b606082015260800190565b60208082526010908201526f2a37b5b2b71034b9903130b73732b21760811b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613a8157613a81613973565b5060010190565b602080825260169082015275283934b1b2903430b9903737ba1031b430b733b2b21760511b604082015260600190565b60006001600160481b0383811690831681811015613ad857613ad8613973565b039392505050565b634e487b7160e01b600052601260045260246000fd5b60006001600160481b0380841680613b1057613b10613ae0565b92169190910492915050565b60006001600160481b0380831681851681830481118215151615613b4257613b42613973565b02949350505050565b600082613b5a57613b5a613ae0565b500690565b6020808252601590820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604082015260600190565b60208082526017908201527f496e636f727265637420457468657220616d6f756e742e000000000000000000604082015260600190565b6000816000190483118215151615613bdf57613bdf613973565b500290565b6020808252810182905260006001600160fb1b03831115613c0457600080fd5b8260051b80856040850137600092016040019182525092915050565b600082821015613c3257613c32613973565b500390565b60008151613c4981856020860161343c565b9290920192915050565b600080845481600182811c915080831680613c6f57607f831692505b6020808410821415613c8f57634e487b7160e01b86526022600452602486fd5b818015613ca35760018114613cb457613ce1565b60ff19861689528489019650613ce1565b60008b81526020902060005b86811015613cd95781548b820152908501908301613cc0565b505084890196505b505050505050613cf18185613c37565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613d5b57613d5b613ae0565b500490565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d9390830184613468565b9695505050505050565b600060208284031215613daf57600080fd5b8151613401816133ce56fea264697066735822122000811f049ac95267b989e009142ca0fb54de9df557d5c7bbc2516e3b92feaef764736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6d657461646174612e6d6574616d696e74696f2e636f6d2f616c7068612f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f6d657461646174612e6d6574616d696e74696f2e636f6d2f616c7068612f636f6e74726163742d6d65746164617461000000000000000000
Deployed Bytecode
0x60806040526004361061036b5760003560e01c8063715018a6116101c6578063b8cb65ee116100f7578063d5abeb0111610095578063e8a3d4851161006f578063e8a3d48514610a44578063e985e9c514610a59578063f2fde38b14610aa2578063faab3def14610ac257600080fd5b8063d5abeb01146109ee578063d854b99114610a04578063e0df5b6f14610a2457600080fd5b8063c57a9c56116100d1578063c57a9c561461095e578063c6ed89901461098e578063c87b56dd146109ae578063cdffd6ed146109ce57600080fd5b8063b8cb65ee14610909578063be010c4014610929578063c46ebe711461095657600080fd5b8063938e3d7b11610164578063a0712d681161013e578063a0712d68146108a3578063a22cb465146108b6578063a6761150146108d6578063b88d4fde146108e957600080fd5b8063938e3d7b1461085857806395d89b4114610878578063a06db7dc1461088d57600080fd5b80637d9f6db5116101a05780637d9f6db51461076e5780637ff9b5961461080f5780638d597f87146108255780638da5cb5b1461083a57600080fd5b8063715018a61461073057806371e23947146107455780637b55297a1461075857600080fd5b806348bb30e7116102a0578063603f4d521161023e578063676c0d7711610218578063676c0d77146106b05780636a91ccd0146106d05780636e304201146106f057806370a082311461071057600080fd5b8063603f4d52146106495780636352211e146106705780636693e9581461069057600080fd5b806355da57461161027a57806355da5746146105de5780635ab98d5a146105fe5780635e307a481461061e5780635fd8c7101461063457600080fd5b806348bb30e7146105715780634bd25c6f146105915780634e1073e7146105be57600080fd5b806318160ddd1161030d5780632d7d1cd3116102e75780632d7d1cd3146104e457806342842e0e14610504578063483e23181461052457806348756c171461054457600080fd5b806318160ddd146104815780631e3bcc8e146104a457806323b872dd146104c457600080fd5b8063081812fc11610349578063081812fc146103e9578063084c408814610421578063095ea7b31461044157806311bb01ed1461046157600080fd5b806301ffc9a7146103705780630697346f146103a557806306fdde03146103c7575b600080fd5b34801561037c57600080fd5b5061039061038b3660046133e4565b610ae2565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c0366004613421565b610b34565b005b3480156103d357600080fd5b506103dc610bce565b60405161039c9190613494565b3480156103f557600080fd5b506104096104043660046134a7565b610c60565b6040516001600160a01b03909116815260200161039c565b34801561042d57600080fd5b506103c561043c3660046134a7565b610ce8565b34801561044d57600080fd5b506103c561045c3660046134d7565b610d8f565b34801561046d57600080fd5b506103c561047c366004613541565b610ea5565b34801561048d57600080fd5b50610496611020565b60405190815260200161039c565b3480156104b057600080fd5b506103c56104bf3660046135a6565b611030565b3480156104d057600080fd5b506103c56104df3660046135c1565b611106565b3480156104f057600080fd5b506103c56104ff3660046135fd565b6111d9565b34801561051057600080fd5b506103c561051f3660046135c1565b611281565b34801561053057600080fd5b506103c561053f3660046134a7565b61129c565b34801561055057600080fd5b5061056461055f3660046135a6565b61137a565b60405161039c9190613618565b34801561057d57600080fd5b506103c561058c3660046134a7565b611462565b34801561059d57600080fd5b506105a66114b3565b6040516001600160481b03909116815260200161039c565b3480156105ca57600080fd5b506103c56105d93660046134a7565b611636565b3480156105ea57600080fd5b506103c56105f936600461365c565b6116ff565b34801561060a57600080fd5b506103c56106193660046134a7565b6117b6565b34801561062a57600080fd5b50610496600d5481565b34801561064057600080fd5b506103c561188d565b34801561065557600080fd5b506012546106639060ff1681565b60405161039c919061368d565b34801561067c57600080fd5b5061040961068b3660046134a7565b6118e6565b34801561069c57600080fd5b506103c56106ab3660046136b5565b61195d565b3480156106bc57600080fd5b506103c56106cb3660046134a7565b6119eb565b3480156106dc57600080fd5b506103c56106eb3660046134a7565b611a3c565b3480156106fc57600080fd5b506103c561070b3660046136b5565b611abd565b34801561071c57600080fd5b5061049661072b3660046135a6565b611b4a565b34801561073c57600080fd5b506103c5611bd1565b6103c56107533660046134a7565b611c07565b34801561076457600080fd5b50610496600c5481565b34801561077a57600080fd5b506011546107c59063ffffffff8116906001600160481b03600160201b820481169161ffff600160681b82041691600160781b820416906001600160401b03600160c01b9091041685565b6040805163ffffffff90961686526001600160481b03948516602087015261ffff909316928501929092529190911660608301526001600160401b0316608082015260a00161039c565b34801561081b57600080fd5b50610496600b5481565b34801561083157600080fd5b50610564611d6d565b34801561084657600080fd5b506000546001600160a01b0316610409565b34801561086457600080fd5b506103c56108733660046136d0565b611edd565b34801561088457600080fd5b506103dc611f13565b34801561089957600080fd5b50610496600e5481565b6103c56108b13660046134a7565b611f22565b3480156108c257600080fd5b506103c56108d1366004613741565b61211c565b6103c56108e436600461377d565b61212b565b3480156108f557600080fd5b506103c56109043660046137f5565b6123bd565b34801561091557600080fd5b506103c56109243660046134a7565b612497565b34801561093557600080fd5b506104966109443660046134a7565b600f6020526000908152604090205481565b6103c561254a565b34801561096a57600080fd5b506103906109793660046134a7565b60106020526000908152604090205460ff1681565b34801561099a57600080fd5b506103c56109a93660046134a7565b612723565b3480156109ba57600080fd5b506103dc6109c93660046134a7565b61275f565b3480156109da57600080fd5b506103906109e93660046134a7565b6127b8565b3480156109fa57600080fd5b50610496600a5481565b348015610a1057600080fd5b506103c5610a1f36600461377d565b6128a8565b348015610a3057600080fd5b506103c5610a3f3660046136d0565b612a27565b348015610a5057600080fd5b506103dc612a5d565b348015610a6557600080fd5b50610390610a743660046138d0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610aae57600080fd5b506103c5610abd3660046135a6565b612a6c565b348015610ace57600080fd5b506103c5610add3660046134a7565b612b04565b60006001600160e01b031982166380ac58cd60e01b1480610b1357506001600160e01b03198216635b5e139f60e01b145b80610b2e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b03163314610b675760405162461bcd60e51b8152600401610b5e90613903565b60405180910390fd5b428163ffffffff1611610bb25760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21039ba30b93a103a34b6b29760691b6044820152606401610b5e565b6011805463ffffffff191663ffffffff92909216919091179055565b606060018054610bdd90613938565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0990613938565b8015610c565780601f10610c2b57610100808354040283529160200191610c56565b820191906000526020600020905b815481529060010190602001808311610c3957829003601f168201915b5050505050905090565b6000610c6b82612b53565b610ccc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5e565b506000908152600560205260409020546001600160a01b031690565b6000546001600160a01b03163314610d125760405162461bcd60e51b8152600401610b5e90613903565b8060021015610d595760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21039b0b6329039ba30ba329760691b6044820152606401610b5e565b806002811115610d6b57610d6b613677565b6012805460ff19166001836002811115610d8757610d87613677565b021790555050565b6000610d9a826118e6565b9050806001600160a01b0316836001600160a01b03161415610e085760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b5e565b336001600160a01b0382161480610e245750610e248133610a74565b610e965760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b5e565b610ea08383612b70565b505050565b6000546001600160a01b03163314610ecf5760405162461bcd60e51b8152600401610b5e90613903565b428563ffffffff1611610f1a5760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b21039ba30b93a103a34b6b29760691b6044820152606401610b5e565b816001600160481b0316846001600160481b031611610f865760405162461bcd60e51b815260206004820152602260248201527f496e697469616c207072696365206d7573742065786365656420726573657276604482015261329760f11b6064820152608401610b5e565b6011805463ffffffff969096166cffffffffffffffffffffffffff1990961695909517600160201b6001600160481b0395861602176affffffffffffffffffffff60681b1916600160681b61ffff949094169390930268ffffffffffffffffff60781b191692909217600160781b9190931602919091176001600160c01b0316600160c01b6001600160401b039290921691909102179055565b600061102b60095490565b905090565b6000546001600160a01b0316331461105a5760405162461bcd60e51b8152600401610b5e90613903565b600061106560095490565b611070906001613989565b905080600a5410156110945760405162461bcd60e51b8152600401610b5e906139a1565b6110a2600980546001019055565b6110ac8282612bde565b6110b94262278d00613989565b6000828152600f602090815260409182902092909255516001815233917f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe91015b60405180910390a25050565b6111103382612bf8565b61112c5760405162461bcd60e51b8152600401610b5e906139e3565b3361113f6000546001600160a01b031690565b6001600160a01b0316146111ce5760008181526010602052604090205460ff161561117c5760405162461bcd60e51b8152600401610b5e90613a2d565b6000818152600f602052604090205442106111ce5760405162461bcd60e51b81526020600482015260126024820152712a37b5b2b7103430b99032bc3834b932b21760711b6044820152606401610b5e565b610ea0838383612ce2565b6000546001600160a01b031633146112035760405162461bcd60e51b8152600401610b5e90613903565b60115461ffff828116600160681b90920416141561125f5760405162461bcd60e51b8152602060048201526019602482015278223ab930ba34b7b7103430b9903737ba1031b430b733b2b21760391b6044820152606401610b5e565b6011805461ffff909216600160681b0261ffff60681b19909216919091179055565b610ea0838383604051806020016040528060008152506123bd565b6000546001600160a01b031633146112c65760405162461bcd60e51b8152600401610b5e90613903565b60008181526010602052604090205460ff161561131d5760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b71030b63932b0b23c903130b73732b21760591b6044820152606401610b5e565b6000818152600f602090815260408083204290556010825291829020805460ff19166001179055905182815233917f8f9d2f181f599e221d5959b9acbebb1f42c8146251755fd61fc0de85f5d9716291015b60405180910390a250565b6060600061138783611b4a565b9050806113a4575050604080516000815260208101909152919050565b6000816001600160401b038111156113be576113be6137df565b6040519080825280602002602001820160405280156113e7578160200160208202803683370190505b509050600060015b600954811161145857856001600160a01b031661140b826118e6565b6001600160a01b03161415611446578083838151811061142d5761142d613a57565b60209081029190910101528161144281613a6d565b9250505b8061145081613a6d565b9150506113ef565b5090949350505050565b6000546001600160a01b0316331461148c5760405162461bcd60e51b8152600401610b5e90613903565b80600c5414156114ae5760405162461bcd60e51b8152600401610b5e90613a88565b600c55565b6000600260125460ff1660028111156114ce576114ce613677565b1415806114e557506011544263ffffffff90911610155b156115015750601154600160201b90046001600160481b031690565b60115460009061ffff600160681b820416906115239063ffffffff1642613ab8565b61152d9190613af6565b601154909150600160201b81046001600160481b03169061155e90600160c01b90046001600160401b031683613b1c565b6001600160481b031610611584575050601154600160781b90046001600160481b031690565b601154600160781b81046001600160481b0316906115b290600160c01b90046001600160401b031683613b1c565b6011546115cf9190600160201b90046001600160481b0316613ab8565b6001600160481b031610156115f6575050601154600160781b90046001600160481b031690565b60115461161390600160c01b90046001600160401b031682613b1c565b6011546116309190600160201b90046001600160481b0316613ab8565b91505090565b6000546001600160a01b031633146116605760405162461bcd60e51b8152600401610b5e90613903565b60008181526010602052604090205460ff166116b55760405162461bcd60e51b81526020600482015260146024820152732a37b5b2b71034b9903737ba103130b73732b21760611b6044820152606401610b5e565b60008181526010602052604090819020805460ff191690555133907ff46dc693169fba0f08556bb54c8abc995b37535f1c2322598f0e671982d8ff869061136f9084815260200190565b6000546001600160a01b031633146117295760405162461bcd60e51b8152600401610b5e90613903565b6011546001600160401b03828116600160c01b90920416141561178e5760405162461bcd60e51b815260206004820152601a60248201527f44656372656d656e7420686173206e6f74206368616e6765642e0000000000006044820152606401610b5e565b601180546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b6000546001600160a01b031633146117e05760405162461bcd60e51b8152600401610b5e90613903565b80600e54141561182e5760405162461bcd60e51b8152602060048201526019602482015278223ab930ba34b7b7103430b9903737ba1031b430b733b2b21760391b6044820152606401610b5e565b61183b6201518082613b4b565b156118885760405162461bcd60e51b815260206004820152601e60248201527f4d7573742070726f7669646520312064617920696e6372656d656e74732e00006044820152606401610b5e565b600e55565b6000546001600160a01b031633146118b75760405162461bcd60e51b8152600401610b5e90613903565b60405133904780156108fc02916000818181858888f193505050501580156118e3573d6000803e3d6000fd5b50565b6000818152600360205260408120546001600160a01b031680610b2e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b5e565b6000546001600160a01b031633146119875760405162461bcd60e51b8152600401610b5e90613903565b6011546001600160481b03828116600160201b9092041614156119bc5760405162461bcd60e51b8152600401610b5e90613a88565b601180546001600160481b03909216600160201b026cffffffffffffffffff0000000019909216919091179055565b6000546001600160a01b03163314611a155760405162461bcd60e51b8152600401610b5e90613903565b80600b541415611a375760405162461bcd60e51b8152600401610b5e90613a88565b600b55565b6000546001600160a01b03163314611a665760405162461bcd60e51b8152600401610b5e90613903565b80600d541415611ab85760405162461bcd60e51b815260206004820152601b60248201527f4d617820746f6b656e7320686173206e6f74206368616e6765642e00000000006044820152606401610b5e565b600d55565b6000546001600160a01b03163314611ae75760405162461bcd60e51b8152600401610b5e90613903565b6011546001600160481b03828116600160781b909204161415611b1c5760405162461bcd60e51b8152600401610b5e90613a88565b601180546001600160481b03909216600160781b0268ffffffffffffffffff60781b19909216919091179055565b60006001600160a01b038216611bb55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b5e565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611bfb5760405162461bcd60e51b8152600401610b5e90613903565b611c056000612e82565b565b611c1081612b53565b611c2c5760405162461bcd60e51b8152600401610b5e90613b5f565b33611c36826118e6565b6001600160a01b031614611c8c5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220646f6573206e6f74206f776e20746f6b656e2e0000000000006044820152606401610b5e565b60008181526010602052604090205460ff1615611cbb5760405162461bcd60e51b8152600401610b5e90613a2d565b600c543414611cdc5760405162461bcd60e51b8152600401610b5e90613b8e565b6000818152600f602052604090205442811015611d1457611d004262278d00613989565b6000838152600f6020526040902055611d3b565b6000828152600f60205260408120805462278d009290611d35908490613989565b90915550505b60405182815233907f149b8ef5614c26b28a55bb6a04b1b9ca363691c31302c66a7c6a32c91c0653ce906020016110fa565b60606000611d7a60095490565b9050600060015b828111611dfa576000818152600f602052604090205442118015611dbf5750600e546000828152600f60205260409020544291611dbd91613989565b115b15611de85760008181526010602052604090205460ff16611de85781611de481613a6d565b9250505b80611df281613a6d565b915050611d81565b506000816001600160401b03811115611e1557611e156137df565b604051908082528060200260200182016040528015611e3e578160200160208202803683370190505b509050600060015b848111611458576000818152600f602052604090205442118015611e845750600e546000828152600f60205260409020544291611e8291613989565b115b15611ecb5760008181526010602052604090205460ff16611ecb5780838381518110611eb257611eb2613a57565b602090810291909101015281611ec781613a6d565b9250505b80611ed581613a6d565b915050611e46565b6000546001600160a01b03163314611f075760405162461bcd60e51b8152600401610b5e90613903565b610ea060088383613335565b606060028054610bdd90613938565b323314611f715760405162461bcd60e51b815260206004820181905260248201527f43616c6c65722073686f756c64206e6f74206265206120636f6e74726163742e6044820152606401610b5e565b600160125460ff166002811115611f8a57611f8a613677565b14611fd75760405162461bcd60e51b815260206004820152601b60248201527f46434653206d696e74696e67206973206e6f74206163746976652e00000000006044820152606401610b5e565b3481600b54611fe69190613bc5565b146120035760405162461bcd60e51b8152600401610b5e90613b8e565b8061200d60095490565b6120179190613989565b600a5410156120385760405162461bcd60e51b8152600401610b5e906139a1565b80600d54101561208a5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e207478206c696d69742065786365656465642e00000000000000006044820152606401610b5e565b60005b818110156120e9576120a3600980546001019055565b60006120ae60095490565b90506120ba3382612bde565b6120c74262278d00613989565b6000918252600f602052604090912055806120e181613a6d565b91505061208d565b5060405181815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe9060200161136f565b612127338383612ed2565b5050565b60028110156121745760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21030b93930bc903632b733ba341760591b6044820152606401610b5e565b600c543490612184908390613bc5565b146121a15760405162461bcd60e51b8152600401610b5e90613b8e565b60005b81811015612381576121cd8383838181106121c1576121c1613a57565b90506020020135612b53565b6121e95760405162461bcd60e51b8152600401610b5e90613b5f565b3361220b8484848181106121ff576121ff613a57565b905060200201356118e6565b6001600160a01b0316146122615760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220646f6573206e6f74206f776e20746f6b656e2e0000000000006044820152606401610b5e565b6010600084848481811061227757612277613a57565b602090810292909201358352508101919091526040016000205460ff16156122b15760405162461bcd60e51b8152600401610b5e90613a2d565b6000600f60008585858181106122c9576122c9613a57565b9050602002013581526020019081526020016000205490508042111561232a576122f64262278d00613989565b600f600086868681811061230c5761230c613a57565b9050602002013581526020019081526020016000208190555061236e565b62278d00600f600086868681811061234457612344613a57565b90506020020135815260200190815260200160002060008282546123689190613989565b90915550505b508061237981613a6d565b9150506121a4565b50336001600160a01b03167fe7bf5a1d8e243b9332f408be227a992b3ccfc09291afaab341fd8359080d64a783836040516110fa929190613be4565b6123c73383612bf8565b6123e35760405162461bcd60e51b8152600401610b5e906139e3565b336123f66000546001600160a01b031690565b6001600160a01b0316146124855760008281526010602052604090205460ff16156124335760405162461bcd60e51b8152600401610b5e90613a2d565b6000828152600f602052604090205442106124855760405162461bcd60e51b81526020600482015260126024820152712a37b5b2b7103430b99032bc3834b932b21760711b6044820152606401610b5e565b61249184848484612fa1565b50505050565b6000546001600160a01b031633146124c15760405162461bcd60e51b8152600401610b5e90613903565b60095481600a546124d29190613c20565b10156125305760405162461bcd60e51b815260206004820152602760248201527f537570706c792063616e6e6f742066616c6c2062656c6f77206d696e746564206044820152663a37b5b2b7399760c91b6064820152608401610b5e565b80600a60008282546125429190613c20565b909155505050565b3233146125995760405162461bcd60e51b815260206004820181905260248201527f43616c6c65722073686f756c64206e6f74206265206120636f6e74726163742e6044820152606401610b5e565b60125460ff1660028111156125b0576125b0613677565b6002146125f55760405162461bcd60e51b815260206004820152601360248201527220bab1ba34b7b7103737ba1030b1ba34bb329760691b6044820152606401610b5e565b6011544263ffffffff909116111561264f5760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e20686173206e6f7420737461727465642e00000000000000006044820152606401610b5e565b600061265a60095490565b612665906001613989565b905080600a5410156126895760405162461bcd60e51b8152600401610b5e906139a1565b6126916114b3565b6001600160481b03163410156126b95760405162461bcd60e51b8152600401610b5e90613b8e565b6126c7600980546001019055565b6126d13382612bde565b6126de4262278d00613989565b6000828152600f602090815260409182902092909255516001815233917f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910161136f565b6000546001600160a01b0316331461274d5760405162461bcd60e51b8152600401610b5e90613903565b80600a60008282546125429190613989565b606061276a82612b53565b6127865760405162461bcd60e51b8152600401610b5e90613b5f565b600761279183612fd4565b6040516020016127a2929190613c53565b6040516020818303038152906040529050919050565b60006127c382612b53565b6127df5760405162461bcd60e51b8152600401610b5e90613b5f565b60008281526010602052604090205460ff161561280e5760405162461bcd60e51b8152600401610b5e90613a2d565b600e546000838152600f6020526040902054429161282b91613989565b116128785760405162461bcd60e51b815260206004820181905260248201527f546f6b656e2068617320657870697265642e20506c656173652072656e6577216044820152606401610b5e565b612881826118e6565b6001600160a01b0316336001600160a01b0316146128a0576000610b2e565b600192915050565b6000546001600160a01b031633146128d25760405162461bcd60e51b8152600401610b5e90613903565b600281101561291b5760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21030b93930bc903632b733ba341760591b6044820152606401610b5e565b60005b818110156123815761293b8383838181106121c1576121c1613a57565b6129575760405162461bcd60e51b8152600401610b5e90613b5f565b6000600f600085858581811061296f5761296f613a57565b905060200201358152602001908152602001600020549050804211156129d05761299c4262278d00613989565b600f60008686868181106129b2576129b2613a57565b90506020020135815260200190815260200160002081905550612a14565b62278d00600f60008686868181106129ea576129ea613a57565b9050602002013581526020019081526020016000206000828254612a0e9190613989565b90915550505b5080612a1f81613a6d565b91505061291e565b6000546001600160a01b03163314612a515760405162461bcd60e51b8152600401610b5e90613903565b610ea060078383613335565b606060088054610bdd90613938565b6000546001600160a01b03163314612a965760405162461bcd60e51b8152600401610b5e90613903565b6001600160a01b038116612afb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b5e565b6118e381612e82565b6000546001600160a01b03163314612b2e5760405162461bcd60e51b8152600401610b5e90613903565b612b3781612b53565b611cdc5760405162461bcd60e51b8152600401610b5e90613b5f565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ba5826118e6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6121278282604051806020016040528060008152506130d1565b6000612c0382612b53565b612c645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b5e565b6000612c6f836118e6565b9050806001600160a01b0316846001600160a01b03161480612caa5750836001600160a01b0316612c9f84610c60565b6001600160a01b0316145b80612cda57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612cf5826118e6565b6001600160a01b031614612d5d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b5e565b6001600160a01b038216612dbf5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b5e565b612dca600082612b70565b6001600160a01b0383166000908152600460205260408120805460019290612df3908490613c20565b90915550506001600160a01b0382166000908152600460205260408120805460019290612e21908490613989565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03161415612f345760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b5e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fac848484612ce2565b612fb884848484613104565b6124915760405162461bcd60e51b8152600401610b5e90613cfa565b606081612ff85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613022578061300c81613a6d565b915061301b9050600a83613d4c565b9150612ffc565b6000816001600160401b0381111561303c5761303c6137df565b6040519080825280601f01601f191660200182016040528015613066576020820181803683370190505b5090505b8415612cda5761307b600183613c20565b9150613088600a86613b4b565b613093906030613989565b60f81b8183815181106130a8576130a8613a57565b60200101906001600160f81b031916908160001a9053506130ca600a86613d4c565b945061306a565b6130db8383613202565b6130e86000848484613104565b610ea05760405162461bcd60e51b8152600401610b5e90613cfa565b60006001600160a01b0384163b156131f757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613148903390899088908890600401613d60565b6020604051808303816000875af1925050508015613183575060408051601f3d908101601f1916820190925261318091810190613d9d565b60015b6131dd573d8080156131b1576040519150601f19603f3d011682016040523d82523d6000602084013e6131b6565b606091505b5080516131d55760405162461bcd60e51b8152600401610b5e90613cfa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612cda565b506001949350505050565b6001600160a01b0382166132585760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b5e565b61326181612b53565b156132ae5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b5e565b6001600160a01b03821660009081526004602052604081208054600192906132d7908490613989565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461334190613938565b90600052602060002090601f01602090048101928261336357600085556133a9565b82601f1061337c5782800160ff198235161785556133a9565b828001600101855582156133a9579182015b828111156133a957823582559160200191906001019061338e565b506133b59291506133b9565b5090565b5b808211156133b557600081556001016133ba565b6001600160e01b0319811681146118e357600080fd5b6000602082840312156133f657600080fd5b8135613401816133ce565b9392505050565b803563ffffffff8116811461341c57600080fd5b919050565b60006020828403121561343357600080fd5b61340182613408565b60005b8381101561345757818101518382015260200161343f565b838111156124915750506000910152565b6000815180845261348081602086016020860161343c565b601f01601f19169290920160200192915050565b6020815260006134016020830184613468565b6000602082840312156134b957600080fd5b5035919050565b80356001600160a01b038116811461341c57600080fd5b600080604083850312156134ea57600080fd5b6134f3836134c0565b946020939093013593505050565b80356001600160481b038116811461341c57600080fd5b803561ffff8116811461341c57600080fd5b80356001600160401b038116811461341c57600080fd5b600080600080600060a0868803121561355957600080fd5b61356286613408565b945061357060208701613501565b935061357e60408701613518565b925061358c60608701613501565b915061359a6080870161352a565b90509295509295909350565b6000602082840312156135b857600080fd5b613401826134c0565b6000806000606084860312156135d657600080fd5b6135df846134c0565b92506135ed602085016134c0565b9150604084013590509250925092565b60006020828403121561360f57600080fd5b61340182613518565b6020808252825182820181905260009190848201906040850190845b8181101561365057835183529284019291840191600101613634565b50909695505050505050565b60006020828403121561366e57600080fd5b6134018261352a565b634e487b7160e01b600052602160045260246000fd5b60208101600383106136af57634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156136c757600080fd5b61340182613501565b600080602083850312156136e357600080fd5b82356001600160401b03808211156136fa57600080fd5b818501915085601f83011261370e57600080fd5b81358181111561371d57600080fd5b86602082850101111561372f57600080fd5b60209290920196919550909350505050565b6000806040838503121561375457600080fd5b61375d836134c0565b91506020830135801515811461377257600080fd5b809150509250929050565b6000806020838503121561379057600080fd5b82356001600160401b03808211156137a757600080fd5b818501915085601f8301126137bb57600080fd5b8135818111156137ca57600080fd5b8660208260051b850101111561372f57600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561380b57600080fd5b613814856134c0565b9350613822602086016134c0565b92506040850135915060608501356001600160401b038082111561384557600080fd5b818701915087601f83011261385957600080fd5b81358181111561386b5761386b6137df565b604051601f8201601f19908116603f01168101908382118183101715613893576138936137df565b816040528281528a60208487010111156138ac57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156138e357600080fd5b6138ec836134c0565b91506138fa602084016134c0565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061394c57607f821691505b6020821081141561396d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561399c5761399c613973565b500190565b60208082526022908201527f4d696e74656420746f6b656e7320776f756c642065786365656420737570706c6040820152613c9760f11b606082015260800190565b6020808252602a908201527f5472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f726040820152691030b8383937bb32b21760b11b606082015260800190565b60208082526010908201526f2a37b5b2b71034b9903130b73732b21760811b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415613a8157613a81613973565b5060010190565b602080825260169082015275283934b1b2903430b9903737ba1031b430b733b2b21760511b604082015260600190565b60006001600160481b0383811690831681811015613ad857613ad8613973565b039392505050565b634e487b7160e01b600052601260045260246000fd5b60006001600160481b0380841680613b1057613b10613ae0565b92169190910492915050565b60006001600160481b0380831681851681830481118215151615613b4257613b42613973565b02949350505050565b600082613b5a57613b5a613ae0565b500690565b6020808252601590820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604082015260600190565b60208082526017908201527f496e636f727265637420457468657220616d6f756e742e000000000000000000604082015260600190565b6000816000190483118215151615613bdf57613bdf613973565b500290565b6020808252810182905260006001600160fb1b03831115613c0457600080fd5b8260051b80856040850137600092016040019182525092915050565b600082821015613c3257613c32613973565b500390565b60008151613c4981856020860161343c565b9290920192915050565b600080845481600182811c915080831680613c6f57607f831692505b6020808410821415613c8f57634e487b7160e01b86526022600452602486fd5b818015613ca35760018114613cb457613ce1565b60ff19861689528489019650613ce1565b60008b81526020902060005b86811015613cd95781548b820152908501908301613cc0565b505084890196505b505050505050613cf18185613c37565b95945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613d5b57613d5b613ae0565b500490565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d9390830184613468565b9695505050505050565b600060208284031215613daf57600080fd5b8151613401816133ce56fea264697066735822122000811f049ac95267b989e009142ca0fb54de9df557d5c7bbc2516e3b92feaef764736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6d657461646174612e6d6574616d696e74696f2e636f6d2f616c7068612f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f6d657461646174612e6d6574616d696e74696f2e636f6d2f616c7068612f636f6e74726163742d6d65746164617461000000000000000000
-----Decoded View---------------
Arg [0] : tokenURI_ (string): https://metadata.metamintio.com/alpha/metadata/
Arg [1] : contractURI_ (string): https://metadata.metamintio.com/alpha/contract-metadata
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [3] : 68747470733a2f2f6d657461646174612e6d6574616d696e74696f2e636f6d2f
Arg [4] : 616c7068612f6d657461646174612f0000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [6] : 68747470733a2f2f6d657461646174612e6d6574616d696e74696f2e636f6d2f
Arg [7] : 616c7068612f636f6e74726163742d6d65746164617461000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.