More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 711 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 18048928 | 8 hrs ago | IN | 209 CRO | 1.1402799 | ||||
Mint | 18048758 | 9 hrs ago | IN | 209 CRO | 1.14120405 | ||||
Transfer From | 18047086 | 11 hrs ago | IN | 0 CRO | 0.505 | ||||
Mint | 18046940 | 11 hrs ago | IN | 747 CRO | 2.49381625 | ||||
Mint | 18045479 | 14 hrs ago | IN | 249 CRO | 1.125865 | ||||
Mint | 18044824 | 15 hrs ago | IN | 249 CRO | 1.04543115 | ||||
Mint | 18044777 | 15 hrs ago | IN | 2,490 CRO | 7.28151718 | ||||
Safe Transfer Fr... | 18040820 | 21 hrs ago | IN | 0 CRO | 0.466388 | ||||
Safe Transfer Fr... | 18033235 | 33 hrs ago | IN | 0 CRO | 0.4604968 | ||||
Safe Transfer Fr... | 18033229 | 33 hrs ago | IN | 0 CRO | 0.608703 | ||||
Transfer From | 18032966 | 33 hrs ago | IN | 0 CRO | 0.505 | ||||
Transfer From | 18032958 | 33 hrs ago | IN | 0 CRO | 0.505 | ||||
Mint | 18017678 | 2 days ago | IN | 747 CRO | 2.4073249 | ||||
Transfer From | 18014518 | 2 days ago | IN | 0 CRO | 0.505 | ||||
Transfer From | 18013233 | 2 days ago | IN | 0 CRO | 0.505 | ||||
Mint | 18004342 | 3 days ago | IN | 249 CRO | 1.13712365 | ||||
Mint | 18004190 | 3 days ago | IN | 249 CRO | 1.1361995 | ||||
Mint | 17997092 | 3 days ago | IN | 249 CRO | 1.1361995 | ||||
Mint | 17997087 | 3 days ago | IN | 249 CRO | 1.05155645 | ||||
Mint | 17990977 | 4 days ago | IN | 249 CRO | 1.1361995 | ||||
Mint | 17972084 | 5 days ago | IN | 1,245 CRO | 3.76383849 | ||||
Mint | 17971408 | 5 days ago | IN | 1,245 CRO | 3.76383849 | ||||
Set Approval For... | 17971352 | 5 days ago | IN | 0 CRO | 0.23366855 | ||||
Mint | 17970825 | 5 days ago | IN | 1,245 CRO | 3.93492206 | ||||
Mint | 17967951 | 5 days ago | IN | 1,743 CRO | 5.20629245 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18048928 | 8 hrs ago | 20.9 CRO | ||||
18048928 | 8 hrs ago | 188.1 CRO | ||||
18048758 | 9 hrs ago | 20.9 CRO | ||||
18048758 | 9 hrs ago | 188.1 CRO | ||||
18046940 | 11 hrs ago | 74.7 CRO | ||||
18046940 | 11 hrs ago | 672.3 CRO | ||||
18045479 | 14 hrs ago | 24.9 CRO | ||||
18045479 | 14 hrs ago | 224.1 CRO | ||||
18044777 | 15 hrs ago | 249 CRO | ||||
18044777 | 15 hrs ago | 2,241 CRO | ||||
18017678 | 2 days ago | 74.7 CRO | ||||
18017678 | 2 days ago | 672.3 CRO | ||||
18004342 | 3 days ago | 24.9 CRO | ||||
18004342 | 3 days ago | 224.1 CRO | ||||
18004190 | 3 days ago | 24.9 CRO | ||||
18004190 | 3 days ago | 224.1 CRO | ||||
17997092 | 3 days ago | 24.9 CRO | ||||
17997092 | 3 days ago | 224.1 CRO | ||||
17997087 | 3 days ago | 24.9 CRO | ||||
17997087 | 3 days ago | 224.1 CRO | ||||
17990977 | 4 days ago | 24.9 CRO | ||||
17990977 | 4 days ago | 224.1 CRO | ||||
17972084 | 5 days ago | 124.5 CRO | ||||
17972084 | 5 days ago | 1,120.5 CRO | ||||
17971408 | 5 days ago | 124.5 CRO |
Loading...
Loading
Contract Name:
ReapersSquad
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import {ERC721Enumerable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import {ERC721Burnable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import {ERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; contract ReapersSquad is Ownable, ERC721Enumerable, ERC721Burnable, ReentrancyGuard, ERC2981 { using Strings for uint256; string private baseTokenURI; // Minting bool public paused; uint256 public maxMint = 10; uint256 public maxWL = 2000; uint256 public wlStartTimestamp = 1729243800; uint256 public publicStartTimestamp = 1729247400; uint256 public whitelistPrice = 209 ether; uint256 public price = 249 ether; mapping(address => uint256) private freelist; mapping(address => bool) private whitelist; address[] public partners; mapping(address => uint256) private mintedWL; mapping(uint256 => uint256) private tokensMatrix; Currency[] public currencies; mapping(address => CurrencyMap) private currenciesMap; uint256 public totalRoyalties = 0; uint256 public currentRound = 0; mapping(address => uint256) public totalClaimed; mapping(uint256 => mapping(uint256 => uint256)) public claimedRoyalties; mapping(uint256 => uint256) private currentRoyalties; // Payout address public immutable dooWallet; address public projectWallet; // Events event MintStatusChanged(bool paused); event WhitelistUpdated(); event Minted( address indexed sender, uint256 currentSupply, uint256 amount, uint256 time ); // Errors error MintNotOpen(); error PausedMint(); error InsufficientPayment(); error CannotMintZero(); error OverMint(); error MintLimit(); error FreeMintLimit(); error InvalidMint(); // Constants uint256 public constant MAX_SUPPLY = 2000; uint256 public constant LAUNCHPAD_ROYALTIES = 10; // Structs struct CurrencyMap { bool exists; uint256 index; } struct Currency { bool enabled; ERC20 addy; string symbol; uint256 price; uint256 whitelistPrice; uint256 max; } struct MintInfo { bool paused; uint256 supply; uint256 maxSupply; uint256 maxMint; uint256 price; uint256 wlPrice; uint256 wltimestamp; uint256 publictimestamp; Currency[] currencies; } struct TokenInfo { uint256 id; uint256 royalties; } constructor( address initialOwner_, string memory uri_, address projectWallet_, address royaltiesWallet_, address dooWallet_ ) ERC721("ReapersSquad", "RsSQUAD") Ownable(initialOwner_) { baseTokenURI = uri_; projectWallet = projectWallet_; dooWallet = dooWallet_; setDefaultRoyalty(royaltiesWallet_, 1000); } // Owner // - Setup function setProjectWallet(address projectWallet_) public onlyOwner { projectWallet = projectWallet_; } function setBaseTokenURI(string memory uri) public onlyOwner { baseTokenURI = uri; } function setDefaultRoyalty( address receiver, uint96 feeNumerator ) public onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function setCurrency( address token, uint256 p, uint256 wp, uint256 max ) external onlyOwner { if (currenciesMap[token].exists) { uint256 index = currenciesMap[token].index; currencies[index].price = p; currencies[index].whitelistPrice = wp; } else { currenciesMap[token].exists = true; currenciesMap[token].index = currencies.length; Currency memory currency = Currency({ enabled: true, addy: ERC20(token), symbol: ERC20(token).symbol(), price: p, whitelistPrice: wp, max: max }); currencies.push(currency); } } function enableCurrency(address token, bool _enabled) external onlyOwner { require(currenciesMap[token].exists); uint256 index = currenciesMap[token].index; currencies[index].enabled = _enabled; } function setPartners(address[] calldata partners_) external onlyOwner { partners = partners_; } function addWhitelist(address[] calldata addresses_) external onlyOwner { for (uint256 i = 0; i < addresses_.length; ) { whitelist[addresses_[i]] = true; unchecked { ++i; } } emit WhitelistUpdated(); } function removeWhitelist(address[] calldata addresses_) external onlyOwner { for (uint256 i = 0; i < addresses_.length; ) { whitelist[addresses_[i]] = false; unchecked { ++i; } } emit WhitelistUpdated(); } function addFreelist( address[] calldata addresses_, uint256[] calldata amount_ ) external onlyOwner { require(addresses_.length == amount_.length); for (uint256 i = 0; i < addresses_.length; ) { freelist[addresses_[i]] += amount_[i]; unchecked { ++i; } } emit WhitelistUpdated(); } function removeFreelist(address[] calldata addresses_) external onlyOwner { for (uint256 i = 0; i < addresses_.length; ) { freelist[addresses_[i]] = 0; unchecked { ++i; } } emit WhitelistUpdated(); } function setTimestamp(uint256 _wl, uint256 _public) external onlyOwner { wlStartTimestamp = _wl; publicStartTimestamp = _public; } function setMaxMint(uint256 maxMint_) external onlyOwner { maxMint = maxMint_; } function setMaxWL(uint256 maxWL_) external onlyOwner { maxWL = maxWL_; } function setPrices( uint256 price_, uint256 whitelistPrice_ ) external onlyOwner { price = price_; whitelistPrice = whitelistPrice_; } function setPaused(bool paused_) external onlyOwner { paused = paused_; } // - Team minting function teamMintSpecific( uint256[] memory tokens, address to ) external onlyOwner nonReentrant { uint currentSupply = totalSupply(); if (currentSupply + tokens.length > MAX_SUPPLY) revert OverMint(); for (uint256 i = 0; i < tokens.length; ) { uint256 tokenId = tokens[i]; fixTokenId(tokenId); _safeMint(to, tokenId); unchecked { ++i; claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; } } emit Minted( _msgSender(), currentSupply, tokens.length, block.timestamp ); } function teamMint(uint256 amount, address to) external onlyOwner { uint currentSupply = totalSupply(); if (currentSupply + amount > MAX_SUPPLY) revert OverMint(); for (uint256 i = 1; i <= amount; ) { uint256 tokenId = randomTokenId(); _safeMint(to, tokenId); unchecked { ++i; claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; } } emit Minted(_msgSender(), currentSupply, amount, block.timestamp); } // - Team Funds function _payoutDoo(uint256 _amount) private { (bool success, ) = payable(dooWallet).call{value: _amount, gas: 50000}( "" ); require(success, "Cannot payout CroDoo"); } function _payoutToken(uint256 _amount, ERC20 _token) private { require(_token.balanceOf(msg.sender) >= _amount, "Balance is too low"); _token.transferFrom(msg.sender, projectWallet, _amount); } function _payoutDooToken(uint256 _amount, ERC20 _token) private { require(_token.balanceOf(msg.sender) >= _amount, "Balance is too low"); _token.transferFrom(msg.sender, dooWallet, _amount); } function _payout(uint256 _amount) private { (bool success, ) = payable(projectWallet).call{ value: _amount, gas: 50000 }(""); require(success, "Cannot payout"); } // External function freeMint(uint256 amount) external nonReentrant { if (paused) revert PausedMint(); if (block.timestamp < wlStartTimestamp) revert MintNotOpen(); if (amount > freeMintCount(_msgSender())) revert FreeMintLimit(); if (amount == 0) revert CannotMintZero(); uint currentSupply = totalSupply(); if (currentSupply + amount > MAX_SUPPLY) revert OverMint(); for (uint256 i = 1; i <= amount; ) { uint256 tokenId = randomTokenId(); _safeMint(_msgSender(), tokenId); unchecked { ++i; claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; } } freelist[_msgSender()] -= amount; emit Minted(_msgSender(), currentSupply, amount, block.timestamp); } function mint(uint256 amount) external payable nonReentrant { if (paused) revert PausedMint(); bool isWL = isWhitelisted(msg.sender, amount); bool canMint = block.timestamp >= publicStartTimestamp || (isWL && block.timestamp >= wlStartTimestamp); if (!canMint) revert MintNotOpen(); if (amount > maxMint) revert MintLimit(); if (amount == 0) revert CannotMintZero(); uint256 unitPrice = mintPrice(_msgSender(), amount); uint256 totalPrice = unitPrice * amount; uint currentSupply = totalSupply(); if (currentSupply + amount > MAX_SUPPLY) revert OverMint(); if (msg.value != totalPrice) revert InsufficientPayment(); for (uint256 i = 1; i <= amount; ) { uint256 tokenId = randomTokenId(); _safeMint(_msgSender(), tokenId); unchecked { ++i; claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; } } if (isWL) { mintedWL[msg.sender] += amount; } uint256 launchpadRoyalties = (totalPrice * LAUNCHPAD_ROYALTIES) / 100; uint256 payout = totalPrice - launchpadRoyalties; _payout(payout); _payoutDoo(launchpadRoyalties); emit Minted(_msgSender(), currentSupply, amount, block.timestamp); } function mintERC20(uint256 amount, address erc20) external nonReentrant { if (paused) revert PausedMint(); if (amount > maxMint) revert MintLimit(); if (amount == 0) revert CannotMintZero(); require(currenciesMap[erc20].exists, "Currency not allowed"); uint256 index = currenciesMap[erc20].index; Currency memory currency = currencies[index]; bool isWL = isWhitelisted(msg.sender, amount); bool canMint = block.timestamp >= publicStartTimestamp || (isWL && block.timestamp >= wlStartTimestamp); if (!canMint) revert MintNotOpen(); require(currency.enabled, "Currency not allowed"); require(currencies[index].max - amount >= 0, "Currency Limit reached"); currencies[index].max -= amount; uint256 unitPrice = mintErc20Price(erc20, _msgSender(), amount); uint256 totalPrice = unitPrice * amount; uint currentSupply = totalSupply(); if (currentSupply + amount > MAX_SUPPLY) revert OverMint(); if (ERC20(erc20).balanceOf(msg.sender) < totalPrice) revert InsufficientPayment(); for (uint256 i = 1; i <= amount; ) { uint256 tokenId = randomTokenId(); _safeMint(_msgSender(), tokenId); unchecked { ++i; claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; } } if (isWL) { mintedWL[msg.sender] += amount; } uint256 launchpadRoyalties = (totalPrice * LAUNCHPAD_ROYALTIES) / 100; uint256 payout = totalPrice - launchpadRoyalties; _payoutToken(payout, currency.addy); _payoutDooToken(launchpadRoyalties, currency.addy); emit Minted(_msgSender(), currentSupply, amount, block.timestamp); } function fixTokenId(uint256 tokenId_) internal { uint256 random = tokenId_ - 1; uint256 maxIndex = MAX_SUPPLY - totalSupply(); if (tokensMatrix[maxIndex - 1] == 0) { tokensMatrix[random] = maxIndex - 1; } else { tokensMatrix[random] = tokensMatrix[maxIndex - 1]; } } function randomTokenId() internal returns (uint256) { uint256 maxIndex = MAX_SUPPLY - totalSupply(); uint256 random = uint256( keccak256( abi.encodePacked( msg.sender, block.coinbase, block.gaslimit, block.timestamp ) ) ) % maxIndex; uint256 value = 0; if (tokensMatrix[random] == 0) { value = random; } else { value = tokensMatrix[random]; } if (tokensMatrix[maxIndex - 1] == 0) { tokensMatrix[random] = maxIndex - 1; } else { tokensMatrix[random] = tokensMatrix[maxIndex - 1]; } return value + 1; } function tokensOfWallet( address _address ) external view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_address); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_address, i); } return tokenIds; } // Internal function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function tokenURI( uint _tokenId ) public view virtual override returns (string memory) { _requireOwned(_tokenId); return string.concat(baseTokenURI, _tokenId.toString(), ".json"); } // Getters function getMintInfo() external view returns (MintInfo memory) { return MintInfo( paused, totalSupply(), MAX_SUPPLY, maxMint, price, whitelistPrice, wlStartTimestamp, publicStartTimestamp, currencies ); } function freeMintCount(address _address) public view returns (uint256) { return freelist[_address]; } function whitelistedLeft(address _address) public view returns (uint256) { return maxWL - mintedWL[_address]; } function isWhitelisted( address _address, uint256 _count ) public view returns (bool) { return (mintedWL[_address] + _count <= maxWL) && (whitelist[_address] || isPartnered(_address)); } function isPartnered(address _address) public view returns (bool) { for (uint i = 0; i < partners.length; i++) { if (ERC721(partners[i]).balanceOf(_address) > 0) { return true; } } return false; } function mintPrice( address _address, uint256 _count ) public view returns (uint256) { return isWhitelisted(_address, _count) ? whitelistPrice : price; } function mintErc20Price( address _token, address _address, uint256 _count ) public view returns (uint256) { uint256 index = currenciesMap[_token].index; return isWhitelisted(_address, _count) ? currencies[index].whitelistPrice : currencies[index].price; } // Royalties function addRoyalties() external payable { _addRewards(msg.value); } function nextSeason() external onlyOwner { currentRoyalties[currentRound] = 0; currentRound++; currentRoyalties[currentRound] += (address(this).balance) / totalSupply(); } function _addRewards(uint256 amount) private { totalRoyalties = totalRoyalties + amount; currentRoyalties[currentRound] += amount / totalSupply(); } // Getters function getRewardsToken(uint256 id) public view returns (uint256 rewards) { rewards += currentRoyalties[currentRound] - claimedRoyalties[currentRound][id]; } function getRoyalties(address sender) external view returns (uint256) { uint256 balance = 0; uint count = balanceOf(sender); for (uint i = 0; i < count; i++) { uint256 tokenId = tokenOfOwnerByIndex(sender, i); balance += getRewardsToken(tokenId); } return balance; } function getRoyaltiesDetails( address sender ) external view returns (TokenInfo[] memory) { uint count = balanceOf(sender); TokenInfo[] memory tokens = new TokenInfo[](count); for (uint i = 0; i < count; i++) { uint256 tokenId = tokenOfOwnerByIndex(sender, i); uint256 royalties = getRewardsToken(tokenId); tokens[i].id = tokenId; tokens[i].royalties = royalties; } return tokens; } // Claim function claimAllRoyalties() external { uint256 rewards = 0; uint count = balanceOf(_msgSender()); for (uint i = 0; i < count; ) { uint256 tokenId = tokenOfOwnerByIndex(_msgSender(), i); unchecked { rewards += getRewardsToken(tokenId); claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; ++i; } } totalClaimed[_msgSender()] += rewards; payable(_msgSender()).transfer(rewards); } function claimRoyalties(uint256[] memory tokensToClaim) external { uint256 rewards = 0; for (uint256 i = 0; i < tokensToClaim.length; ) { unchecked { uint256 tokenId = tokensToClaim[i]; if (ownerOf(tokenId) == _msgSender()) { rewards += (getRewardsToken(tokenId)); claimedRoyalties[currentRound][tokenId] = currentRoyalties[ currentRound ]; } ++i; } } totalClaimed[_msgSender()] += rewards; payable(_msgSender()).transfer(rewards); } // Other function withdrawAll() external onlyOwner { (bool success, ) = owner().call{value: address(this).balance}(""); require(success, "Transfer failed."); } // Overrides function supportsInterface( bytes4 interfaceId ) public view override(ERC721, ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } function _update( address to, uint256 tokenId, address auth ) internal override(ERC721, ERC721Enumerable) returns (address) { return super._update(to, tokenId, auth); } function _increaseBalance( address account, uint128 value ) internal override(ERC721, ERC721Enumerable) { super._increaseBalance(account, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; import {IERC2981} from "../../interfaces/IERC2981.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator); /** * @dev The default royalty receiver is invalid. */ error ERC2981InvalidDefaultRoyaltyReceiver(address receiver); /** * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator); /** * @dev The royalty receiver for `tokenId` is invalid. */ error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidDefaultRoyaltyReceiver(address(0)); } _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0)); } _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; import {IERC721} from "./IERC721.sol"; import {IERC721Receiver} from "./IERC721Receiver.sol"; import {IERC721Metadata} from "./extensions/IERC721Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {Strings} from "../../utils/Strings.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {IERC721Errors} from "../../interfaces/draft-IERC6093.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}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => 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 returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * 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 { _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); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC721 standard 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 like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - 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) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. 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 */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.20; import {ERC721} from "../ERC721.sol"; import {Context} from "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. _update(address(0), tokenId, _msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.20; import {ERC721} from "../ERC721.sol"; import {IERC721Enumerable} from "./IERC721Enumerable.sol"; import {IERC165} from "../../../utils/introspection/ERC165.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability * of all the token ids in the contract as well as all token ids owned by each account. * * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`, * interfere with enumerability and should not be used together with `ERC721Enumerable`. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens; mapping(uint256 tokenId => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 tokenId => uint256) private _allTokensIndex; /** * @dev An `owner`'s token query was out of bounds for `index`. * * NOTE: The owner being `address(0)` indicates a global out of bounds index. */ error ERC721OutOfBoundsIndex(address owner, uint256 index); /** * @dev Batch mint is not allowed. */ error ERC721EnumerableForbiddenBatchMint(); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) { if (index >= balanceOf(owner)) { revert ERC721OutOfBoundsIndex(owner, index); } return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual returns (uint256) { if (index >= totalSupply()) { revert ERC721OutOfBoundsIndex(address(0), index); } return _allTokens[index]; } /** * @dev See {ERC721-_update}. */ function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) { address previousOwner = super._update(to, tokenId, auth); if (previousOwner == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _removeTokenFromOwnerEnumeration(previousOwner, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _addTokenToOwnerEnumeration(to, tokenId); } return previousOwner; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = balanceOf(to) - 1; _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = balanceOf(from); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } /** * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch */ function _increaseBalance(address account, uint128 amount) internal virtual override { if (amount > 0) { revert ERC721EnumerableForbiddenBatchMint(); } super._increaseBalance(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.20; import {IERC721} from "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; import {IERC721} from "../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 (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"initialOwner_","type":"address"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"address","name":"projectWallet_","type":"address"},{"internalType":"address","name":"royaltiesWallet_","type":"address"},{"internalType":"address","name":"dooWallet_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CannotMintZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[],"name":"FreeMintLimit","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidMint","type":"error"},{"inputs":[],"name":"MintLimit","type":"error"},{"inputs":[],"name":"MintNotOpen","type":"error"},{"inputs":[],"name":"OverMint","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"PausedMint","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"paused","type":"bool"}],"name":"MintStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"currentSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","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":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"WhitelistUpdated","type":"event"},{"inputs":[],"name":"LAUNCHPAD_ROYALTIES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses_","type":"address[]"},{"internalType":"uint256[]","name":"amount_","type":"uint256[]"}],"name":"addFreelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addRoyalties","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses_","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAllRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokensToClaim","type":"uint256[]"}],"name":"claimRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"currencies","outputs":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"contract ERC20","name":"addy","type":"address"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dooWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"enableCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"freeMintCount","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":"getMintInfo","outputs":[{"components":[{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"wlPrice","type":"uint256"},{"internalType":"uint256","name":"wltimestamp","type":"uint256"},{"internalType":"uint256","name":"publictimestamp","type":"uint256"},{"components":[{"internalType":"bool","name":"enabled","type":"bool"},{"internalType":"contract ERC20","name":"addy","type":"address"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"internalType":"struct ReapersSquad.Currency[]","name":"currencies","type":"tuple[]"}],"internalType":"struct ReapersSquad.MintInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRewardsToken","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"getRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"getRoyaltiesDetails","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"royalties","type":"uint256"}],"internalType":"struct ReapersSquad.TokenInfo[]","name":"","type":"tuple[]"}],"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":"address","name":"_address","type":"address"}],"name":"isPartnered","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"erc20","type":"address"}],"name":"mintERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintErc20Price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"partners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses_","type":"address[]"}],"name":"removeFreelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses_","type":"address[]"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"p","type":"uint256"},{"internalType":"uint256","name":"wp","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMint_","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxWL_","type":"uint256"}],"name":"setMaxWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"partners_","type":"address[]"}],"name":"setPartners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused_","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice_","type":"uint256"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"projectWallet_","type":"address"}],"name":"setProjectWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wl","type":"uint256"},{"internalType":"uint256","name":"_public","type":"uint256"}],"name":"setTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"teamMintSpecific","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"tokensOfWallet","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRoyalties","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"whitelistedLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a0604052600a6010556107d06011556367122a9860125563671238a8601355680b547528aba8a40000601455680d7f91b4bdd04400006015556000601d556000601e553480156200005057600080fd5b5060405162004e4838038062004e488339810160408190526200007391620002d9565b604080518082018252600c81526b1499585c195c9cd4dc5d585960a21b60208083019190915282518084019093526007835266149cd4d455505160ca1b9083015290866001600160a01b038116620000e657604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000f18162000164565b50600162000100838262000489565b5060026200010f828262000489565b50506001600b5550600e62000125858262000489565b50602280546001600160a01b0319166001600160a01b0385811691909117909155811660805262000159826103e8620001b4565b505050505062000555565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001be620001ce565b620001ca8282620001ff565b5050565b6000546001600160a01b03163314620001fd5760405163118cdaa760e01b8152336004820152602401620000dd565b565b6127106001600160601b0382168110156200024057604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401620000dd565b6001600160a01b0383166200026c57604051635b6cc80560e11b815260006004820152602401620000dd565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600c55565b80516001600160a01b0381168114620002be57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080600060a08688031215620002f257600080fd5b620002fd86620002a6565b602087810151919650906001600160401b03808211156200031d57600080fd5b818901915089601f8301126200033257600080fd5b815181811115620003475762000347620002c3565b604051601f8201601f19908116603f01168101908382118183101715620003725762000372620002c3565b816040528281528c868487010111156200038b57600080fd5b600093505b82841015620003af578484018601518185018701529285019262000390565b6000868483010152809950505050505050620003ce60408701620002a6565b9250620003de60608701620002a6565b9150620003ee60808701620002a6565b90509295509295909350565b600181811c908216806200040f57607f821691505b6020821081036200043057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200048457600081815260208120601f850160051c810160208610156200045f5750805b601f850160051c820191505b8181101562000480578281556001016200046b565b5050505b505050565b81516001600160401b03811115620004a557620004a5620002c3565b620004bd81620004b68454620003fa565b8462000436565b602080601f831160018114620004f55760008415620004dc5750858301515b600019600386901b1c1916600185901b17855562000480565b600085815260208120601f198616915b82811015620005265788860151825594840194600190910190840162000505565b5085821015620005455787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516148c96200057f60003960008181610882015281816130ee015261321801526148c96000f3fe6080604052600436106104315760003560e01c806375935d1111610229578063bc734f0f1161012e578063d179ef31116100b6578063ef5d9ae81161007a578063ef5d9ae814610cc6578063f2fde38b14610cf3578063f6d1c27114610d13578063fc1a1c3614610d45578063fe5a344814610d5b57600080fd5b8063d179ef3114610c28578063db4f6d3114610c48578063e96b305514610c50578063e985e9c514610c86578063edac985b14610ca657600080fd5b8063c3b49d04116100fd578063c3b49d0414610b90578063c87b56dd14610bb0578063cc2f10d414610bd0578063d0520c2314610be6578063d160c7a914610c0857600080fd5b8063bc734f0f14610b1b578063beb08ab914610b30578063becf3ce314610b50578063bfa457bc14610b7057600080fd5b80638da5cb5b116101b1578063a035b1fe11610180578063a035b1fe14610a9d578063a0712d6814610ab3578063a22cb46514610ac6578063abe81f2714610ae6578063b88d4fde14610afb57600080fd5b80638da5cb5b14610a2a57806395d89b4114610a4857806395e8eff214610a5d5780639858b65714610a7d57600080fd5b8063853828b6116101f8578063853828b61461099c57806386d02608146109b157806386fd9694146109c75780638a19c8bc146109f45780638a78044714610a0a57600080fd5b806375935d111461090f5780637664ce1c1461093c5780637c928fe91461095c578063830639ac1461097c57600080fd5b80633cd972ac1161033a5780635841a030116102c25780636a86255c116102865780636a86255c146108705780636e61ab1a146108a457806370a08231146108c4578063715018a6146108e45780637501f741146108f957600080fd5b80635841a030146107ca5780635c975abb146107ea5780635e5865af146108045780635ecf8a801461081a5780636352211e1461085057600080fd5b806346b370941161030957806346b37094146107355780634f6ccce71461075557806350b1b34a14610775578063547520fe14610795578063547eafd0146107b557600080fd5b80633cd972ac146106bf5780633e65408a146106df57806342842e0e146106f557806342966c681461071557600080fd5b806316c38b3c116103bd57806326f269dc1161038c57806326f269dc1461060a5780632a55205a1461062a5780632f745c591461066957806330176e131461068957806332cb6b0c146106a957600080fd5b806316c38b3c1461059557806318160ddd146105b557806323245216146105ca57806323b872dd146105ea57600080fd5b80630714968f116104045780630714968f146104cf578063081812fc146104ef578063095ea7b31461052757806313ece8161461054757806314556a561461056757600080fd5b806301ffc9a71461043657806304634d8d1461046b57806305fefda71461048d57806306fdde03146104ad575b600080fd5b34801561044257600080fd5b50610456610451366004613cee565b610d7b565b60405190151581526020015b60405180910390f35b34801561047757600080fd5b5061048b610486366004613d27565b610d8c565b005b34801561049957600080fd5b5061048b6104a8366004613d6a565b610da2565b3480156104b957600080fd5b506104c2610db5565b6040516104629190613ddc565b3480156104db57600080fd5b5061048b6104ea366004613e33565b610e47565b3480156104fb57600080fd5b5061050f61050a366004613e74565b610ed7565b6040516001600160a01b039091168152602001610462565b34801561053357600080fd5b5061048b610542366004613e8d565b610f00565b34801561055357600080fd5b5061048b610562366004613f7c565b610f0b565b34801561057357600080fd5b50610587610582366004613fb0565b610ff0565b604051908152602001610462565b3480156105a157600080fd5b5061048b6105b0366004613fd9565b61104a565b3480156105c157600080fd5b50600954610587565b3480156105d657600080fd5b5061048b6105e5366004613e33565b611065565b3480156105f657600080fd5b5061048b610605366004613ff6565b6110d5565b34801561061657600080fd5b5061048b610625366004613e33565b611165565b34801561063657600080fd5b5061064a610645366004613d6a565b611179565b604080516001600160a01b039093168352602083019190915201610462565b34801561067557600080fd5b50610587610684366004613e8d565b611227565b34801561069557600080fd5b5061048b6106a4366004614097565b61128c565b3480156106b557600080fd5b506105876107d081565b3480156106cb57600080fd5b506105876106da366004613e74565b6112a0565b3480156106eb57600080fd5b5061058760135481565b34801561070157600080fd5b5061048b610710366004613ff6565b6112db565b34801561072157600080fd5b5061048b610730366004613e74565b6112f6565b34801561074157600080fd5b5061048b6107503660046140df565b611302565b34801561076157600080fd5b50610587610770366004613e74565b6113f7565b34801561078157600080fd5b5061048b61079036600461412c565b611450565b3480156107a157600080fd5b5061048b6107b0366004613e74565b61196b565b3480156107c157600080fd5b5061048b611978565b3480156107d657600080fd5b5061048b6107e5366004613e74565b611a2e565b3480156107f657600080fd5b50600f546104569060ff1681565b34801561081057600080fd5b5061058760125481565b34801561082657600080fd5b50610587610835366004613fb0565b6001600160a01b031660009081526016602052604090205490565b34801561085c57600080fd5b5061050f61086b366004613e74565b611a3b565b34801561087c57600080fd5b5061050f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156108b057600080fd5b5061048b6108bf36600461414f565b611a46565b3480156108d057600080fd5b506105876108df366004613fb0565b611aca565b3480156108f057600080fd5b5061048b611b12565b34801561090557600080fd5b5061058760105481565b34801561091b57600080fd5b5061092f61092a366004613fb0565b611b26565b604051610462919061417b565b34801561094857600080fd5b50610587610957366004613fb0565b611bc7565b34801561096857600080fd5b5061048b610977366004613e74565b611bed565b34801561098857600080fd5b50610456610997366004613e8d565b611d6e565b3480156109a857600080fd5b5061048b611dd3565b3480156109bd57600080fd5b50610587601d5481565b3480156109d357600080fd5b506109e76109e2366004613fb0565b611e71565b60405161046291906141bf565b348015610a0057600080fd5b50610587601e5481565b348015610a1657600080fd5b5061048b610a25366004613fb0565b611f63565b348015610a3657600080fd5b506000546001600160a01b031661050f565b348015610a5457600080fd5b506104c2611f8d565b348015610a6957600080fd5b50610587610a78366004613e8d565b611f9c565b348015610a8957600080fd5b50610587610a98366004613ff6565b611fbe565b348015610aa957600080fd5b5061058760155481565b61048b610ac1366004613e74565b612041565b348015610ad257600080fd5b5061048b610ae136600461414f565b612265565b348015610af257600080fd5b50610587600a81565b348015610b0757600080fd5b5061048b610b1636600461420e565b612270565b348015610b2757600080fd5b5061048b612287565b348015610b3c57600080fd5b5060225461050f906001600160a01b031681565b348015610b5c57600080fd5b5061048b610b6b366004614289565b6122eb565b348015610b7c57600080fd5b5061048b610b8b36600461412c565b612525565b348015610b9c57600080fd5b5061050f610bab366004613e74565b6125e9565b348015610bbc57600080fd5b506104c2610bcb366004613e74565b612613565b348015610bdc57600080fd5b5061058760115481565b348015610bf257600080fd5b50610bfb612651565b6040516104629190614367565b348015610c1457600080fd5b5061048b610c23366004613d6a565b61282f565b348015610c3457600080fd5b50610456610c43366004613fb0565b612842565b61048b612906565b348015610c5c57600080fd5b50610587610c6b366004613d6a565b60208080526000928352604080842090915290825290205481565b348015610c9257600080fd5b50610456610ca13660046143e3565b61290f565b348015610cb257600080fd5b5061048b610cc1366004613e33565b61293d565b348015610cd257600080fd5b50610587610ce1366004613fb0565b601f6020526000908152604090205481565b348015610cff57600080fd5b5061048b610d0e366004613fb0565b6129ad565b348015610d1f57600080fd5b50610d33610d2e366004613e74565b6129e8565b6040516104629695949392919061440d565b348015610d5157600080fd5b5061058760145481565b348015610d6757600080fd5b5061048b610d76366004614457565b612ac5565b6000610d8682612b94565b92915050565b610d94612bb9565b610d9e8282612be6565b5050565b610daa612bb9565b601591909155601455565b606060018054610dc4906144c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610df0906144c2565b8015610e3d5780601f10610e1257610100808354040283529160200191610e3d565b820191906000526020600020905b815481529060010190602001808311610e2057829003601f168201915b5050505050905090565b610e4f612bb9565b60005b81811015610ea957600060166000858585818110610e7257610e726144fc565b9050602002016020810190610e879190613fb0565b6001600160a01b03168152602081019190915260400160002055600101610e52565b506040517f22f196d9cf5ab2abfb5e4f2e291a2452f5c28d88e99b62b74b9c6e62ab231a4490600090a15050565b6000610ee282612c89565b506000828152600560205260409020546001600160a01b0316610d86565b610d9e828233612cc2565b6000805b8251811015610f99576000838281518110610f2c57610f2c6144fc565b60200260200101519050610f3d3390565b6001600160a01b0316610f4f82611a3b565b6001600160a01b031603610f9057610f66816112a0565b601e5460009081526021602090815260408083205482805281842086855290925290912055909201915b50600101610f0f565b50336000908152601f602052604081208054839290610fb9908490614528565b9091555050604051339082156108fc029083906000818181858888f19350505050158015610feb573d6000803e3d6000fd5b505050565b60008080610ffd84611aca565b905060005b818110156110415760006110168683611227565b9050611021816112a0565b61102b9085614528565b93505080806110399061453b565b915050611002565b50909392505050565b611052612bb9565b600f805460ff1916911515919091179055565b61106d612bb9565b60005b81811015610ea957600060176000858585818110611090576110906144fc565b90506020020160208101906110a59190613fb0565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101611070565b6001600160a01b03821661110457604051633250574960e11b8152600060048201526024015b60405180910390fd5b6000611111838333612ccf565b9050836001600160a01b0316816001600160a01b03161461115f576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016110fb565b50505050565b61116d612bb9565b610feb60188383613c60565b6000828152600d602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111ee575060408051808201909152600c546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061120d906001600160601b031687614554565b6112179190614581565b91519350909150505b9250929050565b600061123283611aca565b82106112635760405163295f44f760e21b81526001600160a01b0384166004820152602481018390526044016110fb565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b611294612bb9565b600e610d9e82826145e3565b601e54600081815260208080526040808320858452825280832054938352602190915281205490916112d1916146a2565b610d869082614528565b610feb83838360405180602001604052806000815250612270565b610d9e60008233612ccf565b61130a612bb9565b611312612ce4565b600061131d60095490565b90506107d083518261132f9190614528565b111561134e57604051633bd7ad7760e21b815260040160405180910390fd5b60005b83518110156113b857600084828151811061136e5761136e6144fc565b6020026020010151905061138181612d0e565b61138b8482612dae565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101611351565b508251604080518381526020810192909252429082015233906000805160206148748339815191529060600160405180910390a250610d9e6001600b55565b600061140260095490565b821061142b5760405163295f44f760e21b815260006004820152602481018390526044016110fb565b6009828154811061143e5761143e6144fc565b90600052602060002001549050919050565b611458612ce4565b600f5460ff161561147c57604051634c97d28b60e01b815260040160405180910390fd5b60105482111561149f5760405163ec8e6a6360e01b815260040160405180910390fd5b816000036114c057604051632a6ce29960e11b815260040160405180910390fd5b6001600160a01b0381166000908152601c602052604090205460ff1661151f5760405162461bcd60e51b815260206004820152601460248201527310dd5c9c995b98de481b9bdd08185b1b1bddd95960621b60448201526064016110fb565b6001600160a01b0381166000908152601c6020526040812060010154601b805491929183908110611552576115526144fc565b60009182526020918290206040805160c0810182526005909302909101805460ff8116151584526001600160a01b036101009091041693830193909352600183018054929392918401916115a5906144c2565b80601f01602080910402602001604051908101604052809291908181526020018280546115d1906144c2565b801561161e5780601f106115f35761010080835404028352916020019161161e565b820191906000526020600020905b81548152906001019060200180831161160157829003601f168201915b505050505081526020016002820154815260200160038201548152602001600482015481525050905060006116533386611d6e565b9050600060135442101580611672575081801561167257506012544210155b9050806116925760405163951b974f60e01b815260040160405180910390fd5b82516116d75760405162461bcd60e51b815260206004820152601460248201527310dd5c9c995b98de481b9bdd08185b1b1bddd95960621b60448201526064016110fb565b600086601b86815481106116ed576116ed6144fc565b90600052602060002090600502016004015461170991906146a2565b10156117505760405162461bcd60e51b815260206004820152601660248201527510dd5c9c995b98de48131a5b5a5d081c995858da195960521b60448201526064016110fb565b85601b8581548110611764576117646144fc565b9060005260206000209060050201600401600082825461178491906146a2565b9091555060009050611797863389611fbe565b905060006117a58883614554565b905060006117b260095490565b90506107d06117c18a83614528565b11156117e057604051633bd7ad7760e21b815260040160405180910390fd5b6040516370a0823160e01b815233600482015282906001600160a01b038a16906370a0823190602401602060405180830381865afa158015611826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184a91906146b5565b10156118695760405163cd1c886760e01b815260040160405180910390fd5b60015b8981116118b757600061187d612dc8565b905061188a335b82612dae565b601e546000908152602160209081526040808320548280528184209484529390915290205560010161186c565b5084156118e35733600090815260196020526040812080548b92906118dd908490614528565b90915550505b600060646118f2600a85614554565b6118fc9190614581565b9050600061190a82856146a2565b905061191a818960200151612ef9565b611928828960200151613024565b60408051848152602081018d9052428183015290513391600080516020614874833981519152919081900360600190a2505050505050505050610d9e6001600b55565b611973612bb9565b601055565b60008061198433611aca565b905060005b818110156119dc57600061199d3383611227565b90506119a8816112a0565b601e546000908152602160209081526040808320548280528184209584529490915290209190915590920191600101611989565b50336000908152601f6020526040812080548492906119fc908490614528565b9091555050604051339083156108fc029084906000818181858888f19350505050158015610feb573d6000803e3d6000fd5b611a36612bb9565b601155565b6000610d8682612c89565b611a4e612bb9565b6001600160a01b0382166000908152601c602052604090205460ff16611a7357600080fd5b6001600160a01b0382166000908152601c6020526040902060010154601b805483919083908110611aa657611aa66144fc565b60009182526020909120600590910201805460ff1916911515919091179055505050565b60006001600160a01b038216611af6576040516322718ad960e21b8152600060048201526024016110fb565b506001600160a01b031660009081526004602052604090205490565b611b1a612bb9565b611b24600061312c565b565b60606000611b3383611aca565b90506000816001600160401b03811115611b4f57611b4f613eb7565b604051908082528060200260200182016040528015611b78578160200160208202803683370190505b50905060005b82811015611bbf57611b908582611227565b828281518110611ba257611ba26144fc565b602090810291909101015280611bb78161453b565b915050611b7e565b509392505050565b6001600160a01b038116600090815260196020526040812054601154610d8691906146a2565b611bf5612ce4565b600f5460ff1615611c1957604051634c97d28b60e01b815260040160405180910390fd5b601254421015611c3c5760405163951b974f60e01b815260040160405180910390fd5b611c4533610835565b811115611c655760405163b9c43c9160e01b815260040160405180910390fd5b80600003611c8657604051632a6ce29960e11b815260040160405180910390fd5b6000611c9160095490565b90506107d0611ca08383614528565b1115611cbf57604051633bd7ad7760e21b815260040160405180910390fd5b60015b828111611d0b576000611cd3612dc8565b9050611cde33611884565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101611cc2565b503360009081526016602052604081208054849290611d2b9084906146a2565b90915550506040805182815260208101849052428183015290513391600080516020614874833981519152919081900360600190a250611d6b6001600b55565b50565b6011546001600160a01b038316600090815260196020526040812054909190611d98908490614528565b11158015611dcc57506001600160a01b03831660009081526017602052604090205460ff1680611dcc5750611dcc83612842565b9392505050565b611ddb612bb9565b600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114611e28576040519150601f19603f3d011682016040523d82523d6000602084013e611e2d565b606091505b5050905080611d6b5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016110fb565b60606000611e7e83611aca565b90506000816001600160401b03811115611e9a57611e9a613eb7565b604051908082528060200260200182016040528015611edf57816020015b6040805180820190915260008082526020820152815260200190600190039081611eb85790505b50905060005b82811015611bbf576000611ef98683611227565b90506000611f06826112a0565b905081848481518110611f1b57611f1b6144fc565b6020026020010151600001818152505080848481518110611f3e57611f3e6144fc565b6020026020010151602001818152505050508080611f5b9061453b565b915050611ee5565b611f6b612bb9565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b606060028054610dc4906144c2565b6000611fa88383611d6e565b611fb457601554611dcc565b5050601454919050565b6001600160a01b0383166000908152601c6020526040812060010154611fe48484611d6e565b61201257601b8181548110611ffb57611ffb6144fc565b906000526020600020906005020160020154612038565b601b8181548110612025576120256144fc565b9060005260206000209060050201600301545b95945050505050565b612049612ce4565b600f5460ff161561206d57604051634c97d28b60e01b815260040160405180910390fd5b60006120793383611d6e565b9050600060135442101580612098575081801561209857506012544210155b9050806120b85760405163951b974f60e01b815260040160405180910390fd5b6010548311156120db5760405163ec8e6a6360e01b815260040160405180910390fd5b826000036120fc57604051632a6ce29960e11b815260040160405180910390fd5b60006121083385611f9c565b905060006121168583614554565b9050600061212360095490565b90506107d06121328783614528565b111561215157604051633bd7ad7760e21b815260040160405180910390fd5b8134146121715760405163cd1c886760e01b815260040160405180910390fd5b60015b8681116121bd576000612185612dc8565b905061219033611884565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101612174565b5084156121e95733600090815260196020526040812080548892906121e3908490614528565b90915550505b600060646121f8600a85614554565b6122029190614581565b9050600061221082856146a2565b905061221b8161317c565b61222482613214565b60408051848152602081018a9052428183015290513391600080516020614874833981519152919081900360600190a250505050505050611d6b6001600b55565b610d9e3383836132d3565b61227b8484846110d5565b61115f84848484613372565b61228f612bb9565b601e80546000908152602160205260408120819055815491906122b18361453b565b90915550506009546122c39047614581565b601e54600090815260216020526040812080549091906122e4908490614528565b9091555050565b6122f3612bb9565b6001600160a01b0384166000908152601c602052604090205460ff161561238b576001600160a01b0384166000908152601c6020526040902060010154601b805485919083908110612347576123476144fc565b90600052602060002090600502016002018190555082601b8281548110612370576123706144fc565b9060005260206000209060050201600301819055505061115f565b6001600160a01b0384166000818152601c60209081526040808320805460ff191660019081178255601b5491810191909155815160c08101835290815291820184905280516395d89b4160e01b815281519394929391840192916395d89b419160048082019288929091908290030181865afa15801561240f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261243791908101906146ce565b8152602080820187905260408083018790526060909201859052601b8054600181018255600091909152835160059091027f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc181018054938601516001600160a01b031661010002610100600160a81b0319931515939093166001600160a81b03199094169390931791909117825591830151929350839290917f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc201906124fd90826145e3565b50606082015181600201556080820151816003015560a0820151816004015550505050505050565b61252d612bb9565b600061253860095490565b90506107d06125478483614528565b111561256657604051633bd7ad7760e21b815260040160405180910390fd5b60015b8381116125b357600061257a612dc8565b90506125868482612dae565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101612569565b506040805182815260208101859052428183015290513391600080516020614874833981519152919081900360600190a2505050565b601881815481106125f957600080fd5b6000918252602090912001546001600160a01b0316905081565b606061261e82612c89565b50600e61262a8361349b565b60405160200161263b92919061473b565b6040516020818303038152906040529050919050565b6126a260405180610120016040528060001515815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081525090565b604080516101208101909152600f5460ff1615158152602081016126c560095490565b81526020016107d0815260200160105481526020016015548152602001601454815260200160125481526020016013548152602001601b805480602002602001604051908101604052809291908181526020016000905b828210156128245760008481526020908190206040805160c08101825260058602909201805460ff81161515845261010090046001600160a01b03169383019390935260018301805492939291840191612775906144c2565b80601f01602080910402602001604051908101604052809291908181526020018280546127a1906144c2565b80156127ee5780601f106127c3576101008083540402835291602001916127ee565b820191906000526020600020905b8154815290600101906020018083116127d157829003601f168201915b5050505050815260200160028201548152602001600382015481526020016004820154815250508152602001906001019061271c565b505050915250919050565b612837612bb9565b601291909155601355565b6000805b6018548110156128fd57600060188281548110612865576128656144fc565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a0823190602401602060405180830381865afa1580156128b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dc91906146b5565b11156128eb5750600192915050565b806128f58161453b565b915050612846565b50600092915050565b611b243461352d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b612945612bb9565b60005b81811015610ea957600160176000858585818110612968576129686144fc565b905060200201602081019061297d9190613fb0565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101612948565b6129b5612bb9565b6001600160a01b0381166129df57604051631e4fbdf760e01b8152600060048201526024016110fb565b611d6b8161312c565b601b81815481106129f857600080fd5b60009182526020909120600590910201805460018201805460ff831694506101009092046001600160a01b03169291612a30906144c2565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5c906144c2565b8015612aa95780601f10612a7e57610100808354040283529160200191612aa9565b820191906000526020600020905b815481529060010190602001808311612a8c57829003601f168201915b5050505050908060020154908060030154908060040154905086565b612acd612bb9565b828114612ad957600080fd5b60005b83811015612b6457828282818110612af657612af66144fc565b9050602002013560166000878785818110612b1357612b136144fc565b9050602002016020810190612b289190613fb0565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254612b579190614528565b9091555050600101612adc565b506040517f22f196d9cf5ab2abfb5e4f2e291a2452f5c28d88e99b62b74b9c6e62ab231a4490600090a150505050565b60006001600160e01b0319821663152a902d60e11b1480610d865750610d8682613574565b6000546001600160a01b03163314611b245760405163118cdaa760e01b81523360048201526024016110fb565b6127106001600160601b038216811015612c2557604051636f483d0960e01b81526001600160601b0383166004820152602481018290526044016110fb565b6001600160a01b038316612c4f57604051635b6cc80560e11b8152600060048201526024016110fb565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600c55565b6000818152600360205260408120546001600160a01b031680610d8657604051637e27328960e01b8152600481018490526024016110fb565b610feb8383836001613599565b6000612cdc84848461369f565b949350505050565b6002600b5403612d0757604051633ee5aeb560e01b815260040160405180910390fd5b6002600b55565b6000612d1b6001836146a2565b90506000612d2860095490565b612d34906107d06146a2565b9050601a6000612d456001846146a2565b815260200190815260200160002054600003612d7a57612d666001826146a2565b6000838152601a6020526040902055505050565b601a6000612d896001846146a2565b81526020808201929092526040908101600090812054858252601a9093522055505050565b610d9e82826040518060200160405280600081525061376c565b600080612dd460095490565b612de0906107d06146a2565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b16603482015245604882015242606882015290915060009082906088016040516020818303038152906040528051906020012060001c612e4191906147d2565b6000818152601a6020526040812054919250908103612e61575080612e72565b506000818152601a60205260409020545b601a6000612e816001866146a2565b815260200190815260200160002054600003612eb657612ea26001846146a2565b6000838152601a6020526040902055612ee6565b601a6000612ec56001866146a2565b81526020808201929092526040908101600090812054858252601a90935220555b612ef1816001614528565b935050505090565b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa158015612f3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f6391906146b5565b1015612fa65760405162461bcd60e51b815260206004820152601260248201527142616c616e636520697320746f6f206c6f7760701b60448201526064016110fb565b6022546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101849052908216906323b872dd906064015b6020604051808303816000875af1158015613000573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb91906147e6565b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa15801561306a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308e91906146b5565b10156130d15760405162461bcd60e51b815260206004820152601260248201527142616c616e636520697320746f6f206c6f7760701b60448201526064016110fb565b6040516323b872dd60e01b81523360048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018490528216906323b872dd90606401612fe1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6022546040516000916001600160a01b03169061c35090849084818181858888f193505050503d80600081146131ce576040519150601f19603f3d011682016040523d82523d6000602084013e6131d3565b606091505b5050905080610d9e5760405162461bcd60e51b815260206004820152600d60248201526c10d85b9b9bdd081c185e5bdd5d609a1b60448201526064016110fb565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168261c35090604051600060405180830381858888f193505050503d8060008114613286576040519150601f19603f3d011682016040523d82523d6000602084013e61328b565b606091505b5050905080610d9e5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74207061796f75742043726f446f6f60601b60448201526064016110fb565b6001600160a01b03821661330557604051630b61174360e31b81526001600160a01b03831660048201526024016110fb565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561115f57604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906133b4903390889087908790600401614803565b6020604051808303816000875af19250505080156133ef575060408051601f3d908101601f191682019092526133ec91810190614840565b60015b613458573d80801561341d576040519150601f19603f3d011682016040523d82523d6000602084013e613422565b606091505b50805160000361345057604051633250574960e11b81526001600160a01b03851660048201526024016110fb565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b1461349457604051633250574960e11b81526001600160a01b03851660048201526024016110fb565b5050505050565b606060006134a883613783565b60010190506000816001600160401b038111156134c7576134c7613eb7565b6040519080825280601f01601f1916602001820160405280156134f1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846134fb57509392505050565b80601d5461353b9190614528565b601d5560095461354b9082614581565b601e546000908152602160205260408120805490919061356c908490614528565b909155505050565b60006001600160e01b0319821663780e9d6360e01b1480610d865750610d868261385b565b80806135ad57506001600160a01b03821615155b1561366f5760006135bd84612c89565b90506001600160a01b038316158015906135e95750826001600160a01b0316816001600160a01b031614155b80156135fc57506135fa818461290f565b155b156136255760405163a9fbf51f60e01b81526001600160a01b03841660048201526024016110fb565b811561366d5783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260056020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806136ad8585856138ab565b90506001600160a01b03811661370a5761370584600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61372d565b846001600160a01b0316816001600160a01b03161461372d5761372d81856139a4565b6001600160a01b0385166137495761374484613a35565b612cdc565b846001600160a01b0316816001600160a01b031614612cdc57612cdc8585613ae4565b6137768383613b34565b610feb6000848484613372565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106137c25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106137ee576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061380c57662386f26fc10000830492506010015b6305f5e1008310613824576305f5e100830492506008015b612710831061383857612710830492506004015b6064831061384a576064830492506002015b600a8310610d865760010192915050565b60006001600160e01b031982166380ac58cd60e01b148061388c57506001600160e01b03198216635b5e139f60e01b145b80610d8657506301ffc9a760e01b6001600160e01b0319831614610d86565b6000828152600360205260408120546001600160a01b03908116908316156138d8576138d8818486613b99565b6001600160a01b03811615613916576138f5600085600080613599565b6001600160a01b038116600090815260046020526040902080546000190190555b6001600160a01b03851615613945576001600160a01b0385166000908152600460205260409020805460010190555b60008481526003602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b60006139af83611aca565b600083815260086020526040902054909150808214613a02576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613a47906001906146a2565b6000838152600a602052604081205460098054939450909284908110613a6f57613a6f6144fc565b906000526020600020015490508060098381548110613a9057613a906144fc565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613ac857613ac861485d565b6001900381819060005260206000200160009055905550505050565b60006001613af184611aca565b613afb91906146a2565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216613b5e57604051633250574960e11b8152600060048201526024016110fb565b6000613b6c83836000612ccf565b90506001600160a01b03811615610feb576040516339e3563760e11b8152600060048201526024016110fb565b613ba4838383613bfd565b610feb576001600160a01b038316613bd257604051637e27328960e01b8152600481018290526024016110fb565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016110fb565b60006001600160a01b03831615801590612cdc5750826001600160a01b0316846001600160a01b03161480613c375750613c37848461290f565b80612cdc5750506000908152600560205260409020546001600160a01b03908116911614919050565b828054828255906000526020600020908101928215613cb3579160200282015b82811115613cb35781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190613c80565b50613cbf929150613cc3565b5090565b5b80821115613cbf5760008155600101613cc4565b6001600160e01b031981168114611d6b57600080fd5b600060208284031215613d0057600080fd5b8135611dcc81613cd8565b80356001600160a01b0381168114613d2257600080fd5b919050565b60008060408385031215613d3a57600080fd5b613d4383613d0b565b915060208301356001600160601b0381168114613d5f57600080fd5b809150509250929050565b60008060408385031215613d7d57600080fd5b50508035926020909101359150565b60005b83811015613da7578181015183820152602001613d8f565b50506000910152565b60008151808452613dc8816020860160208601613d8c565b601f01601f19169290920160200192915050565b602081526000611dcc6020830184613db0565b60008083601f840112613e0157600080fd5b5081356001600160401b03811115613e1857600080fd5b6020830191508360208260051b850101111561122057600080fd5b60008060208385031215613e4657600080fd5b82356001600160401b03811115613e5c57600080fd5b613e6885828601613def565b90969095509350505050565b600060208284031215613e8657600080fd5b5035919050565b60008060408385031215613ea057600080fd5b613ea983613d0b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613ef557613ef5613eb7565b604052919050565b600082601f830112613f0e57600080fd5b813560206001600160401b03821115613f2957613f29613eb7565b8160051b613f38828201613ecd565b9283528481018201928281019087851115613f5257600080fd5b83870192505b84831015613f7157823582529183019190830190613f58565b979650505050505050565b600060208284031215613f8e57600080fd5b81356001600160401b03811115613fa457600080fd5b612cdc84828501613efd565b600060208284031215613fc257600080fd5b611dcc82613d0b565b8015158114611d6b57600080fd5b600060208284031215613feb57600080fd5b8135611dcc81613fcb565b60008060006060848603121561400b57600080fd5b61401484613d0b565b925061402260208501613d0b565b9150604084013590509250925092565b60006001600160401b0382111561404b5761404b613eb7565b50601f01601f191660200190565b600061406c61406784614032565b613ecd565b905082815283838301111561408057600080fd5b828260208301376000602084830101529392505050565b6000602082840312156140a957600080fd5b81356001600160401b038111156140bf57600080fd5b8201601f810184136140d057600080fd5b612cdc84823560208401614059565b600080604083850312156140f257600080fd5b82356001600160401b0381111561410857600080fd5b61411485828601613efd565b92505061412360208401613d0b565b90509250929050565b6000806040838503121561413f57600080fd5b8235915061412360208401613d0b565b6000806040838503121561416257600080fd5b61416b83613d0b565b91506020830135613d5f81613fcb565b6020808252825182820181905260009190848201906040850190845b818110156141b357835183529284019291840191600101614197565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015614201578151805185528601518685015292840192908501906001016141dc565b5091979650505050505050565b6000806000806080858703121561422457600080fd5b61422d85613d0b565b935061423b60208601613d0b565b92506040850135915060608501356001600160401b0381111561425d57600080fd5b8501601f8101871361426e57600080fd5b61427d87823560208401614059565b91505092959194509250565b6000806000806080858703121561429f57600080fd5b6142a885613d0b565b966020860135965060408601359560600135945092505050565b600082825180855260208086019550808260051b84010181860160005b8481101561435a57858303601f190189528151805115158452848101516001600160a01b03168585015260408082015160c0828701819052919061432583880182613db0565b606085810151908901526080808601519089015260a094850151949097019390935250505097830197908301906001016142df565b5090979650505050505050565b6020815261437a60208201835115159052565b602082015160408201526040820151606082015260608201516080820152608082015160a082015260a082015160c082015260c082015160e0820152600060e0830151610100818185015280850151915050610120808185015250612cdc6101408401826142c2565b600080604083850312156143f657600080fd5b6143ff83613d0b565b915061412360208401613d0b565b86151581526001600160a01b038616602082015260c06040820181905260009061443990830187613db0565b606083019590955250608081019290925260a0909101529392505050565b6000806000806040858703121561446d57600080fd5b84356001600160401b038082111561448457600080fd5b61449088838901613def565b909650945060208701359150808211156144a957600080fd5b506144b687828801613def565b95989497509550505050565b600181811c908216806144d657607f821691505b6020821081036144f657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610d8657610d86614512565b60006001820161454d5761454d614512565b5060010190565b8082028115828204841417610d8657610d86614512565b634e487b7160e01b600052601260045260246000fd5b6000826145905761459061456b565b500490565b601f821115610feb57600081815260208120601f850160051c810160208610156145bc5750805b601f850160051c820191505b818110156145db578281556001016145c8565b505050505050565b81516001600160401b038111156145fc576145fc613eb7565b6146108161460a84546144c2565b84614595565b602080601f831160018114614645576000841561462d5750858301515b600019600386901b1c1916600185901b1785556145db565b600085815260208120601f198616915b8281101561467457888601518255948401946001909101908401614655565b50858210156146925787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b81810381811115610d8657610d86614512565b6000602082840312156146c757600080fd5b5051919050565b6000602082840312156146e057600080fd5b81516001600160401b038111156146f657600080fd5b8201601f8101841361470757600080fd5b805161471561406782614032565b81815285602083850101111561472a57600080fd5b612038826020830160208601613d8c565b6000808454614749816144c2565b600182811680156147615760018114614776576147a5565b60ff19841687528215158302870194506147a5565b8860005260208060002060005b8581101561479c5781548a820152908401908201614783565b50505082870194505b5050505083516147b9818360208801613d8c565b64173539b7b760d91b9101908152600501949350505050565b6000826147e1576147e161456b565b500690565b6000602082840312156147f857600080fd5b8151611dcc81613fcb565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061483690830184613db0565b9695505050505050565b60006020828403121561485257600080fd5b8151611dcc81613cd8565b634e487b7160e01b600052603160045260246000fdfe5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919a264697066735822122020b07676c0751b41f4e085d32cfac81df1f98966a9de8e58c02916d406b6420364736f6c6343000814003300000000000000000000000093eef15e5d6f1a0c238f93a274e1b9514f260c4c00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004376ae95d35b178004c1b2f124b90d59a44145fb0000000000000000000000004376ae95d35b178004c1b2f124b90d59a44145fb00000000000000000000000076d19e4f535af90ffeaf44531aed8936922473bb0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d556955356d63396253726d726371487461564e7041665432367a6a59786a69674574437473736a704442366a2f00000000000000000000
Deployed Bytecode
0x6080604052600436106104315760003560e01c806375935d1111610229578063bc734f0f1161012e578063d179ef31116100b6578063ef5d9ae81161007a578063ef5d9ae814610cc6578063f2fde38b14610cf3578063f6d1c27114610d13578063fc1a1c3614610d45578063fe5a344814610d5b57600080fd5b8063d179ef3114610c28578063db4f6d3114610c48578063e96b305514610c50578063e985e9c514610c86578063edac985b14610ca657600080fd5b8063c3b49d04116100fd578063c3b49d0414610b90578063c87b56dd14610bb0578063cc2f10d414610bd0578063d0520c2314610be6578063d160c7a914610c0857600080fd5b8063bc734f0f14610b1b578063beb08ab914610b30578063becf3ce314610b50578063bfa457bc14610b7057600080fd5b80638da5cb5b116101b1578063a035b1fe11610180578063a035b1fe14610a9d578063a0712d6814610ab3578063a22cb46514610ac6578063abe81f2714610ae6578063b88d4fde14610afb57600080fd5b80638da5cb5b14610a2a57806395d89b4114610a4857806395e8eff214610a5d5780639858b65714610a7d57600080fd5b8063853828b6116101f8578063853828b61461099c57806386d02608146109b157806386fd9694146109c75780638a19c8bc146109f45780638a78044714610a0a57600080fd5b806375935d111461090f5780637664ce1c1461093c5780637c928fe91461095c578063830639ac1461097c57600080fd5b80633cd972ac1161033a5780635841a030116102c25780636a86255c116102865780636a86255c146108705780636e61ab1a146108a457806370a08231146108c4578063715018a6146108e45780637501f741146108f957600080fd5b80635841a030146107ca5780635c975abb146107ea5780635e5865af146108045780635ecf8a801461081a5780636352211e1461085057600080fd5b806346b370941161030957806346b37094146107355780634f6ccce71461075557806350b1b34a14610775578063547520fe14610795578063547eafd0146107b557600080fd5b80633cd972ac146106bf5780633e65408a146106df57806342842e0e146106f557806342966c681461071557600080fd5b806316c38b3c116103bd57806326f269dc1161038c57806326f269dc1461060a5780632a55205a1461062a5780632f745c591461066957806330176e131461068957806332cb6b0c146106a957600080fd5b806316c38b3c1461059557806318160ddd146105b557806323245216146105ca57806323b872dd146105ea57600080fd5b80630714968f116104045780630714968f146104cf578063081812fc146104ef578063095ea7b31461052757806313ece8161461054757806314556a561461056757600080fd5b806301ffc9a71461043657806304634d8d1461046b57806305fefda71461048d57806306fdde03146104ad575b600080fd5b34801561044257600080fd5b50610456610451366004613cee565b610d7b565b60405190151581526020015b60405180910390f35b34801561047757600080fd5b5061048b610486366004613d27565b610d8c565b005b34801561049957600080fd5b5061048b6104a8366004613d6a565b610da2565b3480156104b957600080fd5b506104c2610db5565b6040516104629190613ddc565b3480156104db57600080fd5b5061048b6104ea366004613e33565b610e47565b3480156104fb57600080fd5b5061050f61050a366004613e74565b610ed7565b6040516001600160a01b039091168152602001610462565b34801561053357600080fd5b5061048b610542366004613e8d565b610f00565b34801561055357600080fd5b5061048b610562366004613f7c565b610f0b565b34801561057357600080fd5b50610587610582366004613fb0565b610ff0565b604051908152602001610462565b3480156105a157600080fd5b5061048b6105b0366004613fd9565b61104a565b3480156105c157600080fd5b50600954610587565b3480156105d657600080fd5b5061048b6105e5366004613e33565b611065565b3480156105f657600080fd5b5061048b610605366004613ff6565b6110d5565b34801561061657600080fd5b5061048b610625366004613e33565b611165565b34801561063657600080fd5b5061064a610645366004613d6a565b611179565b604080516001600160a01b039093168352602083019190915201610462565b34801561067557600080fd5b50610587610684366004613e8d565b611227565b34801561069557600080fd5b5061048b6106a4366004614097565b61128c565b3480156106b557600080fd5b506105876107d081565b3480156106cb57600080fd5b506105876106da366004613e74565b6112a0565b3480156106eb57600080fd5b5061058760135481565b34801561070157600080fd5b5061048b610710366004613ff6565b6112db565b34801561072157600080fd5b5061048b610730366004613e74565b6112f6565b34801561074157600080fd5b5061048b6107503660046140df565b611302565b34801561076157600080fd5b50610587610770366004613e74565b6113f7565b34801561078157600080fd5b5061048b61079036600461412c565b611450565b3480156107a157600080fd5b5061048b6107b0366004613e74565b61196b565b3480156107c157600080fd5b5061048b611978565b3480156107d657600080fd5b5061048b6107e5366004613e74565b611a2e565b3480156107f657600080fd5b50600f546104569060ff1681565b34801561081057600080fd5b5061058760125481565b34801561082657600080fd5b50610587610835366004613fb0565b6001600160a01b031660009081526016602052604090205490565b34801561085c57600080fd5b5061050f61086b366004613e74565b611a3b565b34801561087c57600080fd5b5061050f7f00000000000000000000000076d19e4f535af90ffeaf44531aed8936922473bb81565b3480156108b057600080fd5b5061048b6108bf36600461414f565b611a46565b3480156108d057600080fd5b506105876108df366004613fb0565b611aca565b3480156108f057600080fd5b5061048b611b12565b34801561090557600080fd5b5061058760105481565b34801561091b57600080fd5b5061092f61092a366004613fb0565b611b26565b604051610462919061417b565b34801561094857600080fd5b50610587610957366004613fb0565b611bc7565b34801561096857600080fd5b5061048b610977366004613e74565b611bed565b34801561098857600080fd5b50610456610997366004613e8d565b611d6e565b3480156109a857600080fd5b5061048b611dd3565b3480156109bd57600080fd5b50610587601d5481565b3480156109d357600080fd5b506109e76109e2366004613fb0565b611e71565b60405161046291906141bf565b348015610a0057600080fd5b50610587601e5481565b348015610a1657600080fd5b5061048b610a25366004613fb0565b611f63565b348015610a3657600080fd5b506000546001600160a01b031661050f565b348015610a5457600080fd5b506104c2611f8d565b348015610a6957600080fd5b50610587610a78366004613e8d565b611f9c565b348015610a8957600080fd5b50610587610a98366004613ff6565b611fbe565b348015610aa957600080fd5b5061058760155481565b61048b610ac1366004613e74565b612041565b348015610ad257600080fd5b5061048b610ae136600461414f565b612265565b348015610af257600080fd5b50610587600a81565b348015610b0757600080fd5b5061048b610b1636600461420e565b612270565b348015610b2757600080fd5b5061048b612287565b348015610b3c57600080fd5b5060225461050f906001600160a01b031681565b348015610b5c57600080fd5b5061048b610b6b366004614289565b6122eb565b348015610b7c57600080fd5b5061048b610b8b36600461412c565b612525565b348015610b9c57600080fd5b5061050f610bab366004613e74565b6125e9565b348015610bbc57600080fd5b506104c2610bcb366004613e74565b612613565b348015610bdc57600080fd5b5061058760115481565b348015610bf257600080fd5b50610bfb612651565b6040516104629190614367565b348015610c1457600080fd5b5061048b610c23366004613d6a565b61282f565b348015610c3457600080fd5b50610456610c43366004613fb0565b612842565b61048b612906565b348015610c5c57600080fd5b50610587610c6b366004613d6a565b60208080526000928352604080842090915290825290205481565b348015610c9257600080fd5b50610456610ca13660046143e3565b61290f565b348015610cb257600080fd5b5061048b610cc1366004613e33565b61293d565b348015610cd257600080fd5b50610587610ce1366004613fb0565b601f6020526000908152604090205481565b348015610cff57600080fd5b5061048b610d0e366004613fb0565b6129ad565b348015610d1f57600080fd5b50610d33610d2e366004613e74565b6129e8565b6040516104629695949392919061440d565b348015610d5157600080fd5b5061058760145481565b348015610d6757600080fd5b5061048b610d76366004614457565b612ac5565b6000610d8682612b94565b92915050565b610d94612bb9565b610d9e8282612be6565b5050565b610daa612bb9565b601591909155601455565b606060018054610dc4906144c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610df0906144c2565b8015610e3d5780601f10610e1257610100808354040283529160200191610e3d565b820191906000526020600020905b815481529060010190602001808311610e2057829003601f168201915b5050505050905090565b610e4f612bb9565b60005b81811015610ea957600060166000858585818110610e7257610e726144fc565b9050602002016020810190610e879190613fb0565b6001600160a01b03168152602081019190915260400160002055600101610e52565b506040517f22f196d9cf5ab2abfb5e4f2e291a2452f5c28d88e99b62b74b9c6e62ab231a4490600090a15050565b6000610ee282612c89565b506000828152600560205260409020546001600160a01b0316610d86565b610d9e828233612cc2565b6000805b8251811015610f99576000838281518110610f2c57610f2c6144fc565b60200260200101519050610f3d3390565b6001600160a01b0316610f4f82611a3b565b6001600160a01b031603610f9057610f66816112a0565b601e5460009081526021602090815260408083205482805281842086855290925290912055909201915b50600101610f0f565b50336000908152601f602052604081208054839290610fb9908490614528565b9091555050604051339082156108fc029083906000818181858888f19350505050158015610feb573d6000803e3d6000fd5b505050565b60008080610ffd84611aca565b905060005b818110156110415760006110168683611227565b9050611021816112a0565b61102b9085614528565b93505080806110399061453b565b915050611002565b50909392505050565b611052612bb9565b600f805460ff1916911515919091179055565b61106d612bb9565b60005b81811015610ea957600060176000858585818110611090576110906144fc565b90506020020160208101906110a59190613fb0565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101611070565b6001600160a01b03821661110457604051633250574960e11b8152600060048201526024015b60405180910390fd5b6000611111838333612ccf565b9050836001600160a01b0316816001600160a01b03161461115f576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016110fb565b50505050565b61116d612bb9565b610feb60188383613c60565b6000828152600d602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111ee575060408051808201909152600c546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061120d906001600160601b031687614554565b6112179190614581565b91519350909150505b9250929050565b600061123283611aca565b82106112635760405163295f44f760e21b81526001600160a01b0384166004820152602481018390526044016110fb565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b611294612bb9565b600e610d9e82826145e3565b601e54600081815260208080526040808320858452825280832054938352602190915281205490916112d1916146a2565b610d869082614528565b610feb83838360405180602001604052806000815250612270565b610d9e60008233612ccf565b61130a612bb9565b611312612ce4565b600061131d60095490565b90506107d083518261132f9190614528565b111561134e57604051633bd7ad7760e21b815260040160405180910390fd5b60005b83518110156113b857600084828151811061136e5761136e6144fc565b6020026020010151905061138181612d0e565b61138b8482612dae565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101611351565b508251604080518381526020810192909252429082015233906000805160206148748339815191529060600160405180910390a250610d9e6001600b55565b600061140260095490565b821061142b5760405163295f44f760e21b815260006004820152602481018390526044016110fb565b6009828154811061143e5761143e6144fc565b90600052602060002001549050919050565b611458612ce4565b600f5460ff161561147c57604051634c97d28b60e01b815260040160405180910390fd5b60105482111561149f5760405163ec8e6a6360e01b815260040160405180910390fd5b816000036114c057604051632a6ce29960e11b815260040160405180910390fd5b6001600160a01b0381166000908152601c602052604090205460ff1661151f5760405162461bcd60e51b815260206004820152601460248201527310dd5c9c995b98de481b9bdd08185b1b1bddd95960621b60448201526064016110fb565b6001600160a01b0381166000908152601c6020526040812060010154601b805491929183908110611552576115526144fc565b60009182526020918290206040805160c0810182526005909302909101805460ff8116151584526001600160a01b036101009091041693830193909352600183018054929392918401916115a5906144c2565b80601f01602080910402602001604051908101604052809291908181526020018280546115d1906144c2565b801561161e5780601f106115f35761010080835404028352916020019161161e565b820191906000526020600020905b81548152906001019060200180831161160157829003601f168201915b505050505081526020016002820154815260200160038201548152602001600482015481525050905060006116533386611d6e565b9050600060135442101580611672575081801561167257506012544210155b9050806116925760405163951b974f60e01b815260040160405180910390fd5b82516116d75760405162461bcd60e51b815260206004820152601460248201527310dd5c9c995b98de481b9bdd08185b1b1bddd95960621b60448201526064016110fb565b600086601b86815481106116ed576116ed6144fc565b90600052602060002090600502016004015461170991906146a2565b10156117505760405162461bcd60e51b815260206004820152601660248201527510dd5c9c995b98de48131a5b5a5d081c995858da195960521b60448201526064016110fb565b85601b8581548110611764576117646144fc565b9060005260206000209060050201600401600082825461178491906146a2565b9091555060009050611797863389611fbe565b905060006117a58883614554565b905060006117b260095490565b90506107d06117c18a83614528565b11156117e057604051633bd7ad7760e21b815260040160405180910390fd5b6040516370a0823160e01b815233600482015282906001600160a01b038a16906370a0823190602401602060405180830381865afa158015611826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184a91906146b5565b10156118695760405163cd1c886760e01b815260040160405180910390fd5b60015b8981116118b757600061187d612dc8565b905061188a335b82612dae565b601e546000908152602160209081526040808320548280528184209484529390915290205560010161186c565b5084156118e35733600090815260196020526040812080548b92906118dd908490614528565b90915550505b600060646118f2600a85614554565b6118fc9190614581565b9050600061190a82856146a2565b905061191a818960200151612ef9565b611928828960200151613024565b60408051848152602081018d9052428183015290513391600080516020614874833981519152919081900360600190a2505050505050505050610d9e6001600b55565b611973612bb9565b601055565b60008061198433611aca565b905060005b818110156119dc57600061199d3383611227565b90506119a8816112a0565b601e546000908152602160209081526040808320548280528184209584529490915290209190915590920191600101611989565b50336000908152601f6020526040812080548492906119fc908490614528565b9091555050604051339083156108fc029084906000818181858888f19350505050158015610feb573d6000803e3d6000fd5b611a36612bb9565b601155565b6000610d8682612c89565b611a4e612bb9565b6001600160a01b0382166000908152601c602052604090205460ff16611a7357600080fd5b6001600160a01b0382166000908152601c6020526040902060010154601b805483919083908110611aa657611aa66144fc565b60009182526020909120600590910201805460ff1916911515919091179055505050565b60006001600160a01b038216611af6576040516322718ad960e21b8152600060048201526024016110fb565b506001600160a01b031660009081526004602052604090205490565b611b1a612bb9565b611b24600061312c565b565b60606000611b3383611aca565b90506000816001600160401b03811115611b4f57611b4f613eb7565b604051908082528060200260200182016040528015611b78578160200160208202803683370190505b50905060005b82811015611bbf57611b908582611227565b828281518110611ba257611ba26144fc565b602090810291909101015280611bb78161453b565b915050611b7e565b509392505050565b6001600160a01b038116600090815260196020526040812054601154610d8691906146a2565b611bf5612ce4565b600f5460ff1615611c1957604051634c97d28b60e01b815260040160405180910390fd5b601254421015611c3c5760405163951b974f60e01b815260040160405180910390fd5b611c4533610835565b811115611c655760405163b9c43c9160e01b815260040160405180910390fd5b80600003611c8657604051632a6ce29960e11b815260040160405180910390fd5b6000611c9160095490565b90506107d0611ca08383614528565b1115611cbf57604051633bd7ad7760e21b815260040160405180910390fd5b60015b828111611d0b576000611cd3612dc8565b9050611cde33611884565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101611cc2565b503360009081526016602052604081208054849290611d2b9084906146a2565b90915550506040805182815260208101849052428183015290513391600080516020614874833981519152919081900360600190a250611d6b6001600b55565b50565b6011546001600160a01b038316600090815260196020526040812054909190611d98908490614528565b11158015611dcc57506001600160a01b03831660009081526017602052604090205460ff1680611dcc5750611dcc83612842565b9392505050565b611ddb612bb9565b600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114611e28576040519150601f19603f3d011682016040523d82523d6000602084013e611e2d565b606091505b5050905080611d6b5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016110fb565b60606000611e7e83611aca565b90506000816001600160401b03811115611e9a57611e9a613eb7565b604051908082528060200260200182016040528015611edf57816020015b6040805180820190915260008082526020820152815260200190600190039081611eb85790505b50905060005b82811015611bbf576000611ef98683611227565b90506000611f06826112a0565b905081848481518110611f1b57611f1b6144fc565b6020026020010151600001818152505080848481518110611f3e57611f3e6144fc565b6020026020010151602001818152505050508080611f5b9061453b565b915050611ee5565b611f6b612bb9565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b606060028054610dc4906144c2565b6000611fa88383611d6e565b611fb457601554611dcc565b5050601454919050565b6001600160a01b0383166000908152601c6020526040812060010154611fe48484611d6e565b61201257601b8181548110611ffb57611ffb6144fc565b906000526020600020906005020160020154612038565b601b8181548110612025576120256144fc565b9060005260206000209060050201600301545b95945050505050565b612049612ce4565b600f5460ff161561206d57604051634c97d28b60e01b815260040160405180910390fd5b60006120793383611d6e565b9050600060135442101580612098575081801561209857506012544210155b9050806120b85760405163951b974f60e01b815260040160405180910390fd5b6010548311156120db5760405163ec8e6a6360e01b815260040160405180910390fd5b826000036120fc57604051632a6ce29960e11b815260040160405180910390fd5b60006121083385611f9c565b905060006121168583614554565b9050600061212360095490565b90506107d06121328783614528565b111561215157604051633bd7ad7760e21b815260040160405180910390fd5b8134146121715760405163cd1c886760e01b815260040160405180910390fd5b60015b8681116121bd576000612185612dc8565b905061219033611884565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101612174565b5084156121e95733600090815260196020526040812080548892906121e3908490614528565b90915550505b600060646121f8600a85614554565b6122029190614581565b9050600061221082856146a2565b905061221b8161317c565b61222482613214565b60408051848152602081018a9052428183015290513391600080516020614874833981519152919081900360600190a250505050505050611d6b6001600b55565b610d9e3383836132d3565b61227b8484846110d5565b61115f84848484613372565b61228f612bb9565b601e80546000908152602160205260408120819055815491906122b18361453b565b90915550506009546122c39047614581565b601e54600090815260216020526040812080549091906122e4908490614528565b9091555050565b6122f3612bb9565b6001600160a01b0384166000908152601c602052604090205460ff161561238b576001600160a01b0384166000908152601c6020526040902060010154601b805485919083908110612347576123476144fc565b90600052602060002090600502016002018190555082601b8281548110612370576123706144fc565b9060005260206000209060050201600301819055505061115f565b6001600160a01b0384166000818152601c60209081526040808320805460ff191660019081178255601b5491810191909155815160c08101835290815291820184905280516395d89b4160e01b815281519394929391840192916395d89b419160048082019288929091908290030181865afa15801561240f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261243791908101906146ce565b8152602080820187905260408083018790526060909201859052601b8054600181018255600091909152835160059091027f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc181018054938601516001600160a01b031661010002610100600160a81b0319931515939093166001600160a81b03199094169390931791909117825591830151929350839290917f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc201906124fd90826145e3565b50606082015181600201556080820151816003015560a0820151816004015550505050505050565b61252d612bb9565b600061253860095490565b90506107d06125478483614528565b111561256657604051633bd7ad7760e21b815260040160405180910390fd5b60015b8381116125b357600061257a612dc8565b90506125868482612dae565b601e5460009081526021602090815260408083205482805281842094845293909152902055600101612569565b506040805182815260208101859052428183015290513391600080516020614874833981519152919081900360600190a2505050565b601881815481106125f957600080fd5b6000918252602090912001546001600160a01b0316905081565b606061261e82612c89565b50600e61262a8361349b565b60405160200161263b92919061473b565b6040516020818303038152906040529050919050565b6126a260405180610120016040528060001515815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081525090565b604080516101208101909152600f5460ff1615158152602081016126c560095490565b81526020016107d0815260200160105481526020016015548152602001601454815260200160125481526020016013548152602001601b805480602002602001604051908101604052809291908181526020016000905b828210156128245760008481526020908190206040805160c08101825260058602909201805460ff81161515845261010090046001600160a01b03169383019390935260018301805492939291840191612775906144c2565b80601f01602080910402602001604051908101604052809291908181526020018280546127a1906144c2565b80156127ee5780601f106127c3576101008083540402835291602001916127ee565b820191906000526020600020905b8154815290600101906020018083116127d157829003601f168201915b5050505050815260200160028201548152602001600382015481526020016004820154815250508152602001906001019061271c565b505050915250919050565b612837612bb9565b601291909155601355565b6000805b6018548110156128fd57600060188281548110612865576128656144fc565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a0823190602401602060405180830381865afa1580156128b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dc91906146b5565b11156128eb5750600192915050565b806128f58161453b565b915050612846565b50600092915050565b611b243461352d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b612945612bb9565b60005b81811015610ea957600160176000858585818110612968576129686144fc565b905060200201602081019061297d9190613fb0565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101612948565b6129b5612bb9565b6001600160a01b0381166129df57604051631e4fbdf760e01b8152600060048201526024016110fb565b611d6b8161312c565b601b81815481106129f857600080fd5b60009182526020909120600590910201805460018201805460ff831694506101009092046001600160a01b03169291612a30906144c2565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5c906144c2565b8015612aa95780601f10612a7e57610100808354040283529160200191612aa9565b820191906000526020600020905b815481529060010190602001808311612a8c57829003601f168201915b5050505050908060020154908060030154908060040154905086565b612acd612bb9565b828114612ad957600080fd5b60005b83811015612b6457828282818110612af657612af66144fc565b9050602002013560166000878785818110612b1357612b136144fc565b9050602002016020810190612b289190613fb0565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254612b579190614528565b9091555050600101612adc565b506040517f22f196d9cf5ab2abfb5e4f2e291a2452f5c28d88e99b62b74b9c6e62ab231a4490600090a150505050565b60006001600160e01b0319821663152a902d60e11b1480610d865750610d8682613574565b6000546001600160a01b03163314611b245760405163118cdaa760e01b81523360048201526024016110fb565b6127106001600160601b038216811015612c2557604051636f483d0960e01b81526001600160601b0383166004820152602481018290526044016110fb565b6001600160a01b038316612c4f57604051635b6cc80560e11b8152600060048201526024016110fb565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600c55565b6000818152600360205260408120546001600160a01b031680610d8657604051637e27328960e01b8152600481018490526024016110fb565b610feb8383836001613599565b6000612cdc84848461369f565b949350505050565b6002600b5403612d0757604051633ee5aeb560e01b815260040160405180910390fd5b6002600b55565b6000612d1b6001836146a2565b90506000612d2860095490565b612d34906107d06146a2565b9050601a6000612d456001846146a2565b815260200190815260200160002054600003612d7a57612d666001826146a2565b6000838152601a6020526040902055505050565b601a6000612d896001846146a2565b81526020808201929092526040908101600090812054858252601a9093522055505050565b610d9e82826040518060200160405280600081525061376c565b600080612dd460095490565b612de0906107d06146a2565b6040516bffffffffffffffffffffffff1933606090811b8216602084015241901b16603482015245604882015242606882015290915060009082906088016040516020818303038152906040528051906020012060001c612e4191906147d2565b6000818152601a6020526040812054919250908103612e61575080612e72565b506000818152601a60205260409020545b601a6000612e816001866146a2565b815260200190815260200160002054600003612eb657612ea26001846146a2565b6000838152601a6020526040902055612ee6565b601a6000612ec56001866146a2565b81526020808201929092526040908101600090812054858252601a90935220555b612ef1816001614528565b935050505090565b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa158015612f3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f6391906146b5565b1015612fa65760405162461bcd60e51b815260206004820152601260248201527142616c616e636520697320746f6f206c6f7760701b60448201526064016110fb565b6022546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101849052908216906323b872dd906064015b6020604051808303816000875af1158015613000573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb91906147e6565b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa15801561306a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061308e91906146b5565b10156130d15760405162461bcd60e51b815260206004820152601260248201527142616c616e636520697320746f6f206c6f7760701b60448201526064016110fb565b6040516323b872dd60e01b81523360048201526001600160a01b037f00000000000000000000000076d19e4f535af90ffeaf44531aed8936922473bb81166024830152604482018490528216906323b872dd90606401612fe1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6022546040516000916001600160a01b03169061c35090849084818181858888f193505050503d80600081146131ce576040519150601f19603f3d011682016040523d82523d6000602084013e6131d3565b606091505b5050905080610d9e5760405162461bcd60e51b815260206004820152600d60248201526c10d85b9b9bdd081c185e5bdd5d609a1b60448201526064016110fb565b60007f00000000000000000000000076d19e4f535af90ffeaf44531aed8936922473bb6001600160a01b03168261c35090604051600060405180830381858888f193505050503d8060008114613286576040519150601f19603f3d011682016040523d82523d6000602084013e61328b565b606091505b5050905080610d9e5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f74207061796f75742043726f446f6f60601b60448201526064016110fb565b6001600160a01b03821661330557604051630b61174360e31b81526001600160a01b03831660048201526024016110fb565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561115f57604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906133b4903390889087908790600401614803565b6020604051808303816000875af19250505080156133ef575060408051601f3d908101601f191682019092526133ec91810190614840565b60015b613458573d80801561341d576040519150601f19603f3d011682016040523d82523d6000602084013e613422565b606091505b50805160000361345057604051633250574960e11b81526001600160a01b03851660048201526024016110fb565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b1461349457604051633250574960e11b81526001600160a01b03851660048201526024016110fb565b5050505050565b606060006134a883613783565b60010190506000816001600160401b038111156134c7576134c7613eb7565b6040519080825280601f01601f1916602001820160405280156134f1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846134fb57509392505050565b80601d5461353b9190614528565b601d5560095461354b9082614581565b601e546000908152602160205260408120805490919061356c908490614528565b909155505050565b60006001600160e01b0319821663780e9d6360e01b1480610d865750610d868261385b565b80806135ad57506001600160a01b03821615155b1561366f5760006135bd84612c89565b90506001600160a01b038316158015906135e95750826001600160a01b0316816001600160a01b031614155b80156135fc57506135fa818461290f565b155b156136255760405163a9fbf51f60e01b81526001600160a01b03841660048201526024016110fb565b811561366d5783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260056020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806136ad8585856138ab565b90506001600160a01b03811661370a5761370584600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61372d565b846001600160a01b0316816001600160a01b03161461372d5761372d81856139a4565b6001600160a01b0385166137495761374484613a35565b612cdc565b846001600160a01b0316816001600160a01b031614612cdc57612cdc8585613ae4565b6137768383613b34565b610feb6000848484613372565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106137c25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106137ee576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061380c57662386f26fc10000830492506010015b6305f5e1008310613824576305f5e100830492506008015b612710831061383857612710830492506004015b6064831061384a576064830492506002015b600a8310610d865760010192915050565b60006001600160e01b031982166380ac58cd60e01b148061388c57506001600160e01b03198216635b5e139f60e01b145b80610d8657506301ffc9a760e01b6001600160e01b0319831614610d86565b6000828152600360205260408120546001600160a01b03908116908316156138d8576138d8818486613b99565b6001600160a01b03811615613916576138f5600085600080613599565b6001600160a01b038116600090815260046020526040902080546000190190555b6001600160a01b03851615613945576001600160a01b0385166000908152600460205260409020805460010190555b60008481526003602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b60006139af83611aca565b600083815260086020526040902054909150808214613a02576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613a47906001906146a2565b6000838152600a602052604081205460098054939450909284908110613a6f57613a6f6144fc565b906000526020600020015490508060098381548110613a9057613a906144fc565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613ac857613ac861485d565b6001900381819060005260206000200160009055905550505050565b60006001613af184611aca565b613afb91906146a2565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216613b5e57604051633250574960e11b8152600060048201526024016110fb565b6000613b6c83836000612ccf565b90506001600160a01b03811615610feb576040516339e3563760e11b8152600060048201526024016110fb565b613ba4838383613bfd565b610feb576001600160a01b038316613bd257604051637e27328960e01b8152600481018290526024016110fb565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016110fb565b60006001600160a01b03831615801590612cdc5750826001600160a01b0316846001600160a01b03161480613c375750613c37848461290f565b80612cdc5750506000908152600560205260409020546001600160a01b03908116911614919050565b828054828255906000526020600020908101928215613cb3579160200282015b82811115613cb35781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190613c80565b50613cbf929150613cc3565b5090565b5b80821115613cbf5760008155600101613cc4565b6001600160e01b031981168114611d6b57600080fd5b600060208284031215613d0057600080fd5b8135611dcc81613cd8565b80356001600160a01b0381168114613d2257600080fd5b919050565b60008060408385031215613d3a57600080fd5b613d4383613d0b565b915060208301356001600160601b0381168114613d5f57600080fd5b809150509250929050565b60008060408385031215613d7d57600080fd5b50508035926020909101359150565b60005b83811015613da7578181015183820152602001613d8f565b50506000910152565b60008151808452613dc8816020860160208601613d8c565b601f01601f19169290920160200192915050565b602081526000611dcc6020830184613db0565b60008083601f840112613e0157600080fd5b5081356001600160401b03811115613e1857600080fd5b6020830191508360208260051b850101111561122057600080fd5b60008060208385031215613e4657600080fd5b82356001600160401b03811115613e5c57600080fd5b613e6885828601613def565b90969095509350505050565b600060208284031215613e8657600080fd5b5035919050565b60008060408385031215613ea057600080fd5b613ea983613d0b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613ef557613ef5613eb7565b604052919050565b600082601f830112613f0e57600080fd5b813560206001600160401b03821115613f2957613f29613eb7565b8160051b613f38828201613ecd565b9283528481018201928281019087851115613f5257600080fd5b83870192505b84831015613f7157823582529183019190830190613f58565b979650505050505050565b600060208284031215613f8e57600080fd5b81356001600160401b03811115613fa457600080fd5b612cdc84828501613efd565b600060208284031215613fc257600080fd5b611dcc82613d0b565b8015158114611d6b57600080fd5b600060208284031215613feb57600080fd5b8135611dcc81613fcb565b60008060006060848603121561400b57600080fd5b61401484613d0b565b925061402260208501613d0b565b9150604084013590509250925092565b60006001600160401b0382111561404b5761404b613eb7565b50601f01601f191660200190565b600061406c61406784614032565b613ecd565b905082815283838301111561408057600080fd5b828260208301376000602084830101529392505050565b6000602082840312156140a957600080fd5b81356001600160401b038111156140bf57600080fd5b8201601f810184136140d057600080fd5b612cdc84823560208401614059565b600080604083850312156140f257600080fd5b82356001600160401b0381111561410857600080fd5b61411485828601613efd565b92505061412360208401613d0b565b90509250929050565b6000806040838503121561413f57600080fd5b8235915061412360208401613d0b565b6000806040838503121561416257600080fd5b61416b83613d0b565b91506020830135613d5f81613fcb565b6020808252825182820181905260009190848201906040850190845b818110156141b357835183529284019291840191600101614197565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015614201578151805185528601518685015292840192908501906001016141dc565b5091979650505050505050565b6000806000806080858703121561422457600080fd5b61422d85613d0b565b935061423b60208601613d0b565b92506040850135915060608501356001600160401b0381111561425d57600080fd5b8501601f8101871361426e57600080fd5b61427d87823560208401614059565b91505092959194509250565b6000806000806080858703121561429f57600080fd5b6142a885613d0b565b966020860135965060408601359560600135945092505050565b600082825180855260208086019550808260051b84010181860160005b8481101561435a57858303601f190189528151805115158452848101516001600160a01b03168585015260408082015160c0828701819052919061432583880182613db0565b606085810151908901526080808601519089015260a094850151949097019390935250505097830197908301906001016142df565b5090979650505050505050565b6020815261437a60208201835115159052565b602082015160408201526040820151606082015260608201516080820152608082015160a082015260a082015160c082015260c082015160e0820152600060e0830151610100818185015280850151915050610120808185015250612cdc6101408401826142c2565b600080604083850312156143f657600080fd5b6143ff83613d0b565b915061412360208401613d0b565b86151581526001600160a01b038616602082015260c06040820181905260009061443990830187613db0565b606083019590955250608081019290925260a0909101529392505050565b6000806000806040858703121561446d57600080fd5b84356001600160401b038082111561448457600080fd5b61449088838901613def565b909650945060208701359150808211156144a957600080fd5b506144b687828801613def565b95989497509550505050565b600181811c908216806144d657607f821691505b6020821081036144f657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610d8657610d86614512565b60006001820161454d5761454d614512565b5060010190565b8082028115828204841417610d8657610d86614512565b634e487b7160e01b600052601260045260246000fd5b6000826145905761459061456b565b500490565b601f821115610feb57600081815260208120601f850160051c810160208610156145bc5750805b601f850160051c820191505b818110156145db578281556001016145c8565b505050505050565b81516001600160401b038111156145fc576145fc613eb7565b6146108161460a84546144c2565b84614595565b602080601f831160018114614645576000841561462d5750858301515b600019600386901b1c1916600185901b1785556145db565b600085815260208120601f198616915b8281101561467457888601518255948401946001909101908401614655565b50858210156146925787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b81810381811115610d8657610d86614512565b6000602082840312156146c757600080fd5b5051919050565b6000602082840312156146e057600080fd5b81516001600160401b038111156146f657600080fd5b8201601f8101841361470757600080fd5b805161471561406782614032565b81815285602083850101111561472a57600080fd5b612038826020830160208601613d8c565b6000808454614749816144c2565b600182811680156147615760018114614776576147a5565b60ff19841687528215158302870194506147a5565b8860005260208060002060005b8581101561479c5781548a820152908401908201614783565b50505082870194505b5050505083516147b9818360208801613d8c565b64173539b7b760d91b9101908152600501949350505050565b6000826147e1576147e161456b565b500690565b6000602082840312156147f857600080fd5b8151611dcc81613fcb565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061483690830184613db0565b9695505050505050565b60006020828403121561485257600080fd5b8151611dcc81613cd8565b634e487b7160e01b600052603160045260246000fdfe5a3358a3d27a5373c0df2604662088d37894d56b7cfd27f315770440f4e0d919a264697066735822122020b07676c0751b41f4e085d32cfac81df1f98966a9de8e58c02916d406b6420364736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000093eef15e5d6f1a0c238f93a274e1b9514f260c4c00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004376ae95d35b178004c1b2f124b90d59a44145fb0000000000000000000000004376ae95d35b178004c1b2f124b90d59a44145fb00000000000000000000000076d19e4f535af90ffeaf44531aed8936922473bb0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d556955356d63396253726d726371487461564e7041665432367a6a59786a69674574437473736a704442366a2f00000000000000000000
-----Decoded View---------------
Arg [0] : initialOwner_ (address): 0x93EeF15E5d6f1a0c238F93A274E1b9514F260c4C
Arg [1] : uri_ (string): ipfs://QmUiU5mc9bSrmrcqHtaVNpAfT26zjYxjigEtCtssjpDB6j/
Arg [2] : projectWallet_ (address): 0x4376aE95D35b178004C1b2F124b90d59a44145Fb
Arg [3] : royaltiesWallet_ (address): 0x4376aE95D35b178004C1b2F124b90d59a44145Fb
Arg [4] : dooWallet_ (address): 0x76d19E4f535AF90FFeAf44531aEd8936922473bb
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000093eef15e5d6f1a0c238f93a274e1b9514f260c4c
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000004376ae95d35b178004c1b2f124b90d59a44145fb
Arg [3] : 0000000000000000000000004376ae95d35b178004c1b2f124b90d59a44145fb
Arg [4] : 00000000000000000000000076d19e4f535af90ffeaf44531aed8936922473bb
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [6] : 697066733a2f2f516d556955356d63396253726d726371487461564e70416654
Arg [7] : 32367a6a59786a69674574437473736a704442366a2f00000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.