Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Music
Overview
Max Total Supply
1,472 NFT32022
Holders
353
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 NFT32022Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFT3AwardsTickets
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes 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/utils/Base64.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; contract NFT3AwardsTickets is ERC721Enumerable, Pausable, Ownable { AggregatorV3Interface internal priceFeed; string baseTokenURI; string unrevealedURI; string[4] ticketTypes = ["VIP", "VIP PLUS", "Executive VIP", "Founders"]; bool unrevealedURIFlag = true; uint16 public maxSupply = 16130; uint16 public publicMaxSupply = 12600; uint16 public publicAvaliablSupply = 12600; uint16 public earlyAccessAvaliableSupply = 500; uint16[4] public giveawayAvaliableSupply = [1600, 0, 400, 30]; uint16 public jellyzHoldersAvaliableSupply = 1000; uint16[4] public rarityTicketsDistribution = [8400, 4200, 400, 100]; // public + whitelist, total 13_000 uint16 public totalMinted = 0; uint public earlyMintPrice = 298; // in USD uint public publicMintPrice = 398; // start mint price // in USD uint public mintPriceCostStep = 100; // in USD uint16 public constant mintPriceChangeStep = 2500; // public mint price change step uint8 public constant batchLimit = 10; // mint amount limit uint8 public constant earlyBatchLimit = 4; // mint amount limit bool public mintStarted = false; // is mint started flag bool public mintEarlyStarted = false; // is mint for white list started flag bool public mintJellyzWhitelistStarted = false; // is jellyz whitelist mint started flag bytes32 public whiteListMerkleRoot; // root of Merkle tree only for white list minters bytes32 public jellyzMerkleRoot; // root of Merkle tree only for jellyz holders mapping(address => bool) public whitelistMinted; // store if sender is already minted from white list mapping(address => bool) public jellyzWhitelistMinted; mapping(uint256 => uint8) private tickets; // minted tokens constructor(address _agregatorV3Interface) ERC721("NFT3 2022", "NFT32022") { priceFeed = AggregatorV3Interface(_agregatorV3Interface); } function mint(uint8 _mintAmount) public payable { require(mintStarted, "Mint is not started"); require(_mintAmount <= batchLimit, "Not in batch limit"); require(_mintAmount <= publicAvaliablSupply, "Too much tokens to mint"); require(msg.value >= getMintPrice(_mintAmount), "Wrong amount of ETH"); mintInternal(msg.sender, _mintAmount); publicAvaliablSupply -= _mintAmount; } function earlyMint(uint8 _mintAmount) public payable { require(mintEarlyStarted, "Mint for early access is not started"); require(_mintAmount <= earlyBatchLimit, "Not in batch limit"); require(msg.value >= convertToETH(_mintAmount * earlyMintPrice), "Wrong amount of ETH"); require(_mintAmount <= earlyAccessAvaliableSupply, "Too much tokens to mint"); require(!whitelistMinted[msg.sender], "Already minted in early access."); mintInternal(msg.sender, _mintAmount); earlyAccessAvaliableSupply -= _mintAmount; whitelistMinted[msg.sender] = true; } function giveawayMint(address _to, uint8 _mintAmount, uint8 _ticketRarity) public onlyOwner { require(_mintAmount <= giveawayAvaliableSupply[_ticketRarity], "Too much tokens to mint"); mintInternal(_to, _mintAmount, _ticketRarity); totalMinted += _mintAmount; giveawayAvaliableSupply[_ticketRarity] -= _mintAmount; } function jellyzWhitelistMint(bytes32[] calldata _merkleProof, uint8 _mintAmount) public { require(mintJellyzWhitelistStarted, "Mint for whitelist is not started"); require(_mintAmount <= batchLimit, "Not in batch limit"); require(_mintAmount <= jellyzHoldersAvaliableSupply, "Too much tokens to mint"); require(!jellyzWhitelistMinted[msg.sender], "Already minted from whitelist."); require( MerkleProof.verify( _merkleProof, jellyzMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "Failed to verify proof." ); mintInternal(msg.sender, _mintAmount, 0); jellyzHoldersAvaliableSupply -= _mintAmount; jellyzWhitelistMinted[msg.sender] = true; } function mintInternal(address _to, uint8 _mintAmount) private { for (uint i = 0; i < _mintAmount; i++) { uint id = totalMinted + i + 1; uint8 rarity = generateTicket(random(id)); tickets[id] = rarity; rarityTicketsDistribution[rarity] -= 1; _mint(_to, id); } totalMinted += _mintAmount; } function mintInternal(address _to, uint8 _mintAmount, uint8 _rarity) private { for (uint i = 0; i < _mintAmount; i++) { uint id = totalMinted + i + 1; tickets[id] = _rarity; _mint(_to, id); } totalMinted += _mintAmount; } function generateTicket(uint256 _seed) private view returns (uint8 r) { uint sumCoefficients = rarityTicketsDistribution[0] + rarityTicketsDistribution[1] + rarityTicketsDistribution[2] + rarityTicketsDistribution[3]; uint rarityPercentage = _seed % sumCoefficients; r = 3; while(rarityPercentage >= rarityTicketsDistribution[r] && r > 0) { rarityPercentage -= rarityTicketsDistribution[r]; r -= 1; } } function mintPriceInUSD(uint minted, uint8 mintAmount) public view returns (uint totalPrice) { uint mintSteps = minted / mintPriceChangeStep; totalPrice = (mintSteps * mintPriceCostStep + publicMintPrice) * mintAmount; // if part of items crosses step if((minted + mintAmount) / mintPriceChangeStep > mintSteps) { totalPrice += ((minted + mintAmount) % mintPriceChangeStep) * mintPriceCostStep; } } function getMintPrice(uint8 mintAmount) public view returns (uint totalPrice) { totalPrice = convertToETH(mintPriceInUSD(publicMaxSupply - publicAvaliablSupply, mintAmount)); } function getLatestRate() public view returns (uint) { ( /*uint80 roundID*/, int price, /*uint startedAt*/, /*uint timeStamp*/, /*uint80 answeredInRound*/ ) = priceFeed.latestRoundData(); return uint(price); } function convertToETH(uint usdAmount) public view returns (uint ethAmount) { uint ethRate = getLatestRate(); // price of ETH in USD with 8 decimals // eth amount = usd amount ethAmount = usdAmount * (10 ** 26) / ethRate; } function setPrices(uint _earlyMintPrice, uint _publicMintPrice, uint _publicMintPriceStep) public onlyOwner { earlyMintPrice = _earlyMintPrice; // convert to WEI publicMintPrice = _publicMintPrice; mintPriceCostStep = _publicMintPriceStep; } function withdraw() public onlyOwner { payable(owner()).transfer(address(this).balance); } function setEarlyMintState(bool _mintState) external onlyOwner { mintEarlyStarted = _mintState; } function setJellyzWhitelistMintState(bool _mintState) external onlyOwner { mintJellyzWhitelistStarted = _mintState; } function setBaseURI(string memory _baseTokenURI) public onlyOwner { baseTokenURI = _baseTokenURI; } function setMintState(bool _mintState) external onlyOwner { mintStarted = _mintState; } function setJellyzWhitelistRoot(bytes32 _merkleRoot) external onlyOwner { jellyzMerkleRoot = _merkleRoot; } function setUnrevealedURI(string memory _uri) external onlyOwner { unrevealedURI = _uri; } function setUnrevealedURIFlag(bool _flag) external onlyOwner { unrevealedURIFlag = _flag; } function random(uint256 seed) internal view returns (uint256) { return uint256( keccak256( abi.encodePacked( tx.origin, blockhash(block.number - 1), block.timestamp, seed ) ) ); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory attributes; string memory imageUri; string memory animationUri; if (unrevealedURIFlag) { attributes = '{ "trait_type": "Ticket Type", "value": "Unrevealed"}'; imageUri = string(abi.encodePacked(unrevealedURI, '0.png')); animationUri = string(abi.encodePacked(unrevealedURI, '0.mp4')); } else { attributes = string(abi.encodePacked( '{"trait_type": "Ticket", "value": "', ticketTypes[tickets[tokenId]],'" },', '{"trait_type": "Artist", "value": "NFT3" },', '{"trait_type": "Location", "value": "Los Angeles, CA" },', '{"trait_type": "Venue", "value": "The Millenium Biltmore Hotel"},', '{"trait_type": "Dates", "value": "Aug 5-7"},', '{"trait_type": "Series", "value": "2022"}' )); uint256 rarity = uint256(tickets[tokenId]); imageUri = string(abi.encodePacked(baseTokenURI, Strings.toString(rarity), '.png')); animationUri = string(abi.encodePacked(baseTokenURI, Strings.toString(rarity), '.mp4')); } return string(abi.encodePacked( "data:application/json;base64,", Base64.encode(abi.encodePacked( '{ "name": "NFT3 2022 #', Strings.toString(tokenId), '", ', '"description": "AWARDS GALA - MUSIC FESTIVAL - EXHIBITION - FASHION SHOW - ART GALLERY. NFT3 brings you the first first-ever 3-day/4-night NFT Music Festival along with a first-of-its-kind red carpet NFT Awards Gala, at the original home of the Academy Award, Exhibition, Fashion show, NFT Art Gallery, and more.", ', '"image": "', imageUri,'", ', '"animation_url": "', animationUri,'", ', '"attributes": [', attributes, ']}' )) )); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // 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 (last updated v4.6.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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); // getRoundData and latestRoundData should both raise "No data present" // if they do not have data to report, instead of returning unset values // which could be misinterpreted as actual reported values. function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// 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 (last updated v4.6.0) (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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.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/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); }
// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_agregatorV3Interface","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"batchLimit","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdAmount","type":"uint256"}],"name":"convertToETH","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyAccessAvaliableSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyBatchLimit","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintAmount","type":"uint8"}],"name":"earlyMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"earlyMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"mintAmount","type":"uint8"}],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"totalPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"giveawayAvaliableSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint8","name":"_mintAmount","type":"uint8"},{"internalType":"uint8","name":"_ticketRarity","type":"uint8"}],"name":"giveawayMint","outputs":[],"stateMutability":"nonpayable","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":"jellyzHoldersAvaliableSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jellyzMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint8","name":"_mintAmount","type":"uint8"}],"name":"jellyzWhitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"jellyzWhitelistMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mintAmount","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEarlyStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintJellyzWhitelistStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceChangeStep","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceCostStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint8","name":"mintAmount","type":"uint8"}],"name":"mintPriceInUSD","outputs":[{"internalType":"uint256","name":"totalPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicAvaliablSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMaxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rarityTicketsDistribution","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintState","type":"bool"}],"name":"setEarlyMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintState","type":"bool"}],"name":"setJellyzWhitelistMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setJellyzWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintState","type":"bool"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_earlyMintPrice","type":"uint256"},{"internalType":"uint256","name":"_publicMintPrice","type":"uint256"},{"internalType":"uint256","name":"_publicMintPriceStep","type":"uint256"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setUnrevealedURIFlag","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":"totalMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whiteListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60036101009081526205649560ec1b61012052608090815260086101408181526756495020504c555360c01b6101605260a052600d6101809081526c04578656375746976652056495609c1b6101a05260c0526102006040526101c090815267466f756e6465727360c01b6101e05260e0526200008190600e90600462000274565b50601280546001600160481b0319166801f4313831383f02011790556040805160808101825261064081526000602082015261019091810191909152601e6060820152620000d4906013906004620002cb565b506014805461ffff19166103e8179055604080516080810182526120d08152611068602082015261019091810191909152606460608201526200011c906015906004620002cb565b506016805461ffff1916905561012a60175561018e6018556064601955601a805462ffffff191690553480156200015257600080fd5b50604051620041163803806200411683398101604081905262000175916200045b565b604080518082018252600981526827232a19901918191960b91b60208083019182528351808501909452600884526727232a199918191960c11b908401528151919291620001c69160009162000364565b508051620001dc90600190602084019062000364565b5050600a805460ff1916905550620001f4336200021a565b600b80546001600160a01b0319166001600160a01b0392909216919091179055620004c8565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8260048101928215620002b9579160200282015b82811115620002b95782518051620002a891849160209091019062000364565b509160200191906001019062000288565b50620002c7929150620003e1565b5090565b600183019183908215620003565791602002820160005b838211156200032457835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620002e2565b8015620003545782816101000a81549061ffff021916905560020160208160010104928301926001030262000324565b505b50620002c792915062000402565b82805462000372906200048b565b90600052602060002090601f01602090048101928262000396576000855562000356565b82601f10620003b157805160ff191683800117855562000356565b8280016001018555821562000356579182015b8281111562000356578251825591602001919060010190620003c4565b80821115620002c7576000620003f8828262000419565b50600101620003e1565b5b80821115620002c7576000815560010162000403565b50805462000427906200048b565b6000825580601f1062000438575050565b601f01602090049060005260206000209081019062000458919062000402565b50565b6000602082840312156200046d578081fd5b81516001600160a01b038116811462000484578182fd5b9392505050565b600181811c90821680620004a057607f821691505b60208210811415620004c257634e487b7160e01b600052602260045260246000fd5b50919050565b613c3e80620004d86000396000f3fe6080604052600436106103815760003560e01c806372d84db2116101d1578063b88d4fde11610102578063dc53fd92116100a0578063ea4710d51161006f578063ea4710d514610a38578063f1c30d3a14610a68578063f2fde38b14610a7e578063fe2c7fee14610a9e57600080fd5b8063dc53fd92146109a9578063e1e7ff77146109bf578063e68d8903146109d4578063e985e9c5146109ef57600080fd5b8063d02461af116100dc578063d02461af14610933578063d3b82a8514610949578063d5abeb0114610969578063d9ff872d1461098957600080fd5b8063b88d4fde146108d3578063c87b56dd146108f3578063ccfb8de31461091357600080fd5b806398a8cffe1161016f578063a88fe42d11610149578063a88fe42d14610857578063a9722cf314610877578063a9f7716714610891578063b0e36015146108b357600080fd5b806398a8cffe146107ec578063a22cb4651461081c578063a2309ff81461083c57600080fd5b80637bddfbd0116101ab5780637bddfbd0146107815780638a2a8816146107a15780638da5cb5b146107b457806395d89b41146107d757600080fd5b806372d84db2146107295780637437357c1461073f57806378cbcf231461075f57600080fd5b8063407552a7116102b65780635c975abb116102545780636e89cb89116102235780636e89cb89146106c15780636ecd2306146106e157806370a08231146106f4578063715018a61461071457600080fd5b80635c975abb1461064a5780636352211e1461066257806363a68fe714610682578063682aaec7146106a257600080fd5b80634f6ccce7116102905780634f6ccce7146105c657806355f804b3146105e657806357e0306914610606578063593fb8551461062657600080fd5b8063407552a71461056a57806342842e0e14610591578063474740b1146105b157600080fd5b806323b872dd116103235780632f745c59116102fd5780632f745c59146104ff57806334ac6d651461051f57806334b6ab1a1461053f5780633ccfd60b1461055557600080fd5b806323b872dd1461049657806326412aca146104b65780632ac742b4146104d657600080fd5b8063095ea7b31161035f578063095ea7b314610415578063102e3e2f1461043757806318160ddd146104575780631f8ea74d1461047657600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613142565b610abe565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610ae9565b6040516103b29190613889565b3480156103e957600080fd5b506103fd6103f836600461312a565b610b7b565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b5061043561043036600461302f565b610c15565b005b34801561044357600080fd5b5061043561045236600461309a565b610d2b565b34801561046357600080fd5b506008545b6040519081526020016103b2565b34801561048257600080fd5b50610435610491366004613058565b610f60565b3480156104a257600080fd5b506104356104b1366004612f52565b6110a3565b3480156104c257600080fd5b506104356104d1366004613110565b6110d4565b3480156104e257600080fd5b506104ec6109c481565b60405161ffff90911681526020016103b2565b34801561050b57600080fd5b5061046861051a36600461302f565b611117565b34801561052b57600080fd5b5061043561053a36600461312a565b6111ad565b34801561054b57600080fd5b50610468601b5481565b34801561056157600080fd5b506104356111e2565b34801561057657600080fd5b5061057f600481565b60405160ff90911681526020016103b2565b34801561059d57600080fd5b506104356105ac366004612f52565b611255565b3480156105bd57600080fd5b5061057f600a81565b3480156105d257600080fd5b506104686105e136600461312a565b611270565b3480156105f257600080fd5b5061043561060136600461317a565b611311565b34801561061257600080fd5b506104ec61062136600461312a565b611358565b34801561063257600080fd5b506012546104ec9065010000000000900461ffff1681565b34801561065657600080fd5b50600a5460ff166103a6565b34801561066e57600080fd5b506103fd61067d36600461312a565b611386565b34801561068e57600080fd5b5061046861069d3660046131eb565b6113fd565b3480156106ae57600080fd5b50601a546103a690610100900460ff1681565b3480156106cd57600080fd5b506104356106dc366004613110565b611495565b6104356106ef36600461320d565b6114d8565b34801561070057600080fd5b5061046861070f366004612f06565b61160d565b34801561072057600080fd5b50610435611694565b34801561073557600080fd5b5061046860195481565b34801561074b57600080fd5b506104ec61075a36600461312a565b6116d0565b34801561076b57600080fd5b506012546104ec906301000000900461ffff1681565b34801561078d57600080fd5b5061043561079c366004613110565b6116e0565b6104356107af36600461320d565b61172a565b3480156107c057600080fd5b50600a5461010090046001600160a01b03166103fd565b3480156107e357600080fd5b506103d0611901565b3480156107f857600080fd5b506103a6610807366004612f06565b601d6020526000908152604090205460ff1681565b34801561082857600080fd5b50610435610837366004613006565b611910565b34801561084857600080fd5b506016546104ec9061ffff1681565b34801561086357600080fd5b506104356108723660046131c0565b61191b565b34801561088357600080fd5b50601a546103a69060ff1681565b34801561089d57600080fd5b506012546104ec90600160381b900461ffff1681565b3480156108bf57600080fd5b506104686108ce36600461320d565b611959565b3480156108df57600080fd5b506104356108ee366004612f8d565b611991565b3480156108ff57600080fd5b506103d061090e36600461312a565b6119c9565b34801561091f57600080fd5b5061043561092e366004613110565b611be1565b34801561093f57600080fd5b50610468601c5481565b34801561095557600080fd5b50601a546103a69062010000900460ff1681565b34801561097557600080fd5b506012546104ec90610100900461ffff1681565b34801561099557600080fd5b506104686109a436600461312a565b611c2d565b3480156109b557600080fd5b5061046860185481565b3480156109cb57600080fd5b50610468611c61565b3480156109e057600080fd5b506014546104ec9061ffff1681565b3480156109fb57600080fd5b506103a6610a0a366004612f20565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4457600080fd5b506103a6610a53366004612f06565b601e6020526000908152604090205460ff1681565b348015610a7457600080fd5b5061046860175481565b348015610a8a57600080fd5b50610435610a99366004612f06565b611cf5565b348015610aaa57600080fd5b50610435610ab936600461317a565b611d93565b60006001600160e01b0319821663780e9d6360e01b1480610ae35750610ae382611dd6565b92915050565b606060008054610af890613ad1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2490613ad1565b8015610b715780601f10610b4657610100808354040283529160200191610b71565b820191906000526020600020905b815481529060010190602001808311610b5457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bf95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c2082611386565b9050806001600160a01b0316836001600160a01b03161415610c8e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf0565b336001600160a01b0382161480610caa5750610caa8133610a0a565b610d1c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf0565b610d268383611e26565b505050565b601a5462010000900460ff16610d8d5760405162461bcd60e51b815260206004820152602160248201527f4d696e7420666f722077686974656c697374206973206e6f74207374617274656044820152601960fa1b6064820152608401610bf0565b600a60ff82161115610db15760405162461bcd60e51b8152600401610bf090613923565b60145461ffff1660ff82161115610dda5760405162461bcd60e51b8152600401610bf0906139a0565b336000908152601e602052604090205460ff1615610e3a5760405162461bcd60e51b815260206004820152601e60248201527f416c7265616479206d696e7465642066726f6d2077686974656c6973742e00006044820152606401610bf0565b610eaf83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601c546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120611e94565b610efb5760405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f207665726966792070726f6f662e0000000000000000006044820152606401610bf0565b610f0733826000611eaa565b6014805460ff83169190600090610f2390849061ffff16613a48565b825461ffff9182166101009390930a92830291909202199091161790555050336000908152601e60205260409020805460ff191660011790555050565b600a546001600160a01b03610100909104163314610f905760405162461bcd60e51b8152600401610bf0906138ee565b60138160ff1660048110610fb457634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff168260ff161115610ff45760405162461bcd60e51b8152600401610bf0906139a0565b610fff838383611eaa565b6016805460ff8416919060009061101b90849061ffff166139d7565b92506101000a81548161ffff021916908361ffff1602179055508160ff1660138260ff166004811061105d57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002028282829054906101000a900461ffff166110849190613a48565b92506101000a81548161ffff021916908361ffff160217905550505050565b6110ad3382611f2f565b6110c95760405162461bcd60e51b8152600401610bf09061394f565b610d26838383612025565b600a546001600160a01b036101009091041633146111045760405162461bcd60e51b8152600401610bf0906138ee565b601a805460ff1916911515919091179055565b60006111228361160d565b82106111845760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bf0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b036101009091041633146111dd5760405162461bcd60e51b8152600401610bf0906138ee565b601c55565b600a546001600160a01b036101009091041633146112125760405162461bcd60e51b8152600401610bf0906138ee565b600a546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f19350505050158015611252573d6000803e3d6000fd5b50565b610d2683838360405180602001604052806000815250611991565b600061127b60085490565b82106112de5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bf0565b600882815481106112ff57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b036101009091041633146113415760405162461bcd60e51b8152600401610bf0906138ee565b805161135490600c906020840190612da0565b5050565b6013816004811061136857600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b6000818152600260205260408120546001600160a01b031680610ae35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf0565b60008061140c6109c485613a15565b90508260ff16601854601954836114239190613a29565b61142d91906139fd565b6114379190613a29565b9150806109c461144a60ff8616876139fd565b6114549190613a15565b111561148e576019546109c461146d60ff8616876139fd565b6114779190613b27565b6114819190613a29565b61148b90836139fd565b91505b5092915050565b600a546001600160a01b036101009091041633146114c55760405162461bcd60e51b8152600401610bf0906138ee565b6012805460ff1916911515919091179055565b601a5460ff166115205760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081a5cc81b9bdd081cdd185c9d1959606a1b6044820152606401610bf0565b600a60ff821611156115445760405162461bcd60e51b8152600401610bf090613923565b60125465010000000000900461ffff1660ff821611156115765760405162461bcd60e51b8152600401610bf0906139a0565b61157f81611959565b3410156115c45760405162461bcd60e51b81526020600482015260136024820152720aee4dedcce40c2dadeeadce840decc408aa89606b1b6044820152606401610bf0565b6115ce33826121cc565b8060ff16601260058282829054906101000a900461ffff166115f09190613a48565b92506101000a81548161ffff021916908361ffff16021790555050565b60006001600160a01b0382166116785760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf0565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b036101009091041633146116c45760405162461bcd60e51b8152600401610bf0906138ee565b6116ce60006122ef565b565b6015816004811061136857600080fd5b600a546001600160a01b036101009091041633146117105760405162461bcd60e51b8152600401610bf0906138ee565b601a80549115156101000261ff0019909216919091179055565b601a54610100900460ff1661178d5760405162461bcd60e51b8152602060048201526024808201527f4d696e7420666f72206561726c7920616363657373206973206e6f74207374616044820152631c9d195960e21b6064820152608401610bf0565b600460ff821611156117b15760405162461bcd60e51b8152600401610bf090613923565b6117c56017548260ff166109a49190613a29565b34101561180a5760405162461bcd60e51b81526020600482015260136024820152720aee4dedcce40c2dadeeadce840decc408aa89606b1b6044820152606401610bf0565b601254600160381b900461ffff1660ff8216111561183a5760405162461bcd60e51b8152600401610bf0906139a0565b336000908152601d602052604090205460ff161561189a5760405162461bcd60e51b815260206004820152601f60248201527f416c7265616479206d696e74656420696e206561726c79206163636573732e006044820152606401610bf0565b6118a433826121cc565b8060ff16601260078282829054906101000a900461ffff166118c69190613a48565b825461ffff9182166101009390930a92830291909202199091161790555050336000908152601d60205260409020805460ff19166001179055565b606060018054610af890613ad1565b611354338383612349565b600a546001600160a01b0361010090910416331461194b5760405162461bcd60e51b8152600401610bf0906138ee565b601792909255601855601955565b601254600090610ae3906109a4906119879061ffff6501000000000082048116916301000000900416613a48565b61ffff16846113fd565b61199b3383611f2f565b6119b75760405162461bcd60e51b8152600401610bf09061394f565b6119c384848484612418565b50505050565b6000818152600260205260409020546060906001600160a01b0316611a485760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf0565b6012546060908190819060ff1615611ac057604051806060016040528060358152602001613bd4603591399250600d604051602001611a8791906133be565b6040516020818303038152906040529150600d604051602001611aaa91906133df565b6040516020818303038152906040529050611b82565b6000858152601f6020526040902054600e9060ff1660048110611af357634e487b7160e01b600052603260045260246000fd5b01604051602001611b0491906136ac565b60408051601f198184030181529181526000878152601f602052205490935060ff16600c611b318261244b565b604051602001611b4292919061338a565b6040516020818303038152906040529250600c611b5e8261244b565b604051602001611b6f929190613356565b6040516020818303038152906040529150505b611bb8611b8e8661244b565b838386604051602001611ba49493929190613400565b60405160208183030381529060405261256d565b604051602001611bc89190613667565b6040516020818303038152906040529350505050919050565b600a546001600160a01b03610100909104163314611c115760405162461bcd60e51b8152600401610bf0906138ee565b601a8054911515620100000262ff000019909216919091179055565b600080611c38611c61565b905080611c50846a52b7d2dcc80cd2e4000000613a29565b611c5a9190613a15565b9392505050565b600080600b60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611cb257600080fd5b505afa158015611cc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cea9190613227565b509195945050505050565b600a546001600160a01b03610100909104163314611d255760405162461bcd60e51b8152600401610bf0906138ee565b6001600160a01b038116611d8a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf0565b611252816122ef565b600a546001600160a01b03610100909104163314611dc35760405162461bcd60e51b8152600401610bf0906138ee565b805161135490600d906020840190612da0565b60006001600160e01b031982166380ac58cd60e01b1480611e0757506001600160e01b03198216635b5e139f60e01b145b80610ae357506301ffc9a760e01b6001600160e01b0319831614610ae3565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e5b82611386565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082611ea185846126ce565b14949350505050565b60005b8260ff16811015611f1257601654600090611ecd90839061ffff166139fd565b611ed89060016139fd565b6000818152601f60205260409020805460ff191660ff86161790559050611eff8582612750565b5080611f0a81613b0c565b915050611ead565b506016805460ff8416919060009061108490849061ffff166139d7565b6000818152600260205260408120546001600160a01b0316611fa85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf0565b6000611fb383611386565b9050806001600160a01b0316846001600160a01b03161480611ffa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061148b5750836001600160a01b031661201384610b7b565b6001600160a01b031614949350505050565b826001600160a01b031661203882611386565b6001600160a01b03161461209c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bf0565b6001600160a01b0382166120fe5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf0565b61210983838361289e565b612114600082611e26565b6001600160a01b038316600090815260036020526040812080546001929061213d908490613a6b565b90915550506001600160a01b038216600090815260036020526040812080546001929061216b9084906139fd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8160ff168110156122b4576016546000906121ef90839061ffff166139fd565b6121fa9060016139fd565b9050600061220f61220a83612956565b6129b5565b6000838152601f60205260409020805460ff191660ff83169081179091559091506001906015906004811061225457634e487b7160e01b600052603260045260246000fd5b601091828204019190066002028282829054906101000a900461ffff1661227b9190613a48565b92506101000a81548161ffff021916908361ffff16021790555061229f8583612750565b505080806122ac90613b0c565b9150506121cf565b506016805460ff831691906000906122d190849061ffff166139d7565b92506101000a81548161ffff021916908361ffff1602179055505050565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156123ab5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612423848484612025565b61242f84848484612ad9565b6119c35760405162461bcd60e51b8152600401610bf09061389c565b60608161246f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612499578061248381613b0c565b91506124929050600a83613a15565b9150612473565b60008167ffffffffffffffff8111156124c257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124ec576020820181803683370190505b5090505b841561256557612501600183613a6b565b915061250e600a86613b27565b6125199060306139fd565b60f81b81838151811061253c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061255e600a86613a15565b94506124f0565b949350505050565b606081516000141561258d57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613b9460409139905060006003845160026125bc91906139fd565b6125c69190613a15565b6125d1906004613a29565b67ffffffffffffffff8111156125f757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612621576020820181803683370190505b509050600182016020820185865187015b8082101561268d576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612632565b50506003865106600181146126a957600281146126bc57611cea565b603d6001830353603d6002830353611cea565b603d6001830353509195945050505050565b600081815b84518110156127485760008582815181106126fe57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116127245760008381526020829052604090209250612735565b600081815260208490526040902092505b508061274081613b0c565b9150506126d3565b509392505050565b6001600160a01b0382166127a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf0565b6000818152600260205260409020546001600160a01b03161561280b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf0565b6128176000838361289e565b6001600160a01b03821660009081526003602052604081208054600192906128409084906139fd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166128f9576128f481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61291c565b816001600160a01b0316836001600160a01b03161461291c5761291c8382612be6565b6001600160a01b03821661293357610d2681612c83565b826001600160a01b0316826001600160a01b031614610d2657610d268282612d5c565b600032612964600143613a6b565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524260548201526074810183905260940160408051601f19818403018152919052805160209091012092915050565b601554600090819061ffff6601000000000000820481169164010000000081048216916129eb91620100008104821691166139d7565b6129f591906139d7565b6129ff91906139d7565b61ffff1690506000612a118285613b27565b9050600392505b60158360ff1660048110612a3c57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff168110158015612a6c575060008360ff16115b15612ad25760158360ff1660048110612a9557634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff1681612abe9190613a6b565b9050612acb600184613a82565b9250612a18565b5050919050565b60006001600160a01b0384163b15612bdb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b1d90339089908890889060040161384c565b602060405180830381600087803b158015612b3757600080fd5b505af1925050508015612b67575060408051601f3d908101601f19168201909252612b649181019061315e565b60015b612bc1573d808015612b95576040519150601f19603f3d011682016040523d82523d6000602084013e612b9a565b606091505b508051612bb95760405162461bcd60e51b8152600401610bf09061389c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612565565b506001949350505050565b60006001612bf38461160d565b612bfd9190613a6b565b600083815260076020526040902054909150808214612c50576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612c9590600190613a6b565b60008381526009602052604081205460088054939450909284908110612ccb57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612cfa57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d4057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612d678361160d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612dac90613ad1565b90600052602060002090601f016020900481019282612dce5760008555612e14565b82601f10612de757805160ff1916838001178555612e14565b82800160010185558215612e14579182015b82811115612e14578251825591602001919060010190612df9565b50612e20929150612e24565b5090565b5b80821115612e205760008155600101612e25565b600067ffffffffffffffff80841115612e5457612e54613b67565b604051601f8501601f19908116603f01168101908282118183101715612e7c57612e7c613b67565b81604052809350858152868686011115612e9557600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612ec657600080fd5b919050565b80358015158114612ec657600080fd5b803560ff81168114612ec657600080fd5b805169ffffffffffffffffffff81168114612ec657600080fd5b600060208284031215612f17578081fd5b611c5a82612eaf565b60008060408385031215612f32578081fd5b612f3b83612eaf565b9150612f4960208401612eaf565b90509250929050565b600080600060608486031215612f66578081fd5b612f6f84612eaf565b9250612f7d60208501612eaf565b9150604084013590509250925092565b60008060008060808587031215612fa2578081fd5b612fab85612eaf565b9350612fb960208601612eaf565b925060408501359150606085013567ffffffffffffffff811115612fdb578182fd5b8501601f81018713612feb578182fd5b612ffa87823560208401612e39565b91505092959194509250565b60008060408385031215613018578182fd5b61302183612eaf565b9150612f4960208401612ecb565b60008060408385031215613041578182fd5b61304a83612eaf565b946020939093013593505050565b60008060006060848603121561306c578283fd5b61307584612eaf565b925061308360208501612edb565b915061309160408501612edb565b90509250925092565b6000806000604084860312156130ae578283fd5b833567ffffffffffffffff808211156130c5578485fd5b818601915086601f8301126130d8578485fd5b8135818111156130e6578586fd5b8760208260051b85010111156130fa578586fd5b6020928301955093506130919186019050612edb565b600060208284031215613121578081fd5b611c5a82612ecb565b60006020828403121561313b578081fd5b5035919050565b600060208284031215613153578081fd5b8135611c5a81613b7d565b60006020828403121561316f578081fd5b8151611c5a81613b7d565b60006020828403121561318b578081fd5b813567ffffffffffffffff8111156131a1578182fd5b8201601f810184136131b1578182fd5b61148b84823560208401612e39565b6000806000606084860312156131d4578081fd5b505081359360208301359350604090920135919050565b600080604083850312156131fd578182fd5b82359150612f4960208401612edb565b60006020828403121561321e578081fd5b611c5a82612edb565b600080600080600060a0868803121561323e578283fd5b61324786612eec565b945060208601519350604086015192506060860151915061326a60808701612eec565b90509295509295909350565b6000815180845261328e816020860160208601613aa5565b601f01601f19169290920160200192915050565b600081516132b4818560208601613aa5565b9290920192915050565b8054600090600181811c90808316806132d857607f831692505b60208084108214156132f857634e487b7160e01b86526022600452602486fd5b81801561330c576001811461331d5761334a565b60ff1986168952848901965061334a565b60008881526020902060005b868110156133425781548b820152908501908301613329565b505084890196505b50505050505092915050565b600061336282856132be565b8351613372818360208801613aa5565b630b9b5c0d60e21b9101908152600401949350505050565b600061339682856132be565b83516133a6818360208801613aa5565b632e706e6760e01b9101908152600401949350505050565b60006133ca82846132be565b64302e706e6760d81b81526005019392505050565b60006133eb82846132be565b640c0b9b5c0d60da1b81526005019392505050565b757b20226e616d65223a20224e4654332032303232202360501b81528451600090613432816016850160208a01613aa5565b6201116160ed1b6016918401918201527f226465736372697074696f6e223a20224157415244532047414c41202d204d5560198201527f53494320464553544956414c202d2045584849424954494f4e202d204641534860398201527f494f4e2053484f57202d204152542047414c4c4552592e204e4654332062726960598201527f6e677320796f75207468652066697273742066697273742d6576657220332d6460798201527f61792f342d6e69676874204e4654204d7573696320466573746976616c20616c60998201527f6f6e67207769746820612066697273742d6f662d6974732d6b696e642072656460b98201527f20636172706574204e4654204177617264732047616c612c206174207468652060d98201527f6f726967696e616c20686f6d65206f66207468652041636164656d792041776160f98201527f72642c2045786869626974696f6e2c2046617368696f6e2073686f772c204e466101198201527f54204172742047616c6c6572792c20616e64206d6f72652e222c20000000000061013982015261365c61364e61364861362d6135fa613627613609826135f46101548a01691134b6b0b3b2911d101160b11b8152600a0190565b8e6132a2565b6201116160ed1b815260030190565b711130b734b6b0ba34b7b72fbab936111d101160711b815260120190565b8a6132a2565b6e2261747472696275746573223a205b60881b8152600f0190565b866132a2565b615d7d60f01b815260020190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161369f81601d850160208701613aa5565b91909101601d0192915050565b7f7b2274726169745f74797065223a20225469636b6574222c202276616c7565228152621d101160e91b602082015260006136ea60238301846132be565b6308881f4b60e21b81527f7b2274726169745f74797065223a2022417274697374222c202276616c75652260048201526a0e88089391950cc8881f4b60aa1b60248201527f7b2274726169745f74797065223a20224c6f636174696f6e222c202276616c75602f8201527f65223a20224c6f7320416e67656c65732c20434122207d2c0000000000000000604f8201527f7b2274726169745f74797065223a202256656e7565222c202276616c7565223a60678201527f2022546865204d696c6c656e69756d2042696c746d6f726520486f74656c227d6087820152600b60fa1b60a78201527f7b2274726169745f74797065223a20224461746573222c202276616c7565223a60a88201526b0808905d59c80d4b4dc89f4b60a21b60c88201527f7b2274726169745f74797065223a2022536572696573222c202276616c75652260d4820152683a202232303232227d60b81b60f482015260fd810161148b565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061387f90830184613276565b9695505050505050565b602081526000611c5a6020830184613276565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271139bdd081a5b8818985d18da081b1a5b5a5d60721b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526017908201527f546f6f206d75636820746f6b656e7320746f206d696e74000000000000000000604082015260600190565b600061ffff8083168185168083038211156139f4576139f4613b3b565b01949350505050565b60008219821115613a1057613a10613b3b565b500190565b600082613a2457613a24613b51565b500490565b6000816000190483118215151615613a4357613a43613b3b565b500290565b600061ffff83811690831681811015613a6357613a63613b3b565b039392505050565b600082821015613a7d57613a7d613b3b565b500390565b600060ff821660ff841680821015613a9c57613a9c613b3b565b90039392505050565b60005b83811015613ac0578181015183820152602001613aa8565b838111156119c35750506000910152565b600181811c90821680613ae557607f821691505b60208210811415613b0657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613b2057613b20613b3b565b5060010190565b600082613b3657613b36613b51565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461125257600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f7b202274726169745f74797065223a20225469636b65742054797065222c202276616c7565223a2022556e72657665616c6564227da2646970667358221220895862864fe0c88b74184f033e86f8ced97d64abda79733be2cbaa12bc75684264736f6c634300080400330000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Deployed Bytecode
0x6080604052600436106103815760003560e01c806372d84db2116101d1578063b88d4fde11610102578063dc53fd92116100a0578063ea4710d51161006f578063ea4710d514610a38578063f1c30d3a14610a68578063f2fde38b14610a7e578063fe2c7fee14610a9e57600080fd5b8063dc53fd92146109a9578063e1e7ff77146109bf578063e68d8903146109d4578063e985e9c5146109ef57600080fd5b8063d02461af116100dc578063d02461af14610933578063d3b82a8514610949578063d5abeb0114610969578063d9ff872d1461098957600080fd5b8063b88d4fde146108d3578063c87b56dd146108f3578063ccfb8de31461091357600080fd5b806398a8cffe1161016f578063a88fe42d11610149578063a88fe42d14610857578063a9722cf314610877578063a9f7716714610891578063b0e36015146108b357600080fd5b806398a8cffe146107ec578063a22cb4651461081c578063a2309ff81461083c57600080fd5b80637bddfbd0116101ab5780637bddfbd0146107815780638a2a8816146107a15780638da5cb5b146107b457806395d89b41146107d757600080fd5b806372d84db2146107295780637437357c1461073f57806378cbcf231461075f57600080fd5b8063407552a7116102b65780635c975abb116102545780636e89cb89116102235780636e89cb89146106c15780636ecd2306146106e157806370a08231146106f4578063715018a61461071457600080fd5b80635c975abb1461064a5780636352211e1461066257806363a68fe714610682578063682aaec7146106a257600080fd5b80634f6ccce7116102905780634f6ccce7146105c657806355f804b3146105e657806357e0306914610606578063593fb8551461062657600080fd5b8063407552a71461056a57806342842e0e14610591578063474740b1146105b157600080fd5b806323b872dd116103235780632f745c59116102fd5780632f745c59146104ff57806334ac6d651461051f57806334b6ab1a1461053f5780633ccfd60b1461055557600080fd5b806323b872dd1461049657806326412aca146104b65780632ac742b4146104d657600080fd5b8063095ea7b31161035f578063095ea7b314610415578063102e3e2f1461043757806318160ddd146104575780631f8ea74d1461047657600080fd5b806301ffc9a71461038657806306fdde03146103bb578063081812fc146103dd575b600080fd5b34801561039257600080fd5b506103a66103a1366004613142565b610abe565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610ae9565b6040516103b29190613889565b3480156103e957600080fd5b506103fd6103f836600461312a565b610b7b565b6040516001600160a01b0390911681526020016103b2565b34801561042157600080fd5b5061043561043036600461302f565b610c15565b005b34801561044357600080fd5b5061043561045236600461309a565b610d2b565b34801561046357600080fd5b506008545b6040519081526020016103b2565b34801561048257600080fd5b50610435610491366004613058565b610f60565b3480156104a257600080fd5b506104356104b1366004612f52565b6110a3565b3480156104c257600080fd5b506104356104d1366004613110565b6110d4565b3480156104e257600080fd5b506104ec6109c481565b60405161ffff90911681526020016103b2565b34801561050b57600080fd5b5061046861051a36600461302f565b611117565b34801561052b57600080fd5b5061043561053a36600461312a565b6111ad565b34801561054b57600080fd5b50610468601b5481565b34801561056157600080fd5b506104356111e2565b34801561057657600080fd5b5061057f600481565b60405160ff90911681526020016103b2565b34801561059d57600080fd5b506104356105ac366004612f52565b611255565b3480156105bd57600080fd5b5061057f600a81565b3480156105d257600080fd5b506104686105e136600461312a565b611270565b3480156105f257600080fd5b5061043561060136600461317a565b611311565b34801561061257600080fd5b506104ec61062136600461312a565b611358565b34801561063257600080fd5b506012546104ec9065010000000000900461ffff1681565b34801561065657600080fd5b50600a5460ff166103a6565b34801561066e57600080fd5b506103fd61067d36600461312a565b611386565b34801561068e57600080fd5b5061046861069d3660046131eb565b6113fd565b3480156106ae57600080fd5b50601a546103a690610100900460ff1681565b3480156106cd57600080fd5b506104356106dc366004613110565b611495565b6104356106ef36600461320d565b6114d8565b34801561070057600080fd5b5061046861070f366004612f06565b61160d565b34801561072057600080fd5b50610435611694565b34801561073557600080fd5b5061046860195481565b34801561074b57600080fd5b506104ec61075a36600461312a565b6116d0565b34801561076b57600080fd5b506012546104ec906301000000900461ffff1681565b34801561078d57600080fd5b5061043561079c366004613110565b6116e0565b6104356107af36600461320d565b61172a565b3480156107c057600080fd5b50600a5461010090046001600160a01b03166103fd565b3480156107e357600080fd5b506103d0611901565b3480156107f857600080fd5b506103a6610807366004612f06565b601d6020526000908152604090205460ff1681565b34801561082857600080fd5b50610435610837366004613006565b611910565b34801561084857600080fd5b506016546104ec9061ffff1681565b34801561086357600080fd5b506104356108723660046131c0565b61191b565b34801561088357600080fd5b50601a546103a69060ff1681565b34801561089d57600080fd5b506012546104ec90600160381b900461ffff1681565b3480156108bf57600080fd5b506104686108ce36600461320d565b611959565b3480156108df57600080fd5b506104356108ee366004612f8d565b611991565b3480156108ff57600080fd5b506103d061090e36600461312a565b6119c9565b34801561091f57600080fd5b5061043561092e366004613110565b611be1565b34801561093f57600080fd5b50610468601c5481565b34801561095557600080fd5b50601a546103a69062010000900460ff1681565b34801561097557600080fd5b506012546104ec90610100900461ffff1681565b34801561099557600080fd5b506104686109a436600461312a565b611c2d565b3480156109b557600080fd5b5061046860185481565b3480156109cb57600080fd5b50610468611c61565b3480156109e057600080fd5b506014546104ec9061ffff1681565b3480156109fb57600080fd5b506103a6610a0a366004612f20565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a4457600080fd5b506103a6610a53366004612f06565b601e6020526000908152604090205460ff1681565b348015610a7457600080fd5b5061046860175481565b348015610a8a57600080fd5b50610435610a99366004612f06565b611cf5565b348015610aaa57600080fd5b50610435610ab936600461317a565b611d93565b60006001600160e01b0319821663780e9d6360e01b1480610ae35750610ae382611dd6565b92915050565b606060008054610af890613ad1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2490613ad1565b8015610b715780601f10610b4657610100808354040283529160200191610b71565b820191906000526020600020905b815481529060010190602001808311610b5457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bf95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610c2082611386565b9050806001600160a01b0316836001600160a01b03161415610c8e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf0565b336001600160a01b0382161480610caa5750610caa8133610a0a565b610d1c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf0565b610d268383611e26565b505050565b601a5462010000900460ff16610d8d5760405162461bcd60e51b815260206004820152602160248201527f4d696e7420666f722077686974656c697374206973206e6f74207374617274656044820152601960fa1b6064820152608401610bf0565b600a60ff82161115610db15760405162461bcd60e51b8152600401610bf090613923565b60145461ffff1660ff82161115610dda5760405162461bcd60e51b8152600401610bf0906139a0565b336000908152601e602052604090205460ff1615610e3a5760405162461bcd60e51b815260206004820152601e60248201527f416c7265616479206d696e7465642066726f6d2077686974656c6973742e00006044820152606401610bf0565b610eaf83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601c546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120611e94565b610efb5760405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f207665726966792070726f6f662e0000000000000000006044820152606401610bf0565b610f0733826000611eaa565b6014805460ff83169190600090610f2390849061ffff16613a48565b825461ffff9182166101009390930a92830291909202199091161790555050336000908152601e60205260409020805460ff191660011790555050565b600a546001600160a01b03610100909104163314610f905760405162461bcd60e51b8152600401610bf0906138ee565b60138160ff1660048110610fb457634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff168260ff161115610ff45760405162461bcd60e51b8152600401610bf0906139a0565b610fff838383611eaa565b6016805460ff8416919060009061101b90849061ffff166139d7565b92506101000a81548161ffff021916908361ffff1602179055508160ff1660138260ff166004811061105d57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002028282829054906101000a900461ffff166110849190613a48565b92506101000a81548161ffff021916908361ffff160217905550505050565b6110ad3382611f2f565b6110c95760405162461bcd60e51b8152600401610bf09061394f565b610d26838383612025565b600a546001600160a01b036101009091041633146111045760405162461bcd60e51b8152600401610bf0906138ee565b601a805460ff1916911515919091179055565b60006111228361160d565b82106111845760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bf0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b036101009091041633146111dd5760405162461bcd60e51b8152600401610bf0906138ee565b601c55565b600a546001600160a01b036101009091041633146112125760405162461bcd60e51b8152600401610bf0906138ee565b600a546040516001600160a01b0361010090920491909116904780156108fc02916000818181858888f19350505050158015611252573d6000803e3d6000fd5b50565b610d2683838360405180602001604052806000815250611991565b600061127b60085490565b82106112de5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bf0565b600882815481106112ff57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b036101009091041633146113415760405162461bcd60e51b8152600401610bf0906138ee565b805161135490600c906020840190612da0565b5050565b6013816004811061136857600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b6000818152600260205260408120546001600160a01b031680610ae35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf0565b60008061140c6109c485613a15565b90508260ff16601854601954836114239190613a29565b61142d91906139fd565b6114379190613a29565b9150806109c461144a60ff8616876139fd565b6114549190613a15565b111561148e576019546109c461146d60ff8616876139fd565b6114779190613b27565b6114819190613a29565b61148b90836139fd565b91505b5092915050565b600a546001600160a01b036101009091041633146114c55760405162461bcd60e51b8152600401610bf0906138ee565b6012805460ff1916911515919091179055565b601a5460ff166115205760405162461bcd60e51b8152602060048201526013602482015272135a5b9d081a5cc81b9bdd081cdd185c9d1959606a1b6044820152606401610bf0565b600a60ff821611156115445760405162461bcd60e51b8152600401610bf090613923565b60125465010000000000900461ffff1660ff821611156115765760405162461bcd60e51b8152600401610bf0906139a0565b61157f81611959565b3410156115c45760405162461bcd60e51b81526020600482015260136024820152720aee4dedcce40c2dadeeadce840decc408aa89606b1b6044820152606401610bf0565b6115ce33826121cc565b8060ff16601260058282829054906101000a900461ffff166115f09190613a48565b92506101000a81548161ffff021916908361ffff16021790555050565b60006001600160a01b0382166116785760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf0565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b036101009091041633146116c45760405162461bcd60e51b8152600401610bf0906138ee565b6116ce60006122ef565b565b6015816004811061136857600080fd5b600a546001600160a01b036101009091041633146117105760405162461bcd60e51b8152600401610bf0906138ee565b601a80549115156101000261ff0019909216919091179055565b601a54610100900460ff1661178d5760405162461bcd60e51b8152602060048201526024808201527f4d696e7420666f72206561726c7920616363657373206973206e6f74207374616044820152631c9d195960e21b6064820152608401610bf0565b600460ff821611156117b15760405162461bcd60e51b8152600401610bf090613923565b6117c56017548260ff166109a49190613a29565b34101561180a5760405162461bcd60e51b81526020600482015260136024820152720aee4dedcce40c2dadeeadce840decc408aa89606b1b6044820152606401610bf0565b601254600160381b900461ffff1660ff8216111561183a5760405162461bcd60e51b8152600401610bf0906139a0565b336000908152601d602052604090205460ff161561189a5760405162461bcd60e51b815260206004820152601f60248201527f416c7265616479206d696e74656420696e206561726c79206163636573732e006044820152606401610bf0565b6118a433826121cc565b8060ff16601260078282829054906101000a900461ffff166118c69190613a48565b825461ffff9182166101009390930a92830291909202199091161790555050336000908152601d60205260409020805460ff19166001179055565b606060018054610af890613ad1565b611354338383612349565b600a546001600160a01b0361010090910416331461194b5760405162461bcd60e51b8152600401610bf0906138ee565b601792909255601855601955565b601254600090610ae3906109a4906119879061ffff6501000000000082048116916301000000900416613a48565b61ffff16846113fd565b61199b3383611f2f565b6119b75760405162461bcd60e51b8152600401610bf09061394f565b6119c384848484612418565b50505050565b6000818152600260205260409020546060906001600160a01b0316611a485760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf0565b6012546060908190819060ff1615611ac057604051806060016040528060358152602001613bd4603591399250600d604051602001611a8791906133be565b6040516020818303038152906040529150600d604051602001611aaa91906133df565b6040516020818303038152906040529050611b82565b6000858152601f6020526040902054600e9060ff1660048110611af357634e487b7160e01b600052603260045260246000fd5b01604051602001611b0491906136ac565b60408051601f198184030181529181526000878152601f602052205490935060ff16600c611b318261244b565b604051602001611b4292919061338a565b6040516020818303038152906040529250600c611b5e8261244b565b604051602001611b6f929190613356565b6040516020818303038152906040529150505b611bb8611b8e8661244b565b838386604051602001611ba49493929190613400565b60405160208183030381529060405261256d565b604051602001611bc89190613667565b6040516020818303038152906040529350505050919050565b600a546001600160a01b03610100909104163314611c115760405162461bcd60e51b8152600401610bf0906138ee565b601a8054911515620100000262ff000019909216919091179055565b600080611c38611c61565b905080611c50846a52b7d2dcc80cd2e4000000613a29565b611c5a9190613a15565b9392505050565b600080600b60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611cb257600080fd5b505afa158015611cc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cea9190613227565b509195945050505050565b600a546001600160a01b03610100909104163314611d255760405162461bcd60e51b8152600401610bf0906138ee565b6001600160a01b038116611d8a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf0565b611252816122ef565b600a546001600160a01b03610100909104163314611dc35760405162461bcd60e51b8152600401610bf0906138ee565b805161135490600d906020840190612da0565b60006001600160e01b031982166380ac58cd60e01b1480611e0757506001600160e01b03198216635b5e139f60e01b145b80610ae357506301ffc9a760e01b6001600160e01b0319831614610ae3565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e5b82611386565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082611ea185846126ce565b14949350505050565b60005b8260ff16811015611f1257601654600090611ecd90839061ffff166139fd565b611ed89060016139fd565b6000818152601f60205260409020805460ff191660ff86161790559050611eff8582612750565b5080611f0a81613b0c565b915050611ead565b506016805460ff8416919060009061108490849061ffff166139d7565b6000818152600260205260408120546001600160a01b0316611fa85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf0565b6000611fb383611386565b9050806001600160a01b0316846001600160a01b03161480611ffa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061148b5750836001600160a01b031661201384610b7b565b6001600160a01b031614949350505050565b826001600160a01b031661203882611386565b6001600160a01b03161461209c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bf0565b6001600160a01b0382166120fe5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf0565b61210983838361289e565b612114600082611e26565b6001600160a01b038316600090815260036020526040812080546001929061213d908490613a6b565b90915550506001600160a01b038216600090815260036020526040812080546001929061216b9084906139fd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60005b8160ff168110156122b4576016546000906121ef90839061ffff166139fd565b6121fa9060016139fd565b9050600061220f61220a83612956565b6129b5565b6000838152601f60205260409020805460ff191660ff83169081179091559091506001906015906004811061225457634e487b7160e01b600052603260045260246000fd5b601091828204019190066002028282829054906101000a900461ffff1661227b9190613a48565b92506101000a81548161ffff021916908361ffff16021790555061229f8583612750565b505080806122ac90613b0c565b9150506121cf565b506016805460ff831691906000906122d190849061ffff166139d7565b92506101000a81548161ffff021916908361ffff1602179055505050565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156123ab5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612423848484612025565b61242f84848484612ad9565b6119c35760405162461bcd60e51b8152600401610bf09061389c565b60608161246f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612499578061248381613b0c565b91506124929050600a83613a15565b9150612473565b60008167ffffffffffffffff8111156124c257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124ec576020820181803683370190505b5090505b841561256557612501600183613a6b565b915061250e600a86613b27565b6125199060306139fd565b60f81b81838151811061253c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061255e600a86613a15565b94506124f0565b949350505050565b606081516000141561258d57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613b9460409139905060006003845160026125bc91906139fd565b6125c69190613a15565b6125d1906004613a29565b67ffffffffffffffff8111156125f757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612621576020820181803683370190505b509050600182016020820185865187015b8082101561268d576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612632565b50506003865106600181146126a957600281146126bc57611cea565b603d6001830353603d6002830353611cea565b603d6001830353509195945050505050565b600081815b84518110156127485760008582815181106126fe57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116127245760008381526020829052604090209250612735565b600081815260208490526040902092505b508061274081613b0c565b9150506126d3565b509392505050565b6001600160a01b0382166127a65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf0565b6000818152600260205260409020546001600160a01b03161561280b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf0565b6128176000838361289e565b6001600160a01b03821660009081526003602052604081208054600192906128409084906139fd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166128f9576128f481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61291c565b816001600160a01b0316836001600160a01b03161461291c5761291c8382612be6565b6001600160a01b03821661293357610d2681612c83565b826001600160a01b0316826001600160a01b031614610d2657610d268282612d5c565b600032612964600143613a6b565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524260548201526074810183905260940160408051601f19818403018152919052805160209091012092915050565b601554600090819061ffff6601000000000000820481169164010000000081048216916129eb91620100008104821691166139d7565b6129f591906139d7565b6129ff91906139d7565b61ffff1690506000612a118285613b27565b9050600392505b60158360ff1660048110612a3c57634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff168110158015612a6c575060008360ff16115b15612ad25760158360ff1660048110612a9557634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff1681612abe9190613a6b565b9050612acb600184613a82565b9250612a18565b5050919050565b60006001600160a01b0384163b15612bdb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b1d90339089908890889060040161384c565b602060405180830381600087803b158015612b3757600080fd5b505af1925050508015612b67575060408051601f3d908101601f19168201909252612b649181019061315e565b60015b612bc1573d808015612b95576040519150601f19603f3d011682016040523d82523d6000602084013e612b9a565b606091505b508051612bb95760405162461bcd60e51b8152600401610bf09061389c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612565565b506001949350505050565b60006001612bf38461160d565b612bfd9190613a6b565b600083815260076020526040902054909150808214612c50576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612c9590600190613a6b565b60008381526009602052604081205460088054939450909284908110612ccb57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612cfa57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612d4057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612d678361160d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612dac90613ad1565b90600052602060002090601f016020900481019282612dce5760008555612e14565b82601f10612de757805160ff1916838001178555612e14565b82800160010185558215612e14579182015b82811115612e14578251825591602001919060010190612df9565b50612e20929150612e24565b5090565b5b80821115612e205760008155600101612e25565b600067ffffffffffffffff80841115612e5457612e54613b67565b604051601f8501601f19908116603f01168101908282118183101715612e7c57612e7c613b67565b81604052809350858152868686011115612e9557600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612ec657600080fd5b919050565b80358015158114612ec657600080fd5b803560ff81168114612ec657600080fd5b805169ffffffffffffffffffff81168114612ec657600080fd5b600060208284031215612f17578081fd5b611c5a82612eaf565b60008060408385031215612f32578081fd5b612f3b83612eaf565b9150612f4960208401612eaf565b90509250929050565b600080600060608486031215612f66578081fd5b612f6f84612eaf565b9250612f7d60208501612eaf565b9150604084013590509250925092565b60008060008060808587031215612fa2578081fd5b612fab85612eaf565b9350612fb960208601612eaf565b925060408501359150606085013567ffffffffffffffff811115612fdb578182fd5b8501601f81018713612feb578182fd5b612ffa87823560208401612e39565b91505092959194509250565b60008060408385031215613018578182fd5b61302183612eaf565b9150612f4960208401612ecb565b60008060408385031215613041578182fd5b61304a83612eaf565b946020939093013593505050565b60008060006060848603121561306c578283fd5b61307584612eaf565b925061308360208501612edb565b915061309160408501612edb565b90509250925092565b6000806000604084860312156130ae578283fd5b833567ffffffffffffffff808211156130c5578485fd5b818601915086601f8301126130d8578485fd5b8135818111156130e6578586fd5b8760208260051b85010111156130fa578586fd5b6020928301955093506130919186019050612edb565b600060208284031215613121578081fd5b611c5a82612ecb565b60006020828403121561313b578081fd5b5035919050565b600060208284031215613153578081fd5b8135611c5a81613b7d565b60006020828403121561316f578081fd5b8151611c5a81613b7d565b60006020828403121561318b578081fd5b813567ffffffffffffffff8111156131a1578182fd5b8201601f810184136131b1578182fd5b61148b84823560208401612e39565b6000806000606084860312156131d4578081fd5b505081359360208301359350604090920135919050565b600080604083850312156131fd578182fd5b82359150612f4960208401612edb565b60006020828403121561321e578081fd5b611c5a82612edb565b600080600080600060a0868803121561323e578283fd5b61324786612eec565b945060208601519350604086015192506060860151915061326a60808701612eec565b90509295509295909350565b6000815180845261328e816020860160208601613aa5565b601f01601f19169290920160200192915050565b600081516132b4818560208601613aa5565b9290920192915050565b8054600090600181811c90808316806132d857607f831692505b60208084108214156132f857634e487b7160e01b86526022600452602486fd5b81801561330c576001811461331d5761334a565b60ff1986168952848901965061334a565b60008881526020902060005b868110156133425781548b820152908501908301613329565b505084890196505b50505050505092915050565b600061336282856132be565b8351613372818360208801613aa5565b630b9b5c0d60e21b9101908152600401949350505050565b600061339682856132be565b83516133a6818360208801613aa5565b632e706e6760e01b9101908152600401949350505050565b60006133ca82846132be565b64302e706e6760d81b81526005019392505050565b60006133eb82846132be565b640c0b9b5c0d60da1b81526005019392505050565b757b20226e616d65223a20224e4654332032303232202360501b81528451600090613432816016850160208a01613aa5565b6201116160ed1b6016918401918201527f226465736372697074696f6e223a20224157415244532047414c41202d204d5560198201527f53494320464553544956414c202d2045584849424954494f4e202d204641534860398201527f494f4e2053484f57202d204152542047414c4c4552592e204e4654332062726960598201527f6e677320796f75207468652066697273742066697273742d6576657220332d6460798201527f61792f342d6e69676874204e4654204d7573696320466573746976616c20616c60998201527f6f6e67207769746820612066697273742d6f662d6974732d6b696e642072656460b98201527f20636172706574204e4654204177617264732047616c612c206174207468652060d98201527f6f726967696e616c20686f6d65206f66207468652041636164656d792041776160f98201527f72642c2045786869626974696f6e2c2046617368696f6e2073686f772c204e466101198201527f54204172742047616c6c6572792c20616e64206d6f72652e222c20000000000061013982015261365c61364e61364861362d6135fa613627613609826135f46101548a01691134b6b0b3b2911d101160b11b8152600a0190565b8e6132a2565b6201116160ed1b815260030190565b711130b734b6b0ba34b7b72fbab936111d101160711b815260120190565b8a6132a2565b6e2261747472696275746573223a205b60881b8152600f0190565b866132a2565b615d7d60f01b815260020190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161369f81601d850160208701613aa5565b91909101601d0192915050565b7f7b2274726169745f74797065223a20225469636b6574222c202276616c7565228152621d101160e91b602082015260006136ea60238301846132be565b6308881f4b60e21b81527f7b2274726169745f74797065223a2022417274697374222c202276616c75652260048201526a0e88089391950cc8881f4b60aa1b60248201527f7b2274726169745f74797065223a20224c6f636174696f6e222c202276616c75602f8201527f65223a20224c6f7320416e67656c65732c20434122207d2c0000000000000000604f8201527f7b2274726169745f74797065223a202256656e7565222c202276616c7565223a60678201527f2022546865204d696c6c656e69756d2042696c746d6f726520486f74656c227d6087820152600b60fa1b60a78201527f7b2274726169745f74797065223a20224461746573222c202276616c7565223a60a88201526b0808905d59c80d4b4dc89f4b60a21b60c88201527f7b2274726169745f74797065223a2022536572696573222c202276616c75652260d4820152683a202232303232227d60b81b60f482015260fd810161148b565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061387f90830184613276565b9695505050505050565b602081526000611c5a6020830184613276565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260129082015271139bdd081a5b8818985d18da081b1a5b5a5d60721b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526017908201527f546f6f206d75636820746f6b656e7320746f206d696e74000000000000000000604082015260600190565b600061ffff8083168185168083038211156139f4576139f4613b3b565b01949350505050565b60008219821115613a1057613a10613b3b565b500190565b600082613a2457613a24613b51565b500490565b6000816000190483118215151615613a4357613a43613b3b565b500290565b600061ffff83811690831681811015613a6357613a63613b3b565b039392505050565b600082821015613a7d57613a7d613b3b565b500390565b600060ff821660ff841680821015613a9c57613a9c613b3b565b90039392505050565b60005b83811015613ac0578181015183820152602001613aa8565b838111156119c35750506000910152565b600181811c90821680613ae557607f821691505b60208210811415613b0657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613b2057613b20613b3b565b5060010190565b600082613b3657613b36613b51565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461125257600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f7b202274726169745f74797065223a20225469636b65742054797065222c202276616c7565223a2022556e72657665616c6564227da2646970667358221220895862864fe0c88b74184f033e86f8ced97d64abda79733be2cbaa12bc75684264736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
-----Decoded View---------------
Arg [0] : _agregatorV3Interface (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.