Overview
CRO Balance
CRO Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 216 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Pay Champion | 18032214 | 2 days ago | IN | 0 CRO | 1.01009549 | ||||
Destroy Lives | 18031807 | 2 days ago | IN | 0 CRO | 0.8049801 | ||||
Destroy Lives | 18031487 | 2 days ago | IN | 0 CRO | 0.6666404 | ||||
Destroy Lives | 18031167 | 2 days ago | IN | 0 CRO | 0.8049801 | ||||
Destroy Lives | 18030847 | 2 days ago | IN | 0 CRO | 0.8049801 | ||||
Destroy Lives | 18030526 | 2 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18030186 | 2 days ago | IN | 0 CRO | 0.6666404 | ||||
Destroy Lives | 18030164 | 2 days ago | IN | 0 CRO | 0.79996545 | ||||
Destroy Lives | 18029825 | 2 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18029485 | 2 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18029145 | 2 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18028825 | 2 days ago | IN | 0 CRO | 0.8049801 | ||||
Destroy Lives | 18028484 | 2 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18028164 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18027822 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18027480 | 3 days ago | IN | 0 CRO | 0.6666404 | ||||
Destroy Lives | 18027159 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18026839 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18026497 | 3 days ago | IN | 0 CRO | 0.8049801 | ||||
Destroy Lives | 18026156 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18025837 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18025495 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18025175 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18024855 | 3 days ago | IN | 0 CRO | 0.7186251 | ||||
Destroy Lives | 18024535 | 3 days ago | IN | 0 CRO | 0.7186251 |
Loading...
Loading
Contract Name:
PlaygroundMemeV4
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; contract PlaygroundMemeV4 is ERC721Enumerable, Ownable, IERC721Receiver { address public trashCan; address public devWallet; constructor( address _trashCan, address _devWallet, address _owner ) ERC721("PlaygroundMeme", "PGM") Ownable(_owner) { trashCan = _trashCan; devWallet = _devWallet; } /** Events :O */ event LifeMinted(address minter, address toPlayer, uint256 lifeId); event LifeDestroyed(address owner, uint256 lifeId, uint256 roundsSurvived); event LifeRewarded(address owner, uint256 lifeId, uint256 roundsSurvived); event LifeRegistered(address owner, uint256 lifeId); event CoinSent( address coinAddress, address from, address to, uint256 amount ); /** Structs ;) */ uint256 public eliminationRate = 50; // Rate at which Lives get destroyed uint256 public roundTime = 1800; // Seconds in between rounds uint256 public roundCount; // Amount of rounds uint256 public lastRoundStartTime; // Last round start time bool public isInProgress; // Playground in progress or not uint256 public devMintFee = 30; // 30% baseline mint fee address public playgroundWinner; // Winner of the Playground uint256 private seed = 8008; // Seed for random function uint256 private lifeCap = 15000; // Maximum amount of Lives mapping(address => uint256) public CoinMintPriceMap; mapping(address => uint256) public CoinPrizePoolMap; address[] public Coins; struct Life { uint256 roundsSurvived; address owner; } /** onlyOwner functions >:] */ // Setters bool public mintState; mapping(address => bool) public gameMasters; function setMintState(bool _state) external onlyOwner { mintState = _state; } function setGameMaster(address _add, bool _auth) external onlyOwner { require(_add != address(0), "null addr"); gameMasters[_add] = _auth; } // 30 = 30% // 10 = 10% function setDevMintFee(uint256 _fee) external onlyOwner { require(_fee >= 0, "Fee must be greater than 0"); devMintFee = _fee; } function setLifeCap(uint256 _cap) external onlyOwner { require(_cap > 0, "Cap must be greater than 0"); lifeCap = _cap; } function setPlaygroundSettings( uint256 _eliminationRate, // Lives destroyed every round ex: 50 = 2%, 100 = 1%, 200 = 0.5% uint256 _roundTime // Seconds before next round can begin ) external onlyOwner { isNotStarted(); // Playground must not be in progress eliminationRate = _eliminationRate; roundTime = _roundTime; } // Used to set the minting using specific coins // Must be used on a coin already added to list using addCoin function setCoinMintPrice( address _coinAddress, uint256 _coinMintPrice ) external onlyOwner { require(_coinMintPrice > 0, "_coinMintPrice must be greater than 0"); require(_coinAddress != address(0), "_coinAddress must not be null"); require( CoinMintPriceMap[_coinAddress] > 0, "_coinAddress must already exist in map" ); // Add price to mapping CoinMintPriceMap[_coinAddress] = _coinMintPrice; } function addCoin( address _coinAddress, uint256 _coinMintPrice ) external onlyOwner { require(_coinMintPrice > 0, "_coinMintPrice must be greater than 0"); require(_coinAddress != address(0), "_coinAddress must not be null"); require( CoinMintPriceMap[_coinAddress] == 0, "_coinAddress must be new" ); // Add _coinAddress to mapping CoinMintPriceMap[_coinAddress] = _coinMintPrice; // Add _coinAddress to list of available coins Coins.push(_coinAddress); } function removeCoin(address _coinAddress) external onlyOwner { require(CoinMintPriceMap[_coinAddress] > 0, "_coinAddress must exist"); // Remove _coinAddress from mapping delete CoinMintPriceMap[_coinAddress]; // Remove _coinAddress from list of available coins for (uint256 i = 0; i < Coins.length; i++) { if (Coins[i] == _coinAddress) { Coins[i] = Coins[Coins.length - 1]; Coins.pop(); break; } } } function emergencyWithdrawERC20(address _token) external onlyOwner { IERC20 token = IERC20(_token); token.transfer(msg.sender, token.balanceOf(address(this))); } /** Game Master Functions ^.^ */ function startPlayground() external { isGameMaster(); // must be a game master isNotStarted(); // Playground must not be in progress require(roundTime > 0, "Round time must be set"); require(eliminationRate > 0, "Elimination rate must be set"); // enter starts at current block time lastRoundStartTime = block.timestamp; // Playground becomes in progress isInProgress = true; // reset round count for potential re-use roundCount = 0; } function destroyLives() external { isGameMaster(); // must be a game master isStarted(); // Playground must be in progress // must be at least roundtime before next round starts require( block.timestamp >= (lastRoundStartTime + roundTime), "Must wait until round is over" ); uint256 totalLives = balanceOf(address(this)); require(totalLives > 1, "Must not destroy Champion"); // calculate amount of Lives to destroy uint256 amountToDestroy = totalLives / eliminationRate; // if would destroy less than 1 life, instead destroy 1 life if (amountToDestroy == 0) { amountToDestroy = 1; } // to be considerate of upper gas cost, destroy max of 100 at a time if (amountToDestroy > 100) { amountToDestroy = 100; } // loop through amount for (uint256 i = 0; i < amountToDestroy; i++) { // select a random number between 0 and totalBalance uint256 randIndex = random(msg.sender, seed + i * 100) % (totalLives - i); // get a random lifeId that is currently in the Playground uint randomLifeId = tokenOfOwnerByIndex(address(this), randIndex); // save rounds survived Lives[randomLifeId].roundsSurvived = roundCount; // burn life _transfer(address(this), trashCan, randomLifeId); emit LifeDestroyed( Lives[randomLifeId].owner, randomLifeId, roundCount ); } // make lastRoundTime current block lastRoundStartTime = block.timestamp; // increment round count roundCount++; } function payChampion() external { isGameMaster(); // must be a game master isStarted(); // Playground must be in progress require(balanceOf(address(this)) == 1, "Must only be 1 life left"); // get champion lifeId uint256 championLifeId = tokenOfOwnerByIndex(address(this), 0); address championAddress = Lives[championLifeId].owner; // Go through list of available tokens and pay out the remaining pot for (uint256 i = 0; i < Coins.length; i++) { address coinAddress = Coins[i]; uint256 coinPrizePool = CoinPrizePoolMap[coinAddress]; sendCoin( coinAddress, address(this), championAddress, coinPrizePool ); } // remove life from Playground removeFromPlayground(championLifeId); // record winner playgroundWinner = championAddress; // end Playground isInProgress = false; } /** Public Function $.$ */ function exitPlayground(uint256[] memory _lifeIds) public { require(isInProgress, "Playground must be in progress"); require(_lifeIds.length < 21, "Must leave with 20 or less at a time"); require(_lifeIds.length > 0, "Must leave with at least 1"); // must be at least roundtime before next round starts require( block.timestamp <= (lastRoundStartTime + roundTime), "Must wait until next round starts" ); for (uint256 i = 0; i < _lifeIds.length; i++) { uint256 _lifeId = _lifeIds[i]; require(msg.sender == Lives[_lifeId].owner, "Must own Life"); executeRemoval(_lifeId); } } function mintLife( address _toPlayer, address _coinAddress, uint256 _lifeAmount ) public { // Get total mint price based on _coinAddress and _lifeAmount uint256 mintPrice = CoinMintPriceMap[_coinAddress]; uint256 totalMintPrice = mintPrice * _lifeAmount; // verify mintability verifyMintability(_coinAddress, totalMintPrice, _lifeAmount); // Handle ERC20 coin retrieval handleMintFee(_coinAddress, totalMintPrice); // Handle life minting executeMint(_toPlayer, _lifeAmount); } /** Internal Functions ._. */ function executeRemoval(uint256 _lifeId) internal { uint256 totalLives = balanceOf(address(this)); require(totalLives > 1, "Must Not Be Champion"); address player = Lives[_lifeId].owner; handleExitReward(player); // remove lifeId from Playground removeFromPlayground(_lifeId); } function executeMint(address _toPlayer, uint256 _lifeAmount) internal { for (uint i = 0; i < _lifeAmount; i++) { uint256 lifeId = (super.totalSupply() + 1); // mint to Playground _safeMint(address(this), lifeId); registerLife(lifeId, _toPlayer); emit LifeMinted(msg.sender, _toPlayer, lifeId); } } mapping(uint256 => Life) public Lives; function registerLife(uint256 _lifeId, address _add) internal { Lives[_lifeId].owner = _add; emit LifeRegistered(_add, _lifeId); } function removeFromPlayground(uint256 _lifeId) internal { _transfer(address(this), trashCan, _lifeId); address oldOwner = Lives[_lifeId].owner; Lives[_lifeId].roundsSurvived = roundCount; Lives[_lifeId].owner = address(0); emit LifeRewarded(oldOwner, _lifeId, roundCount); } function sendCoin( address _coinAddress, address _from, address _to, uint256 _coinAmount ) internal { require(_coinAddress != address(0), "Invalid coin address"); require(_from != address(0), "Invalid sender address"); require(_to != address(0), "Invalid recipient address"); require(_coinAmount > 0, "Coin amount must be greater than 0"); IERC20 coin = IERC20(_coinAddress); if (_from == address(this)) { require( coin.balanceOf(address(this)) >= _coinAmount, "Not enough tokens in contract" ); bool success = coin.transfer(_to, _coinAmount); require(success, "Coin transfer failed"); } else { uint256 allowance = coin.allowance(_from, address(this)); require(allowance >= _coinAmount, "Coin allowance too low"); bool success = coin.transferFrom(_from, _to, _coinAmount); require(success, "Coin transfer failed"); } emit CoinSent(_coinAddress, _from, _to, _coinAmount); } function verifyMintability( address _coinAddress, uint256 _totalMintPrice, uint256 _lifeAmount ) internal view { require(mintState, "Mint must be on"); require(_lifeAmount > 0, "Must mint more than 0"); require(_lifeAmount <= 100, "Must mint less than 100"); require(_totalMintPrice > 0, "Coin must have a price"); uint256 userCoinBalance = IERC20(_coinAddress).balanceOf(msg.sender); require(userCoinBalance >= _totalMintPrice, "Must have enough tokens"); require( super.totalSupply() + _lifeAmount <= lifeCap, "Must not exceed life cap" ); isNotStarted(); } // Ensure only game masters can call function isGameMaster() internal view { require(gameMasters[msg.sender] == true, "Must be game master"); } // Ensure Playground is in progress function isStarted() internal view { require(isInProgress, "Playground must be in progress"); } // Ensure Playground is not in progress function isNotStarted() internal view { require(isInProgress == false, "Playground must not be in progress"); } function handleMintFee( address _coinAddress, uint256 _totalMintPrice ) internal { // Calculate tokens to send to dev uint256 toDevAmount = (_totalMintPrice * devMintFee) / 100; // Calculate tokens to send to Playground uint256 toPrizePool = _totalMintPrice - toDevAmount; increaseCoinPrizePool(_coinAddress, toPrizePool); // Send tokens to dev and contract sendCoin(_coinAddress, msg.sender, devWallet, toDevAmount); sendCoin(_coinAddress, msg.sender, address(this), toPrizePool); } function handleExitReward(address _player) internal { // Get player rewards per coin uint256[] memory playerRewards = viewPlayerRewards(); for (uint i = 0; i < Coins.length; i++) { address coinAddress = Coins[i]; uint256 toPlayerAmount = playerRewards[i]; // reduce coin prize pool reduceCoinPrizePool(coinAddress, toPlayerAmount); // Send player rewards sendCoin(coinAddress, address(this), _player, toPlayerAmount); } } function reduceCoinPrizePool( address _coinAddress, uint256 _amount ) internal { CoinPrizePoolMap[_coinAddress] -= _amount; } function increaseCoinPrizePool( address _coinAddress, uint256 _amount ) internal { CoinPrizePoolMap[_coinAddress] += _amount; } /** View functions O.O */ function viewLife(uint256 _lifeId) external view returns (Life memory) { return Lives[_lifeId]; } struct Playground { uint256[] CoinPrizePoolList; uint256 eliminationRate; uint256 roundTime; uint256 roundCount; uint256 lastRoundStartTime; bool isInProgress; } function viewPlayground() external view returns (Playground memory) { // Generate CoinPrizePoolList uint256[] memory CoinPrizePoolList = new uint256[](Coins.length); for (uint256 i = 0; i < Coins.length; i++) { CoinPrizePoolList[i] = CoinPrizePoolMap[Coins[i]]; } Playground memory playgroundInfo = Playground( CoinPrizePoolList, eliminationRate, roundTime, roundCount, lastRoundStartTime, isInProgress ); return playgroundInfo; } function viewPlayerRewards() public view returns (uint256[] memory) { uint256 totalLives = balanceOf(address(this)); // Loop through all Coins and calculate the individual rewards uint256[] memory playerRewards = new uint256[](Coins.length); // If no lives are left, return 0 rewards if (totalLives == 0) { return playerRewards; } for (uint256 i = 0; i < Coins.length; i++) { address coinAddress = Coins[i]; uint256 coinPrizePool = CoinPrizePoolMap[coinAddress]; uint256 coinReward = coinPrizePool / totalLives; // Player gets rewarded 90%, other 10% stays in Playground playerRewards[i] = (coinReward * 90) / 100; } return playerRewards; } function viewCanExit() external view returns (bool) { return block.timestamp <= (lastRoundStartTime + roundTime); } uint256 private nonce = 0; // Nonce to ensure different results for subsequent calls function random(address addr, uint256 input) internal returns (uint256) { nonce++; // Increment nonce for each call to ensure different results return uint256( keccak256( abi.encodePacked( block.timestamp, // Current block timestamp block.number, // Current block number block.gaslimit, // Current block gas limit input, // Additional input provided by the caller addr, // Address calling the function nonce // Nonce to ensure different results for subsequent calls ) ) ); } uint256 public amountReceived; // FOR TESTING // // Able to recieve ERC721 function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { require( msg.sender == address(this), "This contract can only receive Lives from itself" ); require(!isInProgress, "Cant deposit Lives when Arena is in progress"); amountReceived++; // FOR TESTING return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; import {IERC721} from "./IERC721.sol"; import {IERC721Receiver} from "./IERC721Receiver.sol"; import {IERC721Metadata} from "./extensions/IERC721Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {Strings} from "../../utils/Strings.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC721 standard to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.20; import {ERC721} from "../ERC721.sol"; import {IERC721Enumerable} from "./IERC721Enumerable.sol"; import {IERC165} from "../../../utils/introspection/ERC165.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability * of all the token ids in the contract as well as all token ids owned by each account. * * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`, * interfere with enumerability and should not be used together with `ERC721Enumerable`. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens; mapping(uint256 tokenId => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 tokenId => uint256) private _allTokensIndex; /** * @dev An `owner`'s token query was out of bounds for `index`. * * NOTE: The owner being `address(0)` indicates a global out of bounds index. */ error ERC721OutOfBoundsIndex(address owner, uint256 index); /** * @dev Batch mint is not allowed. */ error ERC721EnumerableForbiddenBatchMint(); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) { if (index >= balanceOf(owner)) { revert ERC721OutOfBoundsIndex(owner, index); } return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual returns (uint256) { if (index >= totalSupply()) { revert ERC721OutOfBoundsIndex(address(0), index); } return _allTokens[index]; } /** * @dev See {ERC721-_update}. */ function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) { address previousOwner = super._update(to, tokenId, auth); if (previousOwner == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _removeTokenFromOwnerEnumeration(previousOwner, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _addTokenToOwnerEnumeration(to, tokenId); } return previousOwner; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = balanceOf(to) - 1; _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = balanceOf(from); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } /** * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch */ function _increaseBalance(address account, uint128 amount) internal virtual override { if (amount > 0) { revert ERC721EnumerableForbiddenBatchMint(); } super._increaseBalance(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.20; import {IERC721} from "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; import {IERC721} from "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd( uint256 a, uint256 b ) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub( uint256 a, uint256 b ) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul( uint256 a, uint256 b ) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv( uint256 a, uint256 b ) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod( uint256 a, uint256 b ) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt( uint256 a, Rounding rounding ) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2( uint256 value, Rounding rounding ) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10( uint256 value, Rounding rounding ) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256( uint256 value, Rounding rounding ) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + ( unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0 ); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false, "constantOptimizer": true, "cse": true, "deduplicate": true, "inliner": true, "jumpdestRemover": true, "orderLiterals": true, "peephole": true } }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_trashCan","type":"address"},{"internalType":"address","name":"_devWallet","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"coinAddress","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CoinSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"lifeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"roundsSurvived","type":"uint256"}],"name":"LifeDestroyed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"toPlayer","type":"address"},{"indexed":false,"internalType":"uint256","name":"lifeId","type":"uint256"}],"name":"LifeMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"lifeId","type":"uint256"}],"name":"LifeRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"lifeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"roundsSurvived","type":"uint256"}],"name":"LifeRewarded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"CoinMintPriceMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"CoinPrizePoolMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Coins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Lives","outputs":[{"internalType":"uint256","name":"roundsSurvived","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_coinAddress","type":"address"},{"internalType":"uint256","name":"_coinMintPrice","type":"uint256"}],"name":"addCoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"amountReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"destroyLives","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eliminationRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"emergencyWithdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_lifeIds","type":"uint256[]"}],"name":"exitPlayground","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gameMasters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInProgress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRoundStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toPlayer","type":"address"},{"internalType":"address","name":"_coinAddress","type":"address"},{"internalType":"uint256","name":"_lifeAmount","type":"uint256"}],"name":"mintLife","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payChampion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"playgroundWinner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_coinAddress","type":"address"}],"name":"removeCoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roundCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundTime","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":"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":"address","name":"_coinAddress","type":"address"},{"internalType":"uint256","name":"_coinMintPrice","type":"uint256"}],"name":"setCoinMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setDevMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_add","type":"address"},{"internalType":"bool","name":"_auth","type":"bool"}],"name":"setGameMaster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cap","type":"uint256"}],"name":"setLifeCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eliminationRate","type":"uint256"},{"internalType":"uint256","name":"_roundTime","type":"uint256"}],"name":"setPlaygroundSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPlayground","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[],"name":"trashCan","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viewCanExit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lifeId","type":"uint256"}],"name":"viewLife","outputs":[{"components":[{"internalType":"uint256","name":"roundsSurvived","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct PlaygroundMemeV4.Life","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viewPlayerRewards","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viewPlayground","outputs":[{"components":[{"internalType":"uint256[]","name":"CoinPrizePoolList","type":"uint256[]"},{"internalType":"uint256","name":"eliminationRate","type":"uint256"},{"internalType":"uint256","name":"roundTime","type":"uint256"},{"internalType":"uint256","name":"roundCount","type":"uint256"},{"internalType":"uint256","name":"lastRoundStartTime","type":"uint256"},{"internalType":"bool","name":"isInProgress","type":"bool"}],"internalType":"struct PlaygroundMemeV4.Playground","name":"","type":"tuple"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526032600d55610708600e55601e601255611f48601455613a986015556000601c553480156200003257600080fd5b50604051620041e3380380620041e38339810160408190526200005591620001bd565b806040518060400160405280600e81526020016d506c617967726f756e644d656d6560901b8152506040518060400160405280600381526020016250474d60e81b8152508160009081620000aa919062000323565b506001620000b9828262000323565b5050506001600160a01b038116620000f2576000604051631e4fbdf760e01b8152600401620000e9919062000404565b60405180910390fd5b620000fd8162000131565b5050600b80546001600160a01b039384166001600160a01b031991821617909155600c805492909316911617905562000414565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0382165b92915050565b620001a18162000183565b8114620001ad57600080fd5b50565b8051620001908162000196565b600080600060608486031215620001d757620001d7600080fd5b6000620001e58686620001b0565b9350506020620001f886828701620001b0565b92505060406200020b86828701620001b0565b9150509250925092565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200025657607f821691505b6020821081036200026b576200026b6200022b565b50919050565b6000620001906200027f8381565b90565b6200028d8362000271565b815460001960089490940293841b1916921b91909117905550565b6000620002b781848462000282565b505050565b81811015620002db57620002d2600082620002a8565b600101620002bc565b5050565b601f821115620002b7576000818152602090206020601f85010481016020851015620003085750805b6200031c6020601f860104830182620002bc565b5050505050565b81516001600160401b038111156200033f576200033f62000215565b6200034b825462000241565b62000358828285620002df565b6020601f8311600181146200038f5760008415620003765750858201515b600019600886021c1981166002860217865550620003eb565b600085815260208120601f198616915b82811015620003c157888501518255602094850194600190920191016200039f565b86831015620003de5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b620003fe8162000183565b82525050565b60208101620001908284620003f3565b613dbf80620004246000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c806390aedb3e116101b8578063cd0b375611610104578063ebb31943116100a2578063f2fde38b1161007c578063f2fde38b14610759578063fb7731931461076c578063fca91a281461077f578063fe31a6131461079257600080fd5b8063ebb3194314610732578063ee5f8c8f14610747578063f1a39e491461075057600080fd5b8063df9b022e116100de578063df9b022e146106e6578063e743ef1d146106f9578063e82606621461070c578063e985e9c51461071f57600080fd5b8063cd0b375614610697578063d524b0ff1461069f578063d8f05fed146106a857600080fd5b8063acbe429511610171578063b88d4fde1161014b578063b88d4fde14610651578063c051e38a14610664578063c814453614610671578063c87b56dd1461068457600080fd5b8063acbe429514610618578063b40148791461062b578063b43fa1f11461063e57600080fd5b806390aedb3e1461056b57806391fbbeaf1461058057806395d89b41146105e25780639e4ebe46146105ea578063a22cb465146105fd578063aa3497e91461061057600080fd5b806342842e0e1161029257806370a082311161023057806383930c6a1161020a57806383930c6a1461051457806388363bf6146105345780638da5cb5b146105475780638ea5220f1461055857600080fd5b806370a08231146104d9578063715018a6146104ec5780637e6b8add146104f457600080fd5b806365de1b5b1161026c57806365de1b5b146104a95780636dfc2fa8146104bc5780636f94beb6146104c9578063709ef087146104d157600080fd5b806342842e0e146104705780634f6ccce7146104835780636352211e1461049657600080fd5b806318160ddd116102ff5780632f745c59116102d95780632f745c591461041e578063361194db146104315780634080d6401461043a57806340c442de1461045d57600080fd5b806318160ddd146103f057806323b872dd146103f857806326412aca1461040b57600080fd5b806301ffc9a71461034757806306fdde0314610370578063081812fc14610385578063095ea7b3146103a5578063127f0b3f146103ba578063150b7a02146103d0575b600080fd5b61035a610355366004612a3d565b61079b565b6040516103679190612a68565b60405180910390f35b6103786107c6565b6040516103679190612acc565b610398610393366004612aee565b610858565b6040516103679190612b29565b6103b86103b3366004612b4b565b610881565b005b6103c3600f5481565b6040516103679190612b8e565b6103e36103de366004612c8f565b610890565b6040516103679190612d1e565b6008546103c3565b6103b8610406366004612d2c565b610905565b6103b8610419366004612d8f565b61097c565b6103c361042c366004612b4b565b610997565b6103c360125481565b61035a610448366004612db0565b601a6020526000908152604090205460ff1681565b6103b861046b366004612db0565b6109ee565b6103b861047e366004612d2c565b610ad4565b6103c3610491366004612aee565b610aef565b6103986104a4366004612aee565b610b43565b6103b86104b7366004612dd1565b610b4e565b60115461035a9060ff1681565b6103b8610ba7565b6103b8610cad565b6103c36104e7366004612db0565b610d19565b6103b8610d61565b6103c3610502366004612db0565b60166020526000908152604090205481565b6103c3610522366004612db0565b60176020526000908152604090205481565b6103b8610542366004612db0565b610d75565b600a546001600160a01b0316610398565b600c54610398906001600160a01b031681565b610573610ed2565b6040516103679190612eda565b6105d561058e366004612aee565b6040805180820190915260008082526020820152506000908152601b6020908152604091829020825180840190935280548352600101546001600160a01b03169082015290565b6040516103679190612f0f565b610378611010565b6103b86105f8366004612d2c565b61101f565b6103b861060b366004612dd1565b61106b565b61035a611076565b6103b8610626366004612fc0565b611090565b6103b8610639366004612b4b565b6111a8565b6103b861064c366004612ffb565b61128c565b6103b861065f366004612c8f565b6112a7565b60195461035a9060ff1681565b601354610398906001600160a01b031681565b610378610692366004612aee565b6112be565b6103b8611333565b6103c3601d5481565b6106d86106b6366004612aee565b601b60205260009081526040902080546001909101546001600160a01b031682565b60405161036792919061301d565b6103b86106f4366004612aee565b6114d3565b610398610707366004612aee565b6114e0565b600b54610398906001600160a01b031681565b61035a61072d366004613038565b61150a565b61073a611538565b60405161036791906130a9565b6103c3600e5481565b6103c3600d5481565b6103b8610767366004612db0565b611648565b6103b861077a366004612b4b565b611686565b6103b861078d366004612aee565b611725565b6103c360105481565b60006001600160e01b0319821663780e9d6360e01b14806107c057506107c082611752565b92915050565b6060600080546107d5906130d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906130d0565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b6000610863826117a2565b506000828152600460205260409020546001600160a01b03166107c0565b61088c8282336117da565b5050565b60003330146108ba5760405162461bcd60e51b81526004016108b19061314c565b60405180910390fd5b60115460ff16156108dd5760405162461bcd60e51b81526004016108b1906131a5565b601d80549060006108ed836131cb565b90915550630a85bd0160e11b9150505b949350505050565b6001600160a01b03821661092f576000604051633250574960e11b81526004016108b19190612b29565b600061093c8383336117e7565b9050836001600160a01b0316816001600160a01b031614610976578382826040516364283d7b60e01b81526004016108b1939291906131e5565b50505050565b6109846118b4565b6019805460ff1916911515919091179055565b60006109a283610d19565b82106109c557828260405163295f44f760e21b81526004016108b192919061320d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109f66118b4565b6040516370a0823160e01b815281906001600160a01b0382169063a9059cbb90339083906370a0823190610a2e903090600401612b29565b602060405180830381865afa158015610a4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f9190613233565b6040518363ffffffff1660e01b8152600401610a8c92919061320d565b6020604051808303816000875af1158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf919061325f565b505050565b610acf838383604051806020016040528060008152506112a7565b6000610afa60085490565b8210610b1e5760008260405163295f44f760e21b81526004016108b192919061320d565b60088281548110610b3157610b31613280565b90600052602060002001549050919050565b60006107c0826117a2565b610b566118b4565b6001600160a01b038216610b7c5760405162461bcd60e51b81526004016108b1906132b9565b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b610baf6118e1565b610bb7611915565b610bc030610d19565b600114610bdf5760405162461bcd60e51b81526004016108b1906132fd565b6000610bec306000610997565b6000818152601b60205260408120600101549192506001600160a01b03909116905b601854811015610c7657600060188281548110610c2d57610c2d613280565b60009182526020808320909101546001600160a01b03168083526017909152604090912054909150610c6182308684611937565b50508080610c6e906131cb565b915050610c0e565b50610c8082611c70565b601380546001600160a01b0319166001600160a01b0392909216919091179055506011805460ff19169055565b610cb56118e1565b610cbd611cff565b6000600e5411610cdf5760405162461bcd60e51b81526004016108b19061333a565b6000600d5411610d015760405162461bcd60e51b81526004016108b19061337e565b426010556011805460ff191660011790556000600f55565b60006001600160a01b038216610d455760006040516322718ad960e21b81526004016108b19190612b29565b506001600160a01b031660009081526003602052604090205490565b610d696118b4565b610d736000611d22565b565b610d7d6118b4565b6001600160a01b038116600090815260166020526040902054610db25760405162461bcd60e51b81526004016108b1906133c2565b6001600160a01b03811660009081526016602052604081208190555b60185481101561088c57816001600160a01b031660188281548110610df557610df5613280565b6000918252602090912001546001600160a01b031603610ec05760188054610e1f906001906133d2565b81548110610e2f57610e2f613280565b600091825260209091200154601880546001600160a01b039092169183908110610e5b57610e5b613280565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506018805480610e9a57610e9a6133e5565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610eca816131cb565b915050610dce565b610f0d6040518060c0016040528060608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b60185460009067ffffffffffffffff811115610f2b57610f2b612b9c565b604051908082528060200260200182016040528015610f54578160200160208202803683370190505b50905060005b601854811015610fd1576017600060188381548110610f7b57610f7b613280565b60009182526020808320909101546001600160a01b031683528201929092526040019020548251839083908110610fb457610fb4613280565b602090810291909101015280610fc9816131cb565b915050610f5a565b506040805160c081018252918252600d546020830152600e5490820152600f546060820152601054608082015260115460ff16151560a0820152919050565b6060600180546107d5906130d0565b6001600160a01b0382166000908152601660205260408120549061104383836133fb565b9050611050848285611d74565b61105a8482611ec6565b6110648584611f22565b5050505050565b61088c338383611fa7565b6000600e546010546110889190613413565b421115905090565b60115460ff166110b25760405162461bcd60e51b81526004016108b19061345a565b60158151106110d35760405162461bcd60e51b81526004016108b1906134ab565b60008151116110f45760405162461bcd60e51b81526004016108b1906134ef565b600e546010546111049190613413565b4211156111235760405162461bcd60e51b81526004016108b19061353d565b60005b815181101561088c57600082828151811061114357611143613280565b6020908102919091018101516000818152601b9092526040909120600101549091506001600160a01b0316331461118c5760405162461bcd60e51b81526004016108b190613571565b61119581612041565b50806111a0816131cb565b915050611126565b6111b06118b4565b600081116111d05760405162461bcd60e51b81526004016108b1906135c3565b6001600160a01b0382166111f65760405162461bcd60e51b81526004016108b190613607565b6001600160a01b0382166000908152601660205260409020541561122c5760405162461bcd60e51b81526004016108b19061364b565b6001600160a01b039091166000818152601660205260408120929092556018805460018101825592527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e90910180546001600160a01b0319169091179055565b6112946118b4565b61129c611cff565b600d91909155600e55565b6112b2848484610905565b6109768484848461209b565b60606112c9826117a2565b5060006112e160408051602081019091526000815290565b90506000815111611301576040518060200160405280600081525061132c565b8061130b846121ab565b60405160200161131c92919061367d565b6040516020818303038152906040525b9392505050565b61133b6118e1565b611343611915565b600e546010546113539190613413565b4210156113725760405162461bcd60e51b81526004016108b1906136c9565b600061137d30610d19565b90506001811161139f5760405162461bcd60e51b81526004016108b19061370d565b6000600d54826113af9190613733565b9050806000036113bd575060015b60648111156113ca575060645b60005b818110156114b55760006113e182856133d2565b611402336113f08560646133fb565b6014546113fd9190613413565b61223f565b61140c9190613747565b9050600061141a3083610997565b600f546000828152601b6020526040902055600b549091506114479030906001600160a01b031683612290565b6000818152601b60205260409081902060010154600f5491517fcdcd7e9d841a6836711bf6c04c62454830f5fae17cd030580f1b5257457fc28e92611498926001600160a01b03169185919061375b565b60405180910390a1505080806114ad906131cb565b9150506113cd565b5042601055600f80549060006114ca836131cb565b91905055505050565b6114db6118b4565b601255565b601881815481106114f057600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6060600061154530610d19565b60185490915060009067ffffffffffffffff81111561156657611566612b9c565b60405190808252806020026020018201604052801561158f578160200160208202803683370190505b509050816000036115a05792915050565b60005b601854811015611641576000601882815481106115c2576115c2613280565b60009182526020808320909101546001600160a01b031680835260179091526040822054909250906115f48683613733565b9050606461160382605a6133fb565b61160d9190613733565b85858151811061161f5761161f613280565b6020026020010181815250505050508080611639906131cb565b9150506115a3565b5092915050565b6116506118b4565b6001600160a01b03811661167a576000604051631e4fbdf760e01b81526004016108b19190612b29565b61168381611d22565b50565b61168e6118b4565b600081116116ae5760405162461bcd60e51b81526004016108b1906135c3565b6001600160a01b0382166116d45760405162461bcd60e51b81526004016108b190613607565b6001600160a01b0382166000908152601660205260409020546117095760405162461bcd60e51b81526004016108b1906137c6565b6001600160a01b03909116600090815260166020526040902055565b61172d6118b4565b6000811161174d5760405162461bcd60e51b81526004016108b19061380a565b601555565b60006001600160e01b031982166380ac58cd60e01b148061178357506001600160e01b03198216635b5e139f60e01b145b806107c057506301ffc9a760e01b6001600160e01b03198316146107c0565b6000818152600260205260408120546001600160a01b0316806107c05782604051637e27328960e01b81526004016108b19190612b8e565b610acf838383600161232b565b6000806117f5858585612428565b90506001600160a01b0381166118525761184d84600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611875565b846001600160a01b0316816001600160a01b031614611875576118758185612521565b6001600160a01b0385166118915761188c846125b2565b6108fd565b846001600160a01b0316816001600160a01b0316146108fd576108fd8585612661565b600a546001600160a01b03163314610d73573360405163118cdaa760e01b81526004016108b19190612b29565b336000908152601a602052604090205460ff161515600114610d735760405162461bcd60e51b81526004016108b190613844565b60115460ff16610d735760405162461bcd60e51b81526004016108b19061345a565b6001600160a01b03841661195d5760405162461bcd60e51b81526004016108b19061387f565b6001600160a01b0383166119835760405162461bcd60e51b81526004016108b1906138bc565b6001600160a01b0382166119a95760405162461bcd60e51b81526004016108b190613900565b600081116119c95760405162461bcd60e51b81526004016108b19061394f565b83306001600160a01b03851603611b00576040516370a0823160e01b815282906001600160a01b038316906370a0823190611a08903090600401612b29565b602060405180830381865afa158015611a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a499190613233565b1015611a675760405162461bcd60e51b81526004016108b190613993565b60405163a9059cbb60e01b81526000906001600160a01b0383169063a9059cbb90611a98908790879060040161320d565b6020604051808303816000875af1158015611ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611adb919061325f565b905080611afa5760405162461bcd60e51b81526004016108b1906139ce565b50611c2c565b604051636eb1769f60e11b81526000906001600160a01b0383169063dd62ed3e90611b3190889030906004016139de565b602060405180830381865afa158015611b4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b729190613233565b905082811015611b945760405162461bcd60e51b81526004016108b190613a19565b6040516323b872dd60e01b81526000906001600160a01b038416906323b872dd90611bc790899089908990600401613a29565b6020604051808303816000875af1158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a919061325f565b905080611c295760405162461bcd60e51b81526004016108b1906139ce565b50505b7f2548eee5ce377f5a55274382820a364cb9783d482c9a486e46fd587eace5055a85858585604051611c619493929190613a44565b60405180910390a15050505050565b600b54611c889030906001600160a01b031683612290565b6000818152601b602052604090819020600181018054600f80549093556001600160a01b03198116909155905491516001600160a01b03909116917fbe794f2f3370eb8a41fb1f227d1a838143015a097d9d1a673f69b510dfdd4f8b91611cf391849186919061375b565b60405180910390a15050565b60115460ff1615610d735760405162461bcd60e51b81526004016108b190613ac1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60195460ff16611d965760405162461bcd60e51b81526004016108b190613af7565b60008111611db65760405162461bcd60e51b81526004016108b190613b33565b6064811115611dd75760405162461bcd60e51b81526004016108b190613b77565b60008211611df75760405162461bcd60e51b81526004016108b190613bb4565b6040516370a0823160e01b81526000906001600160a01b038516906370a0823190611e26903390600401612b29565b602060405180830381865afa158015611e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e679190613233565b905082811015611e895760405162461bcd60e51b81526004016108b190613bf8565b60155482611e9660085490565b611ea09190613413565b1115611ebe5760405162461bcd60e51b81526004016108b190613c3c565b610976611cff565b6000606460125483611ed891906133fb565b611ee29190613733565b90506000611ef082846133d2565b9050611efc84826126b1565b600c54611f1690859033906001600160a01b031685611937565b61097684333084611937565b60005b81811015610acf576000611f3860085490565b611f43906001613413565b9050611f4f30826126e2565b611f5981856126fc565b7f28c350d90e9951df18c32a3336a2a58548ae9715689e16492847243b514248f2338583604051611f8c93929190613a29565b60405180910390a15080611f9f816131cb565b915050611f25565b6001600160a01b038216611fd05781604051630b61174360e31b81526004016108b19190612b29565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612034908590612a68565b60405180910390a3505050565b600061204c30610d19565b90506001811161206e5760405162461bcd60e51b81526004016108b190613c77565b6000828152601b60205260409020600101546001600160a01b031661209281612758565b610acf83611c70565b6001600160a01b0383163b1561097657604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906120dd903390889087908790600401613c87565b6020604051808303816000875af1925050508015612118575060408051601f3d908101601f1916820190925261211591810190613cd6565b60015b612178573d808015612146576040519150601f19603f3d011682016040523d82523d6000602084013e61214b565b606091505b5080516000036121705783604051633250574960e11b81526004016108b19190612b29565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146110645783604051633250574960e11b81526004016108b19190612b29565b606060006121b8836127e7565b600101905060008167ffffffffffffffff8111156121d8576121d8612b9c565b6040519080825280601f01601f191660200182016040528015612202576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461220c575b509392505050565b601c805460009182612250836131cb565b9091555050601c546040516122719142914391459187918991602001613d1f565b60408051601f1981840301815291905280516020909101209392505050565b6001600160a01b0382166122ba576000604051633250574960e11b81526004016108b19190612b29565b60006122c8838360006117e7565b90506001600160a01b0381166122f35781604051637e27328960e01b81526004016108b19190612b8e565b836001600160a01b0316816001600160a01b031614610976578382826040516364283d7b60e01b81526004016108b1939291906131e5565b808061233f57506001600160a01b03821615155b156123f857600061234f846117a2565b90506001600160a01b0383161580159061237b5750826001600160a01b0316816001600160a01b031614155b801561238e575061238c818461150a565b155b156123ae578260405163a9fbf51f60e01b81526004016108b19190612b29565b81156123f65783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600260205260408120546001600160a01b0390811690831615612455576124558184866128bf565b6001600160a01b038116156124935761247260008560008061232b565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b038516156124c2576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600061252c83610d19565b60008381526007602052604090205490915080821461257f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906125c4906001906133d2565b600083815260096020526040812054600880549394509092849081106125ec576125ec613280565b90600052602060002001549050806008838154811061260d5761260d613280565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612645576126456133e5565b6001900381819060005260206000200160009055905550505050565b6000600161266e84610d19565b61267891906133d2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216600090815260176020526040812080548392906126d9908490613413565b90915550505050565b61088c828260405180602001604052806000815250612914565b6000828152601b60205260409081902060010180546001600160a01b0319166001600160a01b038416179055517f75d4c6841ca9e00491d3d1a096d5fc533ea58bf766fd231c09edf2099dc599e790611cf3908390859061320d565b6000612762611538565b905060005b601854811015610acf5760006018828154811061278657612786613280565b600091825260208220015484516001600160a01b0390911692508490849081106127b2576127b2613280565b602002602001015190506127c6828261292b565b6127d282308784611937565b505080806127df906131cb565b915050612767565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106128265772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612852576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061287057662386f26fc10000830492506010015b6305f5e1008310612888576305f5e100830492506008015b612710831061289c57612710830492506004015b606483106128ae576064830492506002015b600a83106107c05760010192915050565b6128ca838383612953565b610acf576001600160a01b0383166128f75780604051637e27328960e01b81526004016108b19190612b8e565b818160405163177e802f60e01b81526004016108b192919061320d565b61291e83836129b6565b610acf600084848461209b565b6001600160a01b038216600090815260176020526040812080548392906126d99084906133d2565b60006001600160a01b038316158015906108fd5750826001600160a01b0316846001600160a01b0316148061298d575061298d848461150a565b806108fd5750506000908152600460205260409020546001600160a01b03908116911614919050565b6001600160a01b0382166129e0576000604051633250574960e11b81526004016108b19190612b29565b60006129ee838360006117e7565b90506001600160a01b03811615610acf5760006040516339e3563760e11b81526004016108b19190612b29565b6001600160e01b031981165b811461168357600080fd5b80356107c081612a1b565b600060208284031215612a5257612a52600080fd5b60006108fd8484612a32565b8015155b82525050565b602081016107c08284612a5e565b60005b83811015612a91578181015183820152602001612a79565b50506000910152565b6000612aa4825190565b808452602084019350612abb818560208601612a76565b601f01601f19169290920192915050565b6020808252810161132c8184612a9a565b80612a27565b80356107c081612add565b600060208284031215612b0357612b03600080fd5b60006108fd8484612ae3565b60006001600160a01b0382166107c0565b612a6281612b0f565b602081016107c08284612b20565b612a2781612b0f565b80356107c081612b37565b60008060408385031215612b6157612b61600080fd5b6000612b6d8585612b40565b9250506020612b7e85828601612ae3565b9150509250929050565b80612a62565b602081016107c08284612b88565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612bd857612bd8612b9c565b6040525050565b6000612bea60405190565b9050612bf68282612bb2565b919050565b600067ffffffffffffffff821115612c1557612c15612b9c565b601f19601f83011660200192915050565b82818337506000910152565b6000612c45612c4084612bfb565b612bdf565b905082815260208101848484011115612c6057612c60600080fd5b612237848285612c26565b600082601f830112612c7f57612c7f600080fd5b81356108fd848260208601612c32565b60008060008060808587031215612ca857612ca8600080fd5b6000612cb48787612b40565b9450506020612cc587828801612b40565b9350506040612cd687828801612ae3565b925050606085013567ffffffffffffffff811115612cf657612cf6600080fd5b612d0287828801612c6b565b91505092959194509250565b6001600160e01b03198116612a62565b602081016107c08284612d0e565b600080600060608486031215612d4457612d44600080fd5b6000612d508686612b40565b9350506020612d6186828701612b40565b9250506040612d7286828701612ae3565b9150509250925092565b801515612a27565b80356107c081612d7c565b600060208284031215612da457612da4600080fd5b60006108fd8484612d84565b600060208284031215612dc557612dc5600080fd5b60006108fd8484612b40565b60008060408385031215612de757612de7600080fd5b6000612df38585612b40565b9250506020612b7e85828601612d84565b6000612e108383612b88565b505060200190565b6000612e22825190565b80845260209384019383018060005b83811015612e56578151612e458882612e04565b975060208301925050600101612e31565b509495945050505050565b805160c080845260009190840190612e798282612e18565b9150506020830151612e8e6020860182612b88565b506040830151612ea16040860182612b88565b506060830151612eb46060860182612b88565b506080830151612ec76080860182612b88565b5060a083015161223760a0860182612a5e565b6020808252810161132c8184612e61565b80516040830190612efc8482612b88565b5060208201516109766020850182612b20565b604081016107c08284612eeb565b600067ffffffffffffffff821115612f3757612f37612b9c565b5060209081020190565b6000612f4f612c4084612f1d565b83815290506020808201908402830185811115612f6e57612f6e600080fd5b835b81811015612f925780612f838882612ae3565b84525060209283019201612f70565b5050509392505050565b600082601f830112612fb057612fb0600080fd5b81356108fd848260208601612f41565b600060208284031215612fd557612fd5600080fd5b813567ffffffffffffffff811115612fef57612fef600080fd5b6108fd84828501612f9c565b6000806040838503121561301157613011600080fd5b6000612b6d8585612ae3565b6040810161302b8285612b88565b61132c6020830184612b20565b6000806040838503121561304e5761304e600080fd5b600061305a8585612b40565b9250506020612b7e85828601612b40565b6000613075825190565b80845260209384019383018060005b83811015612e565781516130988882612e04565b975060208301925050600101613084565b6020808252810161132c818461306b565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806130e457607f821691505b6020821081036130f6576130f66130ba565b50919050565b603081526000602082017f5468697320636f6e74726163742063616e206f6e6c792072656365697665204c81526f34bb32b990333937b69034ba39b2b63360811b602082015291505b5060400190565b602080825281016107c0816130fc565b602c81526000602082017f43616e74206465706f736974204c69766573207768656e204172656e6120697381526b20696e2070726f677265737360a01b60208201529150613145565b602080825281016107c08161315c565b634e487b7160e01b600052601160045260246000fd5b600060001982036131de576131de6131b5565b5060010190565b606081016131f38286612b20565b6132006020830185612b88565b6108fd6040830184612b20565b6040810161321b8285612b20565b61132c6020830184612b88565b80516107c081612add565b60006020828403121561324857613248600080fd5b60006108fd8484613228565b80516107c081612d7c565b60006020828403121561327457613274600080fd5b60006108fd8484613254565b634e487b7160e01b600052603260045260246000fd5b6009815260006020820168373ab6361030b2323960b91b815291505b5060200190565b602080825281016107c081613296565b601881526000602082017f4d757374206f6e6c792062652031206c696665206c6566740000000000000000815291506132b2565b602080825281016107c0816132c9565b6016815260006020820175149bdd5b99081d1a5b59481b5d5cdd081899481cd95d60521b815291506132b2565b602080825281016107c08161330d565b601c81526000602082017f456c696d696e6174696f6e2072617465206d7573742062652073657400000000815291506132b2565b602080825281016107c08161334a565b601781526000602082017f5f636f696e41646472657373206d757374206578697374000000000000000000815291506132b2565b602080825281016107c08161338e565b818103818111156107c0576107c06131b5565b634e487b7160e01b600052603160045260246000fd5b818102808215838204851417611641576116416131b5565b808201808211156107c0576107c06131b5565b601e81526000602082017f506c617967726f756e64206d75737420626520696e2070726f67726573730000815291506132b2565b602080825281016107c081613426565b602481526000602082017f4d757374206c656176652077697468203230206f72206c65737320617420612081526374696d6560e01b60208201529150613145565b602080825281016107c08161346a565b601a81526000602082017f4d757374206c656176652077697468206174206c656173742031000000000000815291506132b2565b602080825281016107c0816134bb565b602181526000602082017f4d757374207761697420756e74696c206e65787420726f756e642073746172748152607360f81b60208201529150613145565b602080825281016107c0816134ff565b600d81526000602082016c4d757374206f776e204c69666560981b815291506132b2565b602080825281016107c08161354d565b602581526000602082017f5f636f696e4d696e745072696365206d75737420626520677265617465722074815264068616e20360dc1b60208201529150613145565b602080825281016107c081613581565b601d81526000602082017f5f636f696e41646472657373206d757374206e6f74206265206e756c6c000000815291506132b2565b602080825281016107c0816135d3565b601881526000602082017f5f636f696e41646472657373206d757374206265206e65770000000000000000815291506132b2565b602080825281016107c081613617565b6000613665825190565b613673818560208601612a76565b9290920192915050565b6000613689828561365b565b91506108fd828461365b565b601d81526000602082017f4d757374207761697420756e74696c20726f756e64206973206f766572000000815291506132b2565b602080825281016107c081613695565b601981526000602082017f4d757374206e6f742064657374726f79204368616d70696f6e00000000000000815291506132b2565b602080825281016107c0816136d9565b634e487b7160e01b600052601260045260246000fd5b6000826137425761374261371d565b500490565b6000826137565761375661371d565b500690565b606081016137698286612b20565b6137766020830185612b88565b6108fd6040830184612b88565b602681526000602082017f5f636f696e41646472657373206d75737420616c7265616479206578697374208152650696e206d61760d41b60208201529150613145565b602080825281016107c081613783565b601a81526000602082017f436170206d7573742062652067726561746572207468616e2030000000000000815291506132b2565b602080825281016107c0816137d6565b601381526000602082017226bab9ba1031329033b0b6b29036b0b9ba32b960691b815291506132b2565b602080825281016107c08161381a565b6014815260006020820173496e76616c696420636f696e206164647265737360601b815291506132b2565b602080825281016107c081613854565b6016815260006020820175496e76616c69642073656e646572206164647265737360501b815291506132b2565b602080825281016107c08161388f565b601981526000602082017f496e76616c696420726563697069656e74206164647265737300000000000000815291506132b2565b602080825281016107c0816138cc565b602281526000602082017f436f696e20616d6f756e74206d7573742062652067726561746572207468616e815261020360f41b60208201529150613145565b602080825281016107c081613910565b601d81526000602082017f4e6f7420656e6f75676820746f6b656e7320696e20636f6e7472616374000000815291506132b2565b602080825281016107c08161395f565b601481526000602082017310dbda5b881d1c985b9cd9995c8819985a5b195960621b815291506132b2565b602080825281016107c0816139a3565b6040810161302b8285612b20565b6016815260006020820175436f696e20616c6c6f77616e636520746f6f206c6f7760501b815291506132b2565b602080825281016107c0816139ec565b60608101613a378286612b20565b6137766020830185612b20565b60808101613a528287612b20565b613a5f6020830186612b20565b613a6c6040830185612b20565b613a796060830184612b88565b95945050505050565b602281526000602082017f506c617967726f756e64206d757374206e6f7420626520696e2070726f677265815261737360f01b60208201529150613145565b602080825281016107c081613a82565b600f81526000602082016e26b4b73a1036bab9ba1031329037b760891b815291506132b2565b602080825281016107c081613ad1565b601581526000602082017404d757374206d696e74206d6f7265207468616e203605c1b815291506132b2565b602080825281016107c081613b07565b601781526000602082017f4d757374206d696e74206c657373207468616e20313030000000000000000000815291506132b2565b602080825281016107c081613b43565b6016815260006020820175436f696e206d7573742068617665206120707269636560501b815291506132b2565b602080825281016107c081613b87565b601781526000602082017f4d757374206861766520656e6f75676820746f6b656e73000000000000000000815291506132b2565b602080825281016107c081613bc4565b601881526000602082017f4d757374206e6f7420657863656564206c696665206361700000000000000000815291506132b2565b602080825281016107c081613c08565b601481526000602082017326bab9ba102737ba1021329021b430b6b834b7b760611b815291506132b2565b602080825281016107c081613c4c565b60808101613c958287612b20565b613ca26020830186612b20565b613caf6040830185612b88565b8181036060830152613cc18184612a9a565b9695505050505050565b80516107c081612a1b565b600060208284031215613ceb57613ceb600080fd5b60006108fd8484613ccb565b60006107c08260601b90565b60006107c082613cf7565b612a62613d1a82612b0f565b613d03565b6000613d2b8289612b88565b602082019150613d3b8288612b88565b602082019150613d4b8287612b88565b602082019150613d5b8286612b88565b602082019150613d6b8285613d0e565b601482019150613d7b8284612b88565b50602001969550505050505056fea2646970667358221220ece0bee0909e89b9cdd2ffb3f3595c2a3500e3d149d8d41b98288bfceee80f1964736f6c63430008140033000000000000000000000000535b7425c8afcd27d535c4b6fd7f86bd2e7b54620000000000000000000000009c0a9a819c6bf9e628803f89c65fbae49c82734c0000000000000000000000002a9ae904fa9a5e448b9c73f200319085bce833cf
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103425760003560e01c806390aedb3e116101b8578063cd0b375611610104578063ebb31943116100a2578063f2fde38b1161007c578063f2fde38b14610759578063fb7731931461076c578063fca91a281461077f578063fe31a6131461079257600080fd5b8063ebb3194314610732578063ee5f8c8f14610747578063f1a39e491461075057600080fd5b8063df9b022e116100de578063df9b022e146106e6578063e743ef1d146106f9578063e82606621461070c578063e985e9c51461071f57600080fd5b8063cd0b375614610697578063d524b0ff1461069f578063d8f05fed146106a857600080fd5b8063acbe429511610171578063b88d4fde1161014b578063b88d4fde14610651578063c051e38a14610664578063c814453614610671578063c87b56dd1461068457600080fd5b8063acbe429514610618578063b40148791461062b578063b43fa1f11461063e57600080fd5b806390aedb3e1461056b57806391fbbeaf1461058057806395d89b41146105e25780639e4ebe46146105ea578063a22cb465146105fd578063aa3497e91461061057600080fd5b806342842e0e1161029257806370a082311161023057806383930c6a1161020a57806383930c6a1461051457806388363bf6146105345780638da5cb5b146105475780638ea5220f1461055857600080fd5b806370a08231146104d9578063715018a6146104ec5780637e6b8add146104f457600080fd5b806365de1b5b1161026c57806365de1b5b146104a95780636dfc2fa8146104bc5780636f94beb6146104c9578063709ef087146104d157600080fd5b806342842e0e146104705780634f6ccce7146104835780636352211e1461049657600080fd5b806318160ddd116102ff5780632f745c59116102d95780632f745c591461041e578063361194db146104315780634080d6401461043a57806340c442de1461045d57600080fd5b806318160ddd146103f057806323b872dd146103f857806326412aca1461040b57600080fd5b806301ffc9a71461034757806306fdde0314610370578063081812fc14610385578063095ea7b3146103a5578063127f0b3f146103ba578063150b7a02146103d0575b600080fd5b61035a610355366004612a3d565b61079b565b6040516103679190612a68565b60405180910390f35b6103786107c6565b6040516103679190612acc565b610398610393366004612aee565b610858565b6040516103679190612b29565b6103b86103b3366004612b4b565b610881565b005b6103c3600f5481565b6040516103679190612b8e565b6103e36103de366004612c8f565b610890565b6040516103679190612d1e565b6008546103c3565b6103b8610406366004612d2c565b610905565b6103b8610419366004612d8f565b61097c565b6103c361042c366004612b4b565b610997565b6103c360125481565b61035a610448366004612db0565b601a6020526000908152604090205460ff1681565b6103b861046b366004612db0565b6109ee565b6103b861047e366004612d2c565b610ad4565b6103c3610491366004612aee565b610aef565b6103986104a4366004612aee565b610b43565b6103b86104b7366004612dd1565b610b4e565b60115461035a9060ff1681565b6103b8610ba7565b6103b8610cad565b6103c36104e7366004612db0565b610d19565b6103b8610d61565b6103c3610502366004612db0565b60166020526000908152604090205481565b6103c3610522366004612db0565b60176020526000908152604090205481565b6103b8610542366004612db0565b610d75565b600a546001600160a01b0316610398565b600c54610398906001600160a01b031681565b610573610ed2565b6040516103679190612eda565b6105d561058e366004612aee565b6040805180820190915260008082526020820152506000908152601b6020908152604091829020825180840190935280548352600101546001600160a01b03169082015290565b6040516103679190612f0f565b610378611010565b6103b86105f8366004612d2c565b61101f565b6103b861060b366004612dd1565b61106b565b61035a611076565b6103b8610626366004612fc0565b611090565b6103b8610639366004612b4b565b6111a8565b6103b861064c366004612ffb565b61128c565b6103b861065f366004612c8f565b6112a7565b60195461035a9060ff1681565b601354610398906001600160a01b031681565b610378610692366004612aee565b6112be565b6103b8611333565b6103c3601d5481565b6106d86106b6366004612aee565b601b60205260009081526040902080546001909101546001600160a01b031682565b60405161036792919061301d565b6103b86106f4366004612aee565b6114d3565b610398610707366004612aee565b6114e0565b600b54610398906001600160a01b031681565b61035a61072d366004613038565b61150a565b61073a611538565b60405161036791906130a9565b6103c3600e5481565b6103c3600d5481565b6103b8610767366004612db0565b611648565b6103b861077a366004612b4b565b611686565b6103b861078d366004612aee565b611725565b6103c360105481565b60006001600160e01b0319821663780e9d6360e01b14806107c057506107c082611752565b92915050565b6060600080546107d5906130d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610801906130d0565b801561084e5780601f106108235761010080835404028352916020019161084e565b820191906000526020600020905b81548152906001019060200180831161083157829003601f168201915b5050505050905090565b6000610863826117a2565b506000828152600460205260409020546001600160a01b03166107c0565b61088c8282336117da565b5050565b60003330146108ba5760405162461bcd60e51b81526004016108b19061314c565b60405180910390fd5b60115460ff16156108dd5760405162461bcd60e51b81526004016108b1906131a5565b601d80549060006108ed836131cb565b90915550630a85bd0160e11b9150505b949350505050565b6001600160a01b03821661092f576000604051633250574960e11b81526004016108b19190612b29565b600061093c8383336117e7565b9050836001600160a01b0316816001600160a01b031614610976578382826040516364283d7b60e01b81526004016108b1939291906131e5565b50505050565b6109846118b4565b6019805460ff1916911515919091179055565b60006109a283610d19565b82106109c557828260405163295f44f760e21b81526004016108b192919061320d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109f66118b4565b6040516370a0823160e01b815281906001600160a01b0382169063a9059cbb90339083906370a0823190610a2e903090600401612b29565b602060405180830381865afa158015610a4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f9190613233565b6040518363ffffffff1660e01b8152600401610a8c92919061320d565b6020604051808303816000875af1158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf919061325f565b505050565b610acf838383604051806020016040528060008152506112a7565b6000610afa60085490565b8210610b1e5760008260405163295f44f760e21b81526004016108b192919061320d565b60088281548110610b3157610b31613280565b90600052602060002001549050919050565b60006107c0826117a2565b610b566118b4565b6001600160a01b038216610b7c5760405162461bcd60e51b81526004016108b1906132b9565b6001600160a01b03919091166000908152601a60205260409020805460ff1916911515919091179055565b610baf6118e1565b610bb7611915565b610bc030610d19565b600114610bdf5760405162461bcd60e51b81526004016108b1906132fd565b6000610bec306000610997565b6000818152601b60205260408120600101549192506001600160a01b03909116905b601854811015610c7657600060188281548110610c2d57610c2d613280565b60009182526020808320909101546001600160a01b03168083526017909152604090912054909150610c6182308684611937565b50508080610c6e906131cb565b915050610c0e565b50610c8082611c70565b601380546001600160a01b0319166001600160a01b0392909216919091179055506011805460ff19169055565b610cb56118e1565b610cbd611cff565b6000600e5411610cdf5760405162461bcd60e51b81526004016108b19061333a565b6000600d5411610d015760405162461bcd60e51b81526004016108b19061337e565b426010556011805460ff191660011790556000600f55565b60006001600160a01b038216610d455760006040516322718ad960e21b81526004016108b19190612b29565b506001600160a01b031660009081526003602052604090205490565b610d696118b4565b610d736000611d22565b565b610d7d6118b4565b6001600160a01b038116600090815260166020526040902054610db25760405162461bcd60e51b81526004016108b1906133c2565b6001600160a01b03811660009081526016602052604081208190555b60185481101561088c57816001600160a01b031660188281548110610df557610df5613280565b6000918252602090912001546001600160a01b031603610ec05760188054610e1f906001906133d2565b81548110610e2f57610e2f613280565b600091825260209091200154601880546001600160a01b039092169183908110610e5b57610e5b613280565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506018805480610e9a57610e9a6133e5565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610eca816131cb565b915050610dce565b610f0d6040518060c0016040528060608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b60185460009067ffffffffffffffff811115610f2b57610f2b612b9c565b604051908082528060200260200182016040528015610f54578160200160208202803683370190505b50905060005b601854811015610fd1576017600060188381548110610f7b57610f7b613280565b60009182526020808320909101546001600160a01b031683528201929092526040019020548251839083908110610fb457610fb4613280565b602090810291909101015280610fc9816131cb565b915050610f5a565b506040805160c081018252918252600d546020830152600e5490820152600f546060820152601054608082015260115460ff16151560a0820152919050565b6060600180546107d5906130d0565b6001600160a01b0382166000908152601660205260408120549061104383836133fb565b9050611050848285611d74565b61105a8482611ec6565b6110648584611f22565b5050505050565b61088c338383611fa7565b6000600e546010546110889190613413565b421115905090565b60115460ff166110b25760405162461bcd60e51b81526004016108b19061345a565b60158151106110d35760405162461bcd60e51b81526004016108b1906134ab565b60008151116110f45760405162461bcd60e51b81526004016108b1906134ef565b600e546010546111049190613413565b4211156111235760405162461bcd60e51b81526004016108b19061353d565b60005b815181101561088c57600082828151811061114357611143613280565b6020908102919091018101516000818152601b9092526040909120600101549091506001600160a01b0316331461118c5760405162461bcd60e51b81526004016108b190613571565b61119581612041565b50806111a0816131cb565b915050611126565b6111b06118b4565b600081116111d05760405162461bcd60e51b81526004016108b1906135c3565b6001600160a01b0382166111f65760405162461bcd60e51b81526004016108b190613607565b6001600160a01b0382166000908152601660205260409020541561122c5760405162461bcd60e51b81526004016108b19061364b565b6001600160a01b039091166000818152601660205260408120929092556018805460018101825592527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e90910180546001600160a01b0319169091179055565b6112946118b4565b61129c611cff565b600d91909155600e55565b6112b2848484610905565b6109768484848461209b565b60606112c9826117a2565b5060006112e160408051602081019091526000815290565b90506000815111611301576040518060200160405280600081525061132c565b8061130b846121ab565b60405160200161131c92919061367d565b6040516020818303038152906040525b9392505050565b61133b6118e1565b611343611915565b600e546010546113539190613413565b4210156113725760405162461bcd60e51b81526004016108b1906136c9565b600061137d30610d19565b90506001811161139f5760405162461bcd60e51b81526004016108b19061370d565b6000600d54826113af9190613733565b9050806000036113bd575060015b60648111156113ca575060645b60005b818110156114b55760006113e182856133d2565b611402336113f08560646133fb565b6014546113fd9190613413565b61223f565b61140c9190613747565b9050600061141a3083610997565b600f546000828152601b6020526040902055600b549091506114479030906001600160a01b031683612290565b6000818152601b60205260409081902060010154600f5491517fcdcd7e9d841a6836711bf6c04c62454830f5fae17cd030580f1b5257457fc28e92611498926001600160a01b03169185919061375b565b60405180910390a1505080806114ad906131cb565b9150506113cd565b5042601055600f80549060006114ca836131cb565b91905055505050565b6114db6118b4565b601255565b601881815481106114f057600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6060600061154530610d19565b60185490915060009067ffffffffffffffff81111561156657611566612b9c565b60405190808252806020026020018201604052801561158f578160200160208202803683370190505b509050816000036115a05792915050565b60005b601854811015611641576000601882815481106115c2576115c2613280565b60009182526020808320909101546001600160a01b031680835260179091526040822054909250906115f48683613733565b9050606461160382605a6133fb565b61160d9190613733565b85858151811061161f5761161f613280565b6020026020010181815250505050508080611639906131cb565b9150506115a3565b5092915050565b6116506118b4565b6001600160a01b03811661167a576000604051631e4fbdf760e01b81526004016108b19190612b29565b61168381611d22565b50565b61168e6118b4565b600081116116ae5760405162461bcd60e51b81526004016108b1906135c3565b6001600160a01b0382166116d45760405162461bcd60e51b81526004016108b190613607565b6001600160a01b0382166000908152601660205260409020546117095760405162461bcd60e51b81526004016108b1906137c6565b6001600160a01b03909116600090815260166020526040902055565b61172d6118b4565b6000811161174d5760405162461bcd60e51b81526004016108b19061380a565b601555565b60006001600160e01b031982166380ac58cd60e01b148061178357506001600160e01b03198216635b5e139f60e01b145b806107c057506301ffc9a760e01b6001600160e01b03198316146107c0565b6000818152600260205260408120546001600160a01b0316806107c05782604051637e27328960e01b81526004016108b19190612b8e565b610acf838383600161232b565b6000806117f5858585612428565b90506001600160a01b0381166118525761184d84600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611875565b846001600160a01b0316816001600160a01b031614611875576118758185612521565b6001600160a01b0385166118915761188c846125b2565b6108fd565b846001600160a01b0316816001600160a01b0316146108fd576108fd8585612661565b600a546001600160a01b03163314610d73573360405163118cdaa760e01b81526004016108b19190612b29565b336000908152601a602052604090205460ff161515600114610d735760405162461bcd60e51b81526004016108b190613844565b60115460ff16610d735760405162461bcd60e51b81526004016108b19061345a565b6001600160a01b03841661195d5760405162461bcd60e51b81526004016108b19061387f565b6001600160a01b0383166119835760405162461bcd60e51b81526004016108b1906138bc565b6001600160a01b0382166119a95760405162461bcd60e51b81526004016108b190613900565b600081116119c95760405162461bcd60e51b81526004016108b19061394f565b83306001600160a01b03851603611b00576040516370a0823160e01b815282906001600160a01b038316906370a0823190611a08903090600401612b29565b602060405180830381865afa158015611a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a499190613233565b1015611a675760405162461bcd60e51b81526004016108b190613993565b60405163a9059cbb60e01b81526000906001600160a01b0383169063a9059cbb90611a98908790879060040161320d565b6020604051808303816000875af1158015611ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611adb919061325f565b905080611afa5760405162461bcd60e51b81526004016108b1906139ce565b50611c2c565b604051636eb1769f60e11b81526000906001600160a01b0383169063dd62ed3e90611b3190889030906004016139de565b602060405180830381865afa158015611b4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b729190613233565b905082811015611b945760405162461bcd60e51b81526004016108b190613a19565b6040516323b872dd60e01b81526000906001600160a01b038416906323b872dd90611bc790899089908990600401613a29565b6020604051808303816000875af1158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a919061325f565b905080611c295760405162461bcd60e51b81526004016108b1906139ce565b50505b7f2548eee5ce377f5a55274382820a364cb9783d482c9a486e46fd587eace5055a85858585604051611c619493929190613a44565b60405180910390a15050505050565b600b54611c889030906001600160a01b031683612290565b6000818152601b602052604090819020600181018054600f80549093556001600160a01b03198116909155905491516001600160a01b03909116917fbe794f2f3370eb8a41fb1f227d1a838143015a097d9d1a673f69b510dfdd4f8b91611cf391849186919061375b565b60405180910390a15050565b60115460ff1615610d735760405162461bcd60e51b81526004016108b190613ac1565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60195460ff16611d965760405162461bcd60e51b81526004016108b190613af7565b60008111611db65760405162461bcd60e51b81526004016108b190613b33565b6064811115611dd75760405162461bcd60e51b81526004016108b190613b77565b60008211611df75760405162461bcd60e51b81526004016108b190613bb4565b6040516370a0823160e01b81526000906001600160a01b038516906370a0823190611e26903390600401612b29565b602060405180830381865afa158015611e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e679190613233565b905082811015611e895760405162461bcd60e51b81526004016108b190613bf8565b60155482611e9660085490565b611ea09190613413565b1115611ebe5760405162461bcd60e51b81526004016108b190613c3c565b610976611cff565b6000606460125483611ed891906133fb565b611ee29190613733565b90506000611ef082846133d2565b9050611efc84826126b1565b600c54611f1690859033906001600160a01b031685611937565b61097684333084611937565b60005b81811015610acf576000611f3860085490565b611f43906001613413565b9050611f4f30826126e2565b611f5981856126fc565b7f28c350d90e9951df18c32a3336a2a58548ae9715689e16492847243b514248f2338583604051611f8c93929190613a29565b60405180910390a15080611f9f816131cb565b915050611f25565b6001600160a01b038216611fd05781604051630b61174360e31b81526004016108b19190612b29565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612034908590612a68565b60405180910390a3505050565b600061204c30610d19565b90506001811161206e5760405162461bcd60e51b81526004016108b190613c77565b6000828152601b60205260409020600101546001600160a01b031661209281612758565b610acf83611c70565b6001600160a01b0383163b1561097657604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906120dd903390889087908790600401613c87565b6020604051808303816000875af1925050508015612118575060408051601f3d908101601f1916820190925261211591810190613cd6565b60015b612178573d808015612146576040519150601f19603f3d011682016040523d82523d6000602084013e61214b565b606091505b5080516000036121705783604051633250574960e11b81526004016108b19190612b29565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146110645783604051633250574960e11b81526004016108b19190612b29565b606060006121b8836127e7565b600101905060008167ffffffffffffffff8111156121d8576121d8612b9c565b6040519080825280601f01601f191660200182016040528015612202576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461220c575b509392505050565b601c805460009182612250836131cb565b9091555050601c546040516122719142914391459187918991602001613d1f565b60408051601f1981840301815291905280516020909101209392505050565b6001600160a01b0382166122ba576000604051633250574960e11b81526004016108b19190612b29565b60006122c8838360006117e7565b90506001600160a01b0381166122f35781604051637e27328960e01b81526004016108b19190612b8e565b836001600160a01b0316816001600160a01b031614610976578382826040516364283d7b60e01b81526004016108b1939291906131e5565b808061233f57506001600160a01b03821615155b156123f857600061234f846117a2565b90506001600160a01b0383161580159061237b5750826001600160a01b0316816001600160a01b031614155b801561238e575061238c818461150a565b155b156123ae578260405163a9fbf51f60e01b81526004016108b19190612b29565b81156123f65783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600260205260408120546001600160a01b0390811690831615612455576124558184866128bf565b6001600160a01b038116156124935761247260008560008061232b565b6001600160a01b038116600090815260036020526040902080546000190190555b6001600160a01b038516156124c2576001600160a01b0385166000908152600360205260409020805460010190555b60008481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600061252c83610d19565b60008381526007602052604090205490915080821461257f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906125c4906001906133d2565b600083815260096020526040812054600880549394509092849081106125ec576125ec613280565b90600052602060002001549050806008838154811061260d5761260d613280565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612645576126456133e5565b6001900381819060005260206000200160009055905550505050565b6000600161266e84610d19565b61267891906133d2565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216600090815260176020526040812080548392906126d9908490613413565b90915550505050565b61088c828260405180602001604052806000815250612914565b6000828152601b60205260409081902060010180546001600160a01b0319166001600160a01b038416179055517f75d4c6841ca9e00491d3d1a096d5fc533ea58bf766fd231c09edf2099dc599e790611cf3908390859061320d565b6000612762611538565b905060005b601854811015610acf5760006018828154811061278657612786613280565b600091825260208220015484516001600160a01b0390911692508490849081106127b2576127b2613280565b602002602001015190506127c6828261292b565b6127d282308784611937565b505080806127df906131cb565b915050612767565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106128265772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612852576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061287057662386f26fc10000830492506010015b6305f5e1008310612888576305f5e100830492506008015b612710831061289c57612710830492506004015b606483106128ae576064830492506002015b600a83106107c05760010192915050565b6128ca838383612953565b610acf576001600160a01b0383166128f75780604051637e27328960e01b81526004016108b19190612b8e565b818160405163177e802f60e01b81526004016108b192919061320d565b61291e83836129b6565b610acf600084848461209b565b6001600160a01b038216600090815260176020526040812080548392906126d99084906133d2565b60006001600160a01b038316158015906108fd5750826001600160a01b0316846001600160a01b0316148061298d575061298d848461150a565b806108fd5750506000908152600460205260409020546001600160a01b03908116911614919050565b6001600160a01b0382166129e0576000604051633250574960e11b81526004016108b19190612b29565b60006129ee838360006117e7565b90506001600160a01b03811615610acf5760006040516339e3563760e11b81526004016108b19190612b29565b6001600160e01b031981165b811461168357600080fd5b80356107c081612a1b565b600060208284031215612a5257612a52600080fd5b60006108fd8484612a32565b8015155b82525050565b602081016107c08284612a5e565b60005b83811015612a91578181015183820152602001612a79565b50506000910152565b6000612aa4825190565b808452602084019350612abb818560208601612a76565b601f01601f19169290920192915050565b6020808252810161132c8184612a9a565b80612a27565b80356107c081612add565b600060208284031215612b0357612b03600080fd5b60006108fd8484612ae3565b60006001600160a01b0382166107c0565b612a6281612b0f565b602081016107c08284612b20565b612a2781612b0f565b80356107c081612b37565b60008060408385031215612b6157612b61600080fd5b6000612b6d8585612b40565b9250506020612b7e85828601612ae3565b9150509250929050565b80612a62565b602081016107c08284612b88565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612bd857612bd8612b9c565b6040525050565b6000612bea60405190565b9050612bf68282612bb2565b919050565b600067ffffffffffffffff821115612c1557612c15612b9c565b601f19601f83011660200192915050565b82818337506000910152565b6000612c45612c4084612bfb565b612bdf565b905082815260208101848484011115612c6057612c60600080fd5b612237848285612c26565b600082601f830112612c7f57612c7f600080fd5b81356108fd848260208601612c32565b60008060008060808587031215612ca857612ca8600080fd5b6000612cb48787612b40565b9450506020612cc587828801612b40565b9350506040612cd687828801612ae3565b925050606085013567ffffffffffffffff811115612cf657612cf6600080fd5b612d0287828801612c6b565b91505092959194509250565b6001600160e01b03198116612a62565b602081016107c08284612d0e565b600080600060608486031215612d4457612d44600080fd5b6000612d508686612b40565b9350506020612d6186828701612b40565b9250506040612d7286828701612ae3565b9150509250925092565b801515612a27565b80356107c081612d7c565b600060208284031215612da457612da4600080fd5b60006108fd8484612d84565b600060208284031215612dc557612dc5600080fd5b60006108fd8484612b40565b60008060408385031215612de757612de7600080fd5b6000612df38585612b40565b9250506020612b7e85828601612d84565b6000612e108383612b88565b505060200190565b6000612e22825190565b80845260209384019383018060005b83811015612e56578151612e458882612e04565b975060208301925050600101612e31565b509495945050505050565b805160c080845260009190840190612e798282612e18565b9150506020830151612e8e6020860182612b88565b506040830151612ea16040860182612b88565b506060830151612eb46060860182612b88565b506080830151612ec76080860182612b88565b5060a083015161223760a0860182612a5e565b6020808252810161132c8184612e61565b80516040830190612efc8482612b88565b5060208201516109766020850182612b20565b604081016107c08284612eeb565b600067ffffffffffffffff821115612f3757612f37612b9c565b5060209081020190565b6000612f4f612c4084612f1d565b83815290506020808201908402830185811115612f6e57612f6e600080fd5b835b81811015612f925780612f838882612ae3565b84525060209283019201612f70565b5050509392505050565b600082601f830112612fb057612fb0600080fd5b81356108fd848260208601612f41565b600060208284031215612fd557612fd5600080fd5b813567ffffffffffffffff811115612fef57612fef600080fd5b6108fd84828501612f9c565b6000806040838503121561301157613011600080fd5b6000612b6d8585612ae3565b6040810161302b8285612b88565b61132c6020830184612b20565b6000806040838503121561304e5761304e600080fd5b600061305a8585612b40565b9250506020612b7e85828601612b40565b6000613075825190565b80845260209384019383018060005b83811015612e565781516130988882612e04565b975060208301925050600101613084565b6020808252810161132c818461306b565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806130e457607f821691505b6020821081036130f6576130f66130ba565b50919050565b603081526000602082017f5468697320636f6e74726163742063616e206f6e6c792072656365697665204c81526f34bb32b990333937b69034ba39b2b63360811b602082015291505b5060400190565b602080825281016107c0816130fc565b602c81526000602082017f43616e74206465706f736974204c69766573207768656e204172656e6120697381526b20696e2070726f677265737360a01b60208201529150613145565b602080825281016107c08161315c565b634e487b7160e01b600052601160045260246000fd5b600060001982036131de576131de6131b5565b5060010190565b606081016131f38286612b20565b6132006020830185612b88565b6108fd6040830184612b20565b6040810161321b8285612b20565b61132c6020830184612b88565b80516107c081612add565b60006020828403121561324857613248600080fd5b60006108fd8484613228565b80516107c081612d7c565b60006020828403121561327457613274600080fd5b60006108fd8484613254565b634e487b7160e01b600052603260045260246000fd5b6009815260006020820168373ab6361030b2323960b91b815291505b5060200190565b602080825281016107c081613296565b601881526000602082017f4d757374206f6e6c792062652031206c696665206c6566740000000000000000815291506132b2565b602080825281016107c0816132c9565b6016815260006020820175149bdd5b99081d1a5b59481b5d5cdd081899481cd95d60521b815291506132b2565b602080825281016107c08161330d565b601c81526000602082017f456c696d696e6174696f6e2072617465206d7573742062652073657400000000815291506132b2565b602080825281016107c08161334a565b601781526000602082017f5f636f696e41646472657373206d757374206578697374000000000000000000815291506132b2565b602080825281016107c08161338e565b818103818111156107c0576107c06131b5565b634e487b7160e01b600052603160045260246000fd5b818102808215838204851417611641576116416131b5565b808201808211156107c0576107c06131b5565b601e81526000602082017f506c617967726f756e64206d75737420626520696e2070726f67726573730000815291506132b2565b602080825281016107c081613426565b602481526000602082017f4d757374206c656176652077697468203230206f72206c65737320617420612081526374696d6560e01b60208201529150613145565b602080825281016107c08161346a565b601a81526000602082017f4d757374206c656176652077697468206174206c656173742031000000000000815291506132b2565b602080825281016107c0816134bb565b602181526000602082017f4d757374207761697420756e74696c206e65787420726f756e642073746172748152607360f81b60208201529150613145565b602080825281016107c0816134ff565b600d81526000602082016c4d757374206f776e204c69666560981b815291506132b2565b602080825281016107c08161354d565b602581526000602082017f5f636f696e4d696e745072696365206d75737420626520677265617465722074815264068616e20360dc1b60208201529150613145565b602080825281016107c081613581565b601d81526000602082017f5f636f696e41646472657373206d757374206e6f74206265206e756c6c000000815291506132b2565b602080825281016107c0816135d3565b601881526000602082017f5f636f696e41646472657373206d757374206265206e65770000000000000000815291506132b2565b602080825281016107c081613617565b6000613665825190565b613673818560208601612a76565b9290920192915050565b6000613689828561365b565b91506108fd828461365b565b601d81526000602082017f4d757374207761697420756e74696c20726f756e64206973206f766572000000815291506132b2565b602080825281016107c081613695565b601981526000602082017f4d757374206e6f742064657374726f79204368616d70696f6e00000000000000815291506132b2565b602080825281016107c0816136d9565b634e487b7160e01b600052601260045260246000fd5b6000826137425761374261371d565b500490565b6000826137565761375661371d565b500690565b606081016137698286612b20565b6137766020830185612b88565b6108fd6040830184612b88565b602681526000602082017f5f636f696e41646472657373206d75737420616c7265616479206578697374208152650696e206d61760d41b60208201529150613145565b602080825281016107c081613783565b601a81526000602082017f436170206d7573742062652067726561746572207468616e2030000000000000815291506132b2565b602080825281016107c0816137d6565b601381526000602082017226bab9ba1031329033b0b6b29036b0b9ba32b960691b815291506132b2565b602080825281016107c08161381a565b6014815260006020820173496e76616c696420636f696e206164647265737360601b815291506132b2565b602080825281016107c081613854565b6016815260006020820175496e76616c69642073656e646572206164647265737360501b815291506132b2565b602080825281016107c08161388f565b601981526000602082017f496e76616c696420726563697069656e74206164647265737300000000000000815291506132b2565b602080825281016107c0816138cc565b602281526000602082017f436f696e20616d6f756e74206d7573742062652067726561746572207468616e815261020360f41b60208201529150613145565b602080825281016107c081613910565b601d81526000602082017f4e6f7420656e6f75676820746f6b656e7320696e20636f6e7472616374000000815291506132b2565b602080825281016107c08161395f565b601481526000602082017310dbda5b881d1c985b9cd9995c8819985a5b195960621b815291506132b2565b602080825281016107c0816139a3565b6040810161302b8285612b20565b6016815260006020820175436f696e20616c6c6f77616e636520746f6f206c6f7760501b815291506132b2565b602080825281016107c0816139ec565b60608101613a378286612b20565b6137766020830185612b20565b60808101613a528287612b20565b613a5f6020830186612b20565b613a6c6040830185612b20565b613a796060830184612b88565b95945050505050565b602281526000602082017f506c617967726f756e64206d757374206e6f7420626520696e2070726f677265815261737360f01b60208201529150613145565b602080825281016107c081613a82565b600f81526000602082016e26b4b73a1036bab9ba1031329037b760891b815291506132b2565b602080825281016107c081613ad1565b601581526000602082017404d757374206d696e74206d6f7265207468616e203605c1b815291506132b2565b602080825281016107c081613b07565b601781526000602082017f4d757374206d696e74206c657373207468616e20313030000000000000000000815291506132b2565b602080825281016107c081613b43565b6016815260006020820175436f696e206d7573742068617665206120707269636560501b815291506132b2565b602080825281016107c081613b87565b601781526000602082017f4d757374206861766520656e6f75676820746f6b656e73000000000000000000815291506132b2565b602080825281016107c081613bc4565b601881526000602082017f4d757374206e6f7420657863656564206c696665206361700000000000000000815291506132b2565b602080825281016107c081613c08565b601481526000602082017326bab9ba102737ba1021329021b430b6b834b7b760611b815291506132b2565b602080825281016107c081613c4c565b60808101613c958287612b20565b613ca26020830186612b20565b613caf6040830185612b88565b8181036060830152613cc18184612a9a565b9695505050505050565b80516107c081612a1b565b600060208284031215613ceb57613ceb600080fd5b60006108fd8484613ccb565b60006107c08260601b90565b60006107c082613cf7565b612a62613d1a82612b0f565b613d03565b6000613d2b8289612b88565b602082019150613d3b8288612b88565b602082019150613d4b8287612b88565b602082019150613d5b8286612b88565b602082019150613d6b8285613d0e565b601482019150613d7b8284612b88565b50602001969550505050505056fea2646970667358221220ece0bee0909e89b9cdd2ffb3f3595c2a3500e3d149d8d41b98288bfceee80f1964736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000535b7425c8afcd27d535c4b6fd7f86bd2e7b54620000000000000000000000009c0a9a819c6bf9e628803f89c65fbae49c82734c0000000000000000000000002a9ae904fa9a5e448b9c73f200319085bce833cf
-----Decoded View---------------
Arg [0] : _trashCan (address): 0x535B7425c8AFcd27d535c4b6Fd7f86Bd2E7b5462
Arg [1] : _devWallet (address): 0x9C0a9A819c6BF9E628803F89c65fBae49C82734c
Arg [2] : _owner (address): 0x2a9Ae904fA9A5E448B9C73F200319085bCe833cf
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000535b7425c8afcd27d535c4b6fd7f86bd2e7b5462
Arg [1] : 0000000000000000000000009c0a9a819c6bf9e628803f89c65fbae49c82734c
Arg [2] : 0000000000000000000000002a9ae904fa9a5e448b9c73f200319085bce833cf
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.