NFT
Overview
TokenID
4284
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Yogies
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; /** _____ _______ _____ _____ _____ _____ |\ \ /::\ \ /\ \ /\ \ /\ \ /\ \ |:\____\ /::::\ \ /::\ \ /::\ \ /::\ \ /::\ \ |::| | /::::::\ \ /::::\ \ \:::\ \ /::::\ \ /::::\ \ |::| | /::::::::\ \ /::::::\ \ \:::\ \ /::::::\ \ /::::::\ \ |::| | /:::/~~\:::\ \ /:::/\:::\ \ \:::\ \ /:::/\:::\ \ /:::/\:::\ \ |::| | /:::/ \:::\ \ /:::/ \:::\ \ \:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ |::| | /:::/ / \:::\ \ /:::/ \:::\ \ /::::\ \ /::::\ \:::\ \ \:::\ \:::\ \ |::|___|______ /:::/____/ \:::\____\ /:::/ / \:::\ \ ____ /::::::\ \ /::::::\ \:::\ \ ___\:::\ \:::\ \ /::::::::\ \ |:::| | |:::| | /:::/ / \:::\ ___\ /\ \ /:::/\:::\ \ /:::/\:::\ \:::\ \ /\ \:::\ \:::\ \ /::::::::::\____\|:::|____| |:::| |/:::/____/ ___\:::| |/::\ \/:::/ \:::\____\/:::/__\:::\ \:::\____\/::\ \:::\ \:::\____\ /:::/~~~~/~~ \:::\ \ /:::/ / \:::\ \ /\ /:::|____|\:::\ /:::/ \::/ /\:::\ \:::\ \::/ /\:::\ \:::\ \::/ / /:::/ / \:::\ \ /:::/ / \:::\ /::\ \::/ / \:::\/:::/ / \/____/ \:::\ \:::\ \/____/ \:::\ \:::\ \/____/ /:::/ / \:::\ /:::/ / \:::\ \:::\ \/____/ \::::::/ / \:::\ \:::\ \ \:::\ \:::\ \ /:::/ / \:::\__/:::/ / \:::\ \:::\____\ \::::/____/ \:::\ \:::\____\ \:::\ \:::\____\ \::/ / \::::::::/ / \:::\ /:::/ / \:::\ \ \:::\ \::/ / \:::\ /:::/ / \/____/ \::::::/ / \:::\/:::/ / \:::\ \ \:::\ \/____/ \:::\/:::/ / \::::/ / \::::::/ / \:::\ \ \:::\ \ \::::::/ / \::/____/ \::::/ / \:::\____\ \:::\____\ \::::/ / ~~ \::/____/ \::/ / \::/ / \::/ / \/____/ \/____/ \/____/ */ import "./lib/ERC721Y.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract IGYogie { function stakeYogie(uint256 yogieId, address sender) external {} function unstakeYogie(uint256 yogieId, address sender) external {} function updateYogieStakeTime(uint256 yogieId, address sender) external {} function getStakeLastClaimed(uint256 yogieId) external view returns (uint256) {} function getStakeOwner(uint256 yogieId) external view returns (address) {} function balanceOf(address owner) public view returns (uint256) {} function totalSupply() public view returns (uint256) {} function ownerOf(uint256 tokenId) public view returns (address) {} } abstract contract IGemies is IERC20 { function getEcoSystemBalance(address user) external view returns (uint256) {} function spendEcosystemBalance(uint256 amount, address user) external {} } contract Yogies is ERC721Y, Ownable { using Strings for uint256; /** === ERC721 === */ address public openseaProxyRegistryAddress; string public baseURIString = "https://storage.googleapis.com/yogies-assets/metadata/yogies/"; bool public isFrozen = false; modifier notFrozen() { require(!isFrozen, "CONTRACT FROZEN"); _; } /** General info === */ uint256 public totalYogies = 4444; /** === Free mint === */ bool public isOpen; uint256 public freeMintTotal = 3333; bytes32 public merkleRoot = 0x1d7dad1aa26fcd105a60218c4addd0538c7b3778ef26cd688db070133f0f971c; /** === Vault === */ bool public vaultOpened = false; uint256 public vaultReleasedCounter; uint256 public viyReleaseCounter; uint256 public vaultStartPoint; uint256 public viyStartPoint = 4334; uint256 public vaultPriceYogie = 100 ether; uint256 public vaultPriceVIY = 700 ether; /** === Yogies contracts === */ IGemies public gemies; IGYogie public gYogies; mapping(address => bool) public yogiesOperator; modifier onlyOperator() { require(yogiesOperator[msg.sender] || msg.sender == owner(), "Sender not authorized"); _; } /** === Events === */ event StakeYogie(address indexed staker, uint256 indexed yogie); event UnstakeYogie(address indexed staker, uint256 indexed yogie); event ClaimGemies(address indexed claimer, uint256 indexed amount); event setBaseURIEvent(string indexed baseURI); event ReceivedEther(address indexed sender, uint256 indexed amount); constructor( address _openseaProxyRegistryAddress, //address _gemies, address _gYogies ) ERC721Y("Yogies", "Yogies") Ownable() { openseaProxyRegistryAddress = _openseaProxyRegistryAddress; //gemies = IGemies(_gemies); gYogies = IGYogie(_gYogies); } /*** === Staking core === */ function _stakeYogie(uint256 yogieId, address sender) internal { require(_exists(yogieId), "Yogie does not exist"); require(_ownershipOf(yogieId).stakeLastClaimTime == 0, "Yogie already staked"); require(_ownershipOf(yogieId).addr == sender, "Sender does not own yogie"); _approve(address(0), yogieId, sender); _setStakeTime(yogieId); emit Transfer(sender, address(this), yogieId); } function _unstakeYogie(uint256 yogieId, address sender) internal { require(_exists(yogieId), "Yogie does not exist"); require(_ownershipOf(yogieId).stakeLastClaimTime != 0, "Yogie not staked"); require(_ownershipOf(yogieId).addr == address(this), "Yogie not staked in contract"); require(_ownerships[yogieId].addr == sender, "Sender does not own yogie"); _deleteStakeTime(yogieId); emit Transfer(address(this), sender, yogieId); } /** === Staking interface === */ function stakeYogie(uint256 yogie, address sender) external onlyOperator { _stakeYogie(yogie, sender); } function unstakeYogie(uint256 yogie, address sender) external onlyOperator { _unstakeYogie(yogie, sender); } /** === Minting === */ function freeMint(bytes32[] calldata proof, address caller) external onlyOperator { bytes32 leaf = keccak256(abi.encodePacked(caller)); require(MerkleProof.verify(proof, merkleRoot, leaf), "User not whitelisted"); require(_numberMinted(caller) == 0, "Yogie already claimed"); require(totalSupply() < freeMintTotal, "No more yogies left"); require(isOpen, "Freemint closed"); _mint(caller, 1, "", false); } function mintTo(address _to, uint256 amount) external onlyOperator { require(totalSupply() < totalYogies, "Total yogies reached"); _mint(_to, amount, "", false); } /** === vault === */ /// @dev modified transferFrom function _unlockFromVault(address to, uint256 tokenId) internal { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != address(this)) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[address(this)].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; // Staked yogies can in no circumstance be transfered require(currSlot.stakeLastClaimTime == 0, "Cannot transfer stake yogie"); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = address(this); } } } emit Transfer(address(this), to, tokenId); } function unlockFromVault(address to, uint256 tokenId) external onlyOperator { _unlockFromVault(to, tokenId); } function lockYogiesInVault() external onlyOwner { require(totalSupply() < totalYogies, "Total yogies reached"); isOpen = false; vaultOpened = true; uint256 left = totalYogies - totalSupply(); vaultStartPoint = _currentIndex; _mint(address(this), left, "", false); } function unlockYogieFromVault() external { require(vaultOpened, "Vault closed"); require(getYogiesLeftInVault() > 0, "Vault empty"); require(gemies.getEcoSystemBalance(msg.sender) >= vaultPriceYogie, "Not enough gemies"); gemies.spendEcosystemBalance(vaultPriceYogie, msg.sender); _unlockFromVault(msg.sender, getNextVaultId()); vaultReleasedCounter++; } function unlockVIYFromVault() external { require(vaultOpened, "Vault closed"); require(getVIYsLeftInVault() > 0, "Vault empty"); require(gemies.getEcoSystemBalance(msg.sender) >= vaultPriceVIY, "Not enough gemies"); gemies.spendEcosystemBalance(vaultPriceVIY, msg.sender); _unlockFromVault(msg.sender, getNextVIYId()); viyReleaseCounter++; } /** === View Staking === */ function getYogiesOfUser(address user) external view returns (uint256[] memory) { uint256 userBalance = balanceOf(user); uint256[] memory userYogies = new uint256[] (userBalance); uint256 counter; for (uint i = 1; i <= totalSupply(); i++) { address _owner = _ownershipOf(i).addr; if (_owner == user) { userYogies[counter] = i; counter++; } } return userYogies; } function getGYogiesOfUser(address user) external view returns (uint256[] memory) { uint256 userBalance = gYogies.balanceOf(user); uint256[] memory userYogies = new uint256[] (userBalance); uint256 counter; for (uint i = 1; i <= gYogies.totalSupply(); i++) { address _owner = gYogies.ownerOf(i); if (_owner == user) { userYogies[counter] = i; counter++; } } return userYogies; } function getStakedYogiesOfUser(address user) external view returns (uint256[] memory) { uint256 userBalance = balanceOf(user); uint256[] memory userYogies = new uint256[] (userBalance); uint256 counter; for (uint i = 1; i <= totalSupply(); i++) { address _owner = _ownerships[i].addr; uint256 stakeTime = _ownerships[i].stakeLastClaimTime; if (_owner == user && stakeTime != 0) { userYogies[counter] = i; counter++; } } return userYogies; } function getStakedGYogiesOfUser(address user) external view returns (uint256[] memory) { uint256 userBalance = gYogies.balanceOf(user); uint256[] memory userYogies = new uint256[] (userBalance); uint256 counter; for (uint i = 1; i <= gYogies.totalSupply(); i++) { address _owner = gYogies.getStakeOwner(i); uint256 stakeTime = gYogies.getStakeLastClaimed(i); if (_owner == user && stakeTime != 0) { userYogies[counter] = i; counter++; } } return userYogies; } function areYogiesStaked(uint256[] calldata yogies) external view returns(bool[] memory) { bool[] memory areStaked = new bool[] (yogies.length); for (uint i = 0; i < yogies.length; i++) { areStaked[i] = _ownershipOf(yogies[i]).stakeLastClaimTime != 0; } return areStaked; } function areGYogiesStaked(uint256[] calldata yogies) external view returns(bool[] memory) { bool[] memory areStaked = new bool[] (yogies.length); for (uint i = 0; i < yogies.length; i++) { areStaked[i] = gYogies.getStakeLastClaimed(yogies[i]) != 0; } return areStaked; } function getYogiesRealOwner(uint256 yogie) external view returns (address) { if (_exists(yogie)) { return _ownerships[yogie].addr; } return address(0); } function getGYogiesRealOwner(uint256 yogie) external view returns (address) { return gYogies.getStakeOwner(yogie); } function getStakeLastClaimedFromYogie(uint256 yogie) external view returns (uint256) { return _ownershipOf(yogie).stakeLastClaimTime; } function nextYogieId() external view returns (uint256) { return _currentIndex; } /** === View vault === */ function getYogiesLeftInVault() public view returns(uint256) { return viyStartPoint - vaultStartPoint - vaultReleasedCounter; } function getNextVaultId() public view returns(uint256) { return vaultStartPoint + vaultReleasedCounter; } function getVIYsLeftInVault() public view returns(uint256) { return (totalYogies + 1) - viyStartPoint - viyReleaseCounter; } function getNextVIYId() public view returns(uint256) { return viyStartPoint + viyReleaseCounter; } /** === View freemint === */ function freeMintsLeft() external view returns(uint256) { if (totalSupply() > freeMintTotal) return 0; else return freeMintTotal - totalSupply(); } /** === View erc721 == */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { return string(abi.encodePacked(baseURIString, tokenId.toString(), ".json")); } function numberMinted(address minter) external view returns(uint256) { return _numberMinted(minter); } function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Create an instance of the ProxyRegistry contract from Opensea ProxyRegistry proxyRegistry = ProxyRegistry(openseaProxyRegistryAddress); // whitelist the ProxyContract of the owner of the Yogies if (openseaProxyRegistryAddress != address(0)) { if (address(proxyRegistry.proxies(owner)) == operator) { return true; } if (openseaProxyRegistryAddress == operator) { return true; } } return super.isApprovedForAll(owner, operator); } /*** === Only owner === */ function setBaseURI(string memory _newBaseURI) external onlyOwner notFrozen { baseURIString = _newBaseURI; emit setBaseURIEvent(_newBaseURI); } function setGYogies(address newGYogies) external onlyOwner notFrozen { gYogies = IGYogie(newGYogies); } function setGemies(address newGemies) external onlyOwner notFrozen { gemies = IGemies(newGemies); } function setYogiesOperator(address _operator, bool isOperator) external onlyOwner { yogiesOperator[_operator] = isOperator; } function setMerkleRoot(bytes32 newRoot) external onlyOwner notFrozen { merkleRoot = newRoot; } function setIsOpen(bool newIsOpen) external onlyOwner notFrozen { isOpen = newIsOpen; } function setVaultOpened(bool newOpened) external onlyOwner notFrozen { vaultOpened = newOpened; } function setVaultPriceYogie(uint256 newPrice) external onlyOwner notFrozen { vaultPriceYogie = newPrice; } function setVaultPriceVIY(uint256 newPrice) external onlyOwner notFrozen { vaultPriceVIY = newPrice; } function setVaultStartPoint(uint256 newStart) external onlyOwner notFrozen { vaultStartPoint = newStart; } function setVIYStartPoint(uint256 newStart) external onlyOwner notFrozen { viyStartPoint = newStart; } function setOwnerExplicit(uint256 yogieId) external onlyOwner { _setOwnerExplicit(yogieId); } receive() external payable { emit ReceivedEther(msg.sender, msg.value); } function approveForAll(address operator, bool approved) external onlyOwner { _operatorApprovals[address(this)][operator] = approved; } }
// SPDX-License-Identifier: MIT // Original Creator: Chiru Labs // Slightly modified for Yogies project pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). * * @dev ERC721Y implementation with customizations for the Yogies Project. * Hence the name ERC721Y. */ contract ERC721Y is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the last time gemies were claimed on this token uint64 stakeLastClaimTime; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) internal _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) internal _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal virtual view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { // Yogies contract owns each staked token if (ownership.stakeLastClaimTime != 0) { return TokenOwnership({ addr: address(this), stakeLastClaimTime: ownership.stakeLastClaimTime, burned: ownership.burned }); } if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721Y.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; // Staked yogies can in no circumstance be transfered require(currSlot.stakeLastClaimTime == 0, "Cannot transfer stake yogie"); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) internal { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} function _setOwnerExplicit(uint256 tokenId) internal { TokenOwnership memory _tokenOwnership = _ownershipOf(tokenId); require(_tokenOwnership.stakeLastClaimTime == 0, "Cannot set ownership of staked"); _ownerships[tokenId] = TokenOwnership(_tokenOwnership.addr, _tokenOwnership.stakeLastClaimTime, _tokenOwnership.burned); } // Custom staking logic function _setStakeTime(uint256 yogieId) internal { TokenOwnership storage _tokenOwnership = _ownerships[yogieId]; _tokenOwnership.stakeLastClaimTime = uint64(block.timestamp); } function _deleteStakeTime(uint256 yogieId) internal { TokenOwnership storage _tokenOwnership = _ownerships[yogieId]; _tokenOwnership.stakeLastClaimTime = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (last updated v4.5.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. */ 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 Merklee 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/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_openseaProxyRegistryAddress","type":"address"},{"internalType":"address","name":"_gYogies","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimGemies","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReceivedEther","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"uint256","name":"yogie","type":"uint256"}],"name":"StakeYogie","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":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"uint256","name":"yogie","type":"uint256"}],"name":"UnstakeYogie","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURIEvent","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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"approveForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"yogies","type":"uint256[]"}],"name":"areGYogiesStaked","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"yogies","type":"uint256[]"}],"name":"areYogiesStaked","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURIString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"caller","type":"address"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gYogies","outputs":[{"internalType":"contract IGYogie","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gemies","outputs":[{"internalType":"contract IGemies","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getGYogiesOfUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"yogie","type":"uint256"}],"name":"getGYogiesRealOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextVIYId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextVaultId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"yogie","type":"uint256"}],"name":"getStakeLastClaimedFromYogie","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getStakedGYogiesOfUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getStakedYogiesOfUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVIYsLeftInVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getYogiesLeftInVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getYogiesOfUser","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"yogie","type":"uint256"}],"name":"getYogiesRealOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockYogiesInVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextYogieId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openseaProxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newGYogies","type":"address"}],"name":"setGYogies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newGemies","type":"address"}],"name":"setGemies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newIsOpen","type":"bool"}],"name":"setIsOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"yogieId","type":"uint256"}],"name":"setOwnerExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStart","type":"uint256"}],"name":"setVIYStartPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newOpened","type":"bool"}],"name":"setVaultOpened","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setVaultPriceVIY","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setVaultPriceYogie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStart","type":"uint256"}],"name":"setVaultStartPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"isOperator","type":"bool"}],"name":"setYogiesOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"yogie","type":"uint256"},{"internalType":"address","name":"sender","type":"address"}],"name":"stakeYogie","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":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalYogies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unlockFromVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockVIYFromVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockYogieFromVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"yogie","type":"uint256"},{"internalType":"address","name":"sender","type":"address"}],"name":"unstakeYogie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultPriceVIY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultPriceYogie","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultReleasedCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultStartPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viyReleaseCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viyStartPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"yogiesOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e0604052603d60808181529062004bdc60a03980516200002991600a91602090910190620001ae565b50600b805460ff1990811690915561115c600c55610d05600e557f1d7dad1aa26fcd105a60218c4addd0538c7b3778ef26cd688db070133f0f971c600f556010805490911690556110ee60145568056bc75e2d631000006015556825f273933db57000006016553480156200009d57600080fd5b5060405162004c1938038062004c19833981016040819052620000c09162000271565b604080518082018252600680825265596f6769657360d01b6020808401828152855180870190965292855284015281519192916200010191600291620001ae565b50805162000117906003906020840190620001ae565b50506001600055506200012a336200015c565b600980546001600160a01b039384166001600160a01b03199182161790915560188054929093169116179055620002e5565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001bc90620002a9565b90600052602060002090601f016020900481019282620001e057600085556200022b565b82601f10620001fb57805160ff19168380011785556200022b565b828001600101855582156200022b579182015b828111156200022b5782518255916020019190600101906200020e565b50620002399291506200023d565b5090565b5b808211156200023957600081556001016200023e565b80516001600160a01b03811681146200026c57600080fd5b919050565b600080604083850312156200028557600080fd5b620002908362000254565b9150620002a06020840162000254565b90509250929050565b600181811c90821680620002be57607f821691505b602082108103620002df57634e487b7160e01b600052602260045260246000fd5b50919050565b6148e780620002f56000396000f3fe60806040526004361061049f5760003560e01c8063808851e81161025e578063b964cc4e11610143578063d30945bf116100bb578063e26b5c981161008a578063e765a9b11161006f578063e765a9b114610cec578063e985e9c514610d0c578063f2fde38b14610d2c57600080fd5b8063e26b5c9814610cac578063e584b65414610ccc57600080fd5b8063d30945bf14610c1c578063db2019e014610c3c578063dc33e68114610c6c578063dc41712314610c8c57600080fd5b8063c87b56dd11610112578063cdb98fc0116100f7578063cdb98fc014610bdb578063cf76a15314610bf1578063d2b55b2214610c0657600080fd5b8063c87b56dd14610ba1578063c942490b14610bc157600080fd5b8063b964cc4e14610b2c578063ba24c41114610b4c578063bb24418d14610b6c578063c5d9c50614610b8157600080fd5b806395d89b41116101d6578063a22cb465116101a5578063a6c468b61161018a578063a6c468b614610acc578063b2e9f17a14610aec578063b88d4fde14610b0c57600080fd5b8063a22cb46514610a8c578063a3897acd14610aac57600080fd5b806395d89b4114610a145780639b60e94414610a295780639def934814610a49578063a0b6b38b14610a7657600080fd5b806386a9229e1161022d5780638da5cb5b116102125780638da5cb5b146109b6578063910ab818146109d4578063928972fd146109f457600080fd5b806386a9229e146109815780638c5fab4a146109a157600080fd5b8063808851e8146109205780638265d8391461094057806383b1a6151461095657806385283e6d1461096c57600080fd5b80633fe5105711610384578063715018a6116102fc578063782dd267116102cb5780637a7ad017116102b05780637a7ad017146108d65780637cb64759146108eb5780637d7a797b1461090b57600080fd5b8063782dd267146108a0578063791b3616146108b657600080fd5b8063715018a614610836578063715881821461084b578063747c170b1461086b57806376a89bca1461088b57600080fd5b806355f804b3116103535780636352211e116103385780636352211e146107d6578063656414d8146107f657806370a082311461081657600080fd5b806355f804b3146107a057806361e2de0f146107c057600080fd5b80633fe510571461072657806342842e0e14610746578063449a52f81461076657806347535d7b1461078657600080fd5b806323b872dd116104175780632b34b36b116103e65780632f745c59116103cb5780632f745c59146106bf57806333eeb147146106df5780633b6bd074146106f957600080fd5b80632b34b36b146106935780632eb4a7ab146106a957600080fd5b806323b872dd1461062957806324a2ed1514610649578063266364611461065e5780632a5710aa1461067357600080fd5b8063095ea7b31161046e5780631527d3ae116104535780631527d3ae146105cc5780631579a223146105ec57806318160ddd1461060c57600080fd5b8063095ea7b31461058957806313e4fad5146105a957600080fd5b806301ffc9a7146104d857806306fdde031461050d578063081812fc1461052f578063085a10cf1461056757600080fd5b366104d357604051349033907fa419615bc8fda4c87663805ee2a3597a6d71c1d476911d9892f340d965bc7bf190600090a3005b600080fd5b3480156104e457600080fd5b506104f86104f336600461414a565b610d4c565b60405190151581526020015b60405180910390f35b34801561051957600080fd5b50610522610de9565b60405161050491906141c6565b34801561053b57600080fd5b5061054f61054a3660046141d9565b610e7b565b6040516001600160a01b039091168152602001610504565b34801561057357600080fd5b50610587610582366004614207565b610ed8565b005b34801561059557600080fd5b506105876105a4366004614237565b610f7d565b3480156105b557600080fd5b506105be61103c565b604051908152602001610504565b3480156105d857600080fd5b506105876105e7366004614237565b61107d565b3480156105f857600080fd5b5060175461054f906001600160a01b031681565b34801561061857600080fd5b5060015460005403600019016105be565b34801561063557600080fd5b50610587610644366004614263565b6110f7565b34801561065557600080fd5b506105be611102565b34801561066a57600080fd5b506105be611114565b34801561067f57600080fd5b5061054f61068e3660046141d9565b61113f565b34801561069f57600080fd5b506105be60115481565b3480156106b557600080fd5b506105be600f5481565b3480156106cb57600080fd5b506105be6106da366004614237565b611173565b3480156106eb57600080fd5b50600b546104f89060ff1681565b34801561070557600080fd5b506107196107143660046142a4565b611331565b60405161050491906142c1565b34801561073257600080fd5b506105876107413660046141d9565b611407565b34801561075257600080fd5b50610587610761366004614263565b611499565b34801561077257600080fd5b50610587610781366004614237565b6114b4565b34801561079257600080fd5b50600d546104f89060ff1681565b3480156107ac57600080fd5b506105876107bb366004614391565b611597565b3480156107cc57600080fd5b506105be60155481565b3480156107e257600080fd5b5061054f6107f13660046141d9565b611679565b34801561080257600080fd5b506105876108113660046143da565b61168b565b34801561082257600080fd5b506105be6108313660046142a4565b6116fe565b34801561084257600080fd5b50610587611766565b34801561085757600080fd5b5061058761086636600461440f565b6117ba565b34801561087757600080fd5b506105876108863660046142a4565b611830565b34801561089757600080fd5b506105be6118df565b3480156108ac57600080fd5b506105be60125481565b3480156108c257600080fd5b5060095461054f906001600160a01b031681565b3480156108e257600080fd5b506105876118f1565b3480156108f757600080fd5b506105876109063660046141d9565b611ac4565b34801561091757600080fd5b506000546105be565b34801561092c57600080fd5b5061054f61093b3660046141d9565b611b56565b34801561094c57600080fd5b506105be60145481565b34801561096257600080fd5b506105be60135481565b34801561097857600080fd5b506105be611bc4565b34801561098d57600080fd5b5061058761099c3660046142a4565b611bd9565b3480156109ad57600080fd5b50610587611c88565b3480156109c257600080fd5b506008546001600160a01b031661054f565b3480156109e057600080fd5b5060185461054f906001600160a01b031681565b348015610a0057600080fd5b50610719610a0f3660046142a4565b611e4f565b348015610a2057600080fd5b50610522611f3d565b348015610a3557600080fd5b506105be610a443660046141d9565b611f4c565b348015610a5557600080fd5b50610a69610a6436600461448b565b611f6b565b60405161050491906144cd565b348015610a8257600080fd5b506105be60165481565b348015610a9857600080fd5b50610587610aa73660046143da565b61202e565b348015610ab857600080fd5b50610719610ac73660046142a4565b6120dc565b348015610ad857600080fd5b50610a69610ae736600461448b565b61237c565b348015610af857600080fd5b50610587610b07366004614507565b612491565b348015610b1857600080fd5b50610587610b2736600461455e565b612710565b348015610b3857600080fd5b50610587610b473660046141d9565b61275b565b348015610b5857600080fd5b50610587610b67366004614207565b6127ed565b348015610b7857600080fd5b5061058761288d565b348015610b8d57600080fd5b50610719610b9c3660046142a4565b612995565b348015610bad57600080fd5b50610522610bbc3660046141d9565b612bb4565b348015610bcd57600080fd5b506010546104f89060ff1681565b348015610be757600080fd5b506105be600c5481565b348015610bfd57600080fd5b50610522612be8565b348015610c1257600080fd5b506105be600e5481565b348015610c2857600080fd5b50610587610c373660046141d9565b612c76565b348015610c4857600080fd5b506104f8610c573660046142a4565b60196020526000908152604090205460ff1681565b348015610c7857600080fd5b506105be610c873660046142a4565b612d08565b348015610c9857600080fd5b50610587610ca73660046141d9565b612d3c565b348015610cb857600080fd5b50610587610cc736600461440f565b612d8d565b348015610cd857600080fd5b50610587610ce73660046143da565b612e03565b348015610cf857600080fd5b50610587610d073660046141d9565b612e83565b348015610d1857600080fd5b506104f8610d273660046145de565b612f15565b348015610d3857600080fd5b50610587610d473660046142a4565b61301b565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610daf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610de357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610df89061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e249061460c565b8015610e715780601f10610e4657610100808354040283529160200191610e71565b820191906000526020600020905b815481529060010190602001808311610e5457829003601f168201915b5050505050905090565b6000610e86826130e8565b610ebc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b03163314610f255760405162461bcd60e51b8152602060048201819052602482015260008051602061489283398151915260448201526064015b60405180910390fd5b600b5460ff1615610f6a5760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b600d805460ff1916911515919091179055565b6000610f8882611679565b9050806001600160a01b0316836001600160a01b031603610fd5576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610ff55750610ff38133612f15565b155b1561102c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611037838383613121565b505050565b6000600e546110546001546000546000199190030190565b11156110605750600090565b6001546000540360001901600e54611078919061465c565b905090565b3360009081526019602052604090205460ff16806110a557506008546001600160a01b031633145b6110e95760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6110f3828261317d565b5050565b611037838383613322565b60006012546014546110789190614673565b6000601254601454600c54600161112b9190614673565b611135919061465c565b611078919061465c565b600061114a826130e8565b1561116b57506000908152600460205260409020546001600160a01b031690565b506000919050565b600061117e836116fe565b82106111f25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610f1c565b60006112076001546000546000199190030190565b905060008060005b838110156112c257600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561127557805192505b876001600160a01b0316836001600160a01b0316036112af578684036112a157509350610de392505050565b836112ab8161468b565b9450505b50806112ba8161468b565b91505061120f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610f1c565b6060600061133e836116fe565b905060008167ffffffffffffffff81111561135b5761135b614305565b604051908082528060200260200182016040528015611384578160200160208202803683370190505b509050600060015b600154600054036000190181116113fd5760006113a88261356b565b5190506001600160a01b03808816908216036113ea57818484815181106113d1576113d16146a4565b6020908102919091010152826113e68161468b565b9350505b50806113f58161468b565b91505061138c565b5090949350505050565b6008546001600160a01b0316331461144f5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156114945760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601555565b61103783838360405180602001604052806000815250612710565b3360009081526019602052604090205460ff16806114dc57506008546001600160a01b031633145b6115205760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b600c5460015460005403600019011061157b5760405162461bcd60e51b815260206004820152601460248201527f546f74616c20796f6769657320726561636865640000000000000000000000006044820152606401610f1c565b6110f382826040518060200160405280600081525060006136f3565b6008546001600160a01b031633146115df5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156116245760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b805161163790600a90602084019061409b565b508060405161164691906146d6565b604051908190038120907fc9e8f610c54c2b76116d5166ae3d1bd8f7227fd57dce593bc86525d58991963d90600090a250565b60006116848261356b565b5192915050565b6008546001600160a01b031633146116d35760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b60006001600160a01b038216611740576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146117ae5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b6117b860006138f5565b565b3360009081526019602052604090205460ff16806117e257506008546001600160a01b031633145b6118265760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6110f38282613947565b6008546001600160a01b031633146118785760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156118bd5760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b60006011546013546110789190614673565b60105460ff166119325760405162461bcd60e51b815260206004820152600c60248201526b15985d5b1d0818db1bdcd95960a21b6044820152606401610f1c565b600061193c611bc4565b116119775760405162461bcd60e51b815260206004820152600b60248201526a5661756c7420656d70747960a81b6044820152606401610f1c565b601554601754604051633dcd9f9160e01b81523360048201526001600160a01b0390911690633dcd9f9190602401602060405180830381865afa1580156119c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e691906146f2565b1015611a345760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f7567682067656d6965730000000000000000000000000000006044820152606401610f1c565b60175460155460405163aaffcea360e01b815260048101919091523360248201526001600160a01b039091169063aaffcea390604401600060405180830381600087803b158015611a8457600080fd5b505af1158015611a98573d6000803e3d6000fd5b50505050611aad33611aa86118df565b61317d565b60118054906000611abd8361468b565b9190505550565b6008546001600160a01b03163314611b0c5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615611b515760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b600f55565b601854604051632884792b60e11b8152600481018390526000916001600160a01b031690635108f25690602401602060405180830381865afa158015611ba0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de3919061470b565b6000601154601354601454611135919061465c565b6008546001600160a01b03163314611c215760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615611c665760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b60105460ff16611cc95760405162461bcd60e51b815260206004820152600c60248201526b15985d5b1d0818db1bdcd95960a21b6044820152606401610f1c565b6000611cd3611114565b11611d0e5760405162461bcd60e51b815260206004820152600b60248201526a5661756c7420656d70747960a81b6044820152606401610f1c565b601654601754604051633dcd9f9160e01b81523360048201526001600160a01b0390911690633dcd9f9190602401602060405180830381865afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d91906146f2565b1015611dcb5760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f7567682067656d6965730000000000000000000000000000006044820152606401610f1c565b60175460165460405163aaffcea360e01b815260048101919091523360248201526001600160a01b039091169063aaffcea390604401600060405180830381600087803b158015611e1b57600080fd5b505af1158015611e2f573d6000803e3d6000fd5b50505050611e3f33611aa8611102565b60128054906000611abd8361468b565b60606000611e5c836116fe565b905060008167ffffffffffffffff811115611e7957611e79614305565b604051908082528060200260200182016040528015611ea2578160200160208202803683370190505b509050600060015b600154600054036000190181116113fd576000818152600460205260409020546001600160a01b0380821691600160a01b900467ffffffffffffffff1690881682148015611ef757508015155b15611f285782858581518110611f0f57611f0f6146a4565b602090810291909101015283611f248161468b565b9450505b50508080611f359061468b565b915050611eaa565b606060038054610df89061460c565b6000611f578261356b565b6020015167ffffffffffffffff1692915050565b606060008267ffffffffffffffff811115611f8857611f88614305565b604051908082528060200260200182016040528015611fb1578160200160208202803683370190505b50905060005b8381101561202657611fe0858583818110611fd457611fd46146a4565b9050602002013561356b565b6020015167ffffffffffffffff1660001415828281518110612004576120046146a4565b911515602092830291909101909101528061201e8161468b565b915050611fb7565b509392505050565b336001600160a01b03831603612070576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6018546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa15801561212b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214f91906146f2565b905060008167ffffffffffffffff81111561216c5761216c614305565b604051908082528060200260200182016040528015612195578160200160208202803683370190505b509050600060015b601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221491906146f2565b81116113fd57601854604051632884792b60e11b8152600481018390526000916001600160a01b031690635108f25690602401602060405180830381865afa158015612264573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612288919061470b565b6018546040517fb7fc3713000000000000000000000000000000000000000000000000000000008152600481018590529192506000916001600160a01b039091169063b7fc371390602401602060405180830381865afa1580156122f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231491906146f2565b9050876001600160a01b0316826001600160a01b031614801561233657508015155b15612367578285858151811061234e5761234e6146a4565b6020908102919091010152836123638161468b565b9450505b505080806123749061468b565b91505061219d565b606060008267ffffffffffffffff81111561239957612399614305565b6040519080825280602002602001820160405280156123c2578160200160208202803683370190505b50905060005b83811015612026576018546001600160a01b031663b7fc37138686848181106123f3576123f36146a4565b905060200201356040518263ffffffff1660e01b815260040161241891815260200190565b602060405180830381865afa158015612435573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245991906146f2565b6000141582828151811061246f5761246f6146a4565b91151560209283029190910190910152806124898161468b565b9150506123c8565b3360009081526019602052604090205460ff16806124b957506008546001600160a01b031633145b6124fd5760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6040516bffffffffffffffffffffffff19606083901b16602082015260009060340160405160208183030381529060405280519060200120905061257884848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f549150849050613b38565b6125c45760405162461bcd60e51b815260206004820152601460248201527f55736572206e6f742077686974656c69737465640000000000000000000000006044820152606401610f1c565b6001600160a01b03821660009081526005602052604090205468010000000000000000900467ffffffffffffffff16156126405760405162461bcd60e51b815260206004820152601560248201527f596f67696520616c726561647920636c61696d656400000000000000000000006044820152606401610f1c565b600e5460015460005403600019011061269b5760405162461bcd60e51b815260206004820152601360248201527f4e6f206d6f726520796f67696573206c656674000000000000000000000000006044820152606401610f1c565b600d5460ff166126ed5760405162461bcd60e51b815260206004820152600f60248201527f467265656d696e7420636c6f73656400000000000000000000000000000000006044820152606401610f1c565b61270a8260016040518060200160405280600081525060006136f3565b50505050565b61271b848484613322565b6001600160a01b0383163b1515801561273d575061273b84848484613b4e565b155b1561270a576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b031633146127a35760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156127e85760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601655565b6008546001600160a01b031633146128355760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff161561287a5760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b6010805460ff1916911515919091179055565b6008546001600160a01b031633146128d55760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600c546001546000540360001901106129305760405162461bcd60e51b815260206004820152601460248201527f546f74616c20796f6769657320726561636865640000000000000000000000006044820152606401610f1c565b600d805460ff19908116909155601080549091166001179055600061295e6001546000546000199190030190565b600c5461296b919061465c565b905060005460138190555061299230826040518060200160405280600081525060006136f3565b50565b6018546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa1580156129e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0891906146f2565b905060008167ffffffffffffffff811115612a2557612a25614305565b604051908082528060200260200182016040528015612a4e578160200160208202803683370190505b509050600060015b601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612acd91906146f2565b81116113fd576018546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015612b36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5a919061470b565b9050866001600160a01b0316816001600160a01b031603612ba15781848481518110612b8857612b886146a4565b602090810291909101015282612b9d8161468b565b9350505b5080612bac8161468b565b915050612a56565b6060600a612bc183613c39565b604051602001612bd2929190614728565b6040516020818303038152906040529050919050565b600a8054612bf59061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054612c219061460c565b8015612c6e5780601f10612c4357610100808354040283529160200191612c6e565b820191906000526020600020905b815481529060010190602001808311612c5157829003601f168201915b505050505081565b6008546001600160a01b03163314612cbe5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615612d035760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601455565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff16610de3565b6008546001600160a01b03163314612d845760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b61299281613d6e565b3360009081526019602052604090205460ff1680612db557506008546001600160a01b031633145b612df95760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6110f38282613e7e565b6008546001600160a01b03163314612e4b5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b3060009081526007602090815260408083206001600160a01b0395909516835293905291909120805460ff1916911515919091179055565b6008546001600160a01b03163314612ecb5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615612f105760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601355565b6009546000906001600160a01b03168015612fe9576040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa158015612f8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fb2919061470b565b6001600160a01b031603612fca576001915050610de3565b6009546001600160a01b03808516911603612fe9576001915050610de3565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146130635760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b6001600160a01b0381166130df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f1c565b612992816138f5565b6000816001111580156130fc575060005482105b8015610de3575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006131888261356b565b80519091506001600160a01b031630146131b45760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0383166131db57604051633a954ecd60e21b815260040160405180910390fd5b306000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff928316600019018316179092556001600160a01b03881680865283862080549384169383166001018316939093179092558685526004909352922080546001600160a01b031916909217808355600160a01b900416156132a75760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207472616e73666572207374616b6520796f67696500000000006044820152606401610f1c565b60018301600081815260046020526040902080546001600160a01b03166132e25760005482146132e25780546001600160a01b031916301781555b50506040518391506001600160a01b0385169030907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4505050565b600061332d8261356b565b9050836001600160a01b031681600001516001600160a01b0316146133645760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061338257506133828533612f15565b8061339d57503361339284610e7b565b6001600160a01b0316145b9050806133d6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166133fd57604051633a954ecd60e21b815260040160405180910390fd5b61340960008487613121565b6001600160a01b038086166000908152600560209081526040808320805460001967ffffffffffffffff80831691909101811667ffffffffffffffff199283161790925594891680855282852080548084166001018416971696909617909555878452600490925290912080546001600160a01b031916909217808355600160a01b900416156134db5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207472616e73666572207374616b6520796f67696500000000006044820152606401610f1c565b60018401600081815260046020526040902080546001600160a01b031661351f57600054821461351f5780546001600160a01b0319166001600160a01b0389161781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040805160608101825260008082526020820181905291810191909152818060011115801561359b575060005481105b156136c157600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906136bf57602081015167ffffffffffffffff161561363e576040805160608101825230815260208381015167ffffffffffffffff1690820152918101511515908201529392505050565b80516001600160a01b031615613655579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156136ba579392505050565b613655565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b038516613736576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003613770576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546801000000000000000067ffffffffffffffff8083168c01811667ffffffffffffffff198416811783900482168d019091169091027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216171790558483526004909152902080546001600160a01b03191690911790558080850183801561381f57506001600160a01b0387163b15155b156138a7575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138706000888480600101955088613b4e565b61388d576040516368d2bf6b60e11b815260040160405180910390fd5b8082036138255782600054146138a257600080fd5b6138ec565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082036138a8575b50600055613564565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613950826130e8565b61399c5760405162461bcd60e51b815260206004820152601460248201527f596f67696520646f6573206e6f742065786973740000000000000000000000006044820152606401610f1c565b6139a58261356b565b6020015167ffffffffffffffff16600003613a025760405162461bcd60e51b815260206004820152601060248201527f596f676965206e6f74207374616b6564000000000000000000000000000000006044820152606401610f1c565b30613a0c8361356b565b516001600160a01b031614613a635760405162461bcd60e51b815260206004820152601c60248201527f596f676965206e6f74207374616b656420696e20636f6e7472616374000000006044820152606401610f1c565b6000828152600460205260409020546001600160a01b03828116911614613acc5760405162461bcd60e51b815260206004820152601960248201527f53656e64657220646f6573206e6f74206f776e20796f676965000000000000006044820152606401610f1c565b60008281526004602052604080822080547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff1690555183916001600160a01b0384169130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a45050565b600082613b45858461402f565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613b839033908990889088906004016147fa565b6020604051808303816000875af1925050508015613bbe575060408051601f3d908101601f19168201909252613bbb91810190614836565b60015b613c1c573d808015613bec576040519150601f19603f3d011682016040523d82523d6000602084013e613bf1565b606091505b508051600003613c14576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606081600003613c7c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613ca65780613c908161468b565b9150613c9f9050600a83614869565b9150613c80565b60008167ffffffffffffffff811115613cc157613cc1614305565b6040519080825280601f01601f191660200182016040528015613ceb576020820181803683370190505b5090505b841561301357613d0060018361465c565b9150613d0d600a8661487d565b613d18906030614673565b60f81b818381518110613d2d57613d2d6146a4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d67600a86614869565b9450613cef565b6000613d798261356b565b9050806020015167ffffffffffffffff16600014613dd95760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f7420736574206f776e657273686970206f66207374616b656400006044820152606401610f1c565b6040805160608101825282516001600160a01b03908116825260208085015167ffffffffffffffff908116828501908152958501511515848601908152600097885260049092529390952091518254945195511515600160e01b027fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff96909416600160a01b026001600160e01b03199095169116179290921792909216919091179055565b613e87826130e8565b613ed35760405162461bcd60e51b815260206004820152601460248201527f596f67696520646f6573206e6f742065786973740000000000000000000000006044820152606401610f1c565b613edc8261356b565b6020015167ffffffffffffffff1615613f375760405162461bcd60e51b815260206004820152601460248201527f596f67696520616c7265616479207374616b65640000000000000000000000006044820152606401610f1c565b806001600160a01b0316613f4a8361356b565b516001600160a01b031614613fa15760405162461bcd60e51b815260206004820152601960248201527f53656e64657220646f6573206e6f74206f776e20796f676965000000000000006044820152606401610f1c565b613fad60008383613121565b600082815260046020526040902080547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff16600160a01b4267ffffffffffffffff1602179055604051829030906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a45050565b600081815b8451811015612026576000858281518110614051576140516146a4565b602002602001015190508083116140775760008381526020829052604090209250614088565b600081815260208490526040902092505b50806140938161468b565b915050614034565b8280546140a79061460c565b90600052602060002090601f0160209004810192826140c9576000855561410f565b82601f106140e257805160ff191683800117855561410f565b8280016001018555821561410f579182015b8281111561410f5782518255916020019190600101906140f4565b5061411b92915061411f565b5090565b5b8082111561411b5760008155600101614120565b6001600160e01b03198116811461299257600080fd5b60006020828403121561415c57600080fd5b813561416781614134565b9392505050565b60005b83811015614189578181015183820152602001614171565b8381111561270a5750506000910152565b600081518084526141b281602086016020860161416e565b601f01601f19169290920160200192915050565b602081526000614167602083018461419a565b6000602082840312156141eb57600080fd5b5035919050565b8035801515811461420257600080fd5b919050565b60006020828403121561421957600080fd5b614167826141f2565b6001600160a01b038116811461299257600080fd5b6000806040838503121561424a57600080fd5b823561425581614222565b946020939093013593505050565b60008060006060848603121561427857600080fd5b833561428381614222565b9250602084013561429381614222565b929592945050506040919091013590565b6000602082840312156142b657600080fd5b813561416781614222565b6020808252825182820181905260009190848201906040850190845b818110156142f9578351835292840192918401916001016142dd565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561433657614336614305565b604051601f8501601f19908116603f0116810190828211818310171561435e5761435e614305565b8160405280935085815286868601111561437757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156143a357600080fd5b813567ffffffffffffffff8111156143ba57600080fd5b8201601f810184136143cb57600080fd5b6130138482356020840161431b565b600080604083850312156143ed57600080fd5b82356143f881614222565b9150614406602084016141f2565b90509250929050565b6000806040838503121561442257600080fd5b82359150602083013561443481614222565b809150509250929050565b60008083601f84011261445157600080fd5b50813567ffffffffffffffff81111561446957600080fd5b6020830191508360208260051b850101111561448457600080fd5b9250929050565b6000806020838503121561449e57600080fd5b823567ffffffffffffffff8111156144b557600080fd5b6144c18582860161443f565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156142f95783511515835292840192918401916001016144e9565b60008060006040848603121561451c57600080fd5b833567ffffffffffffffff81111561453357600080fd5b61453f8682870161443f565b909450925050602084013561455381614222565b809150509250925092565b6000806000806080858703121561457457600080fd5b843561457f81614222565b9350602085013561458f81614222565b925060408501359150606085013567ffffffffffffffff8111156145b257600080fd5b8501601f810187136145c357600080fd5b6145d28782356020840161431b565b91505092959194509250565b600080604083850312156145f157600080fd5b82356145fc81614222565b9150602083013561443481614222565b600181811c9082168061462057607f821691505b60208210810361464057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561466e5761466e614646565b500390565b6000821982111561468657614686614646565b500190565b60006001820161469d5761469d614646565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600081516146cc81856020860161416e565b9290920192915050565b600082516146e881846020870161416e565b9190910192915050565b60006020828403121561470457600080fd5b5051919050565b60006020828403121561471d57600080fd5b815161416781614222565b600080845481600182811c91508083168061474457607f831692505b6020808410820361476357634e487b7160e01b86526022600452602486fd5b8180156147775760018114614788576147b5565b60ff198616895284890196506147b5565b60008b81526020902060005b868110156147ad5781548b820152908501908301614794565b505084890196505b5050505050506147f16147c882866146ba565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261482c608083018461419a565b9695505050505050565b60006020828403121561484857600080fd5b815161416781614134565b634e487b7160e01b600052601260045260246000fd5b60008261487857614878614853565b500490565b60008261488c5761488c614853565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220131a5496be791e1e7b041accc5bfe5dd1cb81a39344944679df22f373885cdb564736f6c634300080d003368747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f796f676965732d6173736574732f6d657461646174612f796f676965732f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000007a5963206f1c5529430716de9feeb6b6da5c0518
Deployed Bytecode
0x60806040526004361061049f5760003560e01c8063808851e81161025e578063b964cc4e11610143578063d30945bf116100bb578063e26b5c981161008a578063e765a9b11161006f578063e765a9b114610cec578063e985e9c514610d0c578063f2fde38b14610d2c57600080fd5b8063e26b5c9814610cac578063e584b65414610ccc57600080fd5b8063d30945bf14610c1c578063db2019e014610c3c578063dc33e68114610c6c578063dc41712314610c8c57600080fd5b8063c87b56dd11610112578063cdb98fc0116100f7578063cdb98fc014610bdb578063cf76a15314610bf1578063d2b55b2214610c0657600080fd5b8063c87b56dd14610ba1578063c942490b14610bc157600080fd5b8063b964cc4e14610b2c578063ba24c41114610b4c578063bb24418d14610b6c578063c5d9c50614610b8157600080fd5b806395d89b41116101d6578063a22cb465116101a5578063a6c468b61161018a578063a6c468b614610acc578063b2e9f17a14610aec578063b88d4fde14610b0c57600080fd5b8063a22cb46514610a8c578063a3897acd14610aac57600080fd5b806395d89b4114610a145780639b60e94414610a295780639def934814610a49578063a0b6b38b14610a7657600080fd5b806386a9229e1161022d5780638da5cb5b116102125780638da5cb5b146109b6578063910ab818146109d4578063928972fd146109f457600080fd5b806386a9229e146109815780638c5fab4a146109a157600080fd5b8063808851e8146109205780638265d8391461094057806383b1a6151461095657806385283e6d1461096c57600080fd5b80633fe5105711610384578063715018a6116102fc578063782dd267116102cb5780637a7ad017116102b05780637a7ad017146108d65780637cb64759146108eb5780637d7a797b1461090b57600080fd5b8063782dd267146108a0578063791b3616146108b657600080fd5b8063715018a614610836578063715881821461084b578063747c170b1461086b57806376a89bca1461088b57600080fd5b806355f804b3116103535780636352211e116103385780636352211e146107d6578063656414d8146107f657806370a082311461081657600080fd5b806355f804b3146107a057806361e2de0f146107c057600080fd5b80633fe510571461072657806342842e0e14610746578063449a52f81461076657806347535d7b1461078657600080fd5b806323b872dd116104175780632b34b36b116103e65780632f745c59116103cb5780632f745c59146106bf57806333eeb147146106df5780633b6bd074146106f957600080fd5b80632b34b36b146106935780632eb4a7ab146106a957600080fd5b806323b872dd1461062957806324a2ed1514610649578063266364611461065e5780632a5710aa1461067357600080fd5b8063095ea7b31161046e5780631527d3ae116104535780631527d3ae146105cc5780631579a223146105ec57806318160ddd1461060c57600080fd5b8063095ea7b31461058957806313e4fad5146105a957600080fd5b806301ffc9a7146104d857806306fdde031461050d578063081812fc1461052f578063085a10cf1461056757600080fd5b366104d357604051349033907fa419615bc8fda4c87663805ee2a3597a6d71c1d476911d9892f340d965bc7bf190600090a3005b600080fd5b3480156104e457600080fd5b506104f86104f336600461414a565b610d4c565b60405190151581526020015b60405180910390f35b34801561051957600080fd5b50610522610de9565b60405161050491906141c6565b34801561053b57600080fd5b5061054f61054a3660046141d9565b610e7b565b6040516001600160a01b039091168152602001610504565b34801561057357600080fd5b50610587610582366004614207565b610ed8565b005b34801561059557600080fd5b506105876105a4366004614237565b610f7d565b3480156105b557600080fd5b506105be61103c565b604051908152602001610504565b3480156105d857600080fd5b506105876105e7366004614237565b61107d565b3480156105f857600080fd5b5060175461054f906001600160a01b031681565b34801561061857600080fd5b5060015460005403600019016105be565b34801561063557600080fd5b50610587610644366004614263565b6110f7565b34801561065557600080fd5b506105be611102565b34801561066a57600080fd5b506105be611114565b34801561067f57600080fd5b5061054f61068e3660046141d9565b61113f565b34801561069f57600080fd5b506105be60115481565b3480156106b557600080fd5b506105be600f5481565b3480156106cb57600080fd5b506105be6106da366004614237565b611173565b3480156106eb57600080fd5b50600b546104f89060ff1681565b34801561070557600080fd5b506107196107143660046142a4565b611331565b60405161050491906142c1565b34801561073257600080fd5b506105876107413660046141d9565b611407565b34801561075257600080fd5b50610587610761366004614263565b611499565b34801561077257600080fd5b50610587610781366004614237565b6114b4565b34801561079257600080fd5b50600d546104f89060ff1681565b3480156107ac57600080fd5b506105876107bb366004614391565b611597565b3480156107cc57600080fd5b506105be60155481565b3480156107e257600080fd5b5061054f6107f13660046141d9565b611679565b34801561080257600080fd5b506105876108113660046143da565b61168b565b34801561082257600080fd5b506105be6108313660046142a4565b6116fe565b34801561084257600080fd5b50610587611766565b34801561085757600080fd5b5061058761086636600461440f565b6117ba565b34801561087757600080fd5b506105876108863660046142a4565b611830565b34801561089757600080fd5b506105be6118df565b3480156108ac57600080fd5b506105be60125481565b3480156108c257600080fd5b5060095461054f906001600160a01b031681565b3480156108e257600080fd5b506105876118f1565b3480156108f757600080fd5b506105876109063660046141d9565b611ac4565b34801561091757600080fd5b506000546105be565b34801561092c57600080fd5b5061054f61093b3660046141d9565b611b56565b34801561094c57600080fd5b506105be60145481565b34801561096257600080fd5b506105be60135481565b34801561097857600080fd5b506105be611bc4565b34801561098d57600080fd5b5061058761099c3660046142a4565b611bd9565b3480156109ad57600080fd5b50610587611c88565b3480156109c257600080fd5b506008546001600160a01b031661054f565b3480156109e057600080fd5b5060185461054f906001600160a01b031681565b348015610a0057600080fd5b50610719610a0f3660046142a4565b611e4f565b348015610a2057600080fd5b50610522611f3d565b348015610a3557600080fd5b506105be610a443660046141d9565b611f4c565b348015610a5557600080fd5b50610a69610a6436600461448b565b611f6b565b60405161050491906144cd565b348015610a8257600080fd5b506105be60165481565b348015610a9857600080fd5b50610587610aa73660046143da565b61202e565b348015610ab857600080fd5b50610719610ac73660046142a4565b6120dc565b348015610ad857600080fd5b50610a69610ae736600461448b565b61237c565b348015610af857600080fd5b50610587610b07366004614507565b612491565b348015610b1857600080fd5b50610587610b2736600461455e565b612710565b348015610b3857600080fd5b50610587610b473660046141d9565b61275b565b348015610b5857600080fd5b50610587610b67366004614207565b6127ed565b348015610b7857600080fd5b5061058761288d565b348015610b8d57600080fd5b50610719610b9c3660046142a4565b612995565b348015610bad57600080fd5b50610522610bbc3660046141d9565b612bb4565b348015610bcd57600080fd5b506010546104f89060ff1681565b348015610be757600080fd5b506105be600c5481565b348015610bfd57600080fd5b50610522612be8565b348015610c1257600080fd5b506105be600e5481565b348015610c2857600080fd5b50610587610c373660046141d9565b612c76565b348015610c4857600080fd5b506104f8610c573660046142a4565b60196020526000908152604090205460ff1681565b348015610c7857600080fd5b506105be610c873660046142a4565b612d08565b348015610c9857600080fd5b50610587610ca73660046141d9565b612d3c565b348015610cb857600080fd5b50610587610cc736600461440f565b612d8d565b348015610cd857600080fd5b50610587610ce73660046143da565b612e03565b348015610cf857600080fd5b50610587610d073660046141d9565b612e83565b348015610d1857600080fd5b506104f8610d273660046145de565b612f15565b348015610d3857600080fd5b50610587610d473660046142a4565b61301b565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610daf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610de357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610df89061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054610e249061460c565b8015610e715780601f10610e4657610100808354040283529160200191610e71565b820191906000526020600020905b815481529060010190602001808311610e5457829003601f168201915b5050505050905090565b6000610e86826130e8565b610ebc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6008546001600160a01b03163314610f255760405162461bcd60e51b8152602060048201819052602482015260008051602061489283398151915260448201526064015b60405180910390fd5b600b5460ff1615610f6a5760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b600d805460ff1916911515919091179055565b6000610f8882611679565b9050806001600160a01b0316836001600160a01b031603610fd5576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610ff55750610ff38133612f15565b155b1561102c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611037838383613121565b505050565b6000600e546110546001546000546000199190030190565b11156110605750600090565b6001546000540360001901600e54611078919061465c565b905090565b3360009081526019602052604090205460ff16806110a557506008546001600160a01b031633145b6110e95760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6110f3828261317d565b5050565b611037838383613322565b60006012546014546110789190614673565b6000601254601454600c54600161112b9190614673565b611135919061465c565b611078919061465c565b600061114a826130e8565b1561116b57506000908152600460205260409020546001600160a01b031690565b506000919050565b600061117e836116fe565b82106111f25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610f1c565b60006112076001546000546000199190030190565b905060008060005b838110156112c257600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561127557805192505b876001600160a01b0316836001600160a01b0316036112af578684036112a157509350610de392505050565b836112ab8161468b565b9450505b50806112ba8161468b565b91505061120f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610f1c565b6060600061133e836116fe565b905060008167ffffffffffffffff81111561135b5761135b614305565b604051908082528060200260200182016040528015611384578160200160208202803683370190505b509050600060015b600154600054036000190181116113fd5760006113a88261356b565b5190506001600160a01b03808816908216036113ea57818484815181106113d1576113d16146a4565b6020908102919091010152826113e68161468b565b9350505b50806113f58161468b565b91505061138c565b5090949350505050565b6008546001600160a01b0316331461144f5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156114945760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601555565b61103783838360405180602001604052806000815250612710565b3360009081526019602052604090205460ff16806114dc57506008546001600160a01b031633145b6115205760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b600c5460015460005403600019011061157b5760405162461bcd60e51b815260206004820152601460248201527f546f74616c20796f6769657320726561636865640000000000000000000000006044820152606401610f1c565b6110f382826040518060200160405280600081525060006136f3565b6008546001600160a01b031633146115df5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156116245760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b805161163790600a90602084019061409b565b508060405161164691906146d6565b604051908190038120907fc9e8f610c54c2b76116d5166ae3d1bd8f7227fd57dce593bc86525d58991963d90600090a250565b60006116848261356b565b5192915050565b6008546001600160a01b031633146116d35760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b60006001600160a01b038216611740576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146117ae5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b6117b860006138f5565b565b3360009081526019602052604090205460ff16806117e257506008546001600160a01b031633145b6118265760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6110f38282613947565b6008546001600160a01b031633146118785760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156118bd5760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b60006011546013546110789190614673565b60105460ff166119325760405162461bcd60e51b815260206004820152600c60248201526b15985d5b1d0818db1bdcd95960a21b6044820152606401610f1c565b600061193c611bc4565b116119775760405162461bcd60e51b815260206004820152600b60248201526a5661756c7420656d70747960a81b6044820152606401610f1c565b601554601754604051633dcd9f9160e01b81523360048201526001600160a01b0390911690633dcd9f9190602401602060405180830381865afa1580156119c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e691906146f2565b1015611a345760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f7567682067656d6965730000000000000000000000000000006044820152606401610f1c565b60175460155460405163aaffcea360e01b815260048101919091523360248201526001600160a01b039091169063aaffcea390604401600060405180830381600087803b158015611a8457600080fd5b505af1158015611a98573d6000803e3d6000fd5b50505050611aad33611aa86118df565b61317d565b60118054906000611abd8361468b565b9190505550565b6008546001600160a01b03163314611b0c5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615611b515760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b600f55565b601854604051632884792b60e11b8152600481018390526000916001600160a01b031690635108f25690602401602060405180830381865afa158015611ba0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de3919061470b565b6000601154601354601454611135919061465c565b6008546001600160a01b03163314611c215760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615611c665760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b60105460ff16611cc95760405162461bcd60e51b815260206004820152600c60248201526b15985d5b1d0818db1bdcd95960a21b6044820152606401610f1c565b6000611cd3611114565b11611d0e5760405162461bcd60e51b815260206004820152600b60248201526a5661756c7420656d70747960a81b6044820152606401610f1c565b601654601754604051633dcd9f9160e01b81523360048201526001600160a01b0390911690633dcd9f9190602401602060405180830381865afa158015611d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7d91906146f2565b1015611dcb5760405162461bcd60e51b815260206004820152601160248201527f4e6f7420656e6f7567682067656d6965730000000000000000000000000000006044820152606401610f1c565b60175460165460405163aaffcea360e01b815260048101919091523360248201526001600160a01b039091169063aaffcea390604401600060405180830381600087803b158015611e1b57600080fd5b505af1158015611e2f573d6000803e3d6000fd5b50505050611e3f33611aa8611102565b60128054906000611abd8361468b565b60606000611e5c836116fe565b905060008167ffffffffffffffff811115611e7957611e79614305565b604051908082528060200260200182016040528015611ea2578160200160208202803683370190505b509050600060015b600154600054036000190181116113fd576000818152600460205260409020546001600160a01b0380821691600160a01b900467ffffffffffffffff1690881682148015611ef757508015155b15611f285782858581518110611f0f57611f0f6146a4565b602090810291909101015283611f248161468b565b9450505b50508080611f359061468b565b915050611eaa565b606060038054610df89061460c565b6000611f578261356b565b6020015167ffffffffffffffff1692915050565b606060008267ffffffffffffffff811115611f8857611f88614305565b604051908082528060200260200182016040528015611fb1578160200160208202803683370190505b50905060005b8381101561202657611fe0858583818110611fd457611fd46146a4565b9050602002013561356b565b6020015167ffffffffffffffff1660001415828281518110612004576120046146a4565b911515602092830291909101909101528061201e8161468b565b915050611fb7565b509392505050565b336001600160a01b03831603612070576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6018546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa15801561212b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214f91906146f2565b905060008167ffffffffffffffff81111561216c5761216c614305565b604051908082528060200260200182016040528015612195578160200160208202803683370190505b509050600060015b601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221491906146f2565b81116113fd57601854604051632884792b60e11b8152600481018390526000916001600160a01b031690635108f25690602401602060405180830381865afa158015612264573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612288919061470b565b6018546040517fb7fc3713000000000000000000000000000000000000000000000000000000008152600481018590529192506000916001600160a01b039091169063b7fc371390602401602060405180830381865afa1580156122f0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231491906146f2565b9050876001600160a01b0316826001600160a01b031614801561233657508015155b15612367578285858151811061234e5761234e6146a4565b6020908102919091010152836123638161468b565b9450505b505080806123749061468b565b91505061219d565b606060008267ffffffffffffffff81111561239957612399614305565b6040519080825280602002602001820160405280156123c2578160200160208202803683370190505b50905060005b83811015612026576018546001600160a01b031663b7fc37138686848181106123f3576123f36146a4565b905060200201356040518263ffffffff1660e01b815260040161241891815260200190565b602060405180830381865afa158015612435573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245991906146f2565b6000141582828151811061246f5761246f6146a4565b91151560209283029190910190910152806124898161468b565b9150506123c8565b3360009081526019602052604090205460ff16806124b957506008546001600160a01b031633145b6124fd5760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6040516bffffffffffffffffffffffff19606083901b16602082015260009060340160405160208183030381529060405280519060200120905061257884848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f549150849050613b38565b6125c45760405162461bcd60e51b815260206004820152601460248201527f55736572206e6f742077686974656c69737465640000000000000000000000006044820152606401610f1c565b6001600160a01b03821660009081526005602052604090205468010000000000000000900467ffffffffffffffff16156126405760405162461bcd60e51b815260206004820152601560248201527f596f67696520616c726561647920636c61696d656400000000000000000000006044820152606401610f1c565b600e5460015460005403600019011061269b5760405162461bcd60e51b815260206004820152601360248201527f4e6f206d6f726520796f67696573206c656674000000000000000000000000006044820152606401610f1c565b600d5460ff166126ed5760405162461bcd60e51b815260206004820152600f60248201527f467265656d696e7420636c6f73656400000000000000000000000000000000006044820152606401610f1c565b61270a8260016040518060200160405280600081525060006136f3565b50505050565b61271b848484613322565b6001600160a01b0383163b1515801561273d575061273b84848484613b4e565b155b1561270a576040516368d2bf6b60e11b815260040160405180910390fd5b6008546001600160a01b031633146127a35760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff16156127e85760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601655565b6008546001600160a01b031633146128355760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff161561287a5760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b6010805460ff1916911515919091179055565b6008546001600160a01b031633146128d55760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600c546001546000540360001901106129305760405162461bcd60e51b815260206004820152601460248201527f546f74616c20796f6769657320726561636865640000000000000000000000006044820152606401610f1c565b600d805460ff19908116909155601080549091166001179055600061295e6001546000546000199190030190565b600c5461296b919061465c565b905060005460138190555061299230826040518060200160405280600081525060006136f3565b50565b6018546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa1580156129e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0891906146f2565b905060008167ffffffffffffffff811115612a2557612a25614305565b604051908082528060200260200182016040528015612a4e578160200160208202803683370190505b509050600060015b601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612acd91906146f2565b81116113fd576018546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015612b36573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5a919061470b565b9050866001600160a01b0316816001600160a01b031603612ba15781848481518110612b8857612b886146a4565b602090810291909101015282612b9d8161468b565b9350505b5080612bac8161468b565b915050612a56565b6060600a612bc183613c39565b604051602001612bd2929190614728565b6040516020818303038152906040529050919050565b600a8054612bf59061460c565b80601f0160208091040260200160405190810160405280929190818152602001828054612c219061460c565b8015612c6e5780601f10612c4357610100808354040283529160200191612c6e565b820191906000526020600020905b815481529060010190602001808311612c5157829003601f168201915b505050505081565b6008546001600160a01b03163314612cbe5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615612d035760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601455565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff16610de3565b6008546001600160a01b03163314612d845760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b61299281613d6e565b3360009081526019602052604090205460ff1680612db557506008546001600160a01b031633145b612df95760405162461bcd60e51b815260206004820152601560248201527414d95b99195c881b9bdd08185d5d1a1bdc9a5e9959605a1b6044820152606401610f1c565b6110f38282613e7e565b6008546001600160a01b03163314612e4b5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b3060009081526007602090815260408083206001600160a01b0395909516835293905291909120805460ff1916911515919091179055565b6008546001600160a01b03163314612ecb5760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b600b5460ff1615612f105760405162461bcd60e51b815260206004820152600f60248201526e21a7a72a2920a1aa10232927ad22a760891b6044820152606401610f1c565b601355565b6009546000906001600160a01b03168015612fe9576040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa158015612f8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fb2919061470b565b6001600160a01b031603612fca576001915050610de3565b6009546001600160a01b03808516911603612fe9576001915050610de3565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146130635760405162461bcd60e51b815260206004820181905260248201526000805160206148928339815191526044820152606401610f1c565b6001600160a01b0381166130df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f1c565b612992816138f5565b6000816001111580156130fc575060005482105b8015610de3575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006131888261356b565b80519091506001600160a01b031630146131b45760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0383166131db57604051633a954ecd60e21b815260040160405180910390fd5b306000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff928316600019018316179092556001600160a01b03881680865283862080549384169383166001018316939093179092558685526004909352922080546001600160a01b031916909217808355600160a01b900416156132a75760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207472616e73666572207374616b6520796f67696500000000006044820152606401610f1c565b60018301600081815260046020526040902080546001600160a01b03166132e25760005482146132e25780546001600160a01b031916301781555b50506040518391506001600160a01b0385169030907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4505050565b600061332d8261356b565b9050836001600160a01b031681600001516001600160a01b0316146133645760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061338257506133828533612f15565b8061339d57503361339284610e7b565b6001600160a01b0316145b9050806133d6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166133fd57604051633a954ecd60e21b815260040160405180910390fd5b61340960008487613121565b6001600160a01b038086166000908152600560209081526040808320805460001967ffffffffffffffff80831691909101811667ffffffffffffffff199283161790925594891680855282852080548084166001018416971696909617909555878452600490925290912080546001600160a01b031916909217808355600160a01b900416156134db5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74207472616e73666572207374616b6520796f67696500000000006044820152606401610f1c565b60018401600081815260046020526040902080546001600160a01b031661351f57600054821461351f5780546001600160a01b0319166001600160a01b0389161781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040805160608101825260008082526020820181905291810191909152818060011115801561359b575060005481105b156136c157600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906136bf57602081015167ffffffffffffffff161561363e576040805160608101825230815260208381015167ffffffffffffffff1690820152918101511515908201529392505050565b80516001600160a01b031615613655579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156136ba579392505050565b613655565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546001600160a01b038516613736576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003613770576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546801000000000000000067ffffffffffffffff8083168c01811667ffffffffffffffff198416811783900482168d019091169091027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909216171790558483526004909152902080546001600160a01b03191690911790558080850183801561381f57506001600160a01b0387163b15155b156138a7575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138706000888480600101955088613b4e565b61388d576040516368d2bf6b60e11b815260040160405180910390fd5b8082036138255782600054146138a257600080fd5b6138ec565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082036138a8575b50600055613564565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613950826130e8565b61399c5760405162461bcd60e51b815260206004820152601460248201527f596f67696520646f6573206e6f742065786973740000000000000000000000006044820152606401610f1c565b6139a58261356b565b6020015167ffffffffffffffff16600003613a025760405162461bcd60e51b815260206004820152601060248201527f596f676965206e6f74207374616b6564000000000000000000000000000000006044820152606401610f1c565b30613a0c8361356b565b516001600160a01b031614613a635760405162461bcd60e51b815260206004820152601c60248201527f596f676965206e6f74207374616b656420696e20636f6e7472616374000000006044820152606401610f1c565b6000828152600460205260409020546001600160a01b03828116911614613acc5760405162461bcd60e51b815260206004820152601960248201527f53656e64657220646f6573206e6f74206f776e20796f676965000000000000006044820152606401610f1c565b60008281526004602052604080822080547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff1690555183916001600160a01b0384169130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a45050565b600082613b45858461402f565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613b839033908990889088906004016147fa565b6020604051808303816000875af1925050508015613bbe575060408051601f3d908101601f19168201909252613bbb91810190614836565b60015b613c1c573d808015613bec576040519150601f19603f3d011682016040523d82523d6000602084013e613bf1565b606091505b508051600003613c14576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606081600003613c7c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613ca65780613c908161468b565b9150613c9f9050600a83614869565b9150613c80565b60008167ffffffffffffffff811115613cc157613cc1614305565b6040519080825280601f01601f191660200182016040528015613ceb576020820181803683370190505b5090505b841561301357613d0060018361465c565b9150613d0d600a8661487d565b613d18906030614673565b60f81b818381518110613d2d57613d2d6146a4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d67600a86614869565b9450613cef565b6000613d798261356b565b9050806020015167ffffffffffffffff16600014613dd95760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f7420736574206f776e657273686970206f66207374616b656400006044820152606401610f1c565b6040805160608101825282516001600160a01b03908116825260208085015167ffffffffffffffff908116828501908152958501511515848601908152600097885260049092529390952091518254945195511515600160e01b027fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff96909416600160a01b026001600160e01b03199095169116179290921792909216919091179055565b613e87826130e8565b613ed35760405162461bcd60e51b815260206004820152601460248201527f596f67696520646f6573206e6f742065786973740000000000000000000000006044820152606401610f1c565b613edc8261356b565b6020015167ffffffffffffffff1615613f375760405162461bcd60e51b815260206004820152601460248201527f596f67696520616c7265616479207374616b65640000000000000000000000006044820152606401610f1c565b806001600160a01b0316613f4a8361356b565b516001600160a01b031614613fa15760405162461bcd60e51b815260206004820152601960248201527f53656e64657220646f6573206e6f74206f776e20796f676965000000000000006044820152606401610f1c565b613fad60008383613121565b600082815260046020526040902080547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff16600160a01b4267ffffffffffffffff1602179055604051829030906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a45050565b600081815b8451811015612026576000858281518110614051576140516146a4565b602002602001015190508083116140775760008381526020829052604090209250614088565b600081815260208490526040902092505b50806140938161468b565b915050614034565b8280546140a79061460c565b90600052602060002090601f0160209004810192826140c9576000855561410f565b82601f106140e257805160ff191683800117855561410f565b8280016001018555821561410f579182015b8281111561410f5782518255916020019190600101906140f4565b5061411b92915061411f565b5090565b5b8082111561411b5760008155600101614120565b6001600160e01b03198116811461299257600080fd5b60006020828403121561415c57600080fd5b813561416781614134565b9392505050565b60005b83811015614189578181015183820152602001614171565b8381111561270a5750506000910152565b600081518084526141b281602086016020860161416e565b601f01601f19169290920160200192915050565b602081526000614167602083018461419a565b6000602082840312156141eb57600080fd5b5035919050565b8035801515811461420257600080fd5b919050565b60006020828403121561421957600080fd5b614167826141f2565b6001600160a01b038116811461299257600080fd5b6000806040838503121561424a57600080fd5b823561425581614222565b946020939093013593505050565b60008060006060848603121561427857600080fd5b833561428381614222565b9250602084013561429381614222565b929592945050506040919091013590565b6000602082840312156142b657600080fd5b813561416781614222565b6020808252825182820181905260009190848201906040850190845b818110156142f9578351835292840192918401916001016142dd565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561433657614336614305565b604051601f8501601f19908116603f0116810190828211818310171561435e5761435e614305565b8160405280935085815286868601111561437757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156143a357600080fd5b813567ffffffffffffffff8111156143ba57600080fd5b8201601f810184136143cb57600080fd5b6130138482356020840161431b565b600080604083850312156143ed57600080fd5b82356143f881614222565b9150614406602084016141f2565b90509250929050565b6000806040838503121561442257600080fd5b82359150602083013561443481614222565b809150509250929050565b60008083601f84011261445157600080fd5b50813567ffffffffffffffff81111561446957600080fd5b6020830191508360208260051b850101111561448457600080fd5b9250929050565b6000806020838503121561449e57600080fd5b823567ffffffffffffffff8111156144b557600080fd5b6144c18582860161443f565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156142f95783511515835292840192918401916001016144e9565b60008060006040848603121561451c57600080fd5b833567ffffffffffffffff81111561453357600080fd5b61453f8682870161443f565b909450925050602084013561455381614222565b809150509250925092565b6000806000806080858703121561457457600080fd5b843561457f81614222565b9350602085013561458f81614222565b925060408501359150606085013567ffffffffffffffff8111156145b257600080fd5b8501601f810187136145c357600080fd5b6145d28782356020840161431b565b91505092959194509250565b600080604083850312156145f157600080fd5b82356145fc81614222565b9150602083013561443481614222565b600181811c9082168061462057607f821691505b60208210810361464057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561466e5761466e614646565b500390565b6000821982111561468657614686614646565b500190565b60006001820161469d5761469d614646565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600081516146cc81856020860161416e565b9290920192915050565b600082516146e881846020870161416e565b9190910192915050565b60006020828403121561470457600080fd5b5051919050565b60006020828403121561471d57600080fd5b815161416781614222565b600080845481600182811c91508083168061474457607f831692505b6020808410820361476357634e487b7160e01b86526022600452602486fd5b8180156147775760018114614788576147b5565b60ff198616895284890196506147b5565b60008b81526020902060005b868110156147ad5781548b820152908501908301614794565b505084890196505b5050505050506147f16147c882866146ba565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261482c608083018461419a565b9695505050505050565b60006020828403121561484857600080fd5b815161416781614134565b634e487b7160e01b600052601260045260246000fd5b60008261487857614878614853565b500490565b60008261488c5761488c614853565b50069056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220131a5496be791e1e7b041accc5bfe5dd1cb81a39344944679df22f373885cdb564736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000007a5963206f1c5529430716de9feeb6b6da5c0518
-----Decoded View---------------
Arg [0] : _openseaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _gYogies (address): 0x7a5963206f1C5529430716De9fEEb6b6dA5C0518
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000007a5963206f1c5529430716de9feeb6b6da5c0518
Loading...
Loading
Loading...
Loading
[ 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.