ERC-721
Overview
Max Total Supply
250 SL
Holders
95
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
2 SLLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
SpaceLegends
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC2981.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol'; import "./IWrappedFantom.sol"; /* Custom Error Section - Use with ethers.js for custom errors */ // Public Mint is Paused error MintPaused(); //Not whitelisted for early mint error NotWhitelisted(); // Cannot mint zero NFTs error AmountLessThanOne(); // Cannot mint more than maxMintAmount error AmountOverMax(uint256 amtMint, uint256 maxMint); // Token not in Auth List error TokenNotAuthorized(); // Not enough mints left for mint amount error NotEnoughMintsLeft(uint256 supplyLeft, uint256 amtMint); // Not enough ftm sent to mint error InsufficientFTM(uint256 totalCost, uint256 amtFTM); contract SpaceLegends is ERC721Enumerable, Ownable, ERC2981 { using Strings for uint256; string baseURI; string public baseExtension = ".json"; address public lpPair; // = 0x2b4C76d0dc16BE1C31D4C1DC53bF9B45987Fc75c; - usdcftm pair IWrappedFantom wftm = IWrappedFantom(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83); //Team wallets address[] private team = [ 0x962A2880Eb188AB4C2Cfe9874247fCC60a243d13, //5% 0x11584D6AaeBFdbF48Cd5A11599BF40b5bC386837, //5% 0x3bb94651bFaaD1618Ed8CDaa4742BaabA24e739A, //35% 0x0805634aA63B3152b8B1809D18B883f7c9059f92 //55% ]; mapping(address => uint) public whitelistedAddresses; //@audit cost too low? mapping(address => uint) public acceptedCurrencies; uint256 public immutable maxSupply; //2500 uint256 public immutable maxMintAmount; //5 bool public publicPaused = true; bool public whitelistPaused = true; uint16[2500] private ids; uint16 private index = 0; constructor( string memory _name, string memory _symbol, string memory _initBaseURI, //"" address _lpPair, address _royaltyAddress, uint _royaltiesPercentage, uint _maxSupply, uint _maxMintAmount ) ERC721(_name, _symbol) { maxSupply = _maxSupply; maxMintAmount = _maxMintAmount; lpPair = _lpPair; _setReceiver(_royaltyAddress); setBaseURI(_initBaseURI); _setRoyaltyPercentage(_royaltiesPercentage); } //address oath = 0x21Ada0D2aC28C3A5Fa3cD2eE30882dA8812279B6; //address wftm = 0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83; function addCurrency(address[] calldata acceptedCurrenciesInput, uint256[] calldata prices) external onlyOwner { require(acceptedCurrenciesInput.length == prices.length, "improper length"); uint len = prices.length; for(uint i; i < len; ++i) { if (acceptedCurrenciesInput[i] == address(wftm)) { acceptedCurrencies[address(0)] = prices[i]; } acceptedCurrencies[acceptedCurrenciesInput[i]] = prices[i]; } } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _pickRandomUniqueId(uint256 _random) private returns (uint256 id) { uint256 len = ids.length - index++; require(len > 0, "no ids left"); uint256 randomIndex = _random % len; id = ids[randomIndex] != 0 ? ids[randomIndex] : randomIndex; ids[randomIndex] = uint16(ids[len - 1] == 0 ? len - 1 : ids[len - 1]); ids[len - 1] = 0; } function mint(address token, uint amount) external payable { //mint is closed if(publicPaused && whitelistPaused) revert MintPaused(); //whitelist is open, public closed if(publicPaused && !whitelistPaused) { //Check if they are on the whitelist and can mint before public if(whitelistedAddresses[msg.sender] == 0) revert NotWhitelisted(); } //Are there any other possible circumstances? If public is open, whitelist check doesnt matter if(amount <= 0) revert AmountLessThanOne(); //require(amount > 0, 'Cannot mint 0'); if(amount > maxMintAmount) { revert AmountOverMax({ amtMint: amount, maxMint: maxMintAmount }); } //require(amount <= maxMintAmount, 'Amount to mint larger than max allowed'); if(acceptedCurrencies[token] <= 0) revert TokenNotAuthorized(); //require(acceptedCurrencies[token] > 0, "token not authorized"); uint256 supply = totalSupply(); if(supply + amount > maxSupply) { revert NotEnoughMintsLeft({ supplyLeft: maxSupply - supply, amtMint: amount }); } //require(supply + amount <= maxSupply, 'Not enough mints left'); uint amountFromSender = msg.value; if (token == address(0)) { if(amountFromSender != amount * acceptedCurrencies[address(wftm)]) revert InsufficientFTM({ totalCost: amount * acceptedCurrencies[address(wftm)], amtFTM: amountFromSender }); //require(msg.value == amount * acceptedCurrencies[address(wftm)], "insufficient ftm"); wftm.deposit{ value: amountFromSender }(); _mintInternal(amount); } else { require(IERC20(token).transferFrom(msg.sender, address(this), amount * acceptedCurrencies[token]), "Payment not successful"); _mintInternal(amount); } } function _mintInternal(uint _amount) internal { for (uint256 i = 1; i <= _amount; ++i) { _safeMint(msg.sender, _pickRandomUniqueId(_getRandom()) +1); } } function _getRandom() internal returns (uint) { (uint token0, uint token1) = _getRandomNumbers(); return uint(keccak256(abi.encodePacked( token0, token1 ))); } function _getRandomNumbers() internal returns (uint, uint) { (uint token0, uint token1,) = IUniswapV2Pair(lpPair).getReserves(); return (token0, token1); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } function setWhitelist(address[] calldata _whitelistArray) public onlyOwner { uint len = _whitelistArray.length; for(uint i = 0; i < len; i++) { whitelistedAddresses[_whitelistArray[i]] = 1; } } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function pausePublic(bool _state) public onlyOwner { publicPaused = _state; } function pauseWhitelist(bool _state) public onlyOwner { whitelistPaused = _state; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, IERC165, ERC165Storage) returns (bool) { return super.supportsInterface(interfaceId); } function withdraw(address token) external onlyOwner { require(acceptedCurrencies[token] > 0, "token not authorized"); uint amount = IERC20(token).balanceOf(address(this)); require(amount > 0); if(token == address(0)) { //This should only need to be called if a bug occurs and FTM (not wFTM) is sent to the contract payable(msg.sender).transfer(address(this).balance); } else { IERC20(token).transfer(team[0], amount * 5 / 100); IERC20(token).transfer(team[1], amount * 5 / 100); IERC20(token).transfer(team[2], amount * 35 / 100); IERC20(token).transfer(team[3], amount * 55 / 100); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
/*** * ███████╗██████╗ ██████╗██████╗ █████╗ █████╗ ██╗ * ██╔════╝██╔══██╗██╔════╝╚════██╗██╔══██╗██╔══██╗███║ * █████╗ ██████╔╝██║ █████╔╝╚██████║╚█████╔╝╚██║ * ██╔══╝ ██╔══██╗██║ ██╔═══╝ ╚═══██║██╔══██╗ ██║ * ███████╗██║ ██║╚██████╗███████╗ █████╔╝╚█████╔╝ ██║ * ╚══════╝╚═╝ ╚═╝ ╚═════╝╚══════╝ ╚════╝ ╚════╝ ╚═╝ * Written by MaxflowO2 * You can follow along at https://github.com/MaxflowO2/ERC2981 */ pragma solidity ^0.8.4; // SPDX-License-Identifier: MIT import "./IERC2981.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; abstract contract ERC2981 is IERC2981, ERC165Storage { // Bytes4 Code for EIP-2981 bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; // Mappings _tokenID -> values address receiver; uint256 royaltyPercentage; constructor() { // Using ERC165Storage set EIP-2981 _registerInterface(_INTERFACE_ID_ERC2981); } // Set to be internal function _setReceiver function _setReceiver(address _address) internal { receiver = _address; } // Set to be internal function _setRoyaltyPercentage function _setRoyaltyPercentage(uint256 _royaltyPercentage) internal { royaltyPercentage = _royaltyPercentage; } // Override for royaltyInfo(uint256, uint256) // uses SafeMath for uint256 function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override(IERC2981) returns (address Receiver, uint256 royaltyAmount) { Receiver = receiver; royaltyAmount = _salePrice / 100 * royaltyPercentage; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @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); }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IWrappedFantom { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
/*** * ███████╗██╗██████╗ ██████╗ █████╗ █████╗ ██╗ * ██╔════╝██║██╔══██╗ ╚════██╗██╔══██╗██╔══██╗███║ * █████╗ ██║██████╔╝█████╗ █████╔╝╚██████║╚█████╔╝╚██║ * ██╔══╝ ██║██╔═══╝ ╚════╝██╔═══╝ ╚═══██║██╔══██╗ ██║ * ███████╗██║██║ ███████╗ █████╔╝╚█████╔╝ ██║ * ╚══════╝╚═╝╚═╝ ╚══════╝ ╚════╝ ╚════╝ ╚═╝ * Zach Burks, James Morgan, Blaine Malone, James Seibel, * "EIP-2981: NFT Royalty Standard," * Ethereum Improvement Proposals, no. 2981, September 2020. [Online serial]. * Available: https://eips.ethereum.org/EIPS/eip-2981. * * Minor edit on comments to mirror the rest of the interfaces * by @MaxFlowO2 on 29 Dec 2021 for v2.1 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol) pragma solidity ^0.8.0; import "./ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"address","name":"_lpPair","type":"address"},{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"uint256","name":"_royaltiesPercentage","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AmountLessThanOne","type":"error"},{"inputs":[{"internalType":"uint256","name":"amtMint","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"AmountOverMax","type":"error"},{"inputs":[{"internalType":"uint256","name":"totalCost","type":"uint256"},{"internalType":"uint256","name":"amtFTM","type":"uint256"}],"name":"InsufficientFTM","type":"error"},{"inputs":[],"name":"MintPaused","type":"error"},{"inputs":[{"internalType":"uint256","name":"supplyLeft","type":"uint256"},{"internalType":"uint256","name":"amtMint","type":"uint256"}],"name":"NotEnoughMintsLeft","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"TokenNotAuthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"acceptedCurrencies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"acceptedCurrenciesInput","type":"address[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"addCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"lpPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pausePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pauseWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"Receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistArray","type":"address[]"}],"name":"setWhitelist","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600f9080519060200190620000519291906200062b565b507321be370d5312f44cb42ce377bc9b8a0cef1a4c83601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604051806080016040528073962a2880eb188ab4c2cfe9874247fcc60a243d1373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020017311584d6aaebfdbf48cd5a11599bf40b5bc38683773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001733bb94651bfaad1618ed8cdaa4742baaba24e739a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001730805634aa63b3152b8b1809d18b883f7c9059f9273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152506012906004620001da929190620006bc565b506001601560006101000a81548160ff0219169083151502179055506001601560016101000a81548160ff021916908315150217905550600060b360006101000a81548161ffff021916908361ffff1602179055503480156200023c57600080fd5b5060405162006575380380620065758339818101604052810190620002629190620009a7565b878781600090805190602001906200027c9291906200062b565b508060019080519060200190620002959291906200062b565b505050620002b8620002ac6200036260201b60201c565b6200036a60201b60201c565b620002d0632a55205a60e01b6200043060201b60201c565b81608081815250508060a0818152505084601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000332846200050860201b60201c565b62000343866200054c60201b60201c565b6200035483620005f760201b60201c565b505050505050505062000c26565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916036200049b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004929062000b2e565b60405180910390fd5b6001600b6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6200055c6200036260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620005826200060160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620005db576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005d29062000ba0565b60405180910390fd5b80600e9080519060200190620005f39291906200062b565b5050565b80600d8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620006399062000bf1565b90600052602060002090601f0160209004810192826200065d5760008555620006a9565b82601f106200067857805160ff1916838001178555620006a9565b82800160010185558215620006a9579182015b82811115620006a85782518255916020019190600101906200068b565b5b509050620006b891906200074b565b5090565b82805482825590600052602060002090810192821562000738579160200282015b82811115620007375782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190620006dd565b5b5090506200074791906200074b565b5090565b5b80821115620007665760008160009055506001016200074c565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620007d38262000788565b810181811067ffffffffffffffff82111715620007f557620007f462000799565b5b80604052505050565b60006200080a6200076a565b9050620008188282620007c8565b919050565b600067ffffffffffffffff8211156200083b576200083a62000799565b5b620008468262000788565b9050602081019050919050565b60005b838110156200087357808201518184015260208101905062000856565b8381111562000883576000848401525b50505050565b6000620008a06200089a846200081d565b620007fe565b905082815260208101848484011115620008bf57620008be62000783565b5b620008cc84828562000853565b509392505050565b600082601f830112620008ec57620008eb6200077e565b5b8151620008fe84826020860162000889565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009348262000907565b9050919050565b620009468162000927565b81146200095257600080fd5b50565b60008151905062000966816200093b565b92915050565b6000819050919050565b62000981816200096c565b81146200098d57600080fd5b50565b600081519050620009a18162000976565b92915050565b600080600080600080600080610100898b031215620009cb57620009ca62000774565b5b600089015167ffffffffffffffff811115620009ec57620009eb62000779565b5b620009fa8b828c01620008d4565b985050602089015167ffffffffffffffff81111562000a1e5762000a1d62000779565b5b62000a2c8b828c01620008d4565b975050604089015167ffffffffffffffff81111562000a505762000a4f62000779565b5b62000a5e8b828c01620008d4565b965050606062000a718b828c0162000955565b955050608062000a848b828c0162000955565b94505060a062000a978b828c0162000990565b93505060c062000aaa8b828c0162000990565b92505060e062000abd8b828c0162000990565b9150509295985092959890939650565b600082825260208201905092915050565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000600082015250565b600062000b16601c8362000acd565b915062000b238262000ade565b602082019050919050565b6000602082019050818103600083015262000b498162000b07565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000b8860208362000acd565b915062000b958262000b50565b602082019050919050565b6000602082019050818103600083015262000bbb8162000b79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000c0a57607f821691505b60208210810362000c205762000c1f62000bc2565b5b50919050565b60805160a05161590d62000c6860003960008181610b6c01528181610e210152610e4a015260008181610f2d01528181610f610152612182015261590d6000f3fe60806040526004361061021a5760003560e01c806355f804b311610123578063b88d4fde116100ab578063e985e9c51161006f578063e985e9c5146107fd578063f2e2e2aa1461083a578063f2fde38b14610877578063f4217648146108a0578063f79c173f146108c95761021a565b8063b88d4fde14610718578063c668286214610741578063c87b56dd1461076c578063d5abeb01146107a9578063da3ef23f146107d45761021a565b806370a08231116100f257806370a0823114610645578063715018a6146106825780638da5cb5b1461069957806395d89b41146106c4578063a22cb465146106ef5761021a565b806355f804b31461058b57806361e61a25146105b45780636352211e146105df57806366cb24a51461061c5761021a565b80632a55205a116101a6578063438b630011610175578063438b630014610494578063452ed4f1146104d15780634f6ccce7146104fc5780635001b5e81461053957806351cff8d9146105625761021a565b80632a55205a146103d45780632f745c591461041257806340c10f191461044f57806342842e0e1461046b5761021a565b8063095ea7b3116101ed578063095ea7b3146103015780630bb12bb81461032a57806318160ddd14610355578063239c70ae1461038057806323b872dd146103ab5761021a565b806301ffc9a71461021f57806306c933d81461025c57806306fdde0314610299578063081812fc146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613d74565b6108f2565b6040516102539190613dbc565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e9190613e35565b610904565b6040516102909190613e7b565b60405180910390f35b3480156102a557600080fd5b506102ae61091c565b6040516102bb9190613f2f565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190613f7d565b6109ae565b6040516102f89190613fb9565b60405180910390f35b34801561030d57600080fd5b5061032860048036038101906103239190613fd4565b610a33565b005b34801561033657600080fd5b5061033f610b4a565b60405161034c9190613dbc565b60405180910390f35b34801561036157600080fd5b5061036a610b5d565b6040516103779190613e7b565b60405180910390f35b34801561038c57600080fd5b50610395610b6a565b6040516103a29190613e7b565b60405180910390f35b3480156103b757600080fd5b506103d260048036038101906103cd9190614014565b610b8e565b005b3480156103e057600080fd5b506103fb60048036038101906103f69190614067565b610bee565b6040516104099291906140a7565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190613fd4565b610c39565b6040516104469190613e7b565b60405180910390f35b61046960048036038101906104649190613fd4565b610cde565b005b34801561047757600080fd5b50610492600480360381019061048d9190614014565b6112c9565b005b3480156104a057600080fd5b506104bb60048036038101906104b69190613e35565b6112e9565b6040516104c8919061418e565b60405180910390f35b3480156104dd57600080fd5b506104e6611397565b6040516104f39190613fb9565b60405180910390f35b34801561050857600080fd5b50610523600480360381019061051e9190613f7d565b6113bd565b6040516105309190613e7b565b60405180910390f35b34801561054557600080fd5b50610560600480360381019061055b919061426b565b61142e565b005b34801561056e57600080fd5b5061058960048036038101906105849190613e35565b61167c565b005b34801561059757600080fd5b506105b260048036038101906105ad919061441c565b611be2565b005b3480156105c057600080fd5b506105c9611c78565b6040516105d69190613dbc565b60405180910390f35b3480156105eb57600080fd5b5061060660048036038101906106019190613f7d565b611c8b565b6040516106139190613fb9565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e9190614491565b611d3c565b005b34801561065157600080fd5b5061066c60048036038101906106679190613e35565b611dd5565b6040516106799190613e7b565b60405180910390f35b34801561068e57600080fd5b50610697611e8c565b005b3480156106a557600080fd5b506106ae611f14565b6040516106bb9190613fb9565b60405180910390f35b3480156106d057600080fd5b506106d9611f3e565b6040516106e69190613f2f565b60405180910390f35b3480156106fb57600080fd5b50610716600480360381019061071191906144be565b611fd0565b005b34801561072457600080fd5b5061073f600480360381019061073a919061459f565b611fe6565b005b34801561074d57600080fd5b50610756612048565b6040516107639190613f2f565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e9190613f7d565b6120d6565b6040516107a09190613f2f565b60405180910390f35b3480156107b557600080fd5b506107be612180565b6040516107cb9190613e7b565b60405180910390f35b3480156107e057600080fd5b506107fb60048036038101906107f6919061441c565b6121a4565b005b34801561080957600080fd5b50610824600480360381019061081f9190614622565b61223a565b6040516108319190613dbc565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190613e35565b6122ce565b60405161086e9190613e7b565b60405180910390f35b34801561088357600080fd5b5061089e60048036038101906108999190613e35565b6122e6565b005b3480156108ac57600080fd5b506108c760048036038101906108c29190614662565b6123dd565b005b3480156108d557600080fd5b506108f060048036038101906108eb9190614491565b6124f1565b005b60006108fd8261258a565b9050919050565b60136020528060005260406000206000915090505481565b60606000805461092b906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054610957906146de565b80156109a45780601f10610979576101008083540402835291602001916109a4565b820191906000526020600020905b81548152906001019060200180831161098757829003601f168201915b5050505050905090565b60006109b982612602565b6109f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ef90614781565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3e82611c8b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa590614813565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610acd61266e565b73ffffffffffffffffffffffffffffffffffffffff161480610afc5750610afb81610af661266e565b61223a565b5b610b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b32906148a5565b60405180910390fd5b610b458383612676565b505050565b601560009054906101000a900460ff1681565b6000600880549050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610b9f610b9961266e565b8261272f565b610bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd590614937565b60405180910390fd5b610be983838361280d565b505050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600d54606484610c2691906149b5565b610c3091906149e6565b90509250929050565b6000610c4483611dd5565b8210610c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7c90614ab2565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601560009054906101000a900460ff168015610d065750601560019054906101000a900460ff165b15610d3d576040517fd7d248ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560009054906101000a900460ff168015610d665750601560019054906101000a900460ff16155b15610de5576000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610de4576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b60008111610e1f576040517f5c48041e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610ea657807f00000000000000000000000000000000000000000000000000000000000000006040517fbcd7dd81000000000000000000000000000000000000000000000000000000008152600401610e9d929190614ad2565b60405180910390fd5b6000601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610f1f576040517fc9045d3a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f29610b5d565b90507f00000000000000000000000000000000000000000000000000000000000000008282610f589190614afb565b1115610fc857807f0000000000000000000000000000000000000000000000000000000000000000610f8a9190614b51565b826040517f67260a4a000000000000000000000000000000000000000000000000000000008152600401610fbf929190614ad2565b60405180910390fd5b6000349050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036111b05760146000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361106e91906149e6565b811461111f5760146000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836110e191906149e6565b816040517fe943ea64000000000000000000000000000000000000000000000000000000008152600401611116929190614ad2565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561118957600080fd5b505af115801561119d573d6000803e3d6000fd5b50505050506111ab83612a73565b6112c3565b8373ffffffffffffffffffffffffffffffffffffffff166323b872dd3330601460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548761121991906149e6565b6040518463ffffffff1660e01b815260040161123793929190614b85565b6020604051808303816000875af1158015611256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127a9190614bd1565b6112b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b090614c4a565b60405180910390fd5b6112c283612a73565b5b50505050565b6112e483838360405180602001604052806000815250611fe6565b505050565b606060006112f683611dd5565b905060008167ffffffffffffffff811115611314576113136142f1565b5b6040519080825280602002602001820160405280156113425781602001602082028036833780820191505090505b50905060005b8281101561138c5761135a8582610c39565b82828151811061136d5761136c614c6a565b5b602002602001018181525050808061138490614c99565b915050611348565b508092505050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006113c7610b5d565b8210611408576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ff90614d53565b60405180910390fd5b6008828154811061141c5761141b614c6a565b5b90600052602060002001549050919050565b61143661266e565b73ffffffffffffffffffffffffffffffffffffffff16611454611f14565b73ffffffffffffffffffffffffffffffffffffffff16146114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190614dbf565b60405180910390fd5b8181905084849050146114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990614e2b565b60405180910390fd5b600082829050905060005b8181101561167457601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1686868381811061155157611550614c6a565b5b90506020020160208101906115669190613e35565b73ffffffffffffffffffffffffffffffffffffffff16036115df5783838281811061159457611593614c6a565b5b90506020020135601460008073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8383828181106115f2576115f1614c6a565b5b90506020020135601460008888858181106116105761160f614c6a565b5b90506020020160208101906116259190613e35565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508061166d90614c99565b90506114fd565b505050505050565b61168461266e565b73ffffffffffffffffffffffffffffffffffffffff166116a2611f14565b73ffffffffffffffffffffffffffffffffffffffff16146116f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ef90614dbf565b60405180910390fd5b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161177a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177190614e97565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117b59190613fb9565b602060405180830381865afa1580156117d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f69190614ecc565b90506000811161180557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611885573373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561187f573d6000803e3d6000fd5b50611bde565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60126000815481106118b6576118b5614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660646005856118f091906149e6565b6118fa91906149b5565b6040518363ffffffff1660e01b81526004016119179291906140a7565b6020604051808303816000875af1158015611936573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195a9190614bd1565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb601260018154811061198c5761198b614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660646005856119c691906149e6565b6119d091906149b5565b6040518363ffffffff1660e01b81526004016119ed9291906140a7565b6020604051808303816000875af1158015611a0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a309190614bd1565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6012600281548110611a6257611a61614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166064602385611a9c91906149e6565b611aa691906149b5565b6040518363ffffffff1660e01b8152600401611ac39291906140a7565b6020604051808303816000875af1158015611ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b069190614bd1565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6012600381548110611b3857611b37614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166064603785611b7291906149e6565b611b7c91906149b5565b6040518363ffffffff1660e01b8152600401611b999291906140a7565b6020604051808303816000875af1158015611bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdc9190614bd1565b505b5050565b611bea61266e565b73ffffffffffffffffffffffffffffffffffffffff16611c08611f14565b73ffffffffffffffffffffffffffffffffffffffff1614611c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5590614dbf565b60405180910390fd5b80600e9080519060200190611c74929190613c65565b5050565b601560019054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a90614f6b565b60405180910390fd5b80915050919050565b611d4461266e565b73ffffffffffffffffffffffffffffffffffffffff16611d62611f14565b73ffffffffffffffffffffffffffffffffffffffff1614611db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daf90614dbf565b60405180910390fd5b80601560016101000a81548160ff02191690831515021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3c90614ffd565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611e9461266e565b73ffffffffffffffffffffffffffffffffffffffff16611eb2611f14565b73ffffffffffffffffffffffffffffffffffffffff1614611f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eff90614dbf565b60405180910390fd5b611f126000612abb565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611f4d906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054611f79906146de565b8015611fc65780601f10611f9b57610100808354040283529160200191611fc6565b820191906000526020600020905b815481529060010190602001808311611fa957829003601f168201915b5050505050905090565b611fe2611fdb61266e565b8383612b81565b5050565b611ff7611ff161266e565b8361272f565b612036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202d90614937565b60405180910390fd5b61204284848484612ced565b50505050565b600f8054612055906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054612081906146de565b80156120ce5780601f106120a3576101008083540402835291602001916120ce565b820191906000526020600020905b8154815290600101906020018083116120b157829003601f168201915b505050505081565b60606120e182612602565b612120576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121179061508f565b60405180910390fd5b600061212a612d49565b9050600081511161214a5760405180602001604052806000815250612178565b8061215484612ddb565b600f6040516020016121689392919061517f565b6040516020818303038152906040525b915050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6121ac61266e565b73ffffffffffffffffffffffffffffffffffffffff166121ca611f14565b73ffffffffffffffffffffffffffffffffffffffff1614612220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221790614dbf565b60405180910390fd5b80600f9080519060200190612236929190613c65565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60146020528060005260406000206000915090505481565b6122ee61266e565b73ffffffffffffffffffffffffffffffffffffffff1661230c611f14565b73ffffffffffffffffffffffffffffffffffffffff1614612362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235990614dbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c890615222565b60405180910390fd5b6123da81612abb565b50565b6123e561266e565b73ffffffffffffffffffffffffffffffffffffffff16612403611f14565b73ffffffffffffffffffffffffffffffffffffffff1614612459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245090614dbf565b60405180910390fd5b600082829050905060005b818110156124eb5760016013600086868581811061248557612484614c6a565b5b905060200201602081019061249a9190613e35565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806124e390614c99565b915050612464565b50505050565b6124f961266e565b73ffffffffffffffffffffffffffffffffffffffff16612517611f14565b73ffffffffffffffffffffffffffffffffffffffff161461256d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256490614dbf565b60405180910390fd5b80601560006101000a81548160ff02191690831515021790555050565b600061259582612f3b565b806125fb5750600b6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff165b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126e983611c8b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061273a82612602565b612779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612770906152b4565b60405180910390fd5b600061278483611c8b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127f357508373ffffffffffffffffffffffffffffffffffffffff166127db846109ae565b73ffffffffffffffffffffffffffffffffffffffff16145b806128045750612803818561223a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661282d82611c8b565b73ffffffffffffffffffffffffffffffffffffffff1614612883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287a90615346565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e9906153d8565b60405180910390fd5b6128fd838383612fb5565b612908600082612676565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129589190614b51565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129af9190614afb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a6e8383836130c7565b505050565b6000600190505b818111612ab757612aa6336001612a97612a926130cc565b613110565b612aa19190614afb565b61334a565b80612ab090614c99565b9050612a7a565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612bef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be690615444565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ce09190613dbc565b60405180910390a3505050565b612cf884848461280d565b612d0484848484613368565b612d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3a906154d6565b60405180910390fd5b50505050565b6060600e8054612d58906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054612d84906146de565b8015612dd15780601f10612da657610100808354040283529160200191612dd1565b820191906000526020600020905b815481529060010190602001808311612db457829003601f168201915b5050505050905090565b606060008203612e22576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f36565b600082905060005b60008214612e54578080612e3d90614c99565b915050600a82612e4d91906149b5565b9150612e2a565b60008167ffffffffffffffff811115612e7057612e6f6142f1565b5b6040519080825280601f01601f191660200182016040528015612ea25781602001600182028036833780820191505090505b5090505b60008514612f2f57600182612ebb9190614b51565b9150600a85612eca91906154f6565b6030612ed69190614afb565b60f81b818381518110612eec57612eeb614c6a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f2891906149b5565b9450612ea6565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612fae5750612fad826134ef565b5b9050919050565b612fc08383836135d1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361300257612ffd816135d6565b613041565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146130405761303f838261361f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130835761307e8161378c565b6130c2565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130c1576130c0828261385d565b5b5b505050565b505050565b60008060006130d96138dc565b9150915081816040516020016130f0929190615548565b6040516020818303038152906040528051906020012060001c9250505090565b60008060b3600081819054906101000a900461ffff168092919061313390615582565b91906101000a81548161ffff021916908361ffff16021790555061ffff166109c461315e9190614b51565b9050600081116131a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319a906155f8565b60405180910390fd5b600081846131b191906154f6565b905060006016826109c481106131ca576131c9614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff16036131f35780613227565b6016816109c4811061320857613207614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff165b92506000601660018461323a9190614b51565b6109c4811061324c5761324b614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff16146132b357601660018361327e9190614b51565b6109c481106132905761328f614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff166132c1565b6001826132c09190614b51565b5b6016826109c481106132d6576132d5614c6a565b5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506000601660018461330c9190614b51565b6109c4811061331e5761331d614c6a565b5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505050919050565b6133648282604051806020016040528060008152506139a4565b5050565b60006133898473ffffffffffffffffffffffffffffffffffffffff166139ff565b156134e2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133b261266e565b8786866040518563ffffffff1660e01b81526004016133d4949392919061566d565b6020604051808303816000875af192505050801561341057506040513d601f19601f8201168201806040525081019061340d91906156ce565b60015b613492573d8060008114613440576040519150601f19603f3d011682016040523d82523d6000602084013e613445565b606091505b50600081510361348a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613481906154d6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134e7565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135ba57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135ca57506135c982613a22565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161362c84611dd5565b6136369190614b51565b905060006007600084815260200190815260200160002054905081811461371b576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506137a09190614b51565b90506000600960008481526020019081526020016000205490506000600883815481106137d0576137cf614c6a565b5b9060005260206000200154905080600883815481106137f2576137f1614c6a565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613841576138406156fb565b5b6001900381819060005260206000200160009055905550505050565b600061386883611dd5565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561394f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397391906157ac565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff16915081819350935050509091565b6139ae8383613a8c565b6139bb6000848484613368565b6139fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139f1906154d6565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613af29061584b565b60405180910390fd5b613b0481612602565b15613b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b3b906158b7565b60405180910390fd5b613b5060008383612fb5565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613ba09190614afb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c61600083836130c7565b5050565b828054613c71906146de565b90600052602060002090601f016020900481019282613c935760008555613cda565b82601f10613cac57805160ff1916838001178555613cda565b82800160010185558215613cda579182015b82811115613cd9578251825591602001919060010190613cbe565b5b509050613ce79190613ceb565b5090565b5b80821115613d04576000816000905550600101613cec565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d5181613d1c565b8114613d5c57600080fd5b50565b600081359050613d6e81613d48565b92915050565b600060208284031215613d8a57613d89613d12565b5b6000613d9884828501613d5f565b91505092915050565b60008115159050919050565b613db681613da1565b82525050565b6000602082019050613dd16000830184613dad565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e0282613dd7565b9050919050565b613e1281613df7565b8114613e1d57600080fd5b50565b600081359050613e2f81613e09565b92915050565b600060208284031215613e4b57613e4a613d12565b5b6000613e5984828501613e20565b91505092915050565b6000819050919050565b613e7581613e62565b82525050565b6000602082019050613e906000830184613e6c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ed0578082015181840152602081019050613eb5565b83811115613edf576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f0182613e96565b613f0b8185613ea1565b9350613f1b818560208601613eb2565b613f2481613ee5565b840191505092915050565b60006020820190508181036000830152613f498184613ef6565b905092915050565b613f5a81613e62565b8114613f6557600080fd5b50565b600081359050613f7781613f51565b92915050565b600060208284031215613f9357613f92613d12565b5b6000613fa184828501613f68565b91505092915050565b613fb381613df7565b82525050565b6000602082019050613fce6000830184613faa565b92915050565b60008060408385031215613feb57613fea613d12565b5b6000613ff985828601613e20565b925050602061400a85828601613f68565b9150509250929050565b60008060006060848603121561402d5761402c613d12565b5b600061403b86828701613e20565b935050602061404c86828701613e20565b925050604061405d86828701613f68565b9150509250925092565b6000806040838503121561407e5761407d613d12565b5b600061408c85828601613f68565b925050602061409d85828601613f68565b9150509250929050565b60006040820190506140bc6000830185613faa565b6140c96020830184613e6c565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61410581613e62565b82525050565b600061411783836140fc565b60208301905092915050565b6000602082019050919050565b600061413b826140d0565b61414581856140db565b9350614150836140ec565b8060005b83811015614181578151614168888261410b565b975061417383614123565b925050600181019050614154565b5085935050505092915050565b600060208201905081810360008301526141a88184614130565b905092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126141d5576141d46141b0565b5b8235905067ffffffffffffffff8111156141f2576141f16141b5565b5b60208301915083602082028301111561420e5761420d6141ba565b5b9250929050565b60008083601f84011261422b5761422a6141b0565b5b8235905067ffffffffffffffff811115614248576142476141b5565b5b602083019150836020820283011115614264576142636141ba565b5b9250929050565b6000806000806040858703121561428557614284613d12565b5b600085013567ffffffffffffffff8111156142a3576142a2613d17565b5b6142af878288016141bf565b9450945050602085013567ffffffffffffffff8111156142d2576142d1613d17565b5b6142de87828801614215565b925092505092959194509250565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61432982613ee5565b810181811067ffffffffffffffff82111715614348576143476142f1565b5b80604052505050565b600061435b613d08565b90506143678282614320565b919050565b600067ffffffffffffffff821115614387576143866142f1565b5b61439082613ee5565b9050602081019050919050565b82818337600083830152505050565b60006143bf6143ba8461436c565b614351565b9050828152602081018484840111156143db576143da6142ec565b5b6143e684828561439d565b509392505050565b600082601f830112614403576144026141b0565b5b81356144138482602086016143ac565b91505092915050565b60006020828403121561443257614431613d12565b5b600082013567ffffffffffffffff8111156144505761444f613d17565b5b61445c848285016143ee565b91505092915050565b61446e81613da1565b811461447957600080fd5b50565b60008135905061448b81614465565b92915050565b6000602082840312156144a7576144a6613d12565b5b60006144b58482850161447c565b91505092915050565b600080604083850312156144d5576144d4613d12565b5b60006144e385828601613e20565b92505060206144f48582860161447c565b9150509250929050565b600067ffffffffffffffff821115614519576145186142f1565b5b61452282613ee5565b9050602081019050919050565b600061454261453d846144fe565b614351565b90508281526020810184848401111561455e5761455d6142ec565b5b61456984828561439d565b509392505050565b600082601f830112614586576145856141b0565b5b813561459684826020860161452f565b91505092915050565b600080600080608085870312156145b9576145b8613d12565b5b60006145c787828801613e20565b94505060206145d887828801613e20565b93505060406145e987828801613f68565b925050606085013567ffffffffffffffff81111561460a57614609613d17565b5b61461687828801614571565b91505092959194509250565b6000806040838503121561463957614638613d12565b5b600061464785828601613e20565b925050602061465885828601613e20565b9150509250929050565b6000806020838503121561467957614678613d12565b5b600083013567ffffffffffffffff81111561469757614696613d17565b5b6146a3858286016141bf565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146f657607f821691505b602082108103614709576147086146af565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061476b602c83613ea1565b91506147768261470f565b604082019050919050565b6000602082019050818103600083015261479a8161475e565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006147fd602183613ea1565b9150614808826147a1565b604082019050919050565b6000602082019050818103600083015261482c816147f0565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061488f603883613ea1565b915061489a82614833565b604082019050919050565b600060208201905081810360008301526148be81614882565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614921603183613ea1565b915061492c826148c5565b604082019050919050565b6000602082019050818103600083015261495081614914565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149c082613e62565b91506149cb83613e62565b9250826149db576149da614957565b5b828204905092915050565b60006149f182613e62565b91506149fc83613e62565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a3557614a34614986565b5b828202905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614a9c602b83613ea1565b9150614aa782614a40565b604082019050919050565b60006020820190508181036000830152614acb81614a8f565b9050919050565b6000604082019050614ae76000830185613e6c565b614af46020830184613e6c565b9392505050565b6000614b0682613e62565b9150614b1183613e62565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b4657614b45614986565b5b828201905092915050565b6000614b5c82613e62565b9150614b6783613e62565b925082821015614b7a57614b79614986565b5b828203905092915050565b6000606082019050614b9a6000830186613faa565b614ba76020830185613faa565b614bb46040830184613e6c565b949350505050565b600081519050614bcb81614465565b92915050565b600060208284031215614be757614be6613d12565b5b6000614bf584828501614bbc565b91505092915050565b7f5061796d656e74206e6f74207375636365737366756c00000000000000000000600082015250565b6000614c34601683613ea1565b9150614c3f82614bfe565b602082019050919050565b60006020820190508181036000830152614c6381614c27565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614ca482613e62565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614cd657614cd5614986565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614d3d602c83613ea1565b9150614d4882614ce1565b604082019050919050565b60006020820190508181036000830152614d6c81614d30565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614da9602083613ea1565b9150614db482614d73565b602082019050919050565b60006020820190508181036000830152614dd881614d9c565b9050919050565b7f696d70726f706572206c656e6774680000000000000000000000000000000000600082015250565b6000614e15600f83613ea1565b9150614e2082614ddf565b602082019050919050565b60006020820190508181036000830152614e4481614e08565b9050919050565b7f746f6b656e206e6f7420617574686f72697a6564000000000000000000000000600082015250565b6000614e81601483613ea1565b9150614e8c82614e4b565b602082019050919050565b60006020820190508181036000830152614eb081614e74565b9050919050565b600081519050614ec681613f51565b92915050565b600060208284031215614ee257614ee1613d12565b5b6000614ef084828501614eb7565b91505092915050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614f55602983613ea1565b9150614f6082614ef9565b604082019050919050565b60006020820190508181036000830152614f8481614f48565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614fe7602a83613ea1565b9150614ff282614f8b565b604082019050919050565b6000602082019050818103600083015261501681614fda565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615079602f83613ea1565b91506150848261501d565b604082019050919050565b600060208201905081810360008301526150a88161506c565b9050919050565b600081905092915050565b60006150c582613e96565b6150cf81856150af565b93506150df818560208601613eb2565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461510d816146de565b61511781866150af565b94506001821660008114615132576001811461514357615176565b60ff19831686528186019350615176565b61514c856150eb565b60005b8381101561516e5781548189015260018201915060208101905061514f565b838801955050505b50505092915050565b600061518b82866150ba565b915061519782856150ba565b91506151a38284615100565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061520c602683613ea1565b9150615217826151b0565b604082019050919050565b6000602082019050818103600083015261523b816151ff565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061529e602c83613ea1565b91506152a982615242565b604082019050919050565b600060208201905081810360008301526152cd81615291565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615330602583613ea1565b915061533b826152d4565b604082019050919050565b6000602082019050818103600083015261535f81615323565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006153c2602483613ea1565b91506153cd82615366565b604082019050919050565b600060208201905081810360008301526153f1816153b5565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061542e601983613ea1565b9150615439826153f8565b602082019050919050565b6000602082019050818103600083015261545d81615421565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006154c0603283613ea1565b91506154cb82615464565b604082019050919050565b600060208201905081810360008301526154ef816154b3565b9050919050565b600061550182613e62565b915061550c83613e62565b92508261551c5761551b614957565b5b828206905092915050565b6000819050919050565b61554261553d82613e62565b615527565b82525050565b60006155548285615531565b6020820191506155648284615531565b6020820191508190509392505050565b600061ffff82169050919050565b600061558d82615574565b915061ffff82036155a1576155a0614986565b5b600182019050919050565b7f6e6f20696473206c656674000000000000000000000000000000000000000000600082015250565b60006155e2600b83613ea1565b91506155ed826155ac565b602082019050919050565b60006020820190508181036000830152615611816155d5565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061563f82615618565b6156498185615623565b9350615659818560208601613eb2565b61566281613ee5565b840191505092915050565b60006080820190506156826000830187613faa565b61568f6020830186613faa565b61569c6040830185613e6c565b81810360608301526156ae8184615634565b905095945050505050565b6000815190506156c881613d48565b92915050565b6000602082840312156156e4576156e3613d12565b5b60006156f2848285016156b9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006dffffffffffffffffffffffffffff82169050919050565b61574d8161572a565b811461575857600080fd5b50565b60008151905061576a81615744565b92915050565b600063ffffffff82169050919050565b61578981615770565b811461579457600080fd5b50565b6000815190506157a681615780565b92915050565b6000806000606084860312156157c5576157c4613d12565b5b60006157d38682870161575b565b93505060206157e48682870161575b565b92505060406157f586828701615797565b9150509250925092565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615835602083613ea1565b9150615840826157ff565b602082019050919050565b6000602082019050818103600083015261586481615828565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006158a1601c83613ea1565b91506158ac8261586b565b602082019050919050565b600060208201905081810360008301526158d081615894565b905091905056fea264697066735822122072d6d4c594cfeff3c1305ed217640bb092dbb7c2cf2819abe777f3cf4c2c21c964736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c0000000000000000000000000805634aa63b3152b8b1809d18b883f7c9059f92000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000009c40000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000c53706163654c6567656e647300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002534c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806355f804b311610123578063b88d4fde116100ab578063e985e9c51161006f578063e985e9c5146107fd578063f2e2e2aa1461083a578063f2fde38b14610877578063f4217648146108a0578063f79c173f146108c95761021a565b8063b88d4fde14610718578063c668286214610741578063c87b56dd1461076c578063d5abeb01146107a9578063da3ef23f146107d45761021a565b806370a08231116100f257806370a0823114610645578063715018a6146106825780638da5cb5b1461069957806395d89b41146106c4578063a22cb465146106ef5761021a565b806355f804b31461058b57806361e61a25146105b45780636352211e146105df57806366cb24a51461061c5761021a565b80632a55205a116101a6578063438b630011610175578063438b630014610494578063452ed4f1146104d15780634f6ccce7146104fc5780635001b5e81461053957806351cff8d9146105625761021a565b80632a55205a146103d45780632f745c591461041257806340c10f191461044f57806342842e0e1461046b5761021a565b8063095ea7b3116101ed578063095ea7b3146103015780630bb12bb81461032a57806318160ddd14610355578063239c70ae1461038057806323b872dd146103ab5761021a565b806301ffc9a71461021f57806306c933d81461025c57806306fdde0314610299578063081812fc146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613d74565b6108f2565b6040516102539190613dbc565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e9190613e35565b610904565b6040516102909190613e7b565b60405180910390f35b3480156102a557600080fd5b506102ae61091c565b6040516102bb9190613f2f565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190613f7d565b6109ae565b6040516102f89190613fb9565b60405180910390f35b34801561030d57600080fd5b5061032860048036038101906103239190613fd4565b610a33565b005b34801561033657600080fd5b5061033f610b4a565b60405161034c9190613dbc565b60405180910390f35b34801561036157600080fd5b5061036a610b5d565b6040516103779190613e7b565b60405180910390f35b34801561038c57600080fd5b50610395610b6a565b6040516103a29190613e7b565b60405180910390f35b3480156103b757600080fd5b506103d260048036038101906103cd9190614014565b610b8e565b005b3480156103e057600080fd5b506103fb60048036038101906103f69190614067565b610bee565b6040516104099291906140a7565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190613fd4565b610c39565b6040516104469190613e7b565b60405180910390f35b61046960048036038101906104649190613fd4565b610cde565b005b34801561047757600080fd5b50610492600480360381019061048d9190614014565b6112c9565b005b3480156104a057600080fd5b506104bb60048036038101906104b69190613e35565b6112e9565b6040516104c8919061418e565b60405180910390f35b3480156104dd57600080fd5b506104e6611397565b6040516104f39190613fb9565b60405180910390f35b34801561050857600080fd5b50610523600480360381019061051e9190613f7d565b6113bd565b6040516105309190613e7b565b60405180910390f35b34801561054557600080fd5b50610560600480360381019061055b919061426b565b61142e565b005b34801561056e57600080fd5b5061058960048036038101906105849190613e35565b61167c565b005b34801561059757600080fd5b506105b260048036038101906105ad919061441c565b611be2565b005b3480156105c057600080fd5b506105c9611c78565b6040516105d69190613dbc565b60405180910390f35b3480156105eb57600080fd5b5061060660048036038101906106019190613f7d565b611c8b565b6040516106139190613fb9565b60405180910390f35b34801561062857600080fd5b50610643600480360381019061063e9190614491565b611d3c565b005b34801561065157600080fd5b5061066c60048036038101906106679190613e35565b611dd5565b6040516106799190613e7b565b60405180910390f35b34801561068e57600080fd5b50610697611e8c565b005b3480156106a557600080fd5b506106ae611f14565b6040516106bb9190613fb9565b60405180910390f35b3480156106d057600080fd5b506106d9611f3e565b6040516106e69190613f2f565b60405180910390f35b3480156106fb57600080fd5b50610716600480360381019061071191906144be565b611fd0565b005b34801561072457600080fd5b5061073f600480360381019061073a919061459f565b611fe6565b005b34801561074d57600080fd5b50610756612048565b6040516107639190613f2f565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e9190613f7d565b6120d6565b6040516107a09190613f2f565b60405180910390f35b3480156107b557600080fd5b506107be612180565b6040516107cb9190613e7b565b60405180910390f35b3480156107e057600080fd5b506107fb60048036038101906107f6919061441c565b6121a4565b005b34801561080957600080fd5b50610824600480360381019061081f9190614622565b61223a565b6040516108319190613dbc565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190613e35565b6122ce565b60405161086e9190613e7b565b60405180910390f35b34801561088357600080fd5b5061089e60048036038101906108999190613e35565b6122e6565b005b3480156108ac57600080fd5b506108c760048036038101906108c29190614662565b6123dd565b005b3480156108d557600080fd5b506108f060048036038101906108eb9190614491565b6124f1565b005b60006108fd8261258a565b9050919050565b60136020528060005260406000206000915090505481565b60606000805461092b906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054610957906146de565b80156109a45780601f10610979576101008083540402835291602001916109a4565b820191906000526020600020905b81548152906001019060200180831161098757829003601f168201915b5050505050905090565b60006109b982612602565b6109f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ef90614781565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3e82611c8b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa590614813565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610acd61266e565b73ffffffffffffffffffffffffffffffffffffffff161480610afc5750610afb81610af661266e565b61223a565b5b610b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b32906148a5565b60405180910390fd5b610b458383612676565b505050565b601560009054906101000a900460ff1681565b6000600880549050905090565b7f000000000000000000000000000000000000000000000000000000000000000581565b610b9f610b9961266e565b8261272f565b610bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd590614937565b60405180910390fd5b610be983838361280d565b505050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600d54606484610c2691906149b5565b610c3091906149e6565b90509250929050565b6000610c4483611dd5565b8210610c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7c90614ab2565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601560009054906101000a900460ff168015610d065750601560019054906101000a900460ff165b15610d3d576040517fd7d248ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560009054906101000a900460ff168015610d665750601560019054906101000a900460ff16155b15610de5576000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205403610de4576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b60008111610e1f576040517f5c48041e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000005811115610ea657807f00000000000000000000000000000000000000000000000000000000000000056040517fbcd7dd81000000000000000000000000000000000000000000000000000000008152600401610e9d929190614ad2565b60405180910390fd5b6000601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610f1f576040517fc9045d3a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f29610b5d565b90507f00000000000000000000000000000000000000000000000000000000000009c48282610f589190614afb565b1115610fc857807f00000000000000000000000000000000000000000000000000000000000009c4610f8a9190614b51565b826040517f67260a4a000000000000000000000000000000000000000000000000000000008152600401610fbf929190614ad2565b60405180910390fd5b6000349050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036111b05760146000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361106e91906149e6565b811461111f5760146000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054836110e191906149e6565b816040517fe943ea64000000000000000000000000000000000000000000000000000000008152600401611116929190614ad2565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561118957600080fd5b505af115801561119d573d6000803e3d6000fd5b50505050506111ab83612a73565b6112c3565b8373ffffffffffffffffffffffffffffffffffffffff166323b872dd3330601460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548761121991906149e6565b6040518463ffffffff1660e01b815260040161123793929190614b85565b6020604051808303816000875af1158015611256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127a9190614bd1565b6112b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b090614c4a565b60405180910390fd5b6112c283612a73565b5b50505050565b6112e483838360405180602001604052806000815250611fe6565b505050565b606060006112f683611dd5565b905060008167ffffffffffffffff811115611314576113136142f1565b5b6040519080825280602002602001820160405280156113425781602001602082028036833780820191505090505b50905060005b8281101561138c5761135a8582610c39565b82828151811061136d5761136c614c6a565b5b602002602001018181525050808061138490614c99565b915050611348565b508092505050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006113c7610b5d565b8210611408576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ff90614d53565b60405180910390fd5b6008828154811061141c5761141b614c6a565b5b90600052602060002001549050919050565b61143661266e565b73ffffffffffffffffffffffffffffffffffffffff16611454611f14565b73ffffffffffffffffffffffffffffffffffffffff16146114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190614dbf565b60405180910390fd5b8181905084849050146114f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e990614e2b565b60405180910390fd5b600082829050905060005b8181101561167457601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1686868381811061155157611550614c6a565b5b90506020020160208101906115669190613e35565b73ffffffffffffffffffffffffffffffffffffffff16036115df5783838281811061159457611593614c6a565b5b90506020020135601460008073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8383828181106115f2576115f1614c6a565b5b90506020020135601460008888858181106116105761160f614c6a565b5b90506020020160208101906116259190613e35565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508061166d90614c99565b90506114fd565b505050505050565b61168461266e565b73ffffffffffffffffffffffffffffffffffffffff166116a2611f14565b73ffffffffffffffffffffffffffffffffffffffff16146116f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ef90614dbf565b60405180910390fd5b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161177a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177190614e97565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117b59190613fb9565b602060405180830381865afa1580156117d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f69190614ecc565b90506000811161180557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611885573373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561187f573d6000803e3d6000fd5b50611bde565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60126000815481106118b6576118b5614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660646005856118f091906149e6565b6118fa91906149b5565b6040518363ffffffff1660e01b81526004016119179291906140a7565b6020604051808303816000875af1158015611936573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195a9190614bd1565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb601260018154811061198c5761198b614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660646005856119c691906149e6565b6119d091906149b5565b6040518363ffffffff1660e01b81526004016119ed9291906140a7565b6020604051808303816000875af1158015611a0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a309190614bd1565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6012600281548110611a6257611a61614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166064602385611a9c91906149e6565b611aa691906149b5565b6040518363ffffffff1660e01b8152600401611ac39291906140a7565b6020604051808303816000875af1158015611ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b069190614bd1565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6012600381548110611b3857611b37614c6a565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166064603785611b7291906149e6565b611b7c91906149b5565b6040518363ffffffff1660e01b8152600401611b999291906140a7565b6020604051808303816000875af1158015611bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdc9190614bd1565b505b5050565b611bea61266e565b73ffffffffffffffffffffffffffffffffffffffff16611c08611f14565b73ffffffffffffffffffffffffffffffffffffffff1614611c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5590614dbf565b60405180910390fd5b80600e9080519060200190611c74929190613c65565b5050565b601560019054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2a90614f6b565b60405180910390fd5b80915050919050565b611d4461266e565b73ffffffffffffffffffffffffffffffffffffffff16611d62611f14565b73ffffffffffffffffffffffffffffffffffffffff1614611db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daf90614dbf565b60405180910390fd5b80601560016101000a81548160ff02191690831515021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3c90614ffd565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611e9461266e565b73ffffffffffffffffffffffffffffffffffffffff16611eb2611f14565b73ffffffffffffffffffffffffffffffffffffffff1614611f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eff90614dbf565b60405180910390fd5b611f126000612abb565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611f4d906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054611f79906146de565b8015611fc65780601f10611f9b57610100808354040283529160200191611fc6565b820191906000526020600020905b815481529060010190602001808311611fa957829003601f168201915b5050505050905090565b611fe2611fdb61266e565b8383612b81565b5050565b611ff7611ff161266e565b8361272f565b612036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202d90614937565b60405180910390fd5b61204284848484612ced565b50505050565b600f8054612055906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054612081906146de565b80156120ce5780601f106120a3576101008083540402835291602001916120ce565b820191906000526020600020905b8154815290600101906020018083116120b157829003601f168201915b505050505081565b60606120e182612602565b612120576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121179061508f565b60405180910390fd5b600061212a612d49565b9050600081511161214a5760405180602001604052806000815250612178565b8061215484612ddb565b600f6040516020016121689392919061517f565b6040516020818303038152906040525b915050919050565b7f00000000000000000000000000000000000000000000000000000000000009c481565b6121ac61266e565b73ffffffffffffffffffffffffffffffffffffffff166121ca611f14565b73ffffffffffffffffffffffffffffffffffffffff1614612220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221790614dbf565b60405180910390fd5b80600f9080519060200190612236929190613c65565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60146020528060005260406000206000915090505481565b6122ee61266e565b73ffffffffffffffffffffffffffffffffffffffff1661230c611f14565b73ffffffffffffffffffffffffffffffffffffffff1614612362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235990614dbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c890615222565b60405180910390fd5b6123da81612abb565b50565b6123e561266e565b73ffffffffffffffffffffffffffffffffffffffff16612403611f14565b73ffffffffffffffffffffffffffffffffffffffff1614612459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245090614dbf565b60405180910390fd5b600082829050905060005b818110156124eb5760016013600086868581811061248557612484614c6a565b5b905060200201602081019061249a9190613e35565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806124e390614c99565b915050612464565b50505050565b6124f961266e565b73ffffffffffffffffffffffffffffffffffffffff16612517611f14565b73ffffffffffffffffffffffffffffffffffffffff161461256d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256490614dbf565b60405180910390fd5b80601560006101000a81548160ff02191690831515021790555050565b600061259582612f3b565b806125fb5750600b6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff165b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126e983611c8b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061273a82612602565b612779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612770906152b4565b60405180910390fd5b600061278483611c8b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127f357508373ffffffffffffffffffffffffffffffffffffffff166127db846109ae565b73ffffffffffffffffffffffffffffffffffffffff16145b806128045750612803818561223a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661282d82611c8b565b73ffffffffffffffffffffffffffffffffffffffff1614612883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287a90615346565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e9906153d8565b60405180910390fd5b6128fd838383612fb5565b612908600082612676565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129589190614b51565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129af9190614afb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a6e8383836130c7565b505050565b6000600190505b818111612ab757612aa6336001612a97612a926130cc565b613110565b612aa19190614afb565b61334a565b80612ab090614c99565b9050612a7a565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612bef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be690615444565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ce09190613dbc565b60405180910390a3505050565b612cf884848461280d565b612d0484848484613368565b612d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3a906154d6565b60405180910390fd5b50505050565b6060600e8054612d58906146de565b80601f0160208091040260200160405190810160405280929190818152602001828054612d84906146de565b8015612dd15780601f10612da657610100808354040283529160200191612dd1565b820191906000526020600020905b815481529060010190602001808311612db457829003601f168201915b5050505050905090565b606060008203612e22576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f36565b600082905060005b60008214612e54578080612e3d90614c99565b915050600a82612e4d91906149b5565b9150612e2a565b60008167ffffffffffffffff811115612e7057612e6f6142f1565b5b6040519080825280601f01601f191660200182016040528015612ea25781602001600182028036833780820191505090505b5090505b60008514612f2f57600182612ebb9190614b51565b9150600a85612eca91906154f6565b6030612ed69190614afb565b60f81b818381518110612eec57612eeb614c6a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f2891906149b5565b9450612ea6565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612fae5750612fad826134ef565b5b9050919050565b612fc08383836135d1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361300257612ffd816135d6565b613041565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146130405761303f838261361f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130835761307e8161378c565b6130c2565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130c1576130c0828261385d565b5b5b505050565b505050565b60008060006130d96138dc565b9150915081816040516020016130f0929190615548565b6040516020818303038152906040528051906020012060001c9250505090565b60008060b3600081819054906101000a900461ffff168092919061313390615582565b91906101000a81548161ffff021916908361ffff16021790555061ffff166109c461315e9190614b51565b9050600081116131a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319a906155f8565b60405180910390fd5b600081846131b191906154f6565b905060006016826109c481106131ca576131c9614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff16036131f35780613227565b6016816109c4811061320857613207614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff165b92506000601660018461323a9190614b51565b6109c4811061324c5761324b614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff16146132b357601660018361327e9190614b51565b6109c481106132905761328f614c6a565b5b601091828204019190066002029054906101000a900461ffff1661ffff166132c1565b6001826132c09190614b51565b5b6016826109c481106132d6576132d5614c6a565b5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506000601660018461330c9190614b51565b6109c4811061331e5761331d614c6a565b5b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055505050919050565b6133648282604051806020016040528060008152506139a4565b5050565b60006133898473ffffffffffffffffffffffffffffffffffffffff166139ff565b156134e2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133b261266e565b8786866040518563ffffffff1660e01b81526004016133d4949392919061566d565b6020604051808303816000875af192505050801561341057506040513d601f19601f8201168201806040525081019061340d91906156ce565b60015b613492573d8060008114613440576040519150601f19603f3d011682016040523d82523d6000602084013e613445565b606091505b50600081510361348a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613481906154d6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134e7565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135ba57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135ca57506135c982613a22565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161362c84611dd5565b6136369190614b51565b905060006007600084815260200190815260200160002054905081811461371b576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506137a09190614b51565b90506000600960008481526020019081526020016000205490506000600883815481106137d0576137cf614c6a565b5b9060005260206000200154905080600883815481106137f2576137f1614c6a565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613841576138406156fb565b5b6001900381819060005260206000200160009055905550505050565b600061386883611dd5565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561394f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397391906157ac565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff16915081819350935050509091565b6139ae8383613a8c565b6139bb6000848484613368565b6139fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139f1906154d6565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613af29061584b565b60405180910390fd5b613b0481612602565b15613b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b3b906158b7565b60405180910390fd5b613b5060008383612fb5565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613ba09190614afb565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613c61600083836130c7565b5050565b828054613c71906146de565b90600052602060002090601f016020900481019282613c935760008555613cda565b82601f10613cac57805160ff1916838001178555613cda565b82800160010185558215613cda579182015b82811115613cd9578251825591602001919060010190613cbe565b5b509050613ce79190613ceb565b5090565b5b80821115613d04576000816000905550600101613cec565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d5181613d1c565b8114613d5c57600080fd5b50565b600081359050613d6e81613d48565b92915050565b600060208284031215613d8a57613d89613d12565b5b6000613d9884828501613d5f565b91505092915050565b60008115159050919050565b613db681613da1565b82525050565b6000602082019050613dd16000830184613dad565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e0282613dd7565b9050919050565b613e1281613df7565b8114613e1d57600080fd5b50565b600081359050613e2f81613e09565b92915050565b600060208284031215613e4b57613e4a613d12565b5b6000613e5984828501613e20565b91505092915050565b6000819050919050565b613e7581613e62565b82525050565b6000602082019050613e906000830184613e6c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ed0578082015181840152602081019050613eb5565b83811115613edf576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f0182613e96565b613f0b8185613ea1565b9350613f1b818560208601613eb2565b613f2481613ee5565b840191505092915050565b60006020820190508181036000830152613f498184613ef6565b905092915050565b613f5a81613e62565b8114613f6557600080fd5b50565b600081359050613f7781613f51565b92915050565b600060208284031215613f9357613f92613d12565b5b6000613fa184828501613f68565b91505092915050565b613fb381613df7565b82525050565b6000602082019050613fce6000830184613faa565b92915050565b60008060408385031215613feb57613fea613d12565b5b6000613ff985828601613e20565b925050602061400a85828601613f68565b9150509250929050565b60008060006060848603121561402d5761402c613d12565b5b600061403b86828701613e20565b935050602061404c86828701613e20565b925050604061405d86828701613f68565b9150509250925092565b6000806040838503121561407e5761407d613d12565b5b600061408c85828601613f68565b925050602061409d85828601613f68565b9150509250929050565b60006040820190506140bc6000830185613faa565b6140c96020830184613e6c565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61410581613e62565b82525050565b600061411783836140fc565b60208301905092915050565b6000602082019050919050565b600061413b826140d0565b61414581856140db565b9350614150836140ec565b8060005b83811015614181578151614168888261410b565b975061417383614123565b925050600181019050614154565b5085935050505092915050565b600060208201905081810360008301526141a88184614130565b905092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126141d5576141d46141b0565b5b8235905067ffffffffffffffff8111156141f2576141f16141b5565b5b60208301915083602082028301111561420e5761420d6141ba565b5b9250929050565b60008083601f84011261422b5761422a6141b0565b5b8235905067ffffffffffffffff811115614248576142476141b5565b5b602083019150836020820283011115614264576142636141ba565b5b9250929050565b6000806000806040858703121561428557614284613d12565b5b600085013567ffffffffffffffff8111156142a3576142a2613d17565b5b6142af878288016141bf565b9450945050602085013567ffffffffffffffff8111156142d2576142d1613d17565b5b6142de87828801614215565b925092505092959194509250565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61432982613ee5565b810181811067ffffffffffffffff82111715614348576143476142f1565b5b80604052505050565b600061435b613d08565b90506143678282614320565b919050565b600067ffffffffffffffff821115614387576143866142f1565b5b61439082613ee5565b9050602081019050919050565b82818337600083830152505050565b60006143bf6143ba8461436c565b614351565b9050828152602081018484840111156143db576143da6142ec565b5b6143e684828561439d565b509392505050565b600082601f830112614403576144026141b0565b5b81356144138482602086016143ac565b91505092915050565b60006020828403121561443257614431613d12565b5b600082013567ffffffffffffffff8111156144505761444f613d17565b5b61445c848285016143ee565b91505092915050565b61446e81613da1565b811461447957600080fd5b50565b60008135905061448b81614465565b92915050565b6000602082840312156144a7576144a6613d12565b5b60006144b58482850161447c565b91505092915050565b600080604083850312156144d5576144d4613d12565b5b60006144e385828601613e20565b92505060206144f48582860161447c565b9150509250929050565b600067ffffffffffffffff821115614519576145186142f1565b5b61452282613ee5565b9050602081019050919050565b600061454261453d846144fe565b614351565b90508281526020810184848401111561455e5761455d6142ec565b5b61456984828561439d565b509392505050565b600082601f830112614586576145856141b0565b5b813561459684826020860161452f565b91505092915050565b600080600080608085870312156145b9576145b8613d12565b5b60006145c787828801613e20565b94505060206145d887828801613e20565b93505060406145e987828801613f68565b925050606085013567ffffffffffffffff81111561460a57614609613d17565b5b61461687828801614571565b91505092959194509250565b6000806040838503121561463957614638613d12565b5b600061464785828601613e20565b925050602061465885828601613e20565b9150509250929050565b6000806020838503121561467957614678613d12565b5b600083013567ffffffffffffffff81111561469757614696613d17565b5b6146a3858286016141bf565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146f657607f821691505b602082108103614709576147086146af565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061476b602c83613ea1565b91506147768261470f565b604082019050919050565b6000602082019050818103600083015261479a8161475e565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006147fd602183613ea1565b9150614808826147a1565b604082019050919050565b6000602082019050818103600083015261482c816147f0565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061488f603883613ea1565b915061489a82614833565b604082019050919050565b600060208201905081810360008301526148be81614882565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614921603183613ea1565b915061492c826148c5565b604082019050919050565b6000602082019050818103600083015261495081614914565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149c082613e62565b91506149cb83613e62565b9250826149db576149da614957565b5b828204905092915050565b60006149f182613e62565b91506149fc83613e62565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a3557614a34614986565b5b828202905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614a9c602b83613ea1565b9150614aa782614a40565b604082019050919050565b60006020820190508181036000830152614acb81614a8f565b9050919050565b6000604082019050614ae76000830185613e6c565b614af46020830184613e6c565b9392505050565b6000614b0682613e62565b9150614b1183613e62565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b4657614b45614986565b5b828201905092915050565b6000614b5c82613e62565b9150614b6783613e62565b925082821015614b7a57614b79614986565b5b828203905092915050565b6000606082019050614b9a6000830186613faa565b614ba76020830185613faa565b614bb46040830184613e6c565b949350505050565b600081519050614bcb81614465565b92915050565b600060208284031215614be757614be6613d12565b5b6000614bf584828501614bbc565b91505092915050565b7f5061796d656e74206e6f74207375636365737366756c00000000000000000000600082015250565b6000614c34601683613ea1565b9150614c3f82614bfe565b602082019050919050565b60006020820190508181036000830152614c6381614c27565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614ca482613e62565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614cd657614cd5614986565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614d3d602c83613ea1565b9150614d4882614ce1565b604082019050919050565b60006020820190508181036000830152614d6c81614d30565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614da9602083613ea1565b9150614db482614d73565b602082019050919050565b60006020820190508181036000830152614dd881614d9c565b9050919050565b7f696d70726f706572206c656e6774680000000000000000000000000000000000600082015250565b6000614e15600f83613ea1565b9150614e2082614ddf565b602082019050919050565b60006020820190508181036000830152614e4481614e08565b9050919050565b7f746f6b656e206e6f7420617574686f72697a6564000000000000000000000000600082015250565b6000614e81601483613ea1565b9150614e8c82614e4b565b602082019050919050565b60006020820190508181036000830152614eb081614e74565b9050919050565b600081519050614ec681613f51565b92915050565b600060208284031215614ee257614ee1613d12565b5b6000614ef084828501614eb7565b91505092915050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614f55602983613ea1565b9150614f6082614ef9565b604082019050919050565b60006020820190508181036000830152614f8481614f48565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614fe7602a83613ea1565b9150614ff282614f8b565b604082019050919050565b6000602082019050818103600083015261501681614fda565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615079602f83613ea1565b91506150848261501d565b604082019050919050565b600060208201905081810360008301526150a88161506c565b9050919050565b600081905092915050565b60006150c582613e96565b6150cf81856150af565b93506150df818560208601613eb2565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461510d816146de565b61511781866150af565b94506001821660008114615132576001811461514357615176565b60ff19831686528186019350615176565b61514c856150eb565b60005b8381101561516e5781548189015260018201915060208101905061514f565b838801955050505b50505092915050565b600061518b82866150ba565b915061519782856150ba565b91506151a38284615100565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061520c602683613ea1565b9150615217826151b0565b604082019050919050565b6000602082019050818103600083015261523b816151ff565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061529e602c83613ea1565b91506152a982615242565b604082019050919050565b600060208201905081810360008301526152cd81615291565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615330602583613ea1565b915061533b826152d4565b604082019050919050565b6000602082019050818103600083015261535f81615323565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006153c2602483613ea1565b91506153cd82615366565b604082019050919050565b600060208201905081810360008301526153f1816153b5565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061542e601983613ea1565b9150615439826153f8565b602082019050919050565b6000602082019050818103600083015261545d81615421565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006154c0603283613ea1565b91506154cb82615464565b604082019050919050565b600060208201905081810360008301526154ef816154b3565b9050919050565b600061550182613e62565b915061550c83613e62565b92508261551c5761551b614957565b5b828206905092915050565b6000819050919050565b61554261553d82613e62565b615527565b82525050565b60006155548285615531565b6020820191506155648284615531565b6020820191508190509392505050565b600061ffff82169050919050565b600061558d82615574565b915061ffff82036155a1576155a0614986565b5b600182019050919050565b7f6e6f20696473206c656674000000000000000000000000000000000000000000600082015250565b60006155e2600b83613ea1565b91506155ed826155ac565b602082019050919050565b60006020820190508181036000830152615611816155d5565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061563f82615618565b6156498185615623565b9350615659818560208601613eb2565b61566281613ee5565b840191505092915050565b60006080820190506156826000830187613faa565b61568f6020830186613faa565b61569c6040830185613e6c565b81810360608301526156ae8184615634565b905095945050505050565b6000815190506156c881613d48565b92915050565b6000602082840312156156e4576156e3613d12565b5b60006156f2848285016156b9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006dffffffffffffffffffffffffffff82169050919050565b61574d8161572a565b811461575857600080fd5b50565b60008151905061576a81615744565b92915050565b600063ffffffff82169050919050565b61578981615770565b811461579457600080fd5b50565b6000815190506157a681615780565b92915050565b6000806000606084860312156157c5576157c4613d12565b5b60006157d38682870161575b565b93505060206157e48682870161575b565b92505060406157f586828701615797565b9150509250925092565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615835602083613ea1565b9150615840826157ff565b602082019050919050565b6000602082019050818103600083015261586481615828565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006158a1601c83613ea1565b91506158ac8261586b565b602082019050919050565b600060208201905081810360008301526158d081615894565b905091905056fea264697066735822122072d6d4c594cfeff3c1305ed217640bb092dbb7c2cf2819abe777f3cf4c2c21c964736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c0000000000000000000000000805634aa63b3152b8b1809d18b883f7c9059f92000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000009c40000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000c53706163654c6567656e647300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002534c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): SpaceLegends
Arg [1] : _symbol (string): SL
Arg [2] : _initBaseURI (string):
Arg [3] : _lpPair (address): 0x2b4C76d0dc16BE1C31D4C1DC53bF9B45987Fc75c
Arg [4] : _royaltyAddress (address): 0x0805634aA63B3152b8B1809D18B883f7c9059f92
Arg [5] : _royaltiesPercentage (uint256): 5
Arg [6] : _maxSupply (uint256): 2500
Arg [7] : _maxMintAmount (uint256): 5
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 0000000000000000000000002b4c76d0dc16be1c31d4c1dc53bf9b45987fc75c
Arg [4] : 0000000000000000000000000805634aa63b3152b8b1809d18b883f7c9059f92
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [9] : 53706163654c6567656e64730000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [11] : 534c000000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.