Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,555 NASA
Holders
644
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 NASALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NotoriousAlienSpaceAgentsToken
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /// @title The Notorious Alien Space Agents ERC-721 token pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import {IRoyaltySharing} from "../interfaces/IRoyaltySharing.sol"; import {InitialYollarStaking} from "../staking/InitialYollarStaking.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; error WhitelistNotStarted(); error AuctionNotActive(); error NotInReservedList(); error WillExceedMaxAllowedToken(); error IncorrectEth(); error MaxFiveMintPerAuction(); error AtLeastOneMint(); error Soldout(); error TransferFailed(); error NotYourAlien(); error AlreadyAtMaxLevel(); error NotEnoughInputTokens(); error NotEnoughTokenInWallet(); error BaseUriIsFrozen(); contract NotoriousAlienSpaceAgentsToken is Ownable, ERC721Enumerable, Pausable { address private yollarAddress; address private gameTreasuryAddress; // ----------------------- Fair distribution // The hash of the hashes of all the ordered pfps. string public provenance; // The random starting postion that shifst the tokenId to alienId mapping. uint256 public startingIndex; // -------------------------------------------------------- InitialYollarStaking private staking; // -------------------------------------------------------- uint256 public currentTokenId; // Max number of Aliens: 5555 // The first 5 are reserved for the founders. // The remaining 5550 are split "randomly" in the following way: // 1. 250 for the team givaways. // 2. 5300 for public minting. struct MintInfo { uint256 maxTokenId; uint256 firstPublicMintId; } MintInfo public mintInfo; mapping(address => bool) private devMintWhitelist; // The base token URI. string[] private tokenBaseURIs; bool public tokenBaseURIFrozen; // The stored balance. uint256 public balance; // reserved[address] = [count, price] // This is used for the following type of reserved lists. // 1. Initial giveaways (free mints) // 2. Team reserve // 3. Whitelist (guaranteed at a min price) struct ReservedInfo { uint256 count; uint256 price; } mapping(address => ReservedInfo) public reserved; // The whitelist starts with a delay after deploy. uint256 public whitelistStartTime; modifier whenWhitelistActive() { if (!isWhitelistActive()) { revert WhitelistNotStarted(); } _; } // ----------------- Auction related // The dutch auction starts at `startTime`. The starting price keeps decreasing by stepPrice every stepInterval until it reaches the minimumPrice or until someone mints. struct AuctionInfo { bool isActive; uint256 startTime; uint256[] prices; uint128[] yollars; uint256 stepInterval; } AuctionInfo public auctionInfo; modifier whenAuctionActive() { if (!isAuctionActive()) { revert AuctionNotActive(); } _; } // ----------------- Game related // Aliens can burn various utility tokens to level up and get new pfps! mapping(uint256 => uint256) public levels; ERC20Burnable[] public expTokens; uint256[][] public expNeededToUpgrade; // ---------------------------------- constructor( string memory _tokenBaseURI, uint256 _maxTokenId, address[5] memory _founderAddresses, string memory _provenance, address _gameTreasuryAddress ) ERC721("Notorious Alien Space Agents", "NASA") { tokenBaseURIs.push(_tokenBaseURI); tokenBaseURIFrozen = false; currentTokenId = 1; mintInfo = MintInfo({maxTokenId: _maxTokenId, firstPublicMintId: 0}); auctionInfo.isActive = false; // Mint the 5 founders pfps. for (uint256 i = 0; i < _founderAddresses.length; i++) { _mintTo(_founderAddresses[i]); } provenance = _provenance; gameTreasuryAddress = _gameTreasuryAddress; } function setStakingAddress(address _address) public onlyOwner { staking = InitialYollarStaking(_address); } function isApprovedForAll(address _owner, address _operator) public view virtual override returns (bool) { // allow the staking contract to transfer without approval to save one transaction fee. if (_operator == address(staking)) { return true; } return super.isApprovedForAll(_owner, _operator); } // ----------------- Initial Whitelist /** * @notice Called once for dao members and once for other whitelist members. */ function setWhitelists( address[] memory _whitelistAddresses, uint256[] memory _counts, uint256[] memory _prices, uint256 _whitelistStartTime ) public onlyOwner { for (uint256 i = 0; i < _whitelistAddresses.length; i++) { reserved[_whitelistAddresses[i]] = ReservedInfo({ count: _counts[i], price: _prices[i] }); } whitelistStartTime = _whitelistStartTime; } /** * @notice enables the owner to undo mistakes */ function removeWhitelists(address[] memory addresses) public onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { delete reserved[addresses[i]]; } } /** * @dev Call _mintTo */ function mintWhitelist( uint256 _count, bool _stake, uint256 _duration ) public payable whenWhitelistActive whenNotPaused { ReservedInfo storage info = reserved[msg.sender]; if (info.count < _count) { revert NotInReservedList(); } if (currentTokenId + _count > mintInfo.maxTokenId) { revert WillExceedMaxAllowedToken(); } uint256 price = info.price * _count; if (msg.value != price) { revert IncorrectEth(); } balance = balance + price; reserved[msg.sender].count = reserved[msg.sender].count - _count; uint256[] memory tokenIds = new uint256[](_count); address _owner = _stake ? address(staking) : msg.sender; for (uint256 i = 0; i < _count; i++) { tokenIds[i] = _mintTo(_owner); } if (_stake) { for (uint256 i = 0; i < _count; i++) { staking.stakeDuringMint(tokenIds[i], _duration, msg.sender); } } } // ----------------- Auction function startAuction( uint256 _startTime, uint256 _stepInterval, address _yollarAddress ) external onlyOwner { auctionInfo.startTime = _startTime; auctionInfo.isActive = true; yollarAddress = _yollarAddress; auctionInfo.prices.push(0.79 ether); auctionInfo.prices.push(0.65 ether); auctionInfo.prices.push(0.55 ether); auctionInfo.prices.push(0.45 ether); auctionInfo.prices.push(0.4 ether); auctionInfo.prices.push(0.35 ether); auctionInfo.prices.push(0.3 ether); auctionInfo.prices.push(0.25 ether); auctionInfo.prices.push(0.2 ether); auctionInfo.prices.push(0.15 ether); auctionInfo.prices.push(0.08 ether); auctionInfo.yollars.push(15_000 ether); auctionInfo.yollars.push(10_000 ether); auctionInfo.yollars.push(8_000 ether); auctionInfo.yollars.push(6_000 ether); auctionInfo.yollars.push(5_000 ether); auctionInfo.yollars.push(4_000 ether); auctionInfo.yollars.push(3_000 ether); auctionInfo.yollars.push(2_000 ether); auctionInfo.yollars.push(0 ether); auctionInfo.yollars.push(0 ether); auctionInfo.yollars.push(0 ether); auctionInfo.stepInterval = _stepInterval; // Stop the minting by setting the start mint price 10 years in the future! whitelistStartTime = block.timestamp + 3650 days; } function stopAuction() external onlyOwner { auctionInfo.isActive = false; } /** * @notice mints from auction only if auction is active. * @dev Call _mintTo */ function mintAuction( uint256 count, bool _stake, uint256 _duration ) external payable whenAuctionActive whenNotPaused { if (count > 5) { revert MaxFiveMintPerAuction(); } if (count < 1) { revert AtLeastOneMint(); } // NOTE: VERY IMPORTANT: the assupmtion is that the devs have minted their 5 pfp and also the 250 reserve. Once the auction starts, everything is up for grab! if (currentTokenId > mintInfo.maxTokenId) { revert Soldout(); } uint256 step = getCurrentPrice(); uint256 mintPrice = auctionInfo.prices[step]; uint128 yollarAmount = auctionInfo.yollars[step]; if (msg.value < mintPrice * count) { revert IncorrectEth(); } if (mintInfo.firstPublicMintId == 0) { mintInfo.firstPublicMintId = currentTokenId; } uint256 mintable = count; uint256 remaining = mintInfo.maxTokenId - currentTokenId + 1; if (remaining <= count) { mintable = remaining; } uint256 unspent = msg.value; address _owner = _stake ? address(staking) : msg.sender; uint256[] memory tokenIds = new uint256[](mintable); for (uint256 i = 0; i < mintable; i++) { balance = balance + mintPrice; unspent = unspent - mintPrice; tokenIds[i] = _mintTo(_owner); if (yollarAmount != 0) { staking.rewardAuctionYollar(msg.sender, yollarAmount); } } if (currentTokenId > mintInfo.maxTokenId) { // All mints are done, now randomize the mapping! setStartingIndex(); } if (_stake) { for (uint256 i = 0; i < mintable; i++) { staking.stakeDuringMint(tokenIds[i], _duration, msg.sender); } } if (unspent != 0) { // refund the extra eth // https://consensys.github.io/smart-contract-best-practices/recommendations/ recommends using this instead of transfer (bool success, ) = msg.sender.call{value: unspent}(""); // solhint-disable-line if (!success) { revert TransferFailed(); } } } function getCurrentPrice() public view whenAuctionActive returns (uint256) { // 15 second delay could cause one going to the lower interval, but we have a way of refunding the buyer so it is ok. uint256 timeDiff = block.timestamp - auctionInfo.startTime; // solhint-disable-line uint256 step = timeDiff / auctionInfo.stepInterval; if (step >= 11) { step = 10; } return step; } // ----------------- Game function setExpTokens( address[] calldata _expTokenAddresses, uint256[][] memory _expNeeded ) public onlyOwner { require( _expTokenAddresses.length == _expNeeded.length, "Mismatched input length" ); expTokens = new ERC20Burnable[](_expTokenAddresses.length); expNeededToUpgrade = _expNeeded; for (uint256 i = 0; i < _expTokenAddresses.length; i++) { expTokens[i] = ERC20Burnable(_expTokenAddresses[i]); } // Ensure that they all have the same length, which is going to be the max level. uint256 _maxLevel = expNeededToUpgrade[0].length; for (uint256 i = 0; i < expNeededToUpgrade.length; i++) { assert(expNeededToUpgrade[i].length == _maxLevel); } } function upgrade(uint256 _tokenId, uint256[] calldata _expCount) public whenNotPaused { if (ownerOf(_tokenId) != msg.sender) { revert NotYourAlien(); } uint256 currentLevel = levels[_tokenId]; if (currentLevel < 1) { currentLevel = 1; } if (currentLevel >= expNeededToUpgrade[0].length + 1) { revert AlreadyAtMaxLevel(); } uint256 tokensCount = expNeededToUpgrade[0].length; for (uint256 i = 0; i < tokensCount; i++) { uint256 expNeeded = expNeededToUpgrade[i][currentLevel - 1]; // the array is zero indexed if (_expCount[i] != expNeeded) { revert NotEnoughInputTokens(); } if (expTokens[i].balanceOf(msg.sender) < expNeeded) { revert NotEnoughTokenInWallet(); } } levels[_tokenId] = currentLevel + 1; for (uint256 i = 0; i < tokensCount; i++) { expTokens[i].transferFrom(msg.sender, address(this), _expCount[i]); expTokens[i].burn(_expCount[i]); } } // ----------------- Withdraw /** * @notice sends the accumulated eth to the profit distributer contract. */ function withdraw(address _address) public onlyOwner { IRoyaltySharing royaltySharingContract = IRoyaltySharing(_address); uint256 transferBalance = balance; balance = 0; royaltySharingContract.deposit{value: transferBalance}(20, 80, 0); } // ----------------- Fair distribution /** * This function creates a "random" starting point. Note that this definitely NOT a secure random but it is enough! * The function is called when the last pfp is minted. At that point, only the devs know about the ordering of pfps. * Therefore in order for the devs to cheat, they will need to make sure to mint the last pfp at a time of their choosing. * The assupmtion is that since the last item is auctioned, and there is enough interest in the project, the devs will have * a hard time competeing with others to choose something a mint time that is suitable for them. */ function setStartingIndex() internal { assert(startingIndex == 0); // Note: the first 5 aliens are exceptions to the randomization rule. uint256 maxSupply = mintInfo.maxTokenId - 5; uint256 startingIndexBlock = block.number; startingIndex = (uint256(blockhash(startingIndexBlock)) % maxSupply) + 5; // Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes) if (block.number - startingIndexBlock > 255) { startingIndex = (uint256(blockhash(block.number - 1)) % maxSupply) + 5; } // Prevent default sequence if (startingIndex == 0) { startingIndex = startingIndex + 5; } } // ----------------- Utils /** * @notice mints to address and sends funds to royalty distributer. * @dev Call _mintTo */ function _mintTo(address receipient) private returns (uint256) { _mint(receipient, currentTokenId); currentTokenId++; return currentTokenId - 1; } /** * @notice A distinct Uniform Resource Identifier (URI) for a given asset. * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { uint256 level = 1; if (levels[tokenId] > 1) { level = levels[tokenId]; } string memory baseURI = ""; if (level - 1 < tokenBaseURIs.length) { baseURI = tokenBaseURIs[level - 1]; } else { baseURI = tokenBaseURIs[tokenBaseURIs.length - 1]; } if (bytes(baseURI).length == 0) { return ""; } uint256 alienId = tokenId; if (alienId > 5) { alienId = ((tokenId - 6 + startingIndex) % (mintInfo.maxTokenId - 5)) + 6; } return string(abi.encodePacked(baseURI, Strings.toString(alienId))); } function reveal(string memory baseURI_, bool frozen_) external onlyOwner { if (tokenBaseURIFrozen) { revert BaseUriIsFrozen(); } tokenBaseURIFrozen = frozen_; tokenBaseURIs[0] = baseURI_; } /** * @notice Since we can only append, this means that base URIs are forzen. */ function setBaseURIForNextLevel(string memory baseURI_) external onlyOwner { tokenBaseURIs.push(baseURI_); } function isAuctionActive() public view returns (bool) { return auctionInfo.isActive && block.timestamp >= auctionInfo.startTime; // solhint-disable-line } function isWhitelistActive() public view returns (bool) { return block.timestamp >= whitelistStartTime; // solhint-disable-line } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT /// @title The Notorious Alien Space Agents Utitilty Token pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import {YOLLAR} from "../token/Yollar.sol"; import {IApiCaller} from "../interfaces/IApiCaller.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "hardhat/console.sol"; error OnlyApiCallerContractCanInvokeThisFunction(); error OnlyNASAContractCanInvokeThisFunction(); error NotEnoughYollarInWallet(); error NotYourAlien(uint256); error AlienIsLocked(uint256); error NotEnoughBalanceInTreasuary(); error InconsistentBackendSpending( uint128 backendNewValue, uint128 backendOldValue ); error NegativeEarning( uint128 totalPositiveEarning, int128 currentAdjustedBalance, uint128 newTotalWonOnBackend, uint128 newTotalSpentOnBackend ); contract InitialYollarStaking is AccessControl, Ownable, IERC721Receiver, Pausable { struct StakeInfo { uint256 since; // until has value, only if lock duration matches the requirements, otherwise it is zero. uint256 until; bool lockedBeforeReveal; } struct RateInfo { uint256 rewardRate; uint256 beforeRevealBonusRate; uint256 afterRevealBonusRate; uint256 lockPeriod; } IERC721 private stakingToken; YOLLAR private yollarContract; uint256 public capTime; uint256 public revealTime; RateInfo private rates; address private gameEarningsAddress; address private gameTreasuaryAddress; IApiCaller private apiCaller; mapping(address => mapping(uint256 => StakeInfo)) public userTokenStakeInfo; // tokenStakeInfo[userAddress][tokenId] = StakeInfo mapping(address => uint256[]) private userTokenOwnershipList; // used to iterate over `userTokenStakeInfo` mapping(address => int128) private earningAdjustment; mapping(address => uint128) public totalSpentBackend; mapping(bytes32 => address) public requests; modifier onlyApiCaller() { if (msg.sender != address(apiCaller)) { revert OnlyApiCallerContractCanInvokeThisFunction(); } _; } modifier onlyMinter() { if (msg.sender != address(stakingToken)) { revert OnlyNASAContractCanInvokeThisFunction(); } _; } constructor( address nasaContractAddress_, address yollarAddress_, address gameEarningAddress_, address gameTreasuaryAddress_, uint256 revealTime_, uint256 capTime_, uint256 rewardPerDay_ ) { stakingToken = IERC721(nasaContractAddress_); yollarContract = YOLLAR(yollarAddress_); gameTreasuaryAddress = gameTreasuaryAddress_; setTimes(revealTime_, capTime_); setGameEarningAddress(gameEarningAddress_); uint256 rewardRate = rewardPerDay_ / (24 hours); rates = RateInfo({ rewardRate: rewardRate, // rewards per second beforeRevealBonusRate: rewardRate * 2, // 2X rewards per second afterRevealBonusRate: (rewardRate * 3) >> 1, // 1.5 rewards per second lockPeriod: 2 * 30 * 24 hours // 2 months }); } function stake(uint256[] calldata tokenIds_, uint256 duration_) external whenNotPaused { for (uint256 i = 0; i < tokenIds_.length; i++) { if (stakingToken.ownerOf(tokenIds_[i]) != msg.sender) { revert NotYourAlien(tokenIds_[i]); } } for (uint256 i = 0; i < tokenIds_.length; i++) { storeAlien(msg.sender, tokenIds_[i], duration_); stakingToken.safeTransferFrom( msg.sender, address(this), tokenIds_[i] ); } } function stakeDuringMint( uint256 tokenId_, uint256 duration_, address owner_ ) external onlyMinter { storeAlien(owner_, tokenId_, duration_); } function rewardAuctionYollar(address owner_, uint128 amount_) external onlyMinter { earningAdjustment[owner_] += int128(amount_); } function unstake(uint256[] calldata tokenIds_) external { for (uint256 i = 0; i < tokenIds_.length; i++) { StakeInfo storage info = userTokenStakeInfo[msg.sender][ tokenIds_[i] ]; if (isLocked(info)) { revert AlienIsLocked(tokenIds_[i]); } } uint128 earnings = uint128(stakingEarningsFor(msg.sender, tokenIds_)); earningAdjustment[msg.sender] += int128(earnings); for (uint256 i = 0; i < tokenIds_.length; i++) { removeAlien(msg.sender, tokenIds_[i]); } for (uint256 i = 0; i < tokenIds_.length; i++) { stakingToken.safeTransferFrom( address(this), msg.sender, tokenIds_[i] ); } } function deposit(uint128 amount_) public whenNotPaused { if (yollarContract.balanceOf(msg.sender) < amount_) { revert NotEnoughYollarInWallet(); } earningAdjustment[msg.sender] = earningAdjustment[msg.sender] + int128(amount_); yollarContract.transferFrom(msg.sender, gameTreasuaryAddress, amount_); } /** * @notice WARNING: Do not call this directly. Your withdrawal fee will be lost if you call this when your total balance between the contart and the backend is negative. * The withdrawal fee tracks the 2*LINK price since it will be used to pay for the API call. */ function withdrawRequest() public payable { bytes32 requestId = apiCaller.callBackend{value: msg.value}(msg.sender); requests[requestId] = msg.sender; } function withdrawFinalize( bytes32 requestId_, uint128 totalWonOnBackend_, uint128 totalSpentOnBackend_ ) public onlyApiCaller { address owner_ = requests[requestId_]; delete requests[requestId_]; // Part 1: Convert the game spending to actual YOLLAR for the game developers. if (totalSpentOnBackend_ < totalSpentBackend[owner_]) { revert InconsistentBackendSpending( totalSpentOnBackend_, totalSpentBackend[owner_] ); } // The actual transfer of YOLLAR, with the amount of `netNewSpending` happens at the end of the function. uint128 netNewSpending = totalSpentOnBackend_ - totalSpentBackend[owner_]; totalSpentBackend[owner_] = totalSpentOnBackend_; // Part 2: calculate earnings from backend, staking, and deposited yollar. int128 backendNet = int128(totalWonOnBackend_) - int128(totalSpentOnBackend_); int128 adjustedBalance = earningAdjustment[owner_] + backendNet; uint128 earnedFromStaking = uint128( stakingEarningsFor(owner_, userTokenOwnershipList[owner_]) ); uint128 totalPositiveEarning = earnedFromStaking; // The actual transfer of YOLLAR, with the amount of `totalEarning` happens at the end of the function. uint128 totalEarning = 0; if (adjustedBalance >= 0) { totalEarning = totalPositiveEarning + uint128(adjustedBalance); } else { int128 remaining = int128(totalPositiveEarning) + adjustedBalance; // adjustedBalance is negative if (remaining < 0) { revert NegativeEarning( totalPositiveEarning, earningAdjustment[owner_], totalWonOnBackend_, totalSpentOnBackend_ ); } totalEarning = uint128(remaining); } // Part 3: change the state and get ready for YOLLAR transfer // Set the internal state to cancel out the backend state so that subsequent withdrawal requests would result in zero net value. earningAdjustment[owner_] = -backendNet; uint256 tokensOwnedCount = userTokenOwnershipList[owner_].length; for (uint256 i = 0; i < tokensOwnedCount; i++) { uint256 tokenId = userTokenOwnershipList[owner_][i]; userTokenStakeInfo[owner_][tokenId].since = block.timestamp; // solhint-disable-line } // Part 4, now that all the internal states are properly updated, tranfer YOLLAR from treasuary. if (netNewSpending > 0) { yollarContract.transferFrom( gameTreasuaryAddress, gameEarningsAddress, netNewSpending ); } if (totalEarning > 0) { yollarContract.transferFrom( gameTreasuaryAddress, owner_, totalEarning ); } } function stakingEarningsFor(address owner_, uint256[] memory tokenIds_) public view returns (uint256) { uint256 reward = 0; for (uint256 i = 0; i < tokenIds_.length; i++) { uint256 tokenId = tokenIds_[i]; uint256 stakedSince = userTokenStakeInfo[owner_][tokenId].since; uint256 stakedUntil = userTokenStakeInfo[owner_][tokenId].until; bool isLockedBeforeReveal = userTokenStakeInfo[owner_][tokenId] .lockedBeforeReveal; uint256 current = block.timestamp; // solhint-disable-line if (current > capTime) { current = capTime; } // If stakedUntil is zero, it means that the lock period was not elligible for boosting. if (stakedUntil != 0) { uint256 bonusUnits = 0; if (current <= stakedUntil) { bonusUnits = current - stakedSince; } else { bonusUnits = stakedUntil - stakedSince; } if (isLockedBeforeReveal) { reward = reward + (bonusUnits * rates.beforeRevealBonusRate); } else { reward = reward + (bonusUnits * rates.afterRevealBonusRate); } uint256 normalUnits = 0; if (current > stakedUntil) { normalUnits = current - stakedUntil; } reward = reward + (normalUnits * rates.rewardRate); } else { uint256 units = (current - stakedSince); reward = reward + units * rates.rewardRate; } } return reward; } function tokenOfOwnerByIndex(address owner_, uint256 index_) public view returns (uint256) { return userTokenOwnershipList[owner_][index_]; } function getEarningAdjustment(address owner_) public view returns (int128) { return earningAdjustment[owner_]; } function isLocked(StakeInfo memory info) internal view returns (bool) { if (info.until == 0) { return false; } return block.timestamp < info.until; // solhint-disable-line } function storeAlien( address owner_, uint256 tokenId_, uint256 duration_ ) internal { bool isLockDurationEligible = duration_ >= rates.lockPeriod; uint256 now_ = block.timestamp; // solhint-disable-line userTokenStakeInfo[owner_][tokenId_] = StakeInfo({ since: now_, until: isLockDurationEligible ? now_ + rates.lockPeriod : 0, lockedBeforeReveal: now_ < revealTime }); userTokenOwnershipList[owner_].push(tokenId_); } function removeAlien(address owner_, uint256 tokenId_) internal { delete userTokenStakeInfo[owner_][tokenId_]; uint256 tokensOwnedCount = userTokenOwnershipList[owner_].length; for (uint256 i = 0; i < tokensOwnedCount; i++) { if (userTokenOwnershipList[owner_][i] == tokenId_) { uint256 length = userTokenOwnershipList[owner_].length; userTokenOwnershipList[owner_][i] = userTokenOwnershipList[ owner_ ][length - 1]; userTokenOwnershipList[owner_].pop(); break; } } } function setTimes(uint256 revealTime_, uint256 capTime_) public onlyOwner { revealTime = revealTime_; capTime = capTime_; } function setGameEarningAddress(address address_) public onlyOwner { gameEarningsAddress = address_; } function setApiCaller(address address_) public onlyOwner { apiCaller = IApiCaller(address_); } function onERC721Received( address, address, uint256, bytes calldata ) public pure override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT /// @title Interface for IRoyaltySharing. pragma solidity 0.8.6; interface IRoyaltySharing { function deposit( uint256 creators, uint256 project, uint256 rewards ) external payable; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.6; interface IApiCaller { function callBackend(address owner_) external payable returns (bytes32 requestId); }
// SPDX-License-Identifier: MIT /// @title The Notorious Alien Space Agents Utitilty Token pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract YOLLAR is ERC20, ERC20Burnable, Ownable { uint128 public constant MAX_SUPPLY = 11_000_000_000 ether; address public gameTreasuaryAddress; constructor(address gameTreasuaryAddress_) ERC20("Notorious Alien Space Agent YOLLAR Token", "YOLLAR") { _mint(gameTreasuaryAddress_, MAX_SUPPLY); gameTreasuaryAddress = gameTreasuaryAddress_; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 value {ERC20} uses, unless this function is * 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` 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. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenBaseURI","type":"string"},{"internalType":"uint256","name":"_maxTokenId","type":"uint256"},{"internalType":"address[5]","name":"_founderAddresses","type":"address[5]"},{"internalType":"string","name":"_provenance","type":"string"},{"internalType":"address","name":"_gameTreasuryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyAtMaxLevel","type":"error"},{"inputs":[],"name":"AtLeastOneMint","type":"error"},{"inputs":[],"name":"AuctionNotActive","type":"error"},{"inputs":[],"name":"BaseUriIsFrozen","type":"error"},{"inputs":[],"name":"IncorrectEth","type":"error"},{"inputs":[],"name":"MaxFiveMintPerAuction","type":"error"},{"inputs":[],"name":"NotEnoughInputTokens","type":"error"},{"inputs":[],"name":"NotEnoughTokenInWallet","type":"error"},{"inputs":[],"name":"NotInReservedList","type":"error"},{"inputs":[],"name":"NotYourAlien","type":"error"},{"inputs":[],"name":"Soldout","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"WhitelistNotStarted","type":"error"},{"inputs":[],"name":"WillExceedMaxAllowedToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionInfo","outputs":[{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"stepInterval","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"expNeededToUpgrade","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"expTokens","outputs":[{"internalType":"contract ERC20Burnable","name":"","type":"address"}],"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":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAuctionActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"levels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bool","name":"_stake","type":"bool"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"mintAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintInfo","outputs":[{"internalType":"uint256","name":"maxTokenId","type":"uint256"},{"internalType":"uint256","name":"firstPublicMintId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bool","name":"_stake","type":"bool"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","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":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeWhitelists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reserved","outputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"bool","name":"frozen_","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURIForNextLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_expTokenAddresses","type":"address[]"},{"internalType":"uint256[][]","name":"_expNeeded","type":"uint256[][]"}],"name":"setExpTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setStakingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_counts","type":"uint256[]"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"uint256","name":"_whitelistStartTime","type":"uint256"}],"name":"setWhitelists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_stepInterval","type":"uint256"},{"internalType":"address","name":"_yollarAddress","type":"address"}],"name":"startAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBaseURIFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256[]","name":"_expCount","type":"uint256[]"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004d0838038062004d0883398101604081905262000034916200084f565b6040518060400160405280601c81526020017f4e6f746f72696f757320416c69656e205370616365204167656e747300000000815250604051806040016040528060048152602001634e41534160e01b815250620000a16200009b620001e360201b60201c565b620001e7565b8151620000b6906001906020850190620006f7565b508051620000cc906002906020840190620006f7565b5050600b805460ff19169055506014805460018101825560009190915285516200011e917fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec01906020880190620006f7565b506015805460ff199081169091556001601055604080518082019091528581526000602090910181905260118690556012819055601980549092169091555b6005811015620001a1576200018b84826005811062000180576200018062000a56565b602002015162000237565b5080620001988162000a0c565b9150506200015d565b508151620001b790600d906020850190620006f7565b50600c80546001600160a01b0319166001600160a01b03929092169190911790555062000a8292505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006200024d826010546200027b60201b60201c565b601080549060006200025f8362000a0c565b91905055506001601054620002759190620009b5565b92915050565b6001600160a01b038216620002d75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064015b60405180910390fd5b6000818152600360205260409020546001600160a01b0316156200033e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620002ce565b6200034c60008383620003d5565b6001600160a01b0382166000908152600460205260408120805460019290620003779084906200099a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b620003ed8383836200048b60201b62000e5e1760201c565b6001600160a01b0383166200044b576200044581600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b62000471565b816001600160a01b0316836001600160a01b0316146200047157620004718382620004b6565b6001600160a01b03821662000490576200048b8162000563565b505050565b826001600160a01b0316826001600160a01b0316146200048b576200048b82826200061d565b60006001620004d0846200066e60201b62001fcc1760201c565b620004dc9190620009b5565b60008381526008602052604090205490915080821462000530576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906200057790600190620009b5565b6000838152600a602052604081205460098054939450909284908110620005a257620005a262000a56565b906000526020600020015490508060098381548110620005c657620005c662000a56565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548062000601576200060162000a40565b6001900381819060005260206000200160009055905550505050565b600062000635836200066e60201b62001fcc1760201c565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160a01b038216620006db5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401620002ce565b506001600160a01b031660009081526004602052604090205490565b8280546200070590620009cf565b90600052602060002090601f01602090048101928262000729576000855562000774565b82601f106200074457805160ff191683800117855562000774565b8280016001018555821562000774579182015b828111156200077457825182559160200191906001019062000757565b506200078292915062000786565b5090565b5b8082111562000782576000815560010162000787565b80516001600160a01b0381168114620007b557600080fd5b919050565b600082601f830112620007cc57600080fd5b81516001600160401b03811115620007e857620007e862000a6c565b6020620007fe601f8301601f1916820162000967565b82815285828487010111156200081357600080fd5b60005b838110156200083357858101830151828201840152820162000816565b83811115620008455760008385840101525b5095945050505050565b600080600080600061012086880312156200086957600080fd5b85516001600160401b03808211156200088157600080fd5b6200088f89838a01620007ba565b96506020915081880151955088605f890112620008ab57600080fd5b620008b56200093c565b8060408a0160e08b018c811115620008cc57600080fd5b60005b6005811015620008f757620008e4836200079d565b85529386019391860191600101620008cf565b50519197509093505050808211156200090f57600080fd5b506200091e88828901620007ba565b9250506200093061010087016200079d565b90509295509295909350565b60405160a081016001600160401b038111828210171562000961576200096162000a6c565b60405290565b604051601f8201601f191681016001600160401b038111828210171562000992576200099262000a6c565b604052919050565b60008219821115620009b057620009b062000a2a565b500190565b600082821015620009ca57620009ca62000a2a565b500390565b600181811c90821680620009e457607f821691505b6020821081141562000a0657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a235762000a2362000a2a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6142768062000a926000396000f3fe6080604052600436106103065760003560e01c80636352211e1161019a578063c01628a0116100e1578063dff758601161008a578063eb91d37e11610064578063eb91d37e1461087e578063f2fde38b14610893578063f4e0d9ac146108b357600080fd5b8063dff758601461081e578063e985e9c51461083e578063ea9ce5b01461085e57600080fd5b8063d1b4b9a3116100bb578063d1b4b9a3146107b5578063da9425e2146107ca578063dfd96648146107fe57600080fd5b8063c01628a014610765578063c87b56dd1461077f578063cb774d471461079f57600080fd5b806395d89b4111610143578063b69ef8a81161011d578063b69ef8a81461070f578063b7e5e41414610725578063b88d4fde1461074557600080fd5b806395d89b41146106ad578063a22cb465146106c2578063b2596a67146106e257600080fd5b8063715018a611610174578063715018a6146106645780638da5cb5b146106795780639292caaf1461069757600080fd5b80636352211e146106045780636d8185601461062457806370a082311461064457600080fd5b8063269b9a081161025e578063464e494c11610207578063524513d6116101e1578063524513d61461059557806355d64d03146105ad5780635c975abb146105ec57600080fd5b8063464e494c146105355780634f6ccce71461055557806351cff8d91461057557600080fd5b80632f745c59116102385780632f745c59146104e25780634160db3d1461050257806342842e0e1461051557600080fd5b8063269b9a081461047d578063281bd798146104925780632b291058146104b257600080fd5b8063095ea7b3116102c057806318160ddd1161029a57806318160ddd146104285780631bf201471461043d57806323b872dd1461045d57600080fd5b8063095ea7b3146103d35780630a2fe940146103f35780630f7309e81461041357600080fd5b806301ffc9a7116102f157806301ffc9a71461034957806306fdde0314610379578063081812fc1461039b57600080fd5b80629a9b7b1461030b578062f5a22714610334575b600080fd5b34801561031757600080fd5b5061032160105481565b6040519081526020015b60405180910390f35b610347610342366004613ef2565b6108d3565b005b34801561035557600080fd5b50610369610364366004613dbe565b610bc6565b604051901515815260200161032b565b34801561038557600080fd5b5061038e610c0a565b60405161032b9190614018565b3480156103a757600080fd5b506103bb6103b6366004613e74565b610c9c565b6040516001600160a01b03909116815260200161032b565b3480156103df57600080fd5b506103476103ee366004613bd2565b610d31565b3480156103ff57600080fd5b5061034761040e366004613df8565b610e63565b34801561041f57600080fd5b5061038e610ef2565b34801561043457600080fd5b50600954610321565b34801561044957600080fd5b50610347610458366004613bfc565b610f80565b34801561046957600080fd5b50610347610478366004613ae3565b611178565b34801561048957600080fd5b506103476111ff565b34801561049e57600080fd5b506103476104ad366004613cdc565b611253565b3480156104be57600080fd5b506011546012546104cd919082565b6040805192835260208301919091520161032b565b3480156104ee57600080fd5b506103216104fd366004613bd2565b6112fb565b610347610510366004613ef2565b6113a3565b34801561052157600080fd5b50610347610530366004613ae3565b611871565b34801561054157600080fd5b50610347610550366004613ea6565b61188c565b34801561056157600080fd5b50610321610570366004613e74565b611d06565b34801561058157600080fd5b50610347610590366004613a95565b611daa565b3480156105a157600080fd5b50601854421015610369565b3480156105b957600080fd5b50601954601a54601d546105cf9260ff16919083565b60408051931515845260208401929092529082015260600161032b565b3480156105f857600080fd5b50600b5460ff16610369565b34801561061057600080fd5b506103bb61061f366004613e74565b611e7b565b34801561063057600080fd5b5061034761063f366004613e2d565b611f06565b34801561065057600080fd5b5061032161065f366004613a95565b611fcc565b34801561067057600080fd5b50610347612066565b34801561068557600080fd5b506000546001600160a01b03166103bb565b3480156106a357600080fd5b5061032160185481565b3480156106b957600080fd5b5061038e6120ba565b3480156106ce57600080fd5b506103476106dd366004613b9b565b6120c9565b3480156106ee57600080fd5b506103216106fd366004613e74565b601e6020526000908152604090205481565b34801561071b57600080fd5b5061032160165481565b34801561073157600080fd5b506103bb610740366004613e74565b61218e565b34801561075157600080fd5b50610347610760366004613b1f565b6121b8565b34801561077157600080fd5b506015546103699060ff1681565b34801561078b57600080fd5b5061038e61079a366004613e74565b612246565b3480156107ab57600080fd5b50610321600e5481565b3480156107c157600080fd5b5061036961249d565b3480156107d657600080fd5b506104cd6107e5366004613a95565b6017602052600090815260409020805460019091015482565b34801561080a57600080fd5b50610347610819366004613d11565b6124b9565b34801561082a57600080fd5b50610321610839366004613f2a565b6125b6565b34801561084a57600080fd5b50610369610859366004613ab0565b6125f3565b34801561086a57600080fd5b50610347610879366004613f4c565b612645565b34801561088a57600080fd5b50610321612a08565b34801561089f57600080fd5b506103476108ae366004613a95565b612a66565b3480156108bf57600080fd5b506103476108ce366004613a95565b612b36565b60185442101561090f576040517f18f35a5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5460ff161561095a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064015b60405180910390fd5b33600090815260176020526040902080548411156109a4576040517f6152701b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6011546010546109b5908690614080565b11156109ed576040517fceb0993f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008482600101546109ff91906140ac565b9050803414610a21576040516354dc82ef60e01b815260040160405180910390fd5b80601654610a2f9190614080565b60165533600090815260176020526040902054610a4d9086906140cb565b336000908152601760205260408120919091558567ffffffffffffffff811115610a7957610a796141e6565b604051908082528060200260200182016040528015610aa2578160200160208202803683370190505b509050600085610ab25733610abf565b600f546001600160a01b03165b905060005b87811015610b0457610ad582612ba0565b838281518110610ae757610ae76141d0565b602090810291909101015280610afc81614149565b915050610ac4565b508515610bbd5760005b87811015610bbb57600f5483516001600160a01b0390911690633978aece90859084908110610b3f57610b3f6141d0565b60209081029190910101516040516001600160e01b031960e084901b168152600481019190915260248101899052336044820152606401600060405180830381600087803b158015610b9057600080fd5b505af1158015610ba4573d6000803e3d6000fd5b505050508080610bb390614149565b915050610b0e565b505b50505050505050565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610c045750610c0482612bd2565b92915050565b606060018054610c199061410e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c459061410e565b8015610c925780601f10610c6757610100808354040283529160200191610c92565b820191906000526020600020905b815481529060010190602001808311610c7557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610d155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b506000908152600560205260409020546001600160a01b031690565b6000610d3c82611e7b565b9050806001600160a01b0316836001600160a01b03161415610dc65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610951565b336001600160a01b0382161480610de25750610de281336125f3565b610e545760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610951565b610e5e8383612c6d565b505050565b6000546001600160a01b03163314610eab5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b601480546001810182556000919091528151610eee917fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec01906020840190613720565b5050565b600d8054610eff9061410e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2b9061410e565b8015610f785780601f10610f4d57610100808354040283529160200191610f78565b820191906000526020600020905b815481529060010190602001808311610f5b57829003601f168201915b505050505081565b6000546001600160a01b03163314610fc85760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b805182146110185760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368656420696e707574206c656e6774680000000000000000006044820152606401610951565b8167ffffffffffffffff811115611031576110316141e6565b60405190808252806020026020018201604052801561105a578160200160208202803683370190505b50805161106f91601f916020909101906137a4565b50805161108290602090818401906137f9565b5060005b82811015611103578383828181106110a0576110a06141d0565b90506020020160208101906110b59190613a95565b601f82815481106110c8576110c86141d0565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055806110fb81614149565b915050611086565b506000602060008154811061111a5761111a6141d0565b600091825260208220015491505b602054811015611171578160208281548110611146576111466141d0565b6000918252602090912001541461115f5761115f614178565b8061116981614149565b915050611128565b5050505050565b6111823382612cdb565b6111f45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610951565b610e5e838383612db2565b6000546001600160a01b031633146112475760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b6019805460ff19169055565b6000546001600160a01b0316331461129b5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b60005b8151811015610eee57601760008383815181106112bd576112bd6141d0565b6020908102919091018101516001600160a01b03168252810191909152604001600090812081815560010155806112f381614149565b91505061129e565b600061130683611fcc565b821061137a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610951565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6113ab61249d565b6113c8576040516334dc687f60e11b815260040160405180910390fd5b600b5460ff161561140e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610951565b6005831115611449576040517fdc61fc6500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001831015611484576040517f672d48cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60115460105411156114c2576040517f355a428100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114cc612a08565b90506000601960020182815481106114e6576114e66141d0565b9060005260206000200154905060006019600301838154811061150b5761150b6141d0565b6000918252602090912060028204015460019091166010026101000a90046fffffffffffffffffffffffffffffffff16905061154786836140ac565b341015611567576040516354dc82ef60e01b815260040160405180910390fd5b601254611575576010546012555b601054601154879160009161158a91906140cb565b611595906001614080565b90508781116115a2578091505b346000886115b057336115bd565b600f546001600160a01b03165b905060008467ffffffffffffffff8111156115da576115da6141e6565b604051908082528060200260200182016040528015611603578160200160208202803683370190505b50905060005b8581101561170d578760165461161f9190614080565b60165561162c88856140cb565b935061163783612ba0565b828281518110611649576116496141d0565b60209081029190910101526fffffffffffffffffffffffffffffffff8716156116fb57600f546040517fed61178d0000000000000000000000000000000000000000000000000000000081523360048201526fffffffffffffffffffffffffffffffff891660248201526001600160a01b039091169063ed61178d90604401600060405180830381600087803b1580156116e257600080fd5b505af11580156116f6573d6000803e3d6000fd5b505050505b8061170581614149565b915050611609565b50601154601054111561172257611722612f8a565b89156117da5760005b858110156117d857600f5482516001600160a01b0390911690633978aece9084908490811061175c5761175c6141d0565b60209081029190910101516040516001600160e01b031960e084901b1681526004810191909152602481018d9052336044820152606401600060405180830381600087803b1580156117ad57600080fd5b505af11580156117c1573d6000803e3d6000fd5b5050505080806117d090614149565b91505061172b565b505b821561186457604051600090339085908381818185875af1925050503d8060008114611822576040519150601f19603f3d011682016040523d82523d6000602084013e611827565b606091505b5050905080611862576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b5050505050505050505050565b610e5e838383604051806020016040528060008152506121b8565b600b5460ff16156118d25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610951565b336118dc84611e7b565b6001600160a01b03161461191c576040517fcf03598b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152601e60205260409020546001811015611938575060015b602060008154811061194c5761194c6141d0565b600091825260209091200154611963906001614080565b811061199b576040517f547ff9cc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060206000815481106119b1576119b16141d0565b600091825260208220015491505b81811015611b5d576000602082815481106119dc576119dc6141d0565b906000526020600020016001856119f391906140cb565b81548110611a0357611a036141d0565b9060005260206000200154905080868684818110611a2357611a236141d0565b9050602002013514611a61576040517f4f89bb4800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601f8381548110611a7557611a756141d0565b6000918252602090912001546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611ada57600080fd5b505afa158015611aee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b129190613e8d565b1015611b4a576040517fe1a08f8600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5080611b5581614149565b9150506119bf565b50611b69826001614080565b6000868152601e60205260408120919091555b81811015611cfe57601f8181548110611b9757611b976141d0565b6000918252602090912001546001600160a01b03166323b872dd3330888886818110611bc557611bc56141d0565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401602060405180830381600087803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c549190613da1565b50601f8181548110611c6857611c686141d0565b6000918252602090912001546001600160a01b03166342966c68868684818110611c9457611c946141d0565b905060200201356040518263ffffffff1660e01b8152600401611cb991815260200190565b600060405180830381600087803b158015611cd357600080fd5b505af1158015611ce7573d6000803e3d6000fd5b505050508080611cf690614149565b915050611b7c565b505050505050565b6000611d1160095490565b8210611d855760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610951565b60098281548110611d9857611d986141d0565b90600052602060002001549050919050565b6000546001600160a01b03163314611df25760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b601680546000918290556040517eaeef8a0000000000000000000000000000000000000000000000000000000081526014600482015260506024820152604481019290925282916001600160a01b0383169062aeef8a9083906064016000604051808303818588803b158015611e6757600080fd5b505af1158015610bbb573d6000803e3d6000fd5b6000818152600360205260408120546001600160a01b031680610c045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610951565b6000546001600160a01b03163314611f4e5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b60155460ff1615611f8b576040517fcb72e14900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6015805460ff191682151517905560148054839190600090611faf57611faf6141d0565b906000526020600020019080519060200190610e5e929190613720565b60006001600160a01b03821661204a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610951565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146120ae5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b6120b8600061301c565b565b606060028054610c199061410e565b6001600160a01b0382163314156121225760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610951565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601f818154811061219e57600080fd5b6000918252602090912001546001600160a01b0316905081565b6121c23383612cdb565b6122345760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610951565b6122408484848461306c565b50505050565b6000818152601e602052604090205460609060019081101561227357506000828152601e60205260409020545b6040805160208101909152600081526014546122906001846140cb565b101561234d5760146122a36001846140cb565b815481106122b3576122b36141d0565b9060005260206000200180546122c89061410e565b80601f01602080910402602001604051908101604052809291908181526020018280546122f49061410e565b80156123415780601f1061231657610100808354040283529160200191612341565b820191906000526020600020905b81548152906001019060200180831161232457829003601f168201915b50505050509050612403565b6014805461235d906001906140cb565b8154811061236d5761236d6141d0565b9060005260206000200180546123829061410e565b80601f01602080910402602001604051908101604052809291908181526020018280546123ae9061410e565b80156123fb5780601f106123d0576101008083540402835291602001916123fb565b820191906000526020600020905b8154815290600101906020018083116123de57829003601f168201915b505050505090505b805161242057505060408051602081019091526000815292915050565b83600581111561246957601154612439906005906140cb565b600e546124476006886140cb565b6124519190614080565b61245b9190614164565b612466906006614080565b90505b81612473826130f5565b604051602001612484929190613fad565b6040516020818303038152906040529350505050919050565b60195460009060ff1680156124b45750601a544210155b905090565b6000546001600160a01b031633146125015760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b60005b84518110156125ad57604051806040016040528085838151811061252a5761252a6141d0565b60200260200101518152602001848381518110612549576125496141d0565b60200260200101518152506017600087848151811061256a5761256a6141d0565b6020908102919091018101516001600160a01b031682528181019290925260400160002082518155910151600190910155806125a581614149565b915050612504565b50601855505050565b602082815481106125c657600080fd5b9060005260206000200181815481106125de57600080fd5b90600052602060002001600091509150505481565b600f546000906001600160a01b038381169116141561261457506001610c04565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b0316331461268d5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b601a8390556019805460ff19166001908117909155600b80546001600160a01b0384166101009081027fffffffffffffffffffffff0000000000000000000000000000000000000000ff90921691909117909155601b80548084018255670af6a4d07c8f00007f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc19182015581548085018355670905438e6001000090820155815480850183556707a1fe1602770000908201558154808501835567063eb89da4ed0000908201558154808501835567058d15e17628000090820155815480850183556704db7325476300009082015581548085018355670429d069189e000090820155815480850183556703782dace9d9000090820155815480850183556702c68af0bb1400009082015581548085018355670214e8348c4f000090820155815480850190925567011c37937e080000910155601c80548084018255600082905260028082047f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211908101805460109488168502870a69032d26d12e980b60000081026fffffffffffffffffffffffffffffffff918202199092169190911790915584548088018655838104830180549189168602880a69021e19e0c9bab240000081029084021990921691909117905584548088018655838104830180549189168602880a6901b1ae4d6e2ef500000081029084021990921691909117905584548088018655838104830180549189168602880a69014542ba12a337c0000081029084021990921691909117905584548088018655838104830180549189168602880a69010f0cf064dd5920000081029084021990921691909117905584548088018655838104830180549189168602880a68d8d726b7177a80000081029084021990921691909117905584548088018655838104830180549189168602880a68a2a15d09519be0000081029084021990921691909117905584548088018655838104830180549189168602880a686c6b935b8bbd40000081029084021990921691909117905584548088018655838104830180549189168602880a830219909116905584548088018655838104830180549189168602880a830219909116905584548088019095559184040180549390951690910290920a90910219169055601d829055612a00426312cc0300614080565b601855505050565b6000612a1261249d565b612a2f576040516334dc687f60e11b815260040160405180910390fd5b601a54600090612a3f90426140cb565b601d54909150600090612a529083614098565b9050600b8110612a605750600a5b91505090565b6000546001600160a01b03163314612aae5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b6001600160a01b038116612b2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610951565b612b338161301c565b50565b6000546001600160a01b03163314612b7e5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000612bae82601054613227565b60108054906000612bbe83614149565b91905055506001601054610c0491906140cb565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c3557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c0457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610c04565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ca282611e7b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316612d545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b6000612d5f83611e7b565b9050806001600160a01b0316846001600160a01b03161480612d9a5750836001600160a01b0316612d8f84610c9c565b6001600160a01b0316145b80612daa5750612daa81856125f3565b949350505050565b826001600160a01b0316612dc582611e7b565b6001600160a01b031614612e415760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610951565b6001600160a01b038216612ebc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610951565b612ec7838383613375565b612ed2600082612c6d565b6001600160a01b0383166000908152600460205260408120805460019290612efb9084906140cb565b90915550506001600160a01b0382166000908152600460205260408120805460019290612f29908490614080565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e5415612f9a57612f9a614178565b601154600090612fac906005906140cb565b905043612fba828240614164565b612fc5906005614080565b600e5560ff612fd482436140cb565b11156130005781612fe66001436140cb565b612ff1919040614164565b612ffc906005614080565b600e555b600e54610eee57600e54613015906005614080565b600e555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613077848484612db2565b6130838484848461342d565b6122405760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610951565b60608161313557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561315f578061314981614149565b91506131589050600a83614098565b9150613139565b60008167ffffffffffffffff81111561317a5761317a6141e6565b6040519080825280601f01601f1916602001820160405280156131a4576020820181803683370190505b5090505b8415612daa576131b96001836140cb565b91506131c6600a86614164565b6131d1906030614080565b60f81b8183815181106131e6576131e66141d0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613220600a86614098565b94506131a8565b6001600160a01b03821661327d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610951565b6000818152600360205260409020546001600160a01b0316156132e25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610951565b6132ee60008383613375565b6001600160a01b0382166000908152600460205260408120805460019290613317908490614080565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166133d0576133cb81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6133f3565b816001600160a01b0316836001600160a01b0316146133f3576133f38382613590565b6001600160a01b03821661340a57610e5e8161362d565b826001600160a01b0316826001600160a01b031614610e5e57610e5e82826136dc565b60006001600160a01b0384163b1561358557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613471903390899088908890600401613fdc565b602060405180830381600087803b15801561348b57600080fd5b505af19250505080156134bb575060408051601f3d908101601f191682019092526134b891810190613ddb565b60015b61356b573d8080156134e9576040519150601f19603f3d011682016040523d82523d6000602084013e6134ee565b606091505b5080516135635760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610951565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612daa565b506001949350505050565b6000600161359d84611fcc565b6135a791906140cb565b6000838152600860205260409020549091508082146135fa576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061363f906001906140cb565b6000838152600a602052604081205460098054939450909284908110613667576136676141d0565b906000526020600020015490508060098381548110613688576136886141d0565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806136c0576136c06141ba565b6001900381819060005260206000200160009055905550505050565b60006136e783611fcc565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461372c9061410e565b90600052602060002090601f01602090048101928261374e5760008555613794565b82601f1061376757805160ff1916838001178555613794565b82800160010185558215613794579182015b82811115613794578251825591602001919060010190613779565b506137a0929150613852565b5090565b828054828255906000526020600020908101928215613794579160200282015b8281111561379457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906137c4565b828054828255906000526020600020908101928215613846579160200282015b828111156138465782518051613836918491602090910190613867565b5091602001919060010190613819565b506137a09291506138a1565b5b808211156137a05760008155600101613853565b8280548282559060005260206000209081019282156137945791602002820182811115613794578251825591602001919060010190613779565b808211156137a05760006138b582826138be565b506001016138a1565b5080546000825590600052602060002090810190612b339190613852565b600067ffffffffffffffff8311156138f6576138f66141e6565b613909601f8401601f191660200161402b565b905082815283838301111561391d57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461394b57600080fd5b919050565b60008083601f84011261396257600080fd5b50813567ffffffffffffffff81111561397a57600080fd5b6020830191508360208260051b850101111561399557600080fd5b9250929050565b600082601f8301126139ad57600080fd5b813560206139c26139bd8361405c565b61402b565b80838252828201915082860187848660051b89010111156139e257600080fd5b60005b85811015613a08576139f682613934565b845292840192908401906001016139e5565b5090979650505050505050565b600082601f830112613a2657600080fd5b81356020613a366139bd8361405c565b80838252828201915082860187848660051b8901011115613a5657600080fd5b60005b85811015613a0857813584529284019290840190600101613a59565b600082601f830112613a8657600080fd5b61263e838335602085016138dc565b600060208284031215613aa757600080fd5b61263e82613934565b60008060408385031215613ac357600080fd5b613acc83613934565b9150613ada60208401613934565b90509250929050565b600080600060608486031215613af857600080fd5b613b0184613934565b9250613b0f60208501613934565b9150604084013590509250925092565b60008060008060808587031215613b3557600080fd5b613b3e85613934565b9350613b4c60208601613934565b925060408501359150606085013567ffffffffffffffff811115613b6f57600080fd5b8501601f81018713613b8057600080fd5b613b8f878235602084016138dc565b91505092959194509250565b60008060408385031215613bae57600080fd5b613bb783613934565b91506020830135613bc7816141fc565b809150509250929050565b60008060408385031215613be557600080fd5b613bee83613934565b946020939093013593505050565b600080600060408486031215613c1157600080fd5b833567ffffffffffffffff80821115613c2957600080fd5b613c3587838801613950565b9095509350602091508582013581811115613c4f57600080fd5b8601601f81018813613c6057600080fd5b8035613c6e6139bd8261405c565b8082825285820191508584018b878560051b8701011115613c8e57600080fd5b6000805b85811015613cc957823588811115613ca8578283fd5b613cb68f8b838b0101613a15565b8652509388019391880191600101613c92565b5050508096505050505050509250925092565b600060208284031215613cee57600080fd5b813567ffffffffffffffff811115613d0557600080fd5b612daa8482850161399c565b60008060008060808587031215613d2757600080fd5b843567ffffffffffffffff80821115613d3f57600080fd5b613d4b8883890161399c565b95506020870135915080821115613d6157600080fd5b613d6d88838901613a15565b94506040870135915080821115613d8357600080fd5b50613d9087828801613a15565b949793965093946060013593505050565b600060208284031215613db357600080fd5b815161263e816141fc565b600060208284031215613dd057600080fd5b813561263e8161420a565b600060208284031215613ded57600080fd5b815161263e8161420a565b600060208284031215613e0a57600080fd5b813567ffffffffffffffff811115613e2157600080fd5b612daa84828501613a75565b60008060408385031215613e4057600080fd5b823567ffffffffffffffff811115613e5757600080fd5b613e6385828601613a75565b9250506020830135613bc7816141fc565b600060208284031215613e8657600080fd5b5035919050565b600060208284031215613e9f57600080fd5b5051919050565b600080600060408486031215613ebb57600080fd5b83359250602084013567ffffffffffffffff811115613ed957600080fd5b613ee586828701613950565b9497909650939450505050565b600080600060608486031215613f0757600080fd5b833592506020840135613f19816141fc565b929592945050506040919091013590565b60008060408385031215613f3d57600080fd5b50508035926020909101359150565b600080600060608486031215613f6157600080fd5b8335925060208401359150613f7860408501613934565b90509250925092565b60008151808452613f998160208601602086016140e2565b601f01601f19169290920160200192915050565b60008351613fbf8184602088016140e2565b835190830190613fd38183602088016140e2565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261400e6080830184613f81565b9695505050505050565b60208152600061263e6020830184613f81565b604051601f8201601f1916810167ffffffffffffffff81118282101715614054576140546141e6565b604052919050565b600067ffffffffffffffff821115614076576140766141e6565b5060051b60200190565b600082198211156140935761409361418e565b500190565b6000826140a7576140a76141a4565b500490565b60008160001904831182151516156140c6576140c661418e565b500290565b6000828210156140dd576140dd61418e565b500390565b60005b838110156140fd5781810151838201526020016140e5565b838111156122405750506000910152565b600181811c9082168061412257607f821691505b6020821081141561414357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561415d5761415d61418e565b5060010190565b600082614173576141736141a4565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114612b3357600080fd5b6001600160e01b031981168114612b3357600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122068b21a981569e8fb3224fdcfaa1d2401766b3b134dc1d9649aae63d19599229764736f6c63430008060033000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000015b30000000000000000000000004e74eb954f684817e98d9e597468344fbb904bc700000000000000000000000008040b86837f0a78a9b05d5b64d6bd37aaa900ad00000000000000000000000043b9ad9992530497bd1c22fc8d4c50f01a5c29420000000000000000000000002eeaea320d55980d0b04dccf85a6f9f8392622c900000000000000000000000042bb8a7b85c0db7b68a13d66bca5e25d622f3cc800000000000000000000000000000000000000000000000000000000000001800000000000000000000000002dae8d764aae3610d75097576cb0d6ca001317eb0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6234747965504e314e456567314d4478324567736469734e39655376444e3851317643686256446f4e5862452f00000000000000000000000000000000000000000000000000000000000000000000000000000000004032326465636163326131656266663965656230363239356138373730663238373564323561616366373965623465616236616432396362623664643830316636
Deployed Bytecode
0x6080604052600436106103065760003560e01c80636352211e1161019a578063c01628a0116100e1578063dff758601161008a578063eb91d37e11610064578063eb91d37e1461087e578063f2fde38b14610893578063f4e0d9ac146108b357600080fd5b8063dff758601461081e578063e985e9c51461083e578063ea9ce5b01461085e57600080fd5b8063d1b4b9a3116100bb578063d1b4b9a3146107b5578063da9425e2146107ca578063dfd96648146107fe57600080fd5b8063c01628a014610765578063c87b56dd1461077f578063cb774d471461079f57600080fd5b806395d89b4111610143578063b69ef8a81161011d578063b69ef8a81461070f578063b7e5e41414610725578063b88d4fde1461074557600080fd5b806395d89b41146106ad578063a22cb465146106c2578063b2596a67146106e257600080fd5b8063715018a611610174578063715018a6146106645780638da5cb5b146106795780639292caaf1461069757600080fd5b80636352211e146106045780636d8185601461062457806370a082311461064457600080fd5b8063269b9a081161025e578063464e494c11610207578063524513d6116101e1578063524513d61461059557806355d64d03146105ad5780635c975abb146105ec57600080fd5b8063464e494c146105355780634f6ccce71461055557806351cff8d91461057557600080fd5b80632f745c59116102385780632f745c59146104e25780634160db3d1461050257806342842e0e1461051557600080fd5b8063269b9a081461047d578063281bd798146104925780632b291058146104b257600080fd5b8063095ea7b3116102c057806318160ddd1161029a57806318160ddd146104285780631bf201471461043d57806323b872dd1461045d57600080fd5b8063095ea7b3146103d35780630a2fe940146103f35780630f7309e81461041357600080fd5b806301ffc9a7116102f157806301ffc9a71461034957806306fdde0314610379578063081812fc1461039b57600080fd5b80629a9b7b1461030b578062f5a22714610334575b600080fd5b34801561031757600080fd5b5061032160105481565b6040519081526020015b60405180910390f35b610347610342366004613ef2565b6108d3565b005b34801561035557600080fd5b50610369610364366004613dbe565b610bc6565b604051901515815260200161032b565b34801561038557600080fd5b5061038e610c0a565b60405161032b9190614018565b3480156103a757600080fd5b506103bb6103b6366004613e74565b610c9c565b6040516001600160a01b03909116815260200161032b565b3480156103df57600080fd5b506103476103ee366004613bd2565b610d31565b3480156103ff57600080fd5b5061034761040e366004613df8565b610e63565b34801561041f57600080fd5b5061038e610ef2565b34801561043457600080fd5b50600954610321565b34801561044957600080fd5b50610347610458366004613bfc565b610f80565b34801561046957600080fd5b50610347610478366004613ae3565b611178565b34801561048957600080fd5b506103476111ff565b34801561049e57600080fd5b506103476104ad366004613cdc565b611253565b3480156104be57600080fd5b506011546012546104cd919082565b6040805192835260208301919091520161032b565b3480156104ee57600080fd5b506103216104fd366004613bd2565b6112fb565b610347610510366004613ef2565b6113a3565b34801561052157600080fd5b50610347610530366004613ae3565b611871565b34801561054157600080fd5b50610347610550366004613ea6565b61188c565b34801561056157600080fd5b50610321610570366004613e74565b611d06565b34801561058157600080fd5b50610347610590366004613a95565b611daa565b3480156105a157600080fd5b50601854421015610369565b3480156105b957600080fd5b50601954601a54601d546105cf9260ff16919083565b60408051931515845260208401929092529082015260600161032b565b3480156105f857600080fd5b50600b5460ff16610369565b34801561061057600080fd5b506103bb61061f366004613e74565b611e7b565b34801561063057600080fd5b5061034761063f366004613e2d565b611f06565b34801561065057600080fd5b5061032161065f366004613a95565b611fcc565b34801561067057600080fd5b50610347612066565b34801561068557600080fd5b506000546001600160a01b03166103bb565b3480156106a357600080fd5b5061032160185481565b3480156106b957600080fd5b5061038e6120ba565b3480156106ce57600080fd5b506103476106dd366004613b9b565b6120c9565b3480156106ee57600080fd5b506103216106fd366004613e74565b601e6020526000908152604090205481565b34801561071b57600080fd5b5061032160165481565b34801561073157600080fd5b506103bb610740366004613e74565b61218e565b34801561075157600080fd5b50610347610760366004613b1f565b6121b8565b34801561077157600080fd5b506015546103699060ff1681565b34801561078b57600080fd5b5061038e61079a366004613e74565b612246565b3480156107ab57600080fd5b50610321600e5481565b3480156107c157600080fd5b5061036961249d565b3480156107d657600080fd5b506104cd6107e5366004613a95565b6017602052600090815260409020805460019091015482565b34801561080a57600080fd5b50610347610819366004613d11565b6124b9565b34801561082a57600080fd5b50610321610839366004613f2a565b6125b6565b34801561084a57600080fd5b50610369610859366004613ab0565b6125f3565b34801561086a57600080fd5b50610347610879366004613f4c565b612645565b34801561088a57600080fd5b50610321612a08565b34801561089f57600080fd5b506103476108ae366004613a95565b612a66565b3480156108bf57600080fd5b506103476108ce366004613a95565b612b36565b60185442101561090f576040517f18f35a5f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5460ff161561095a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064015b60405180910390fd5b33600090815260176020526040902080548411156109a4576040517f6152701b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6011546010546109b5908690614080565b11156109ed576040517fceb0993f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008482600101546109ff91906140ac565b9050803414610a21576040516354dc82ef60e01b815260040160405180910390fd5b80601654610a2f9190614080565b60165533600090815260176020526040902054610a4d9086906140cb565b336000908152601760205260408120919091558567ffffffffffffffff811115610a7957610a796141e6565b604051908082528060200260200182016040528015610aa2578160200160208202803683370190505b509050600085610ab25733610abf565b600f546001600160a01b03165b905060005b87811015610b0457610ad582612ba0565b838281518110610ae757610ae76141d0565b602090810291909101015280610afc81614149565b915050610ac4565b508515610bbd5760005b87811015610bbb57600f5483516001600160a01b0390911690633978aece90859084908110610b3f57610b3f6141d0565b60209081029190910101516040516001600160e01b031960e084901b168152600481019190915260248101899052336044820152606401600060405180830381600087803b158015610b9057600080fd5b505af1158015610ba4573d6000803e3d6000fd5b505050508080610bb390614149565b915050610b0e565b505b50505050505050565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610c045750610c0482612bd2565b92915050565b606060018054610c199061410e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c459061410e565b8015610c925780601f10610c6757610100808354040283529160200191610c92565b820191906000526020600020905b815481529060010190602001808311610c7557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610d155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b506000908152600560205260409020546001600160a01b031690565b6000610d3c82611e7b565b9050806001600160a01b0316836001600160a01b03161415610dc65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610951565b336001600160a01b0382161480610de25750610de281336125f3565b610e545760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610951565b610e5e8383612c6d565b505050565b6000546001600160a01b03163314610eab5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b601480546001810182556000919091528151610eee917fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec01906020840190613720565b5050565b600d8054610eff9061410e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2b9061410e565b8015610f785780601f10610f4d57610100808354040283529160200191610f78565b820191906000526020600020905b815481529060010190602001808311610f5b57829003601f168201915b505050505081565b6000546001600160a01b03163314610fc85760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b805182146110185760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368656420696e707574206c656e6774680000000000000000006044820152606401610951565b8167ffffffffffffffff811115611031576110316141e6565b60405190808252806020026020018201604052801561105a578160200160208202803683370190505b50805161106f91601f916020909101906137a4565b50805161108290602090818401906137f9565b5060005b82811015611103578383828181106110a0576110a06141d0565b90506020020160208101906110b59190613a95565b601f82815481106110c8576110c86141d0565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055806110fb81614149565b915050611086565b506000602060008154811061111a5761111a6141d0565b600091825260208220015491505b602054811015611171578160208281548110611146576111466141d0565b6000918252602090912001541461115f5761115f614178565b8061116981614149565b915050611128565b5050505050565b6111823382612cdb565b6111f45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610951565b610e5e838383612db2565b6000546001600160a01b031633146112475760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b6019805460ff19169055565b6000546001600160a01b0316331461129b5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b60005b8151811015610eee57601760008383815181106112bd576112bd6141d0565b6020908102919091018101516001600160a01b03168252810191909152604001600090812081815560010155806112f381614149565b91505061129e565b600061130683611fcc565b821061137a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610951565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6113ab61249d565b6113c8576040516334dc687f60e11b815260040160405180910390fd5b600b5460ff161561140e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610951565b6005831115611449576040517fdc61fc6500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001831015611484576040517f672d48cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60115460105411156114c2576040517f355a428100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006114cc612a08565b90506000601960020182815481106114e6576114e66141d0565b9060005260206000200154905060006019600301838154811061150b5761150b6141d0565b6000918252602090912060028204015460019091166010026101000a90046fffffffffffffffffffffffffffffffff16905061154786836140ac565b341015611567576040516354dc82ef60e01b815260040160405180910390fd5b601254611575576010546012555b601054601154879160009161158a91906140cb565b611595906001614080565b90508781116115a2578091505b346000886115b057336115bd565b600f546001600160a01b03165b905060008467ffffffffffffffff8111156115da576115da6141e6565b604051908082528060200260200182016040528015611603578160200160208202803683370190505b50905060005b8581101561170d578760165461161f9190614080565b60165561162c88856140cb565b935061163783612ba0565b828281518110611649576116496141d0565b60209081029190910101526fffffffffffffffffffffffffffffffff8716156116fb57600f546040517fed61178d0000000000000000000000000000000000000000000000000000000081523360048201526fffffffffffffffffffffffffffffffff891660248201526001600160a01b039091169063ed61178d90604401600060405180830381600087803b1580156116e257600080fd5b505af11580156116f6573d6000803e3d6000fd5b505050505b8061170581614149565b915050611609565b50601154601054111561172257611722612f8a565b89156117da5760005b858110156117d857600f5482516001600160a01b0390911690633978aece9084908490811061175c5761175c6141d0565b60209081029190910101516040516001600160e01b031960e084901b1681526004810191909152602481018d9052336044820152606401600060405180830381600087803b1580156117ad57600080fd5b505af11580156117c1573d6000803e3d6000fd5b5050505080806117d090614149565b91505061172b565b505b821561186457604051600090339085908381818185875af1925050503d8060008114611822576040519150601f19603f3d011682016040523d82523d6000602084013e611827565b606091505b5050905080611862576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b5050505050505050505050565b610e5e838383604051806020016040528060008152506121b8565b600b5460ff16156118d25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610951565b336118dc84611e7b565b6001600160a01b03161461191c576040517fcf03598b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838152601e60205260409020546001811015611938575060015b602060008154811061194c5761194c6141d0565b600091825260209091200154611963906001614080565b811061199b576040517f547ff9cc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060206000815481106119b1576119b16141d0565b600091825260208220015491505b81811015611b5d576000602082815481106119dc576119dc6141d0565b906000526020600020016001856119f391906140cb565b81548110611a0357611a036141d0565b9060005260206000200154905080868684818110611a2357611a236141d0565b9050602002013514611a61576040517f4f89bb4800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601f8381548110611a7557611a756141d0565b6000918252602090912001546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611ada57600080fd5b505afa158015611aee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b129190613e8d565b1015611b4a576040517fe1a08f8600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5080611b5581614149565b9150506119bf565b50611b69826001614080565b6000868152601e60205260408120919091555b81811015611cfe57601f8181548110611b9757611b976141d0565b6000918252602090912001546001600160a01b03166323b872dd3330888886818110611bc557611bc56141d0565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401602060405180830381600087803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c549190613da1565b50601f8181548110611c6857611c686141d0565b6000918252602090912001546001600160a01b03166342966c68868684818110611c9457611c946141d0565b905060200201356040518263ffffffff1660e01b8152600401611cb991815260200190565b600060405180830381600087803b158015611cd357600080fd5b505af1158015611ce7573d6000803e3d6000fd5b505050508080611cf690614149565b915050611b7c565b505050505050565b6000611d1160095490565b8210611d855760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610951565b60098281548110611d9857611d986141d0565b90600052602060002001549050919050565b6000546001600160a01b03163314611df25760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b601680546000918290556040517eaeef8a0000000000000000000000000000000000000000000000000000000081526014600482015260506024820152604481019290925282916001600160a01b0383169062aeef8a9083906064016000604051808303818588803b158015611e6757600080fd5b505af1158015610bbb573d6000803e3d6000fd5b6000818152600360205260408120546001600160a01b031680610c045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610951565b6000546001600160a01b03163314611f4e5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b60155460ff1615611f8b576040517fcb72e14900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6015805460ff191682151517905560148054839190600090611faf57611faf6141d0565b906000526020600020019080519060200190610e5e929190613720565b60006001600160a01b03821661204a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610951565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146120ae5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b6120b8600061301c565b565b606060028054610c199061410e565b6001600160a01b0382163314156121225760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610951565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601f818154811061219e57600080fd5b6000918252602090912001546001600160a01b0316905081565b6121c23383612cdb565b6122345760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610951565b6122408484848461306c565b50505050565b6000818152601e602052604090205460609060019081101561227357506000828152601e60205260409020545b6040805160208101909152600081526014546122906001846140cb565b101561234d5760146122a36001846140cb565b815481106122b3576122b36141d0565b9060005260206000200180546122c89061410e565b80601f01602080910402602001604051908101604052809291908181526020018280546122f49061410e565b80156123415780601f1061231657610100808354040283529160200191612341565b820191906000526020600020905b81548152906001019060200180831161232457829003601f168201915b50505050509050612403565b6014805461235d906001906140cb565b8154811061236d5761236d6141d0565b9060005260206000200180546123829061410e565b80601f01602080910402602001604051908101604052809291908181526020018280546123ae9061410e565b80156123fb5780601f106123d0576101008083540402835291602001916123fb565b820191906000526020600020905b8154815290600101906020018083116123de57829003601f168201915b505050505090505b805161242057505060408051602081019091526000815292915050565b83600581111561246957601154612439906005906140cb565b600e546124476006886140cb565b6124519190614080565b61245b9190614164565b612466906006614080565b90505b81612473826130f5565b604051602001612484929190613fad565b6040516020818303038152906040529350505050919050565b60195460009060ff1680156124b45750601a544210155b905090565b6000546001600160a01b031633146125015760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b60005b84518110156125ad57604051806040016040528085838151811061252a5761252a6141d0565b60200260200101518152602001848381518110612549576125496141d0565b60200260200101518152506017600087848151811061256a5761256a6141d0565b6020908102919091018101516001600160a01b031682528181019290925260400160002082518155910151600190910155806125a581614149565b915050612504565b50601855505050565b602082815481106125c657600080fd5b9060005260206000200181815481106125de57600080fd5b90600052602060002001600091509150505481565b600f546000906001600160a01b038381169116141561261457506001610c04565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b0316331461268d5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b601a8390556019805460ff19166001908117909155600b80546001600160a01b0384166101009081027fffffffffffffffffffffff0000000000000000000000000000000000000000ff90921691909117909155601b80548084018255670af6a4d07c8f00007f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc19182015581548085018355670905438e6001000090820155815480850183556707a1fe1602770000908201558154808501835567063eb89da4ed0000908201558154808501835567058d15e17628000090820155815480850183556704db7325476300009082015581548085018355670429d069189e000090820155815480850183556703782dace9d9000090820155815480850183556702c68af0bb1400009082015581548085018355670214e8348c4f000090820155815480850190925567011c37937e080000910155601c80548084018255600082905260028082047f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211908101805460109488168502870a69032d26d12e980b60000081026fffffffffffffffffffffffffffffffff918202199092169190911790915584548088018655838104830180549189168602880a69021e19e0c9bab240000081029084021990921691909117905584548088018655838104830180549189168602880a6901b1ae4d6e2ef500000081029084021990921691909117905584548088018655838104830180549189168602880a69014542ba12a337c0000081029084021990921691909117905584548088018655838104830180549189168602880a69010f0cf064dd5920000081029084021990921691909117905584548088018655838104830180549189168602880a68d8d726b7177a80000081029084021990921691909117905584548088018655838104830180549189168602880a68a2a15d09519be0000081029084021990921691909117905584548088018655838104830180549189168602880a686c6b935b8bbd40000081029084021990921691909117905584548088018655838104830180549189168602880a830219909116905584548088018655838104830180549189168602880a830219909116905584548088019095559184040180549390951690910290920a90910219169055601d829055612a00426312cc0300614080565b601855505050565b6000612a1261249d565b612a2f576040516334dc687f60e11b815260040160405180910390fd5b601a54600090612a3f90426140cb565b601d54909150600090612a529083614098565b9050600b8110612a605750600a5b91505090565b6000546001600160a01b03163314612aae5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b6001600160a01b038116612b2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610951565b612b338161301c565b50565b6000546001600160a01b03163314612b7e5760405162461bcd60e51b815260206004820181905260248201526000805160206142218339815191526044820152606401610951565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000612bae82601054613227565b60108054906000612bbe83614149565b91905055506001601054610c0491906140cb565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612c3557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c0457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610c04565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612ca282611e7b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316612d545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b6000612d5f83611e7b565b9050806001600160a01b0316846001600160a01b03161480612d9a5750836001600160a01b0316612d8f84610c9c565b6001600160a01b0316145b80612daa5750612daa81856125f3565b949350505050565b826001600160a01b0316612dc582611e7b565b6001600160a01b031614612e415760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610951565b6001600160a01b038216612ebc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610951565b612ec7838383613375565b612ed2600082612c6d565b6001600160a01b0383166000908152600460205260408120805460019290612efb9084906140cb565b90915550506001600160a01b0382166000908152600460205260408120805460019290612f29908490614080565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e5415612f9a57612f9a614178565b601154600090612fac906005906140cb565b905043612fba828240614164565b612fc5906005614080565b600e5560ff612fd482436140cb565b11156130005781612fe66001436140cb565b612ff1919040614164565b612ffc906005614080565b600e555b600e54610eee57600e54613015906005614080565b600e555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b613077848484612db2565b6130838484848461342d565b6122405760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610951565b60608161313557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561315f578061314981614149565b91506131589050600a83614098565b9150613139565b60008167ffffffffffffffff81111561317a5761317a6141e6565b6040519080825280601f01601f1916602001820160405280156131a4576020820181803683370190505b5090505b8415612daa576131b96001836140cb565b91506131c6600a86614164565b6131d1906030614080565b60f81b8183815181106131e6576131e66141d0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613220600a86614098565b94506131a8565b6001600160a01b03821661327d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610951565b6000818152600360205260409020546001600160a01b0316156132e25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610951565b6132ee60008383613375565b6001600160a01b0382166000908152600460205260408120805460019290613317908490614080565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166133d0576133cb81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6133f3565b816001600160a01b0316836001600160a01b0316146133f3576133f38382613590565b6001600160a01b03821661340a57610e5e8161362d565b826001600160a01b0316826001600160a01b031614610e5e57610e5e82826136dc565b60006001600160a01b0384163b1561358557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613471903390899088908890600401613fdc565b602060405180830381600087803b15801561348b57600080fd5b505af19250505080156134bb575060408051601f3d908101601f191682019092526134b891810190613ddb565b60015b61356b573d8080156134e9576040519150601f19603f3d011682016040523d82523d6000602084013e6134ee565b606091505b5080516135635760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610951565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612daa565b506001949350505050565b6000600161359d84611fcc565b6135a791906140cb565b6000838152600860205260409020549091508082146135fa576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061363f906001906140cb565b6000838152600a602052604081205460098054939450909284908110613667576136676141d0565b906000526020600020015490508060098381548110613688576136886141d0565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806136c0576136c06141ba565b6001900381819060005260206000200160009055905550505050565b60006136e783611fcc565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b82805461372c9061410e565b90600052602060002090601f01602090048101928261374e5760008555613794565b82601f1061376757805160ff1916838001178555613794565b82800160010185558215613794579182015b82811115613794578251825591602001919060010190613779565b506137a0929150613852565b5090565b828054828255906000526020600020908101928215613794579160200282015b8281111561379457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906137c4565b828054828255906000526020600020908101928215613846579160200282015b828111156138465782518051613836918491602090910190613867565b5091602001919060010190613819565b506137a09291506138a1565b5b808211156137a05760008155600101613853565b8280548282559060005260206000209081019282156137945791602002820182811115613794578251825591602001919060010190613779565b808211156137a05760006138b582826138be565b506001016138a1565b5080546000825590600052602060002090810190612b339190613852565b600067ffffffffffffffff8311156138f6576138f66141e6565b613909601f8401601f191660200161402b565b905082815283838301111561391d57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461394b57600080fd5b919050565b60008083601f84011261396257600080fd5b50813567ffffffffffffffff81111561397a57600080fd5b6020830191508360208260051b850101111561399557600080fd5b9250929050565b600082601f8301126139ad57600080fd5b813560206139c26139bd8361405c565b61402b565b80838252828201915082860187848660051b89010111156139e257600080fd5b60005b85811015613a08576139f682613934565b845292840192908401906001016139e5565b5090979650505050505050565b600082601f830112613a2657600080fd5b81356020613a366139bd8361405c565b80838252828201915082860187848660051b8901011115613a5657600080fd5b60005b85811015613a0857813584529284019290840190600101613a59565b600082601f830112613a8657600080fd5b61263e838335602085016138dc565b600060208284031215613aa757600080fd5b61263e82613934565b60008060408385031215613ac357600080fd5b613acc83613934565b9150613ada60208401613934565b90509250929050565b600080600060608486031215613af857600080fd5b613b0184613934565b9250613b0f60208501613934565b9150604084013590509250925092565b60008060008060808587031215613b3557600080fd5b613b3e85613934565b9350613b4c60208601613934565b925060408501359150606085013567ffffffffffffffff811115613b6f57600080fd5b8501601f81018713613b8057600080fd5b613b8f878235602084016138dc565b91505092959194509250565b60008060408385031215613bae57600080fd5b613bb783613934565b91506020830135613bc7816141fc565b809150509250929050565b60008060408385031215613be557600080fd5b613bee83613934565b946020939093013593505050565b600080600060408486031215613c1157600080fd5b833567ffffffffffffffff80821115613c2957600080fd5b613c3587838801613950565b9095509350602091508582013581811115613c4f57600080fd5b8601601f81018813613c6057600080fd5b8035613c6e6139bd8261405c565b8082825285820191508584018b878560051b8701011115613c8e57600080fd5b6000805b85811015613cc957823588811115613ca8578283fd5b613cb68f8b838b0101613a15565b8652509388019391880191600101613c92565b5050508096505050505050509250925092565b600060208284031215613cee57600080fd5b813567ffffffffffffffff811115613d0557600080fd5b612daa8482850161399c565b60008060008060808587031215613d2757600080fd5b843567ffffffffffffffff80821115613d3f57600080fd5b613d4b8883890161399c565b95506020870135915080821115613d6157600080fd5b613d6d88838901613a15565b94506040870135915080821115613d8357600080fd5b50613d9087828801613a15565b949793965093946060013593505050565b600060208284031215613db357600080fd5b815161263e816141fc565b600060208284031215613dd057600080fd5b813561263e8161420a565b600060208284031215613ded57600080fd5b815161263e8161420a565b600060208284031215613e0a57600080fd5b813567ffffffffffffffff811115613e2157600080fd5b612daa84828501613a75565b60008060408385031215613e4057600080fd5b823567ffffffffffffffff811115613e5757600080fd5b613e6385828601613a75565b9250506020830135613bc7816141fc565b600060208284031215613e8657600080fd5b5035919050565b600060208284031215613e9f57600080fd5b5051919050565b600080600060408486031215613ebb57600080fd5b83359250602084013567ffffffffffffffff811115613ed957600080fd5b613ee586828701613950565b9497909650939450505050565b600080600060608486031215613f0757600080fd5b833592506020840135613f19816141fc565b929592945050506040919091013590565b60008060408385031215613f3d57600080fd5b50508035926020909101359150565b600080600060608486031215613f6157600080fd5b8335925060208401359150613f7860408501613934565b90509250925092565b60008151808452613f998160208601602086016140e2565b601f01601f19169290920160200192915050565b60008351613fbf8184602088016140e2565b835190830190613fd38183602088016140e2565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261400e6080830184613f81565b9695505050505050565b60208152600061263e6020830184613f81565b604051601f8201601f1916810167ffffffffffffffff81118282101715614054576140546141e6565b604052919050565b600067ffffffffffffffff821115614076576140766141e6565b5060051b60200190565b600082198211156140935761409361418e565b500190565b6000826140a7576140a76141a4565b500490565b60008160001904831182151516156140c6576140c661418e565b500290565b6000828210156140dd576140dd61418e565b500390565b60005b838110156140fd5781810151838201526020016140e5565b838111156122405750506000910152565b600181811c9082168061412257607f821691505b6020821081141561414357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561415d5761415d61418e565b5060010190565b600082614173576141736141a4565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114612b3357600080fd5b6001600160e01b031981168114612b3357600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122068b21a981569e8fb3224fdcfaa1d2401766b3b134dc1d9649aae63d19599229764736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000015b30000000000000000000000004e74eb954f684817e98d9e597468344fbb904bc700000000000000000000000008040b86837f0a78a9b05d5b64d6bd37aaa900ad00000000000000000000000043b9ad9992530497bd1c22fc8d4c50f01a5c29420000000000000000000000002eeaea320d55980d0b04dccf85a6f9f8392622c900000000000000000000000042bb8a7b85c0db7b68a13d66bca5e25d622f3cc800000000000000000000000000000000000000000000000000000000000001800000000000000000000000002dae8d764aae3610d75097576cb0d6ca001317eb0000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6234747965504e314e456567314d4478324567736469734e39655376444e3851317643686256446f4e5862452f00000000000000000000000000000000000000000000000000000000000000000000000000000000004032326465636163326131656266663965656230363239356138373730663238373564323561616366373965623465616236616432396362623664643830316636
-----Decoded View---------------
Arg [0] : _tokenBaseURI (string): ipfs://Qmb4tyePN1NEeg1MDx2EgsdisN9eSvDN8Q1vChbVDoNXbE/
Arg [1] : _maxTokenId (uint256): 5555
Arg [2] : _founderAddresses (address[5]): 0x4e74Eb954f684817e98D9E597468344FBb904Bc7,0x08040b86837f0a78a9b05D5B64d6bd37AAa900Ad,0x43B9ad9992530497bd1c22FC8d4c50f01A5C2942,0x2EeaEa320D55980D0B04DCCF85A6F9F8392622C9,0x42bB8A7b85c0dB7B68A13D66BCA5E25D622f3cc8
Arg [3] : _provenance (string): 22decac2a1ebff9eeb06295a8770f2875d25aacf79eb4eab6ad29cbb6dd801f6
Arg [4] : _gameTreasuryAddress (address): 0x2daE8d764aAE3610D75097576cB0D6cA001317eB
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 00000000000000000000000000000000000000000000000000000000000015b3
Arg [2] : 0000000000000000000000004e74eb954f684817e98d9e597468344fbb904bc7
Arg [3] : 00000000000000000000000008040b86837f0a78a9b05d5b64d6bd37aaa900ad
Arg [4] : 00000000000000000000000043b9ad9992530497bd1c22fc8d4c50f01a5c2942
Arg [5] : 0000000000000000000000002eeaea320d55980d0b04dccf85a6f9f8392622c9
Arg [6] : 00000000000000000000000042bb8a7b85c0db7b68a13d66bca5e25d622f3cc8
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [8] : 0000000000000000000000002dae8d764aae3610d75097576cb0d6ca001317eb
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [10] : 697066733a2f2f516d6234747965504e314e456567314d447832456773646973
Arg [11] : 4e39655376444e3851317643686256446f4e5862452f00000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [13] : 3232646563616332613165626666396565623036323935613837373066323837
Arg [14] : 3564323561616366373965623465616236616432396362623664643830316636
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.