More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 237 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Cancel Listing | 16698161 | 501 days ago | IN | 0 ETH | 0.00227346 | ||||
Create Listing | 16690698 | 503 days ago | IN | 0 ETH | 0.00629517 | ||||
Cancel Listing | 16086042 | 587 days ago | IN | 0 ETH | 0.00089561 | ||||
Create Listing | 16085959 | 587 days ago | IN | 0 ETH | 0.00351317 | ||||
Cancel Listing | 15955678 | 605 days ago | IN | 0 ETH | 0.00122557 | ||||
Cancel Listing | 15826660 | 623 days ago | IN | 0 ETH | 0.00316232 | ||||
Change Listing P... | 15763560 | 632 days ago | IN | 0 ETH | 0.00057475 | ||||
Create Listing | 15576310 | 658 days ago | IN | 0 ETH | 0.00465711 | ||||
Create Listing | 15527587 | 665 days ago | IN | 0 ETH | 0.00479136 | ||||
Create Listing | 15506369 | 669 days ago | IN | 0 ETH | 0.00394887 | ||||
Cancel Listing | 15417318 | 683 days ago | IN | 0 ETH | 0.00125705 | ||||
Cancel Listing | 15417317 | 683 days ago | IN | 0 ETH | 0.00066242 | ||||
Cancel Listing | 15417316 | 683 days ago | IN | 0 ETH | 0.00150432 | ||||
Cancel Listing | 15417314 | 683 days ago | IN | 0 ETH | 0.00137167 | ||||
Cancel Listing | 15417312 | 683 days ago | IN | 0 ETH | 0.001539 | ||||
Cancel Listing | 15417311 | 683 days ago | IN | 0 ETH | 0.00145879 | ||||
Cancel Listing | 15417310 | 683 days ago | IN | 0 ETH | 0.00143062 | ||||
Cancel Listing | 15417307 | 683 days ago | IN | 0 ETH | 0.00187442 | ||||
Cancel Listing | 15417306 | 683 days ago | IN | 0 ETH | 0.00171157 | ||||
Cancel Listing | 15417305 | 683 days ago | IN | 0 ETH | 0.00192515 | ||||
Cancel Listing | 15417300 | 683 days ago | IN | 0 ETH | 0.00188728 | ||||
Cancel Listing | 15417298 | 683 days ago | IN | 0 ETH | 0.00175388 | ||||
Cancel Listing | 15417296 | 683 days ago | IN | 0 ETH | 0.00148113 | ||||
Cancel Listing | 15417296 | 683 days ago | IN | 0 ETH | 0.00148113 | ||||
Cancel Listing | 15417294 | 683 days ago | IN | 0 ETH | 0.00135465 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
15392673 | 687 days ago | 0.05 ETH | ||||
15392673 | 687 days ago | 0.45 ETH | ||||
15322985 | 698 days ago | 0.05 ETH | ||||
15322985 | 698 days ago | 0.45 ETH | ||||
15322890 | 698 days ago | 0.05 ETH | ||||
15322890 | 698 days ago | 0.45 ETH | ||||
15319327 | 699 days ago | 0.05 ETH | ||||
15319327 | 699 days ago | 0.45 ETH | ||||
15317904 | 699 days ago | 0.05 ETH | ||||
15317904 | 699 days ago | 0.45 ETH | ||||
15314678 | 699 days ago | 0.05 ETH | ||||
15314678 | 699 days ago | 0.45 ETH | ||||
15311550 | 700 days ago | 0.05 ETH | ||||
15311550 | 700 days ago | 0.45 ETH | ||||
15311162 | 700 days ago | 0.05 ETH | ||||
15311162 | 700 days ago | 0.45 ETH | ||||
15310347 | 700 days ago | 0.05 ETH | ||||
15310347 | 700 days ago | 0.45 ETH | ||||
15308990 | 700 days ago | 0.05 ETH | ||||
15308990 | 700 days ago | 0.45 ETH | ||||
15307968 | 700 days ago | 0.05 ETH | ||||
15307968 | 700 days ago | 0.45 ETH | ||||
15307960 | 700 days ago | 0.05 ETH | ||||
15307960 | 700 days ago | 0.45 ETH | ||||
15307920 | 700 days ago | 0.05 ETH |
Loading...
Loading
Contract Name:
MogulMarketplaceERC721
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract MogulMarketplaceERC721 is ERC721Holder, AccessControl, ReentrancyGuard { using EnumerableSet for EnumerableSet.UintSet; using EnumerableSet for EnumerableSet.AddressSet; using SafeERC20 for IERC20; bytes32 public constant ROLE_ADMIN = keccak256("ROLE_ADMIN"); address payable public treasuryWallet; IERC20 stars; uint256 public nextListingId; uint256 public nextAuctionId; uint256 public starsFeeBasisPoint; //4 decimals, applies to auctions and listings. Fees collected are held in contract uint256 public ethFeeBasisPoint; //4 decimals, applies to auctions and listings. Fees collected are held in contract uint256 public adminEth; //Total Ether available for withdrawal uint256 public adminStars; //Total Stars available for withdrawal uint256 private highestCommissionBasisPoint; //Used to determine what the maximum fee uint256 public starsAvailableForCashBack; //STARS available for cashback uint256 public starsCashBackBasisPoint = 500; bool public starsAllowed = true; bool public ethAllowed = true; struct Listing { address payable seller; address tokenAddress; uint256 tokenId; uint256 starsPrice; uint256 ethPrice; bool isStarsListing; bool isEthListing; } struct Auction { address payable seller; address tokenAddress; uint256 tokenId; uint256 startingPrice; uint256 startTime; uint256 endTime; uint256 reservePrice; bool isStarsAuction; Bid highestBid; } struct Bid { address payable bidder; uint256 amount; } struct TokenCommissionInfo { address payable artistAddress; uint256 commissionBasisPoint; //4 decimals } EnumerableSet.AddressSet private mogulNFTs; EnumerableSet.UintSet private listingIds; EnumerableSet.UintSet private auctionIds; mapping(uint256 => Listing) public listings; mapping(uint256 => Auction) public auctions; mapping(address => TokenCommissionInfo) public commissions; //NFT address to TokenCommissionInfo event ListingCreated( uint256 listingId, address seller, address tokenAddress, uint256 tokenId, uint256 tokenAmount, uint256 starsPrice, uint256 ethPrice, bool isStarsListing, bool isEthListing ); event ListingCancelled(uint256 listingId); event ListingPriceChanged( uint256 listingId, uint256 newPrice, bool isStarsPrice ); event AuctionCreated( uint256 auctionId, address seller, address tokenAddress, uint256 tokenId, uint256 tokenAmount, uint256 startingPrice, uint256 startTime, uint256 endTime, uint256 reservePrice, bool isStarsAuction ); event SaleMade( address buyer, uint256 listingId, uint256 amount, bool isStarsPurchase ); event BidPlaced( address bidder, uint256 auctionId, uint256 amount, bool isStarsBid ); event AuctionClaimed(address winner, uint256 auctionId); event AuctionCancelled(uint256 auctionId); event AuctionReservePriceChanged( uint256 auctionId, uint256 newReservePrice ); event TokenCommissionAdded( address tokenAddress, address artistAddress, uint256 commissionBasisPoint ); event StarsCashBackBasisPointSet(uint256 newStarsCashBackBasisPoint); event StarsFeeBasisPointSet(uint256 newStarsFeeBasisPoint); event EthFeeBasisPointSet(uint256 newEthFeeBasisPoint); modifier onlyAdmin { require(hasRole(ROLE_ADMIN, msg.sender), "Sender is not admin"); _; } modifier sellerOrAdmin(address seller) { require( msg.sender == seller || hasRole(ROLE_ADMIN, msg.sender), "Sender is not seller or admin" ); _; } /** * @dev Stores the Stars contract, and allows users with the admin role to * grant/revoke the admin role from other users. Stores treasury wallet. * * Params: * starsAddress: the address of the Stars contract * _admin: address of the first admin * _treasuryWallet: address of treasury wallet * _mogulNFTAddress: address of a Mogul NFT */ constructor( address starsAddress, address _admin, address payable _treasuryWallet, address _mogulNFTAddress ) { require( _treasuryWallet != address(0), "Treasury wallet cannot be 0 address" ); _setupRole(ROLE_ADMIN, _admin); _setRoleAdmin(ROLE_ADMIN, ROLE_ADMIN); treasuryWallet = _treasuryWallet; stars = IERC20(starsAddress); mogulNFTs.add(_mogulNFTAddress); } //Get number of listings function getNumListings() external view returns (uint256) { return listingIds.length(); } /** * @dev Get listing ID at index * * Params: * indices: indices of IDs */ function getListingIds(uint256[] memory indices) external view returns (uint256[] memory) { uint256[] memory output = new uint256[](indices.length); for (uint256 i = 0; i < indices.length; i++) { output[i] = listingIds.at(indices[i]); } return output; } /** * @dev Get listing correlated to index * * Params: * indices: indices of IDs */ function getListingsAtIndices(uint256[] memory indices) external view returns (Listing[] memory) { Listing[] memory output = new Listing[](indices.length); for (uint256 i = 0; i < indices.length; i++) { output[i] = listings[listingIds.at(indices[i])]; } return output; } //Get number of auctions function getNumAuctions() external view returns (uint256) { return auctionIds.length(); } /** * @dev Get auction ID at index * * Params: * indices: indices of IDs */ function getAuctionIds(uint256[] memory indices) external view returns (uint256[] memory) { uint256[] memory output = new uint256[](indices.length); for (uint256 i = 0; i < indices.length; i++) { output[i] = auctionIds.at(indices[i]); } return output; } /** * @dev Get auction correlated to index * * Params: * indices: indices of IDs */ function getAuctionsAtIndices(uint256[] memory indices) external view returns (Auction[] memory) { Auction[] memory output = new Auction[](indices.length); for (uint256 i = 0; i < indices.length; i++) { output[i] = auctions[auctionIds.at(indices[i])]; } return output; } /** * @dev Create a new listing * * Params: * tokenAddress: address of token to list * tokenId: id of token * starsPrice: listing STARS price * ethPrice: listing ETH price * isStarsListing: whether or not the listing can be sold for STARS * isEthListing: whether or not the listing can be sold for ETH * * Requirements: * - Listings of given currencies are allowed * - Price of given currencies are not 0 * - mogulNFTs contains tokenAddress */ function createListing( address tokenAddress, uint256 tokenId, uint256 tokenAmount, uint256 starsPrice, uint256 ethPrice, bool isStarsListing, bool isEthListing ) public nonReentrant() { require( mogulNFTs.contains(tokenAddress), "Only Mogul NFTs can be listed" ); if (isStarsListing) { require(starsPrice != 0, "Price cannot be 0"); } if (isEthListing) { require(ethPrice != 0, "Price cannot be 0"); } if (isStarsListing) { require(starsAllowed, "STARS listings are not allowed"); } if (isEthListing) { require(ethAllowed, "ETH listings are not allowed"); } IERC721 token = IERC721(tokenAddress); token.safeTransferFrom(msg.sender, address(this), tokenId); uint256 listingId = generateListingId(); listings[listingId] = Listing( payable(msg.sender), tokenAddress, tokenId, starsPrice, ethPrice, isStarsListing, isEthListing ); listingIds.add(listingId); emit ListingCreated( listingId, msg.sender, tokenAddress, tokenId, 1, starsPrice, ethPrice, isStarsListing, isEthListing ); } /** * @dev Batch create new listings * * Params: * tokenAddresses: addresses of tokens to list * tokenIds: id of each token * starsPrices: STARS price of each listing * ethPrices: ETH price of each listing * areStarsListings: whether or not each listing can be sold for Stars * areEthListings: whether or not each listing can be sold for ETH * * Requirements: * - All inputs are the same length */ function batchCreateListings( address[] calldata tokenAddresses, uint256[] calldata tokenIds, uint256[] calldata starsPrices, uint256[] calldata ethPrices, bool[] memory areStarsListings, bool[] memory areEthListings ) external onlyAdmin { require( tokenAddresses.length == tokenIds.length && tokenIds.length == starsPrices.length && starsPrices.length == ethPrices.length && ethPrices.length == areStarsListings.length && areStarsListings.length == areEthListings.length, "Incorrect input lengths" ); for (uint256 i = 0; i < tokenAddresses.length; i++) { createListing( tokenAddresses[i], tokenIds[i], 1, starsPrices[i], ethPrices[i], areStarsListings[i], areEthListings[i] ); } } /** * @dev Cancel a listing * * Params: * listingId: listing ID */ function cancelListing(uint256 listingId) public sellerOrAdmin(listings[listingId].seller) nonReentrant() { require(listingIds.contains(listingId), "Listing does not exist"); Listing storage listing = listings[listingId]; listingIds.remove(listingId); IERC721 token = IERC721(listing.tokenAddress); token.safeTransferFrom(address(this), listing.seller, listing.tokenId); emit ListingCancelled(listingId); } function batchCancelListing(uint256[] calldata _listingIds) external onlyAdmin { for (uint256 i = 0; i < _listingIds.length; i++) { cancelListing(_listingIds[i]); } } /** * @dev Change price of a listing * * Params: * listingId: listing ID * newPrice: price to change to * isStarsPrice: whether or not the price being changed is in STARS * * Requirements: * - newPrice is not 0 */ function changeListingPrice( uint256 listingId, uint256 newPrice, bool isStarsPrice ) external sellerOrAdmin(listings[listingId].seller) { require(listingIds.contains(listingId), "Listing does not exist."); require(newPrice != 0, "Price cannot be 0"); if (isStarsPrice) { listings[listingId].starsPrice = newPrice; } else { listings[listingId].ethPrice = newPrice; } emit ListingPriceChanged(listingId, newPrice, isStarsPrice); } /** * @dev Buy a token * * Params: * listingId: listing ID * amount: amount tokens to buy * expectedPrice: expected price of purchase * isStarsPurchase: whether or not the user is buying with STARS */ function buyTokens( uint256 listingId, uint256 amount, uint256 expectedPrice, bool isStarsPurchase ) external payable nonReentrant() { require(listingIds.contains(listingId), "Listing does not exist."); Listing storage listing = listings[listingId]; if (isStarsPurchase) { require(listing.isStarsListing, "Listing does not accept STARS"); uint256 fullAmount = listing.starsPrice; require(fullAmount == expectedPrice, "Incorrect expected price"); uint256 fee = (fullAmount * starsFeeBasisPoint) / 10000; uint256 commission = (fullAmount * commissions[listing.tokenAddress].commissionBasisPoint) / 10000; if (fee != 0) { stars.safeTransferFrom(msg.sender, address(this), fee); } if (commissions[listing.tokenAddress].artistAddress != address(0)) { stars.safeTransferFrom( msg.sender, commissions[listing.tokenAddress].artistAddress, commission ); } stars.safeTransferFrom( msg.sender, listing.seller, fullAmount - fee - commission ); if (starsCashBackBasisPoint != 0) { uint256 totalStarsCashBack = (fullAmount * starsCashBackBasisPoint) / 10000; if (starsAvailableForCashBack >= totalStarsCashBack) { starsAvailableForCashBack -= totalStarsCashBack; stars.safeTransfer(msg.sender, totalStarsCashBack); } } adminStars += fee; } else { require(listing.isEthListing, "Listing does not accept ETH"); uint256 fullAmount = listing.ethPrice; require(fullAmount == expectedPrice, "Incorrect expected price"); uint256 fee = (fullAmount * ethFeeBasisPoint) / 10000; uint256 commission = (fullAmount * commissions[listing.tokenAddress].commissionBasisPoint) / 10000; require(msg.value == fullAmount, "Incorrect transaction value"); (bool success, ) = listing.seller.call{value: fullAmount - fee - commission}(""); require(success, "Payment failure"); if (commissions[listing.tokenAddress].artistAddress != address(0)) { (success, ) = commissions[listing.tokenAddress] .artistAddress .call{value: commission}(""); require(success, "Payment failure"); } adminEth += fee; } listingIds.remove(listingId); IERC721 token = IERC721(listing.tokenAddress); token.safeTransferFrom(address(this), msg.sender, listing.tokenId); emit SaleMade(msg.sender, listingId, 1, isStarsPurchase); } /** * @dev Create an auction * * Params: * tokenAddress: address of token * tokenId: token ID * startingPrice: starting price for bids * startTime: auction start time * endTime: auction end time * reservePrice: reserve price * isStarsAuction: whether or not Auction is in Stars */ function createAuction( address tokenAddress, uint256 tokenId, uint256 tokenAmount, uint256 startingPrice, uint256 startTime, uint256 endTime, uint256 reservePrice, bool isStarsAuction ) public nonReentrant() { require(startTime < endTime, "End time must be after start time"); require( startTime > block.timestamp, "Auction must start in the future" ); require( mogulNFTs.contains(tokenAddress), "Only Mogul NFTs can be listed" ); if (isStarsAuction) { require(starsAllowed, "STARS auctions are not allowed"); } else { require(ethAllowed, "ETH auctions are not allowed."); } IERC721 token = IERC721(tokenAddress); token.safeTransferFrom(msg.sender, address(this), tokenId); uint256 auctionId = generateAuctionId(); auctions[auctionId] = Auction( payable(msg.sender), tokenAddress, tokenId, startingPrice, startTime, endTime, reservePrice, isStarsAuction, Bid(payable(msg.sender), 0) ); auctionIds.add(auctionId); emit AuctionCreated( auctionId, payable(msg.sender), tokenAddress, tokenId, 1, startingPrice, startTime, endTime, reservePrice, isStarsAuction ); } /** * @dev Batch create new auctions * * Params: * tokenAddresses: addresses of tokens to auction * tokenIds: id of each token * startingPrices: starting price of each auction * startTimes: start time of each auction * endTimes: end time of each auction * reservePrices: reserve price of each auction * areStarsAuctions: whether or not each auction is in Stars * * Requirements: * - All inputs are the same length */ function batchCreateAuctions( address[] calldata tokenAddresses, uint256[] calldata tokenIds, uint256[] calldata startingPrices, uint256[] memory startTimes, uint256[] memory endTimes, uint256[] memory reservePrices, bool[] memory areStarsAuctions ) external onlyAdmin { require( tokenAddresses.length == tokenIds.length && tokenIds.length == startingPrices.length && startingPrices.length == startTimes.length && startTimes.length == endTimes.length && endTimes.length == reservePrices.length && reservePrices.length == areStarsAuctions.length, "Incorrect input lengths" ); for (uint256 i = 0; i < tokenAddresses.length; i++) { createAuction( tokenAddresses[i], tokenIds[i], 1, startingPrices[i], startTimes[i], endTimes[i], reservePrices[i], areStarsAuctions[i] ); } } /** * @dev Place a bid and refund the previous highest bidder * * Params: * auctionId: auction ID * isStarsBid: true if bid is in Stars, false if it's in eth * amount: amount of bid * * Requirements: * Bid is higher than the previous highest bid */ function placeBid(uint256 auctionId, uint256 amount) external payable nonReentrant() { require(auctionIds.contains(auctionId), "Auction does not exist."); Auction storage auction = auctions[auctionId]; require( block.timestamp >= auction.startTime, "Auction has not started yet" ); require(block.timestamp <= auction.endTime, "Auction has ended"); require( amount > auction.highestBid.amount, "Bid is lower than highest bid" ); require( amount > auction.startingPrice, "Bid must be higher than starting price" ); if (auction.isStarsAuction) { stars.safeTransferFrom(msg.sender, address(this), amount); stars.safeTransfer( auction.highestBid.bidder, auction.highestBid.amount ); auction.highestBid = Bid(payable(msg.sender), amount); } else { require(amount == msg.value, "Amount does not match message value"); (bool success, ) = auction.highestBid.bidder.call{ value: auction.highestBid.amount }(""); require(success, "Payment failure"); auction.highestBid = Bid(payable(msg.sender), amount); } emit BidPlaced(msg.sender, auctionId, amount, auction.isStarsAuction); } /** * @dev End auctions and distributes tokens to the winner, bid to the * seller, and fees to the contract. If the reserve price was not met, only * the seller or admin can call this function. * * Params: * auctionId: auction ID */ function claimAuction(uint256 auctionId) public nonReentrant() { require(auctionIds.contains(auctionId), "Auction does not exist"); Auction memory auction = auctions[auctionId]; require(block.timestamp >= auction.endTime, "Auction is ongoing"); if (msg.sender != auction.seller && !hasRole(ROLE_ADMIN, msg.sender)) { require( auction.highestBid.amount >= auction.reservePrice, "Highest bid did not meet the reserve price." ); } address winner; uint256 fee; if (auction.isStarsAuction) { fee = (auction.highestBid.amount * starsFeeBasisPoint) / 10000; } else { fee = (auction.highestBid.amount * ethFeeBasisPoint) / 10000; } uint256 commission = (auction.highestBid.amount * commissions[auction.tokenAddress].commissionBasisPoint) / 10000; winner = auction.highestBid.bidder; if (auction.isStarsAuction) { stars.safeTransfer( auction.seller, auction.highestBid.amount - fee - commission ); if (commissions[auction.tokenAddress].artistAddress != address(0)) { stars.safeTransfer( commissions[auction.tokenAddress].artistAddress, commission ); } if (starsCashBackBasisPoint != 0) { uint256 totalStarsCashBack = (auction.highestBid.amount * starsCashBackBasisPoint) / 10000; if (starsAvailableForCashBack >= totalStarsCashBack) { starsAvailableForCashBack -= totalStarsCashBack; stars.safeTransfer( auction.highestBid.bidder, totalStarsCashBack ); } } adminStars += fee; } else { (bool success, ) = auction.seller.call{ value: auction.highestBid.amount - fee - commission }(""); require(success, "Payment failure"); if (commissions[auction.tokenAddress].artistAddress != address(0)) { (success, ) = commissions[auction.tokenAddress] .artistAddress .call{value: commission}(""); require(success, "Payment failure"); } adminEth += fee; } IERC721(auction.tokenAddress).safeTransferFrom( address(this), winner, auction.tokenId ); auctionIds.remove(auctionId); emit AuctionClaimed(winner, auctionId); } function batchClaimAuction(uint256[] calldata _auctionIds) external onlyAdmin { for (uint256 i = 0; i < _auctionIds.length; i++) { claimAuction(_auctionIds[i]); } } /** * @dev Cancel auction and refund bidders * * Params: * auctionId: auction ID */ function cancelAuction(uint256 auctionId) public nonReentrant() sellerOrAdmin(auctions[auctionId].seller) { require(auctionIds.contains(auctionId), "Auction does not exist"); Auction memory auction = auctions[auctionId]; require( block.timestamp <= auction.endTime || auction.highestBid.amount < auction.reservePrice, "Cannot cancel auction after it has ended unless the highest bid did not meet the reserve price." ); IERC721(auction.tokenAddress).safeTransferFrom( address(this), auction.seller, auction.tokenId ); if (auction.isStarsAuction) { stars.safeTransfer( auction.highestBid.bidder, auction.highestBid.amount ); } else { (bool success, ) = auction.highestBid.bidder.call{ value: auction.highestBid.amount }(""); require(success, "Payment failure"); } auctionIds.remove(auctionId); emit AuctionCancelled(auctionId); } function batchCancelAuction(uint256[] calldata _auctionIds) external onlyAdmin { for (uint256 i = 0; i < _auctionIds.length; i++) { cancelAuction(_auctionIds[i]); } } function changeReservePrice(uint256 auctionId, uint256 newReservePrice) external nonReentrant() sellerOrAdmin(auctions[auctionId].seller) { require(auctionIds.contains(auctionId), "Auction does not exist"); auctions[auctionId].reservePrice = newReservePrice; emit AuctionReservePriceChanged(auctionId, newReservePrice); } //Generate ID for next listing function generateListingId() internal returns (uint256) { return nextListingId++; } //Generate ID for next auction function generateAuctionId() internal returns (uint256) { return nextAuctionId++; } //Withdraw ETH to treasury wallet function withdrawETH() external onlyAdmin { (bool success, ) = treasuryWallet.call{value: adminEth}(""); require(success, "Payment failure"); adminEth = 0; } //Withdraw Stars to treasury wallet function withdrawStars() external onlyAdmin { stars.safeTransfer(treasuryWallet, adminStars); adminStars = 0; } //Add to list of valid Mogul NFTs function addMogulNFTAddress(address _mogulNFTAddress) external onlyAdmin { mogulNFTs.add(_mogulNFTAddress); } //Remove from list of valid Mogul NFTs function removeMogulNFTAddress(address _mogulNFTAddress) external onlyAdmin { mogulNFTs.remove(_mogulNFTAddress); } //Set STARS fee (applies to listings and auctions); function setStarsFee(uint256 _feeBasisPoint) external onlyAdmin { require( _feeBasisPoint + highestCommissionBasisPoint < 10000, "Fee plus commission must be less than 100%" ); starsFeeBasisPoint = _feeBasisPoint; emit StarsFeeBasisPointSet(_feeBasisPoint); } //Set ETH fee (applies to listings and auctions); function setEthFee(uint256 _feeBasisPoint) external onlyAdmin { require( _feeBasisPoint + highestCommissionBasisPoint < 10000, "Fee plus commission must be less than 100%" ); ethFeeBasisPoint = _feeBasisPoint; emit EthFeeBasisPointSet(_feeBasisPoint); } function setStarsCashBack(uint256 _starsCashBackBasisPoint) external onlyAdmin { starsCashBackBasisPoint = _starsCashBackBasisPoint; } //Set commission info for one token function setCommission( address NFTAddress, address payable artistAddress, uint256 commissionBasisPoint ) external onlyAdmin { if (commissionBasisPoint > highestCommissionBasisPoint) { require( commissionBasisPoint + starsFeeBasisPoint < 10000 && commissionBasisPoint + ethFeeBasisPoint < 10000, "Fee plus commission must be less than 100%" ); highestCommissionBasisPoint = commissionBasisPoint; } commissions[NFTAddress] = TokenCommissionInfo( artistAddress, commissionBasisPoint ); emit TokenCommissionAdded( NFTAddress, artistAddress, commissionBasisPoint ); } //Set whether or not creating new STARS listings and Auctions are allowed function setStarsAllowed(bool _starsAllowed) external onlyAdmin { starsAllowed = _starsAllowed; } //Set whether or not creating new ETH listings and Auctions are allowed function setEthAllowed(bool _ethAllowed) external onlyAdmin { ethAllowed = _ethAllowed; } function depositStarsForCashBack(uint256 amount) public { stars.safeTransferFrom(msg.sender, address(this), amount); starsAvailableForCashBack += amount; } function withdrawStarsForCashBack(uint256 amount) external onlyAdmin nonReentrant() { require( amount <= starsAvailableForCashBack, "Withdraw amount exceeds available balance" ); starsAvailableForCashBack -= amount; stars.safeTransfer(treasuryWallet, amount); } }
// 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/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// 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 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (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 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"starsAddress","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address payable","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_mogulNFTAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"AuctionCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"AuctionClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startingPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reservePrice","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isStarsAuction","type":"bool"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newReservePrice","type":"uint256"}],"name":"AuctionReservePriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"auctionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isStarsBid","type":"bool"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newEthFeeBasisPoint","type":"uint256"}],"name":"EthFeeBasisPointSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"ListingCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"starsPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethPrice","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isStarsListing","type":"bool"},{"indexed":false,"internalType":"bool","name":"isEthListing","type":"bool"}],"name":"ListingCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isStarsPrice","type":"bool"}],"name":"ListingPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"listingId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isStarsPurchase","type":"bool"}],"name":"SaleMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newStarsCashBackBasisPoint","type":"uint256"}],"name":"StarsCashBackBasisPointSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newStarsFeeBasisPoint","type":"uint256"}],"name":"StarsFeeBasisPointSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"artistAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"commissionBasisPoint","type":"uint256"}],"name":"TokenCommissionAdded","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROLE_ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_mogulNFTAddress","type":"address"}],"name":"addMogulNFTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminStars","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctions","outputs":[{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"startingPrice","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"bool","name":"isStarsAuction","type":"bool"},{"components":[{"internalType":"address payable","name":"bidder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct MogulMarketplaceERC721.Bid","name":"highestBid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_auctionIds","type":"uint256[]"}],"name":"batchCancelAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_listingIds","type":"uint256[]"}],"name":"batchCancelListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_auctionIds","type":"uint256[]"}],"name":"batchClaimAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"startingPrices","type":"uint256[]"},{"internalType":"uint256[]","name":"startTimes","type":"uint256[]"},{"internalType":"uint256[]","name":"endTimes","type":"uint256[]"},{"internalType":"uint256[]","name":"reservePrices","type":"uint256[]"},{"internalType":"bool[]","name":"areStarsAuctions","type":"bool[]"}],"name":"batchCreateAuctions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"starsPrices","type":"uint256[]"},{"internalType":"uint256[]","name":"ethPrices","type":"uint256[]"},{"internalType":"bool[]","name":"areStarsListings","type":"bool[]"},{"internalType":"bool[]","name":"areEthListings","type":"bool[]"}],"name":"batchCreateListings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expectedPrice","type":"uint256"},{"internalType":"bool","name":"isStarsPurchase","type":"bool"}],"name":"buyTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"cancelAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"cancelListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"},{"internalType":"bool","name":"isStarsPrice","type":"bool"}],"name":"changeListingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"},{"internalType":"uint256","name":"newReservePrice","type":"uint256"}],"name":"changeReservePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"}],"name":"claimAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"commissions","outputs":[{"internalType":"address payable","name":"artistAddress","type":"address"},{"internalType":"uint256","name":"commissionBasisPoint","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"startingPrice","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"bool","name":"isStarsAuction","type":"bool"}],"name":"createAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"starsPrice","type":"uint256"},{"internalType":"uint256","name":"ethPrice","type":"uint256"},{"internalType":"bool","name":"isStarsListing","type":"bool"},{"internalType":"bool","name":"isEthListing","type":"bool"}],"name":"createListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositStarsForCashBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethFeeBasisPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"indices","type":"uint256[]"}],"name":"getAuctionIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"indices","type":"uint256[]"}],"name":"getAuctionsAtIndices","outputs":[{"components":[{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"startingPrice","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"bool","name":"isStarsAuction","type":"bool"},{"components":[{"internalType":"address payable","name":"bidder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct MogulMarketplaceERC721.Bid","name":"highestBid","type":"tuple"}],"internalType":"struct MogulMarketplaceERC721.Auction[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"indices","type":"uint256[]"}],"name":"getListingIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"indices","type":"uint256[]"}],"name":"getListingsAtIndices","outputs":[{"components":[{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"starsPrice","type":"uint256"},{"internalType":"uint256","name":"ethPrice","type":"uint256"},{"internalType":"bool","name":"isStarsListing","type":"bool"},{"internalType":"bool","name":"isEthListing","type":"bool"}],"internalType":"struct MogulMarketplaceERC721.Listing[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumAuctions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumListings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"listings","outputs":[{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"starsPrice","type":"uint256"},{"internalType":"uint256","name":"ethPrice","type":"uint256"},{"internalType":"bool","name":"isStarsListing","type":"bool"},{"internalType":"bool","name":"isEthListing","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextAuctionId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextListingId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"placeBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_mogulNFTAddress","type":"address"}],"name":"removeMogulNFTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NFTAddress","type":"address"},{"internalType":"address payable","name":"artistAddress","type":"address"},{"internalType":"uint256","name":"commissionBasisPoint","type":"uint256"}],"name":"setCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_ethAllowed","type":"bool"}],"name":"setEthAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feeBasisPoint","type":"uint256"}],"name":"setEthFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_starsAllowed","type":"bool"}],"name":"setStarsAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_starsCashBackBasisPoint","type":"uint256"}],"name":"setStarsCashBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feeBasisPoint","type":"uint256"}],"name":"setStarsFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"starsAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"starsAvailableForCashBack","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"starsCashBackBasisPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"starsFeeBasisPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawStars","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawStarsForCashBack","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526101f4600c55600d805461ffff19166101011790553480156200002657600080fd5b5060405162005479380380620054798339810160408190526200004991620002ad565b600180556001600160a01b038216620000b45760405162461bcd60e51b815260206004820152602360248201527f54726561737572792077616c6c65742063616e6e6f742062652030206164647260448201526265737360e81b606482015260840160405180910390fd5b620000cf600080516020620054598339815191528462000140565b620000ea600080516020620054598339815191528062000150565b600280546001600160a01b03199081166001600160a01b03858116919091179092556003805490911691861691909117905562000135600e826200019b602090811b62003b3217901c565b50505050506200032d565b6200014c8282620001bb565b5050565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000620001b2836001600160a01b0384166200025b565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200014c576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002173390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620002a457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001b5565b506000620001b5565b60008060008060808587031215620002c3578384fd5b8451620002d08162000314565b6020860151909450620002e38162000314565b6040860151909350620002f68162000314565b6060860151909250620003098162000314565b939692955090935050565b6001600160a01b03811681146200032a57600080fd5b50565b61511c806200033d6000396000f3fe6080604052600436106103505760003560e01c8063879a30f7116101c6578063d391014b116100f7578063e6b7503111610095578063f4d6bacc1161006f578063f4d6bacc14610b14578063f94545f014610b2a578063f9a6e5d314610b4a578063fc52848214610b6a57600080fd5b8063e6b7503114610abf578063e7dffa3f14610adf578063ee79eab614610af457600080fd5b8063d9ec787d116100d1578063d9ec787d146109c8578063de74e57b146109e8578063e086e5ec14610a95578063e5b7569314610aaa57600080fd5b8063d391014b14610970578063d4eda87714610992578063d547741f146109a857600080fd5b8063a217fddf11610164578063ad6a9cb71161013e578063ad6a9cb7146108fa578063b699de0b14610910578063ca25c0d514610930578063ccd02a411461095057600080fd5b8063a217fddf146108b5578063a9196d5c146108ca578063aaccf1ec146108e457600080fd5b806391d14854116101a057806391d148541461083557806396b5a7551461085557806396d704ee146108755780639aafc6c91461089557600080fd5b8063879a30f7146107f757806388fe07da1461080c5780638ec2d0d11461081f57600080fd5b80633853dea0116102a05780634e3bc43f1161023e578063611464591161021857806361146459146107425780636ffb0d1e1461076257806373cb9954146107825780637b05afb51461079857600080fd5b80634e3bc43f14610659578063571a26a01461068657806357c90de51461072f57600080fd5b80633f6738a91161027a5780633f6738a9146105c15780634626402b146105e15780634c76fd23146106195780634d0dfa4d1461063957600080fd5b80633853dea0146105625780633968edad146105825780633f6697fb146105a257600080fd5b80632016858a1161030d5780632f2ff15d116102e75780632f2ff15d146104d5578063305a67a8146104f557806336275dba1461051557806336568abe1461054257600080fd5b80632016858a1461046157806322d8916e14610485578063248a9ca3146104a557600080fd5b806301f741181461035557806301ffc9a71461038b5780630f2f59fc146103bb57806310a0ee96146103dd578063149f1dfa146103fd578063150b7a021461041d575b600080fd5b34801561036157600080fd5b5061037561037036600461498a565b610b80565b6040516103829190614d75565b60405180910390f35b34801561039757600080fd5b506103ab6103a6366004614a3b565b610c62565b6040519015158152602001610382565b3480156103c757600080fd5b506103db6103d63660046149bc565b610c99565b005b3480156103e957600080fd5b506103db6103f8366004614a84565b610ce9565b34801561040957600080fd5b506103db61041836600461494b565b610e27565b34801561042957600080fd5b506104486104383660046145a6565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610382565b34801561046d57600080fd5b50610477600b5481565b604051908152602001610382565b34801561049157600080fd5b506103db6104a036600461494b565b610eac565b3480156104b157600080fd5b506104776104c03660046149f4565b60009081526020819052604090206001015490565b3480156104e157600080fd5b506103db6104f0366004614a0c565b610f2c565b34801561050157600080fd5b506103db6105103660046149f4565b610f52565b34801561052157600080fd5b5061053561053036600461498a565b6110ed565b6040516103829190614c24565b34801561054e57600080fd5b506103db61055d366004614a0c565b611278565b34801561056e57600080fd5b506103db61057d3660046149f4565b6112f6565b34801561058e57600080fd5b506103db61059d3660046149f4565b61132f565b3480156105ae57600080fd5b50600d546103ab90610100900460ff1681565b3480156105cd57600080fd5b506103db6105dc3660046149f4565b611361565b3480156105ed57600080fd5b50600254610601906001600160a01b031681565b6040516001600160a01b039091168152602001610382565b34801561062557600080fd5b5061037561063436600461498a565b6113ff565b34801561064557600080fd5b506103db6106543660046149f4565b6114c2565b34801561066557600080fd5b5061067961067436600461498a565b611559565b6040516103829190614cf0565b34801561069257600080fd5b5061071a6106a13660046149f4565b601560209081526000918252604091829020805460018201546002830154600384015460048501546005860154600687015460078801548a51808c01909b5260088901546001600160a01b039081168c52600990990154998b019990995295871698969094169692959194909392909160ff9091169089565b60405161038299989796959493929190614b8d565b6103db61073d366004614a63565b6116d6565b34801561074e57600080fd5b506103db61075d3660046149bc565b611a99565b34801561076e57600080fd5b506103db61077d366004614661565b611ae7565b34801561078e57600080fd5b5061047760085481565b3480156107a457600080fd5b506107d86107b336600461454a565b601660205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610382565b34801561080357600080fd5b50610477611e1e565b6103db61081a366004614abc565b611e2f565b34801561082b57600080fd5b50610477600c5481565b34801561084157600080fd5b506103ab610850366004614a0c565b612459565b34801561086157600080fd5b506103db6108703660046149f4565b612482565b34801561088157600080fd5b506103db610890366004614744565b6127d4565b3480156108a157600080fd5b506103db6108b03660046149f4565b6129ae565b3480156108c157600080fd5b50610477600081565b3480156108d657600080fd5b50600d546103ab9060ff1681565b3480156108f057600080fd5b5061047760045481565b34801561090657600080fd5b5061047760065481565b34801561091c57600080fd5b506103db61092b36600461494b565b612f8c565b34801561093c57600080fd5b506103db61094b36600461454a565b61300c565b34801561095c57600080fd5b506103db61096b366004614566565b61304b565b34801561097c57600080fd5b506104776000805160206150c783398151915281565b34801561099e57600080fd5b5061047760075481565b3480156109b457600080fd5b506103db6109c3366004614a0c565b613162565b3480156109d457600080fd5b506103db6109e3366004614a63565b613188565b3480156109f457600080fd5b50610a51610a033660046149f4565b6014602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b039485169593909416939192909160ff8082169161010090041687565b604080516001600160a01b0398891681529790961660208801529486019390935260608501919091526080840152151560a0830152151560c082015260e001610382565b348015610aa157600080fd5b506103db613277565b348015610ab657600080fd5b50610477613328565b348015610acb57600080fd5b506103db610ada3660046149f4565b613334565b348015610aeb57600080fd5b506103db61342f565b348015610b0057600080fd5b506103db610b0f36600461454a565b61348b565b348015610b2057600080fd5b5061047760095481565b348015610b3657600080fd5b506103db610b453660046146d2565b6134ca565b348015610b5657600080fd5b506103db610b65366004614848565b61392d565b348015610b7657600080fd5b5061047760055481565b6060600082516001600160401b03811115610bab57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610bd4578160200160208202803683370190505b50905060005b8351811015610c5b57610c1e848281518110610c0657634e487b7160e01b600052603260045260246000fd5b60200260200101516010613b4e90919063ffffffff16565b828281518110610c3e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610c5381615059565b915050610bda565b5092915050565b60006001600160e01b03198216637965db0b60e01b1480610c9357506301ffc9a760e01b6001600160e01b03198316145b92915050565b610cb16000805160206150c783398151915233612459565b610cd65760405162461bcd60e51b8152600401610ccd90614ea7565b60405180910390fd5b600d805460ff1916911515919091179055565b6000838152601460205260409020546001600160a01b031633811480610d225750610d226000805160206150c783398151915233612459565b610d3e5760405162461bcd60e51b8152600401610ccd90614dec565b610d49601085613b5a565b610d8f5760405162461bcd60e51b81526020600482015260176024820152762634b9ba34b733903237b2b9903737ba1032bc34b9ba1760491b6044820152606401610ccd565b82610dac5760405162461bcd60e51b8152600401610ccd90614e23565b8115610dcb576000848152601460205260409020600301839055610de0565b60008481526014602052604090206004018390555b60408051858152602081018590528315158183015290517fb4de243dab4ede8abcce724ddf4ae9cb06784d1485659d964cadd18ec47741659181900360600190a150505050565b610e3f6000805160206150c783398151915233612459565b610e5b5760405162461bcd60e51b8152600401610ccd90614ea7565b60005b81811015610ea757610e95838383818110610e8957634e487b7160e01b600052603260045260246000fd5b90506020020135612482565b80610e9f81615059565b915050610e5e565b505050565b610ec46000805160206150c783398151915233612459565b610ee05760405162461bcd60e51b8152600401610ccd90614ea7565b60005b81811015610ea757610f1a838383818110610f0e57634e487b7160e01b600052603260045260246000fd5b905060200201356129ae565b80610f2481615059565b915050610ee3565b600082815260208190526040902060010154610f488133613b72565b610ea78383613bd6565b6000818152601460205260409020546001600160a01b031633811480610f8b5750610f8b6000805160206150c783398151915233612459565b610fa75760405162461bcd60e51b8152600401610ccd90614dec565b60026001541415610fca5760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155610fda601083613b5a565b61101f5760405162461bcd60e51b8152602060048201526016602482015275131a5cdd1a5b99c8191bd95cc81b9bdd08195e1a5cdd60521b6044820152606401610ccd565b6000828152601460205260409020611038601084613c5a565b50600181015481546002830154604051632142170760e11b81526001600160a01b039384169384936342842e0e9361107893309390921691600401614c00565b600060405180830381600087803b15801561109257600080fd5b505af11580156110a6573d6000803e3d6000fd5b505050507f411aee90354c51b1b04cd563fcab2617142a9d50da19232d888547c8a1b7fd8a846040516110db91815260200190565b60405180910390a15050600180555050565b6060600082516001600160401b0381111561111857634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561115157816020015b61113e6143a9565b8152602001906001900390816111365790505b50905060005b8351811015610c5b576015600061119f86848151811061118757634e487b7160e01b600052603260045260246000fd5b60200260200101516012613b4e90919063ffffffff16565b8152602080820192909252604090810160002081516101208101835281546001600160a01b03908116825260018301548116828601526002830154828501526003830154606083015260048301546080830152600583015460a0830152600683015460c0830152600783015460ff16151560e08301528351808501909452600883015416835260099091015492820192909252610100820152825183908390811061125a57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061127090615059565b915050611157565b6001600160a01b03811633146112e85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ccd565b6112f28282613c66565b5050565b61130e6000805160206150c783398151915233612459565b61132a5760405162461bcd60e51b8152600401610ccd90614ea7565b600c55565b600354611347906001600160a01b0316333084613ccb565b80600b60008282546113599190614fa8565b909155505050565b6113796000805160206150c783398151915233612459565b6113955760405162461bcd60e51b8152600401610ccd90614ea7565b612710600a54826113a69190614fa8565b106113c35760405162461bcd60e51b8152600401610ccd90614ed4565b60078190556040518181527f2548d4d91d8b332ae8945480c38f398dfb94d1463a6e3f0daabefe396f8f3d9f906020015b60405180910390a150565b6060600082516001600160401b0381111561142a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611453578160200160208202803683370190505b50905060005b8351811015610c5b5761148584828151811061118757634e487b7160e01b600052603260045260246000fd5b8282815181106114a557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806114ba81615059565b915050611459565b6114da6000805160206150c783398151915233612459565b6114f65760405162461bcd60e51b8152600401610ccd90614ea7565b612710600a54826115079190614fa8565b106115245760405162461bcd60e51b8152600401610ccd90614ed4565b60068190556040518181527f1464764941ab9dafdffba922e1e7b28bce233da326c0f130752d69a7e08b521c906020016113f4565b6060600082516001600160401b0381111561158457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115eb57816020015b6040805160e08101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c082015282526000199092019101816115a25790505b50905060005b8351811015610c5b5760146000611621868481518110610c0657634e487b7160e01b600052603260045260246000fd5b81526020808201929092526040908101600020815160e08101835281546001600160a01b0390811682526001830154169381019390935260028101549183019190915260038101546060830152600481015460808301526005015460ff808216151560a084015261010090910416151560c082015282518390839081106116b857634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806116ce90615059565b9150506115f1565b600260015414156116f95760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155611709601283613b5a565b6117555760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e20646f6573206e6f742065786973742e0000000000000000006044820152606401610ccd565b600082815260156020526040902060048101544210156117b75760405162461bcd60e51b815260206004820152601b60248201527f41756374696f6e20686173206e6f7420737461727465642079657400000000006044820152606401610ccd565b80600501544211156117ff5760405162461bcd60e51b8152602060048201526011602482015270105d58dd1a5bdb881a185cc8195b991959607a1b6044820152606401610ccd565b600981015482116118525760405162461bcd60e51b815260206004820152601d60248201527f426964206973206c6f776572207468616e2068696768657374206269640000006044820152606401610ccd565b806003015482116118b45760405162461bcd60e51b815260206004820152602660248201527f426964206d75737420626520686967686572207468616e207374617274696e6760448201526520707269636560d01b6064820152608401610ccd565b600781015460ff1615611935576003546118d9906001600160a01b0316333085613ccb565b600881015460098201546003546118fe926001600160a01b0391821692911690613d29565b604080518082019091523380825260209091018390526008820180546001600160a01b031916909117905560098101829055611a3d565b3482146119905760405162461bcd60e51b815260206004820152602360248201527f416d6f756e7420646f6573206e6f74206d61746368206d6573736167652076616044820152626c756560e81b6064820152608401610ccd565b600881015460098201546040516000926001600160a01b031691908381818185875af1925050503d80600081146119e3576040519150601f19603f3d011682016040523d82523d6000602084013e6119e8565b606091505b5050905080611a095760405162461bcd60e51b8152600401610ccd90614e4e565b50604080518082019091523380825260209091018390526008820180546001600160a01b0319169091179055600981018290555b6007810154604080513381526020810186905290810184905260ff909116151560608201527f78c8056cb003d2206686471949a05cbf5a27d0f87c0f4236a9a957835c9de542906080015b60405180910390a150506001805550565b611ab16000805160206150c783398151915233612459565b611acd5760405162461bcd60e51b8152600401610ccd90614ea7565b600d80549115156101000261ff0019909216919091179055565b60026001541415611b0a5760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155611b1a600e88613d59565b611b665760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79204d6f67756c204e4654732063616e206265206c69737465640000006044820152606401610ccd565b8115611b895783611b895760405162461bcd60e51b8152600401610ccd90614e23565b8015611bac5782611bac5760405162461bcd60e51b8152600401610ccd90614e23565b8115611c0457600d5460ff16611c045760405162461bcd60e51b815260206004820152601e60248201527f5354415253206c697374696e677320617265206e6f7420616c6c6f77656400006044820152606401610ccd565b8015611c6157600d54610100900460ff16611c615760405162461bcd60e51b815260206004820152601c60248201527f455448206c697374696e677320617265206e6f7420616c6c6f776564000000006044820152606401610ccd565b604051632142170760e11b815287906001600160a01b038216906342842e0e90611c9390339030908c90600401614c00565b600060405180830381600087803b158015611cad57600080fd5b505af1158015611cc1573d6000803e3d6000fd5b505050506000611ccf613d7b565b6040805160e0810182523381526001600160a01b038c811660208084019182528385018e8152606085018d8152608086018d81528c151560a088019081528c151560c0890190815260008b8152601490965298909420965187549087166001600160a01b0319918216178855945160018801805491909716951694909417909455516002850155915160038401555160048301555160059091018054925115156101000261ff00199215159290921661ffff19909316929092171790559050611d99601082613d95565b50604080518281523360208201526001600160a01b038b1681830152606081018a90526001608082015260a0810188905260c0810187905285151560e082015284151561010082015290517f473615488a0acd7ce3cacdfee2c11b0cd8b6e82d0c53cabd1e7e85086f16d414918190036101200190a150506001805550505050505050565b6000611e2a6012613da1565b905090565b60026001541415611e525760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155611e62601085613b5a565b611ea85760405162461bcd60e51b81526020600482015260176024820152762634b9ba34b733903237b2b9903737ba1032bc34b9ba1760491b6044820152606401610ccd565b600084815260146020526040902081156120eb57600581015460ff16611f105760405162461bcd60e51b815260206004820152601d60248201527f4c697374696e6720646f6573206e6f74206163636570742053544152530000006044820152606401610ccd565b6003810154838114611f5f5760405162461bcd60e51b8152602060048201526018602482015277496e636f727265637420657870656374656420707269636560401b6044820152606401610ccd565b600061271060065483611f729190614fe0565b611f7c9190614fc0565b6001808501546001600160a01b03166000908152601660205260408120909101549192509061271090611faf9085614fe0565b611fb99190614fc0565b90508115611fd957600354611fd9906001600160a01b0316333085613ccb565b60018401546001600160a01b0390811660009081526016602052604090205416156120315760018401546001600160a01b03908116600090815260166020526040902054600354612031929081169133911684613ccb565b835461206b9033906001600160a01b03168361204d8688614fff565b6120579190614fff565b6003546001600160a01b0316929190613ccb565b600c54156120cb576000612710600c54856120869190614fe0565b6120909190614fc0565b905080600b54106120c95780600b60008282546120ad9190614fff565b90915550506003546120c9906001600160a01b03163383613d29565b505b81600960008282546120dd9190614fa8565b9091555061238a9350505050565b6005810154610100900460ff166121445760405162461bcd60e51b815260206004820152601b60248201527f4c697374696e6720646f6573206e6f74206163636570742045544800000000006044820152606401610ccd565b60048101548381146121935760405162461bcd60e51b8152602060048201526018602482015277496e636f727265637420657870656374656420707269636560401b6044820152606401610ccd565b6000612710600754836121a69190614fe0565b6121b09190614fc0565b6001808501546001600160a01b031660009081526016602052604081209091015491925090612710906121e39085614fe0565b6121ed9190614fc0565b905082341461223e5760405162461bcd60e51b815260206004820152601b60248201527f496e636f7272656374207472616e73616374696f6e2076616c756500000000006044820152606401610ccd565b83546000906001600160a01b0316826122578587614fff565b6122619190614fff565b604051600081818185875af1925050503d806000811461229d576040519150601f19603f3d011682016040523d82523d6000602084013e6122a2565b606091505b50509050806122c35760405162461bcd60e51b8152600401610ccd90614e4e565b60018501546001600160a01b03908116600090815260166020526040902054161561236e5760018501546001600160a01b03908116600090815260166020526040808220549051921691849181818185875af1925050503d8060008114612346576040519150601f19603f3d011682016040523d82523d6000602084013e61234b565b606091505b5050809150508061236e5760405162461bcd60e51b8152600401610ccd90614e4e565b82600860008282546123809190614fa8565b9091555050505050505b612395601086613c5a565b5060018101546002820154604051632142170760e11b81526001600160a01b039092169182916342842e0e916123d2913091339190600401614c00565b600060405180830381600087803b1580156123ec57600080fd5b505af1158015612400573d6000803e3d6000fd5b505060408051338152602081018a9052600181830152861515606082015290517f5849fcb03b709a338ea379a79a96974ae538c21c0fabed319d4690aa6ac543799350908190036080019150a150506001805550505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600260015414156124a55760405162461bcd60e51b8152600401610ccd90614f1e565b60026001556000818152601560205260409020546001600160a01b0316338114806124e357506124e36000805160206150c783398151915233612459565b6124ff5760405162461bcd60e51b8152600401610ccd90614dec565b61250a601283613b5a565b6125265760405162461bcd60e51b8152600401610ccd90614e77565b60008281526015602090815260409182902082516101208101845281546001600160a01b03908116825260018301548116828501526002830154828601526003830154606083015260048301546080830152600583015460a08301908152600684015460c0840152600784015460ff16151560e0840152855180870190965260088401549091168552600990920154928401929092526101008201929092529051421115806125e157508060c0015181610100015160200151105b6126795760405162461bcd60e51b815260206004820152605f60248201527f43616e6e6f742063616e63656c2061756374696f6e206166746572206974206860448201527f617320656e64656420756e6c657373207468652068696768657374206269642060648201527f646964206e6f74206d6565742074686520726573657276652070726963652e00608482015260a401610ccd565b602081015181516040808401519051632142170760e11b81526001600160a01b03909316926342842e0e926126b2923092600401614c00565b600060405180830381600087803b1580156126cc57600080fd5b505af11580156126e0573d6000803e3d6000fd5b505050508060e0015115612719576101008101518051602090910151600354612714926001600160a01b0390911691613d29565b612798565b61010081015180516020909101516040516000926001600160a01b031691908381818185875af1925050503d8060008114612770576040519150601f19603f3d011682016040523d82523d6000602084013e612775565b606091505b50509050806127965760405162461bcd60e51b8152600401610ccd90614e4e565b505b6127a3601284613c5a565b506040518381527f2809c7e17bf978fbc7194c0a694b638c4215e9140cacc6c38ca36010b45697df90602001611a88565b6127ec6000805160206150c783398151915233612459565b6128085760405162461bcd60e51b8152600401610ccd90614ea7565b888714801561281657508685145b801561282157508483145b801561282d5750815183145b801561283a575080518251145b6128805760405162461bcd60e51b8152602060048201526017602482015276496e636f727265637420696e707574206c656e6774687360481b6044820152606401610ccd565b60005b898110156129a15761298f8b8b838181106128ae57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906128c3919061454a565b8a8a848181106128e357634e487b7160e01b600052603260045260246000fd5b9050602002013560018a8a8681811061290c57634e487b7160e01b600052603260045260246000fd5b9050602002013589898781811061293357634e487b7160e01b600052603260045260246000fd5b9050602002013588878151811061295a57634e487b7160e01b600052603260045260246000fd5b602002602001015188888151811061298257634e487b7160e01b600052603260045260246000fd5b6020026020010151611ae7565b8061299981615059565b915050612883565b5050505050505050505050565b600260015414156129d15760405162461bcd60e51b8152600401610ccd90614f1e565b60026001556129e1601282613b5a565b6129fd5760405162461bcd60e51b8152600401610ccd90614e77565b60008181526015602090815260409182902082516101208101845281546001600160a01b03908116825260018301548116828501526002830154828601526003830154606083015260048301546080830152600583015460a08301908152600684015460c0840152600784015460ff16151560e0840152855180870190965260088401549091168552600990920154928401929092526101008201929092529051421015612ae25760405162461bcd60e51b815260206004820152601260248201527141756374696f6e206973206f6e676f696e6760701b6044820152606401610ccd565b80516001600160a01b03163314801590612b115750612b0f6000805160206150c783398151915233612459565b155b15612b87578060c00151816101000151602001511015612b875760405162461bcd60e51b815260206004820152602b60248201527f486967686573742062696420646964206e6f74206d656574207468652072657360448201526a32b93b3290383934b1b29760a91b6064820152608401610ccd565b6000808260e0015115612bbf5761271060065484610100015160200151612bae9190614fe0565b612bb89190614fc0565b9050612be6565b61271060075484610100015160200151612bd99190614fe0565b612be39190614fc0565b90505b6020808401516001600160a01b0316600090815260168252604081206001015461010086015190920151909161271091612c209190614fe0565b612c2a9190614fc0565b90508361010001516000015192508360e0015115612d6657612c7d8460000151828487610100015160200151612c609190614fff565b612c6a9190614fff565b6003546001600160a01b03169190613d29565b6020808501516001600160a01b03908116600090815260169092526040909120541615612cd7576020808501516001600160a01b0390811660009081526016909252604090912054600354612cd792908116911683613d29565b600c5415612d49576000612710600c5486610100015160200151612cfb9190614fe0565b612d059190614fc0565b905080600b5410612d475780600b6000828254612d229190614fff565b909155505061010085015151600354612d47916001600160a01b039091169083613d29565b505b8160096000828254612d5b9190614fa8565b90915550612ec09050565b600084600001516001600160a01b0316828487610100015160200151612d8c9190614fff565b612d969190614fff565b604051600081818185875af1925050503d8060008114612dd2576040519150601f19603f3d011682016040523d82523d6000602084013e612dd7565b606091505b5050905080612df85760405162461bcd60e51b8152600401610ccd90614e4e565b6020808601516001600160a01b03908116600090815260169092526040909120541615612ea7576020858101516001600160a01b0390811660009081526016909252604080832054905191169184919081818185875af1925050503d8060008114612e7f576040519150601f19603f3d011682016040523d82523d6000602084013e612e84565b606091505b50508091505080612ea75760405162461bcd60e51b8152600401610ccd90614e4e565b8260086000828254612eb99190614fa8565b9091555050505b83602001516001600160a01b03166342842e0e308587604001516040518463ffffffff1660e01b8152600401612ef893929190614c00565b600060405180830381600087803b158015612f1257600080fd5b505af1158015612f26573d6000803e3d6000fd5b50505050612f3e856012613c5a90919063ffffffff16565b50604080516001600160a01b0385168152602081018790527f10a4b36a41aae32780e0984ce67fee4a5a8929f404dfd68df31b645baa018991910160405180910390a1505060018055505050565b612fa46000805160206150c783398151915233612459565b612fc05760405162461bcd60e51b8152600401610ccd90614ea7565b60005b81811015610ea757612ffa838383818110612fee57634e487b7160e01b600052603260045260246000fd5b90506020020135610f52565b8061300481615059565b915050612fc3565b6130246000805160206150c783398151915233612459565b6130405760405162461bcd60e51b8152600401610ccd90614ea7565b6112f2600e82613dab565b6130636000805160206150c783398151915233612459565b61307f5760405162461bcd60e51b8152600401610ccd90614ea7565b600a548111156130d7576127106006548261309a9190614fa8565b1080156130b55750612710600754826130b39190614fa8565b105b6130d15760405162461bcd60e51b8152600401610ccd90614ed4565b600a8190555b6040805180820182526001600160a01b03848116825260208083018581528783166000908152601690925290849020925183546001600160a01b031916921691909117825551600190910155517f12a80e2fd10edaf0cf6e1661578a53ca4a22c86049b0d5a3436b97072854642e9061315590859085908590614c00565b60405180910390a1505050565b60008281526020819052604090206001015461317e8133613b72565b610ea78383613c66565b600260015414156131ab5760405162461bcd60e51b8152600401610ccd90614f1e565b60026001556000828152601560205260409020546001600160a01b0316338114806131e957506131e96000805160206150c783398151915233612459565b6132055760405162461bcd60e51b8152600401610ccd90614dec565b613210601284613b5a565b61322c5760405162461bcd60e51b8152600401610ccd90614e77565b60008381526015602090815260409182902060060184905581518581529081018490527fe1cac5dced4f280522703654f134d3e9c1938cce8ea173bbbd59126188d8fa269101611a88565b61328f6000805160206150c783398151915233612459565b6132ab5760405162461bcd60e51b8152600401610ccd90614ea7565b6002546008546040516000926001600160a01b031691908381818185875af1925050503d80600081146132fa576040519150601f19603f3d011682016040523d82523d6000602084013e6132ff565b606091505b50509050806133205760405162461bcd60e51b8152600401610ccd90614e4e565b506000600855565b6000611e2a6010613da1565b61334c6000805160206150c783398151915233612459565b6133685760405162461bcd60e51b8152600401610ccd90614ea7565b6002600154141561338b5760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155600b548111156133f45760405162461bcd60e51b815260206004820152602960248201527f576974686472617720616d6f756e74206578636565647320617661696c61626c604482015268652062616c616e636560b81b6064820152608401610ccd565b80600b60008282546134069190614fff565b9091555050600254600354613428916001600160a01b03918216911683613d29565b5060018055565b6134476000805160206150c783398151915233612459565b6134635760405162461bcd60e51b8152600401610ccd90614ea7565b600254600954600354613484926001600160a01b0391821692911690613d29565b6000600955565b6134a36000805160206150c783398151915233612459565b6134bf5760405162461bcd60e51b8152600401610ccd90614ea7565b6112f2600e82613b32565b600260015414156134ed5760405162461bcd60e51b8152600401610ccd90614f1e565b600260015582841061354b5760405162461bcd60e51b815260206004820152602160248201527f456e642074696d65206d7573742062652061667465722073746172742074696d6044820152606560f81b6064820152608401610ccd565b42841161359a5760405162461bcd60e51b815260206004820181905260248201527f41756374696f6e206d75737420737461727420696e20746865206675747572656044820152606401610ccd565b6135a5600e89613d59565b6135f15760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79204d6f67756c204e4654732063616e206265206c69737465640000006044820152606401610ccd565b801561364e57600d5460ff166136495760405162461bcd60e51b815260206004820152601e60248201527f53544152532061756374696f6e7320617265206e6f7420616c6c6f77656400006044820152606401610ccd565b6136a5565b600d54610100900460ff166136a55760405162461bcd60e51b815260206004820152601d60248201527f4554482061756374696f6e7320617265206e6f7420616c6c6f7765642e0000006044820152606401610ccd565b604051632142170760e11b815288906001600160a01b038216906342842e0e906136d790339030908d90600401614c00565b600060405180830381600087803b1580156136f157600080fd5b505af1158015613705573d6000803e3d6000fd5b505050506000613713613dc0565b9050604051806101200160405280336001600160a01b031681526020018b6001600160a01b031681526020018a815260200188815260200187815260200186815260200185815260200184151581526020016040518060400160405280336001600160a01b0316815260200160008152508152506015600083815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff0219169083151502179055506101008201518160080160008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015550509050506138a0816012613d9590919063ffffffff16565b50604080518281523360208201526001600160a01b038c1681830152606081018b90526001608082015260a0810189905260c0810188905260e08101879052610100810186905284151561012082015290517f69347c7137bbb60bb8e71d6c135c630105bb7828cbdfbd204863422b15c10338918190036101400190a15050600180555050505050505050565b6139456000805160206150c783398151915233612459565b6139615760405162461bcd60e51b8152600401610ccd90614ea7565b888714801561396f57508685145b801561397b5750835185145b8015613988575082518451145b8015613995575081518351145b80156139a2575080518251145b6139e85760405162461bcd60e51b8152602060048201526017602482015276496e636f727265637420696e707574206c656e6774687360481b6044820152606401610ccd565b60005b898110156129a157613b208b8b83818110613a1657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190613a2b919061454a565b8a8a84818110613a4b57634e487b7160e01b600052603260045260246000fd5b9050602002013560018a8a86818110613a7457634e487b7160e01b600052603260045260246000fd5b90506020020135898681518110613a9b57634e487b7160e01b600052603260045260246000fd5b6020026020010151898781518110613ac357634e487b7160e01b600052603260045260246000fd5b6020026020010151898881518110613aeb57634e487b7160e01b600052603260045260246000fd5b6020026020010151898981518110613b1357634e487b7160e01b600052603260045260246000fd5b60200260200101516134ca565b80613b2a81615059565b9150506139eb565b6000613b47836001600160a01b038416613dd1565b9392505050565b6000613b478383613e20565b60008181526001830160205260408120541515613b47565b613b7c8282612459565b6112f257613b94816001600160a01b03166014613e58565b613b9f836020613e58565b604051602001613bb0929190614b18565b60408051601f198184030181529082905262461bcd60e51b8252610ccd91600401614db9565b613be08282612459565b6112f2576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055613c163390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000613b478383614039565b613c708282612459565b156112f2576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b613d23846323b872dd60e01b858585604051602401613cec93929190614c00565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614156565b50505050565b6040516001600160a01b038316602482015260448101829052610ea790849063a9059cbb60e01b90606401613cec565b6001600160a01b03811660009081526001830160205260408120541515613b47565b6004805460009182613d8c83615059565b91905055905090565b6000613b478383613dd1565b6000610c93825490565b6000613b47836001600160a01b038416614039565b6005805460009182613d8c83615059565b6000818152600183016020526040812054613e1857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c93565b506000610c93565b6000826000018281548110613e4557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60606000613e67836002614fe0565b613e72906002614fa8565b6001600160401b03811115613e9757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ec1576020820181803683370190505b509050600360fc1b81600081518110613eea57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613f2757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000613f4b846002614fe0565b613f56906001614fa8565b90505b6001811115613fea576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613f9857634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613fbc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613fe381615042565b9050613f59565b508315613b475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ccd565b6000818152600183016020526040812054801561414c57600061405d600183614fff565b855490915060009061407190600190614fff565b90508181146140f257600086600001828154811061409f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106140d057634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061411157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c93565b6000915050610c93565b60006141ab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166142289092919063ffffffff16565b805190915015610ea757808060200190518101906141c991906149d8565b610ea75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ccd565b6060614237848460008561423f565b949350505050565b6060824710156142a05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ccd565b6001600160a01b0385163b6142f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ccd565b600080866001600160a01b031685876040516143139190614afc565b60006040518083038185875af1925050503d8060008114614350576040519150601f19603f3d011682016040523d82523d6000602084013e614355565b606091505b5091509150614365828286614370565b979650505050505050565b6060831561437f575081613b47565b82511561438f5782518084602001fd5b8160405162461bcd60e51b8152600401610ccd9190614db9565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152602001614427604051806040016040528060006001600160a01b03168152602001600081525090565b905290565b60008083601f84011261443d578182fd5b5081356001600160401b03811115614453578182fd5b6020830191508360208260051b850101111561446e57600080fd5b9250929050565b600082601f830112614485578081fd5b8135602061449a61449583614f85565b614f55565b80838252828201915082860187848660051b89010111156144b9578586fd5b855b858110156144e05781356144ce816150b8565b845292840192908401906001016144bb565b5090979650505050505050565b600082601f8301126144fd578081fd5b8135602061450d61449583614f85565b80838252828201915082860187848660051b890101111561452c578586fd5b855b858110156144e05781358452928401929084019060010161452e565b60006020828403121561455b578081fd5b8135613b47816150a0565b60008060006060848603121561457a578182fd5b8335614585816150a0565b92506020840135614595816150a0565b929592945050506040919091013590565b600080600080608085870312156145bb578081fd5b84356145c6816150a0565b93506020858101356145d7816150a0565b93506040860135925060608601356001600160401b03808211156145f9578384fd5b818801915088601f83011261460c578384fd5b81358181111561461e5761461e61508a565b614630601f8201601f19168501614f55565b91508082528984828501011115614645578485fd5b8084840185840137810190920192909252939692955090935050565b600080600080600080600060e0888a03121561467b578283fd5b8735614686816150a0565b96506020880135955060408801359450606088013593506080880135925060a08801356146b2816150b8565b915060c08801356146c2816150b8565b8091505092959891949750929550565b600080600080600080600080610100898b0312156146ee578081fd5b88356146f9816150a0565b97506020890135965060408901359550606089013594506080890135935060a0890135925060c0890135915060e0890135614733816150b8565b809150509295985092959890939650565b60008060008060008060008060008060c08b8d031215614762578384fd5b8a356001600160401b0380821115614778578586fd5b6147848e838f0161442c565b909c509a5060208d013591508082111561479c578586fd5b6147a88e838f0161442c565b909a50985060408d01359150808211156147c0578586fd5b6147cc8e838f0161442c565b909850965060608d01359150808211156147e4578586fd5b6147f08e838f0161442c565b909650945060808d0135915080821115614808578384fd5b6148148e838f01614475565b935060a08d0135915080821115614829578283fd5b506148368d828e01614475565b9150509295989b9194979a5092959850565b60008060008060008060008060008060e08b8d031215614866578384fd5b8a356001600160401b038082111561487c578586fd5b6148888e838f0161442c565b909c509a5060208d01359150808211156148a0578586fd5b6148ac8e838f0161442c565b909a50985060408d01359150808211156148c4578586fd5b6148d08e838f0161442c565b909850965060608d01359150808211156148e8578586fd5b6148f48e838f016144ed565b955060808d0135915080821115614909578485fd5b6149158e838f016144ed565b945060a08d013591508082111561492a578384fd5b6149368e838f016144ed565b935060c08d0135915080821115614829578283fd5b6000806020838503121561495d578182fd5b82356001600160401b03811115614972578283fd5b61497e8582860161442c565b90969095509350505050565b60006020828403121561499b578081fd5b81356001600160401b038111156149b0578182fd5b614237848285016144ed565b6000602082840312156149cd578081fd5b8135613b47816150b8565b6000602082840312156149e9578081fd5b8151613b47816150b8565b600060208284031215614a05578081fd5b5035919050565b60008060408385031215614a1e578182fd5b823591506020830135614a30816150a0565b809150509250929050565b600060208284031215614a4c578081fd5b81356001600160e01b031981168114613b47578182fd5b60008060408385031215614a75578182fd5b50508035926020909101359150565b600080600060608486031215614a98578081fd5b83359250602084013591506040840135614ab1816150b8565b809150509250925092565b60008060008060808587031215614ad1578182fd5b8435935060208501359250604085013591506060850135614af1816150b8565b939692955090935050565b60008251614b0e818460208701615016565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614b50816017850160208801615016565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614b81816028840160208801615016565b01602801949350505050565b6001600160a01b038a811682528916602082015260408101889052606081018790526080810186905260a0810185905260c0810184905282151560e08201526101408101614bf261010083018480516001600160a01b03168252602090810151910152565b9a9950505050505050505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b602080825282518282018190526000919060409081850190868401855b82811015614ce357815180516001600160a01b0316855286810151614c70888701826001600160a01b03169052565b508086015185870152606080820151908601526080808201519086015260a0808201519086015260c0808201519086015260e0808201511515908601526101009081015180516001600160a01b031691860191909152602001516101208501526101409093019290850190600101614c41565b5091979650505050505050565b602080825282518282018190526000919060409081850190868401855b82811015614ce357815180516001600160a01b0390811686528782015116878601528581015186860152606080820151908601526080808201519086015260a08082015115159086015260c09081015115159085015260e09093019290850190600101614d0d565b6020808252825182820181905260009190848201906040850190845b81811015614dad57835183529284019291840191600101614d91565b50909695505050505050565b6020815260008251806020840152614dd8816040850160208701615016565b601f01601f19169190910160400192915050565b6020808252601d908201527f53656e646572206973206e6f742073656c6c6572206f722061646d696e000000604082015260600190565b602080825260119082015270050726963652063616e6e6f74206265203607c1b604082015260600190565b6020808252600f908201526e5061796d656e74206661696c75726560881b604082015260600190565b602080825260169082015275105d58dd1a5bdb88191bd95cc81b9bdd08195e1a5cdd60521b604082015260600190565b60208082526013908201527229b2b73232b91034b9903737ba1030b236b4b760691b604082015260600190565b6020808252602a908201527f46656520706c757320636f6d6d697373696f6e206d757374206265206c657373604082015269207468616e203130302560b01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715614f7d57614f7d61508a565b604052919050565b60006001600160401b03821115614f9e57614f9e61508a565b5060051b60200190565b60008219821115614fbb57614fbb615074565b500190565b600082614fdb57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615614ffa57614ffa615074565b500290565b60008282101561501157615011615074565b500390565b60005b83811015615031578181015183820152602001615019565b83811115613d235750506000910152565b60008161505157615051615074565b506000190190565b600060001982141561506d5761506d615074565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146150b557600080fd5b50565b80151581146150b557600080fdfe2172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096a26469706673582212206911bc79dae156503de9b1dcc2c0991f05473c0f70bdb042448b9318f5b2f2a664736f6c634300080400332172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca000000000000000000000000e6a451b2b47e054c8cd37cddaab65aceea61f0cc0000000000000000000000001c3b019f6d5a38d3eeea65cc8ab8eca8d61dcc7000000000000000000000000019f2d953361e84dcc458fdff9cb99b626de9e026
Deployed Bytecode
0x6080604052600436106103505760003560e01c8063879a30f7116101c6578063d391014b116100f7578063e6b7503111610095578063f4d6bacc1161006f578063f4d6bacc14610b14578063f94545f014610b2a578063f9a6e5d314610b4a578063fc52848214610b6a57600080fd5b8063e6b7503114610abf578063e7dffa3f14610adf578063ee79eab614610af457600080fd5b8063d9ec787d116100d1578063d9ec787d146109c8578063de74e57b146109e8578063e086e5ec14610a95578063e5b7569314610aaa57600080fd5b8063d391014b14610970578063d4eda87714610992578063d547741f146109a857600080fd5b8063a217fddf11610164578063ad6a9cb71161013e578063ad6a9cb7146108fa578063b699de0b14610910578063ca25c0d514610930578063ccd02a411461095057600080fd5b8063a217fddf146108b5578063a9196d5c146108ca578063aaccf1ec146108e457600080fd5b806391d14854116101a057806391d148541461083557806396b5a7551461085557806396d704ee146108755780639aafc6c91461089557600080fd5b8063879a30f7146107f757806388fe07da1461080c5780638ec2d0d11461081f57600080fd5b80633853dea0116102a05780634e3bc43f1161023e578063611464591161021857806361146459146107425780636ffb0d1e1461076257806373cb9954146107825780637b05afb51461079857600080fd5b80634e3bc43f14610659578063571a26a01461068657806357c90de51461072f57600080fd5b80633f6738a91161027a5780633f6738a9146105c15780634626402b146105e15780634c76fd23146106195780634d0dfa4d1461063957600080fd5b80633853dea0146105625780633968edad146105825780633f6697fb146105a257600080fd5b80632016858a1161030d5780632f2ff15d116102e75780632f2ff15d146104d5578063305a67a8146104f557806336275dba1461051557806336568abe1461054257600080fd5b80632016858a1461046157806322d8916e14610485578063248a9ca3146104a557600080fd5b806301f741181461035557806301ffc9a71461038b5780630f2f59fc146103bb57806310a0ee96146103dd578063149f1dfa146103fd578063150b7a021461041d575b600080fd5b34801561036157600080fd5b5061037561037036600461498a565b610b80565b6040516103829190614d75565b60405180910390f35b34801561039757600080fd5b506103ab6103a6366004614a3b565b610c62565b6040519015158152602001610382565b3480156103c757600080fd5b506103db6103d63660046149bc565b610c99565b005b3480156103e957600080fd5b506103db6103f8366004614a84565b610ce9565b34801561040957600080fd5b506103db61041836600461494b565b610e27565b34801561042957600080fd5b506104486104383660046145a6565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610382565b34801561046d57600080fd5b50610477600b5481565b604051908152602001610382565b34801561049157600080fd5b506103db6104a036600461494b565b610eac565b3480156104b157600080fd5b506104776104c03660046149f4565b60009081526020819052604090206001015490565b3480156104e157600080fd5b506103db6104f0366004614a0c565b610f2c565b34801561050157600080fd5b506103db6105103660046149f4565b610f52565b34801561052157600080fd5b5061053561053036600461498a565b6110ed565b6040516103829190614c24565b34801561054e57600080fd5b506103db61055d366004614a0c565b611278565b34801561056e57600080fd5b506103db61057d3660046149f4565b6112f6565b34801561058e57600080fd5b506103db61059d3660046149f4565b61132f565b3480156105ae57600080fd5b50600d546103ab90610100900460ff1681565b3480156105cd57600080fd5b506103db6105dc3660046149f4565b611361565b3480156105ed57600080fd5b50600254610601906001600160a01b031681565b6040516001600160a01b039091168152602001610382565b34801561062557600080fd5b5061037561063436600461498a565b6113ff565b34801561064557600080fd5b506103db6106543660046149f4565b6114c2565b34801561066557600080fd5b5061067961067436600461498a565b611559565b6040516103829190614cf0565b34801561069257600080fd5b5061071a6106a13660046149f4565b601560209081526000918252604091829020805460018201546002830154600384015460048501546005860154600687015460078801548a51808c01909b5260088901546001600160a01b039081168c52600990990154998b019990995295871698969094169692959194909392909160ff9091169089565b60405161038299989796959493929190614b8d565b6103db61073d366004614a63565b6116d6565b34801561074e57600080fd5b506103db61075d3660046149bc565b611a99565b34801561076e57600080fd5b506103db61077d366004614661565b611ae7565b34801561078e57600080fd5b5061047760085481565b3480156107a457600080fd5b506107d86107b336600461454a565b601660205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610382565b34801561080357600080fd5b50610477611e1e565b6103db61081a366004614abc565b611e2f565b34801561082b57600080fd5b50610477600c5481565b34801561084157600080fd5b506103ab610850366004614a0c565b612459565b34801561086157600080fd5b506103db6108703660046149f4565b612482565b34801561088157600080fd5b506103db610890366004614744565b6127d4565b3480156108a157600080fd5b506103db6108b03660046149f4565b6129ae565b3480156108c157600080fd5b50610477600081565b3480156108d657600080fd5b50600d546103ab9060ff1681565b3480156108f057600080fd5b5061047760045481565b34801561090657600080fd5b5061047760065481565b34801561091c57600080fd5b506103db61092b36600461494b565b612f8c565b34801561093c57600080fd5b506103db61094b36600461454a565b61300c565b34801561095c57600080fd5b506103db61096b366004614566565b61304b565b34801561097c57600080fd5b506104776000805160206150c783398151915281565b34801561099e57600080fd5b5061047760075481565b3480156109b457600080fd5b506103db6109c3366004614a0c565b613162565b3480156109d457600080fd5b506103db6109e3366004614a63565b613188565b3480156109f457600080fd5b50610a51610a033660046149f4565b6014602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b039485169593909416939192909160ff8082169161010090041687565b604080516001600160a01b0398891681529790961660208801529486019390935260608501919091526080840152151560a0830152151560c082015260e001610382565b348015610aa157600080fd5b506103db613277565b348015610ab657600080fd5b50610477613328565b348015610acb57600080fd5b506103db610ada3660046149f4565b613334565b348015610aeb57600080fd5b506103db61342f565b348015610b0057600080fd5b506103db610b0f36600461454a565b61348b565b348015610b2057600080fd5b5061047760095481565b348015610b3657600080fd5b506103db610b453660046146d2565b6134ca565b348015610b5657600080fd5b506103db610b65366004614848565b61392d565b348015610b7657600080fd5b5061047760055481565b6060600082516001600160401b03811115610bab57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610bd4578160200160208202803683370190505b50905060005b8351811015610c5b57610c1e848281518110610c0657634e487b7160e01b600052603260045260246000fd5b60200260200101516010613b4e90919063ffffffff16565b828281518110610c3e57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610c5381615059565b915050610bda565b5092915050565b60006001600160e01b03198216637965db0b60e01b1480610c9357506301ffc9a760e01b6001600160e01b03198316145b92915050565b610cb16000805160206150c783398151915233612459565b610cd65760405162461bcd60e51b8152600401610ccd90614ea7565b60405180910390fd5b600d805460ff1916911515919091179055565b6000838152601460205260409020546001600160a01b031633811480610d225750610d226000805160206150c783398151915233612459565b610d3e5760405162461bcd60e51b8152600401610ccd90614dec565b610d49601085613b5a565b610d8f5760405162461bcd60e51b81526020600482015260176024820152762634b9ba34b733903237b2b9903737ba1032bc34b9ba1760491b6044820152606401610ccd565b82610dac5760405162461bcd60e51b8152600401610ccd90614e23565b8115610dcb576000848152601460205260409020600301839055610de0565b60008481526014602052604090206004018390555b60408051858152602081018590528315158183015290517fb4de243dab4ede8abcce724ddf4ae9cb06784d1485659d964cadd18ec47741659181900360600190a150505050565b610e3f6000805160206150c783398151915233612459565b610e5b5760405162461bcd60e51b8152600401610ccd90614ea7565b60005b81811015610ea757610e95838383818110610e8957634e487b7160e01b600052603260045260246000fd5b90506020020135612482565b80610e9f81615059565b915050610e5e565b505050565b610ec46000805160206150c783398151915233612459565b610ee05760405162461bcd60e51b8152600401610ccd90614ea7565b60005b81811015610ea757610f1a838383818110610f0e57634e487b7160e01b600052603260045260246000fd5b905060200201356129ae565b80610f2481615059565b915050610ee3565b600082815260208190526040902060010154610f488133613b72565b610ea78383613bd6565b6000818152601460205260409020546001600160a01b031633811480610f8b5750610f8b6000805160206150c783398151915233612459565b610fa75760405162461bcd60e51b8152600401610ccd90614dec565b60026001541415610fca5760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155610fda601083613b5a565b61101f5760405162461bcd60e51b8152602060048201526016602482015275131a5cdd1a5b99c8191bd95cc81b9bdd08195e1a5cdd60521b6044820152606401610ccd565b6000828152601460205260409020611038601084613c5a565b50600181015481546002830154604051632142170760e11b81526001600160a01b039384169384936342842e0e9361107893309390921691600401614c00565b600060405180830381600087803b15801561109257600080fd5b505af11580156110a6573d6000803e3d6000fd5b505050507f411aee90354c51b1b04cd563fcab2617142a9d50da19232d888547c8a1b7fd8a846040516110db91815260200190565b60405180910390a15050600180555050565b6060600082516001600160401b0381111561111857634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561115157816020015b61113e6143a9565b8152602001906001900390816111365790505b50905060005b8351811015610c5b576015600061119f86848151811061118757634e487b7160e01b600052603260045260246000fd5b60200260200101516012613b4e90919063ffffffff16565b8152602080820192909252604090810160002081516101208101835281546001600160a01b03908116825260018301548116828601526002830154828501526003830154606083015260048301546080830152600583015460a0830152600683015460c0830152600783015460ff16151560e08301528351808501909452600883015416835260099091015492820192909252610100820152825183908390811061125a57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061127090615059565b915050611157565b6001600160a01b03811633146112e85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ccd565b6112f28282613c66565b5050565b61130e6000805160206150c783398151915233612459565b61132a5760405162461bcd60e51b8152600401610ccd90614ea7565b600c55565b600354611347906001600160a01b0316333084613ccb565b80600b60008282546113599190614fa8565b909155505050565b6113796000805160206150c783398151915233612459565b6113955760405162461bcd60e51b8152600401610ccd90614ea7565b612710600a54826113a69190614fa8565b106113c35760405162461bcd60e51b8152600401610ccd90614ed4565b60078190556040518181527f2548d4d91d8b332ae8945480c38f398dfb94d1463a6e3f0daabefe396f8f3d9f906020015b60405180910390a150565b6060600082516001600160401b0381111561142a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611453578160200160208202803683370190505b50905060005b8351811015610c5b5761148584828151811061118757634e487b7160e01b600052603260045260246000fd5b8282815181106114a557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806114ba81615059565b915050611459565b6114da6000805160206150c783398151915233612459565b6114f65760405162461bcd60e51b8152600401610ccd90614ea7565b612710600a54826115079190614fa8565b106115245760405162461bcd60e51b8152600401610ccd90614ed4565b60068190556040518181527f1464764941ab9dafdffba922e1e7b28bce233da326c0f130752d69a7e08b521c906020016113f4565b6060600082516001600160401b0381111561158457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156115eb57816020015b6040805160e08101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c082015282526000199092019101816115a25790505b50905060005b8351811015610c5b5760146000611621868481518110610c0657634e487b7160e01b600052603260045260246000fd5b81526020808201929092526040908101600020815160e08101835281546001600160a01b0390811682526001830154169381019390935260028101549183019190915260038101546060830152600481015460808301526005015460ff808216151560a084015261010090910416151560c082015282518390839081106116b857634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806116ce90615059565b9150506115f1565b600260015414156116f95760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155611709601283613b5a565b6117555760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e20646f6573206e6f742065786973742e0000000000000000006044820152606401610ccd565b600082815260156020526040902060048101544210156117b75760405162461bcd60e51b815260206004820152601b60248201527f41756374696f6e20686173206e6f7420737461727465642079657400000000006044820152606401610ccd565b80600501544211156117ff5760405162461bcd60e51b8152602060048201526011602482015270105d58dd1a5bdb881a185cc8195b991959607a1b6044820152606401610ccd565b600981015482116118525760405162461bcd60e51b815260206004820152601d60248201527f426964206973206c6f776572207468616e2068696768657374206269640000006044820152606401610ccd565b806003015482116118b45760405162461bcd60e51b815260206004820152602660248201527f426964206d75737420626520686967686572207468616e207374617274696e6760448201526520707269636560d01b6064820152608401610ccd565b600781015460ff1615611935576003546118d9906001600160a01b0316333085613ccb565b600881015460098201546003546118fe926001600160a01b0391821692911690613d29565b604080518082019091523380825260209091018390526008820180546001600160a01b031916909117905560098101829055611a3d565b3482146119905760405162461bcd60e51b815260206004820152602360248201527f416d6f756e7420646f6573206e6f74206d61746368206d6573736167652076616044820152626c756560e81b6064820152608401610ccd565b600881015460098201546040516000926001600160a01b031691908381818185875af1925050503d80600081146119e3576040519150601f19603f3d011682016040523d82523d6000602084013e6119e8565b606091505b5050905080611a095760405162461bcd60e51b8152600401610ccd90614e4e565b50604080518082019091523380825260209091018390526008820180546001600160a01b0319169091179055600981018290555b6007810154604080513381526020810186905290810184905260ff909116151560608201527f78c8056cb003d2206686471949a05cbf5a27d0f87c0f4236a9a957835c9de542906080015b60405180910390a150506001805550565b611ab16000805160206150c783398151915233612459565b611acd5760405162461bcd60e51b8152600401610ccd90614ea7565b600d80549115156101000261ff0019909216919091179055565b60026001541415611b0a5760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155611b1a600e88613d59565b611b665760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79204d6f67756c204e4654732063616e206265206c69737465640000006044820152606401610ccd565b8115611b895783611b895760405162461bcd60e51b8152600401610ccd90614e23565b8015611bac5782611bac5760405162461bcd60e51b8152600401610ccd90614e23565b8115611c0457600d5460ff16611c045760405162461bcd60e51b815260206004820152601e60248201527f5354415253206c697374696e677320617265206e6f7420616c6c6f77656400006044820152606401610ccd565b8015611c6157600d54610100900460ff16611c615760405162461bcd60e51b815260206004820152601c60248201527f455448206c697374696e677320617265206e6f7420616c6c6f776564000000006044820152606401610ccd565b604051632142170760e11b815287906001600160a01b038216906342842e0e90611c9390339030908c90600401614c00565b600060405180830381600087803b158015611cad57600080fd5b505af1158015611cc1573d6000803e3d6000fd5b505050506000611ccf613d7b565b6040805160e0810182523381526001600160a01b038c811660208084019182528385018e8152606085018d8152608086018d81528c151560a088019081528c151560c0890190815260008b8152601490965298909420965187549087166001600160a01b0319918216178855945160018801805491909716951694909417909455516002850155915160038401555160048301555160059091018054925115156101000261ff00199215159290921661ffff19909316929092171790559050611d99601082613d95565b50604080518281523360208201526001600160a01b038b1681830152606081018a90526001608082015260a0810188905260c0810187905285151560e082015284151561010082015290517f473615488a0acd7ce3cacdfee2c11b0cd8b6e82d0c53cabd1e7e85086f16d414918190036101200190a150506001805550505050505050565b6000611e2a6012613da1565b905090565b60026001541415611e525760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155611e62601085613b5a565b611ea85760405162461bcd60e51b81526020600482015260176024820152762634b9ba34b733903237b2b9903737ba1032bc34b9ba1760491b6044820152606401610ccd565b600084815260146020526040902081156120eb57600581015460ff16611f105760405162461bcd60e51b815260206004820152601d60248201527f4c697374696e6720646f6573206e6f74206163636570742053544152530000006044820152606401610ccd565b6003810154838114611f5f5760405162461bcd60e51b8152602060048201526018602482015277496e636f727265637420657870656374656420707269636560401b6044820152606401610ccd565b600061271060065483611f729190614fe0565b611f7c9190614fc0565b6001808501546001600160a01b03166000908152601660205260408120909101549192509061271090611faf9085614fe0565b611fb99190614fc0565b90508115611fd957600354611fd9906001600160a01b0316333085613ccb565b60018401546001600160a01b0390811660009081526016602052604090205416156120315760018401546001600160a01b03908116600090815260166020526040902054600354612031929081169133911684613ccb565b835461206b9033906001600160a01b03168361204d8688614fff565b6120579190614fff565b6003546001600160a01b0316929190613ccb565b600c54156120cb576000612710600c54856120869190614fe0565b6120909190614fc0565b905080600b54106120c95780600b60008282546120ad9190614fff565b90915550506003546120c9906001600160a01b03163383613d29565b505b81600960008282546120dd9190614fa8565b9091555061238a9350505050565b6005810154610100900460ff166121445760405162461bcd60e51b815260206004820152601b60248201527f4c697374696e6720646f6573206e6f74206163636570742045544800000000006044820152606401610ccd565b60048101548381146121935760405162461bcd60e51b8152602060048201526018602482015277496e636f727265637420657870656374656420707269636560401b6044820152606401610ccd565b6000612710600754836121a69190614fe0565b6121b09190614fc0565b6001808501546001600160a01b031660009081526016602052604081209091015491925090612710906121e39085614fe0565b6121ed9190614fc0565b905082341461223e5760405162461bcd60e51b815260206004820152601b60248201527f496e636f7272656374207472616e73616374696f6e2076616c756500000000006044820152606401610ccd565b83546000906001600160a01b0316826122578587614fff565b6122619190614fff565b604051600081818185875af1925050503d806000811461229d576040519150601f19603f3d011682016040523d82523d6000602084013e6122a2565b606091505b50509050806122c35760405162461bcd60e51b8152600401610ccd90614e4e565b60018501546001600160a01b03908116600090815260166020526040902054161561236e5760018501546001600160a01b03908116600090815260166020526040808220549051921691849181818185875af1925050503d8060008114612346576040519150601f19603f3d011682016040523d82523d6000602084013e61234b565b606091505b5050809150508061236e5760405162461bcd60e51b8152600401610ccd90614e4e565b82600860008282546123809190614fa8565b9091555050505050505b612395601086613c5a565b5060018101546002820154604051632142170760e11b81526001600160a01b039092169182916342842e0e916123d2913091339190600401614c00565b600060405180830381600087803b1580156123ec57600080fd5b505af1158015612400573d6000803e3d6000fd5b505060408051338152602081018a9052600181830152861515606082015290517f5849fcb03b709a338ea379a79a96974ae538c21c0fabed319d4690aa6ac543799350908190036080019150a150506001805550505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600260015414156124a55760405162461bcd60e51b8152600401610ccd90614f1e565b60026001556000818152601560205260409020546001600160a01b0316338114806124e357506124e36000805160206150c783398151915233612459565b6124ff5760405162461bcd60e51b8152600401610ccd90614dec565b61250a601283613b5a565b6125265760405162461bcd60e51b8152600401610ccd90614e77565b60008281526015602090815260409182902082516101208101845281546001600160a01b03908116825260018301548116828501526002830154828601526003830154606083015260048301546080830152600583015460a08301908152600684015460c0840152600784015460ff16151560e0840152855180870190965260088401549091168552600990920154928401929092526101008201929092529051421115806125e157508060c0015181610100015160200151105b6126795760405162461bcd60e51b815260206004820152605f60248201527f43616e6e6f742063616e63656c2061756374696f6e206166746572206974206860448201527f617320656e64656420756e6c657373207468652068696768657374206269642060648201527f646964206e6f74206d6565742074686520726573657276652070726963652e00608482015260a401610ccd565b602081015181516040808401519051632142170760e11b81526001600160a01b03909316926342842e0e926126b2923092600401614c00565b600060405180830381600087803b1580156126cc57600080fd5b505af11580156126e0573d6000803e3d6000fd5b505050508060e0015115612719576101008101518051602090910151600354612714926001600160a01b0390911691613d29565b612798565b61010081015180516020909101516040516000926001600160a01b031691908381818185875af1925050503d8060008114612770576040519150601f19603f3d011682016040523d82523d6000602084013e612775565b606091505b50509050806127965760405162461bcd60e51b8152600401610ccd90614e4e565b505b6127a3601284613c5a565b506040518381527f2809c7e17bf978fbc7194c0a694b638c4215e9140cacc6c38ca36010b45697df90602001611a88565b6127ec6000805160206150c783398151915233612459565b6128085760405162461bcd60e51b8152600401610ccd90614ea7565b888714801561281657508685145b801561282157508483145b801561282d5750815183145b801561283a575080518251145b6128805760405162461bcd60e51b8152602060048201526017602482015276496e636f727265637420696e707574206c656e6774687360481b6044820152606401610ccd565b60005b898110156129a15761298f8b8b838181106128ae57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906128c3919061454a565b8a8a848181106128e357634e487b7160e01b600052603260045260246000fd5b9050602002013560018a8a8681811061290c57634e487b7160e01b600052603260045260246000fd5b9050602002013589898781811061293357634e487b7160e01b600052603260045260246000fd5b9050602002013588878151811061295a57634e487b7160e01b600052603260045260246000fd5b602002602001015188888151811061298257634e487b7160e01b600052603260045260246000fd5b6020026020010151611ae7565b8061299981615059565b915050612883565b5050505050505050505050565b600260015414156129d15760405162461bcd60e51b8152600401610ccd90614f1e565b60026001556129e1601282613b5a565b6129fd5760405162461bcd60e51b8152600401610ccd90614e77565b60008181526015602090815260409182902082516101208101845281546001600160a01b03908116825260018301548116828501526002830154828601526003830154606083015260048301546080830152600583015460a08301908152600684015460c0840152600784015460ff16151560e0840152855180870190965260088401549091168552600990920154928401929092526101008201929092529051421015612ae25760405162461bcd60e51b815260206004820152601260248201527141756374696f6e206973206f6e676f696e6760701b6044820152606401610ccd565b80516001600160a01b03163314801590612b115750612b0f6000805160206150c783398151915233612459565b155b15612b87578060c00151816101000151602001511015612b875760405162461bcd60e51b815260206004820152602b60248201527f486967686573742062696420646964206e6f74206d656574207468652072657360448201526a32b93b3290383934b1b29760a91b6064820152608401610ccd565b6000808260e0015115612bbf5761271060065484610100015160200151612bae9190614fe0565b612bb89190614fc0565b9050612be6565b61271060075484610100015160200151612bd99190614fe0565b612be39190614fc0565b90505b6020808401516001600160a01b0316600090815260168252604081206001015461010086015190920151909161271091612c209190614fe0565b612c2a9190614fc0565b90508361010001516000015192508360e0015115612d6657612c7d8460000151828487610100015160200151612c609190614fff565b612c6a9190614fff565b6003546001600160a01b03169190613d29565b6020808501516001600160a01b03908116600090815260169092526040909120541615612cd7576020808501516001600160a01b0390811660009081526016909252604090912054600354612cd792908116911683613d29565b600c5415612d49576000612710600c5486610100015160200151612cfb9190614fe0565b612d059190614fc0565b905080600b5410612d475780600b6000828254612d229190614fff565b909155505061010085015151600354612d47916001600160a01b039091169083613d29565b505b8160096000828254612d5b9190614fa8565b90915550612ec09050565b600084600001516001600160a01b0316828487610100015160200151612d8c9190614fff565b612d969190614fff565b604051600081818185875af1925050503d8060008114612dd2576040519150601f19603f3d011682016040523d82523d6000602084013e612dd7565b606091505b5050905080612df85760405162461bcd60e51b8152600401610ccd90614e4e565b6020808601516001600160a01b03908116600090815260169092526040909120541615612ea7576020858101516001600160a01b0390811660009081526016909252604080832054905191169184919081818185875af1925050503d8060008114612e7f576040519150601f19603f3d011682016040523d82523d6000602084013e612e84565b606091505b50508091505080612ea75760405162461bcd60e51b8152600401610ccd90614e4e565b8260086000828254612eb99190614fa8565b9091555050505b83602001516001600160a01b03166342842e0e308587604001516040518463ffffffff1660e01b8152600401612ef893929190614c00565b600060405180830381600087803b158015612f1257600080fd5b505af1158015612f26573d6000803e3d6000fd5b50505050612f3e856012613c5a90919063ffffffff16565b50604080516001600160a01b0385168152602081018790527f10a4b36a41aae32780e0984ce67fee4a5a8929f404dfd68df31b645baa018991910160405180910390a1505060018055505050565b612fa46000805160206150c783398151915233612459565b612fc05760405162461bcd60e51b8152600401610ccd90614ea7565b60005b81811015610ea757612ffa838383818110612fee57634e487b7160e01b600052603260045260246000fd5b90506020020135610f52565b8061300481615059565b915050612fc3565b6130246000805160206150c783398151915233612459565b6130405760405162461bcd60e51b8152600401610ccd90614ea7565b6112f2600e82613dab565b6130636000805160206150c783398151915233612459565b61307f5760405162461bcd60e51b8152600401610ccd90614ea7565b600a548111156130d7576127106006548261309a9190614fa8565b1080156130b55750612710600754826130b39190614fa8565b105b6130d15760405162461bcd60e51b8152600401610ccd90614ed4565b600a8190555b6040805180820182526001600160a01b03848116825260208083018581528783166000908152601690925290849020925183546001600160a01b031916921691909117825551600190910155517f12a80e2fd10edaf0cf6e1661578a53ca4a22c86049b0d5a3436b97072854642e9061315590859085908590614c00565b60405180910390a1505050565b60008281526020819052604090206001015461317e8133613b72565b610ea78383613c66565b600260015414156131ab5760405162461bcd60e51b8152600401610ccd90614f1e565b60026001556000828152601560205260409020546001600160a01b0316338114806131e957506131e96000805160206150c783398151915233612459565b6132055760405162461bcd60e51b8152600401610ccd90614dec565b613210601284613b5a565b61322c5760405162461bcd60e51b8152600401610ccd90614e77565b60008381526015602090815260409182902060060184905581518581529081018490527fe1cac5dced4f280522703654f134d3e9c1938cce8ea173bbbd59126188d8fa269101611a88565b61328f6000805160206150c783398151915233612459565b6132ab5760405162461bcd60e51b8152600401610ccd90614ea7565b6002546008546040516000926001600160a01b031691908381818185875af1925050503d80600081146132fa576040519150601f19603f3d011682016040523d82523d6000602084013e6132ff565b606091505b50509050806133205760405162461bcd60e51b8152600401610ccd90614e4e565b506000600855565b6000611e2a6010613da1565b61334c6000805160206150c783398151915233612459565b6133685760405162461bcd60e51b8152600401610ccd90614ea7565b6002600154141561338b5760405162461bcd60e51b8152600401610ccd90614f1e565b6002600155600b548111156133f45760405162461bcd60e51b815260206004820152602960248201527f576974686472617720616d6f756e74206578636565647320617661696c61626c604482015268652062616c616e636560b81b6064820152608401610ccd565b80600b60008282546134069190614fff565b9091555050600254600354613428916001600160a01b03918216911683613d29565b5060018055565b6134476000805160206150c783398151915233612459565b6134635760405162461bcd60e51b8152600401610ccd90614ea7565b600254600954600354613484926001600160a01b0391821692911690613d29565b6000600955565b6134a36000805160206150c783398151915233612459565b6134bf5760405162461bcd60e51b8152600401610ccd90614ea7565b6112f2600e82613b32565b600260015414156134ed5760405162461bcd60e51b8152600401610ccd90614f1e565b600260015582841061354b5760405162461bcd60e51b815260206004820152602160248201527f456e642074696d65206d7573742062652061667465722073746172742074696d6044820152606560f81b6064820152608401610ccd565b42841161359a5760405162461bcd60e51b815260206004820181905260248201527f41756374696f6e206d75737420737461727420696e20746865206675747572656044820152606401610ccd565b6135a5600e89613d59565b6135f15760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79204d6f67756c204e4654732063616e206265206c69737465640000006044820152606401610ccd565b801561364e57600d5460ff166136495760405162461bcd60e51b815260206004820152601e60248201527f53544152532061756374696f6e7320617265206e6f7420616c6c6f77656400006044820152606401610ccd565b6136a5565b600d54610100900460ff166136a55760405162461bcd60e51b815260206004820152601d60248201527f4554482061756374696f6e7320617265206e6f7420616c6c6f7765642e0000006044820152606401610ccd565b604051632142170760e11b815288906001600160a01b038216906342842e0e906136d790339030908d90600401614c00565b600060405180830381600087803b1580156136f157600080fd5b505af1158015613705573d6000803e3d6000fd5b505050506000613713613dc0565b9050604051806101200160405280336001600160a01b031681526020018b6001600160a01b031681526020018a815260200188815260200187815260200186815260200185815260200184151581526020016040518060400160405280336001600160a01b0316815260200160008152508152506015600083815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff0219169083151502179055506101008201518160080160008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015550509050506138a0816012613d9590919063ffffffff16565b50604080518281523360208201526001600160a01b038c1681830152606081018b90526001608082015260a0810189905260c0810188905260e08101879052610100810186905284151561012082015290517f69347c7137bbb60bb8e71d6c135c630105bb7828cbdfbd204863422b15c10338918190036101400190a15050600180555050505050505050565b6139456000805160206150c783398151915233612459565b6139615760405162461bcd60e51b8152600401610ccd90614ea7565b888714801561396f57508685145b801561397b5750835185145b8015613988575082518451145b8015613995575081518351145b80156139a2575080518251145b6139e85760405162461bcd60e51b8152602060048201526017602482015276496e636f727265637420696e707574206c656e6774687360481b6044820152606401610ccd565b60005b898110156129a157613b208b8b83818110613a1657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190613a2b919061454a565b8a8a84818110613a4b57634e487b7160e01b600052603260045260246000fd5b9050602002013560018a8a86818110613a7457634e487b7160e01b600052603260045260246000fd5b90506020020135898681518110613a9b57634e487b7160e01b600052603260045260246000fd5b6020026020010151898781518110613ac357634e487b7160e01b600052603260045260246000fd5b6020026020010151898881518110613aeb57634e487b7160e01b600052603260045260246000fd5b6020026020010151898981518110613b1357634e487b7160e01b600052603260045260246000fd5b60200260200101516134ca565b80613b2a81615059565b9150506139eb565b6000613b47836001600160a01b038416613dd1565b9392505050565b6000613b478383613e20565b60008181526001830160205260408120541515613b47565b613b7c8282612459565b6112f257613b94816001600160a01b03166014613e58565b613b9f836020613e58565b604051602001613bb0929190614b18565b60408051601f198184030181529082905262461bcd60e51b8252610ccd91600401614db9565b613be08282612459565b6112f2576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055613c163390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000613b478383614039565b613c708282612459565b156112f2576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b613d23846323b872dd60e01b858585604051602401613cec93929190614c00565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614156565b50505050565b6040516001600160a01b038316602482015260448101829052610ea790849063a9059cbb60e01b90606401613cec565b6001600160a01b03811660009081526001830160205260408120541515613b47565b6004805460009182613d8c83615059565b91905055905090565b6000613b478383613dd1565b6000610c93825490565b6000613b47836001600160a01b038416614039565b6005805460009182613d8c83615059565b6000818152600183016020526040812054613e1857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c93565b506000610c93565b6000826000018281548110613e4557634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60606000613e67836002614fe0565b613e72906002614fa8565b6001600160401b03811115613e9757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ec1576020820181803683370190505b509050600360fc1b81600081518110613eea57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613f2757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000613f4b846002614fe0565b613f56906001614fa8565b90505b6001811115613fea576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613f9857634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110613fbc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93613fe381615042565b9050613f59565b508315613b475760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ccd565b6000818152600183016020526040812054801561414c57600061405d600183614fff565b855490915060009061407190600190614fff565b90508181146140f257600086600001828154811061409f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106140d057634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b855486908061411157634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c93565b6000915050610c93565b60006141ab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166142289092919063ffffffff16565b805190915015610ea757808060200190518101906141c991906149d8565b610ea75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ccd565b6060614237848460008561423f565b949350505050565b6060824710156142a05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ccd565b6001600160a01b0385163b6142f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ccd565b600080866001600160a01b031685876040516143139190614afc565b60006040518083038185875af1925050503d8060008114614350576040519150601f19603f3d011682016040523d82523d6000602084013e614355565b606091505b5091509150614365828286614370565b979650505050505050565b6060831561437f575081613b47565b82511561438f5782518084602001fd5b8160405162461bcd60e51b8152600401610ccd9190614db9565b60405180610120016040528060006001600160a01b0316815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152602001614427604051806040016040528060006001600160a01b03168152602001600081525090565b905290565b60008083601f84011261443d578182fd5b5081356001600160401b03811115614453578182fd5b6020830191508360208260051b850101111561446e57600080fd5b9250929050565b600082601f830112614485578081fd5b8135602061449a61449583614f85565b614f55565b80838252828201915082860187848660051b89010111156144b9578586fd5b855b858110156144e05781356144ce816150b8565b845292840192908401906001016144bb565b5090979650505050505050565b600082601f8301126144fd578081fd5b8135602061450d61449583614f85565b80838252828201915082860187848660051b890101111561452c578586fd5b855b858110156144e05781358452928401929084019060010161452e565b60006020828403121561455b578081fd5b8135613b47816150a0565b60008060006060848603121561457a578182fd5b8335614585816150a0565b92506020840135614595816150a0565b929592945050506040919091013590565b600080600080608085870312156145bb578081fd5b84356145c6816150a0565b93506020858101356145d7816150a0565b93506040860135925060608601356001600160401b03808211156145f9578384fd5b818801915088601f83011261460c578384fd5b81358181111561461e5761461e61508a565b614630601f8201601f19168501614f55565b91508082528984828501011115614645578485fd5b8084840185840137810190920192909252939692955090935050565b600080600080600080600060e0888a03121561467b578283fd5b8735614686816150a0565b96506020880135955060408801359450606088013593506080880135925060a08801356146b2816150b8565b915060c08801356146c2816150b8565b8091505092959891949750929550565b600080600080600080600080610100898b0312156146ee578081fd5b88356146f9816150a0565b97506020890135965060408901359550606089013594506080890135935060a0890135925060c0890135915060e0890135614733816150b8565b809150509295985092959890939650565b60008060008060008060008060008060c08b8d031215614762578384fd5b8a356001600160401b0380821115614778578586fd5b6147848e838f0161442c565b909c509a5060208d013591508082111561479c578586fd5b6147a88e838f0161442c565b909a50985060408d01359150808211156147c0578586fd5b6147cc8e838f0161442c565b909850965060608d01359150808211156147e4578586fd5b6147f08e838f0161442c565b909650945060808d0135915080821115614808578384fd5b6148148e838f01614475565b935060a08d0135915080821115614829578283fd5b506148368d828e01614475565b9150509295989b9194979a5092959850565b60008060008060008060008060008060e08b8d031215614866578384fd5b8a356001600160401b038082111561487c578586fd5b6148888e838f0161442c565b909c509a5060208d01359150808211156148a0578586fd5b6148ac8e838f0161442c565b909a50985060408d01359150808211156148c4578586fd5b6148d08e838f0161442c565b909850965060608d01359150808211156148e8578586fd5b6148f48e838f016144ed565b955060808d0135915080821115614909578485fd5b6149158e838f016144ed565b945060a08d013591508082111561492a578384fd5b6149368e838f016144ed565b935060c08d0135915080821115614829578283fd5b6000806020838503121561495d578182fd5b82356001600160401b03811115614972578283fd5b61497e8582860161442c565b90969095509350505050565b60006020828403121561499b578081fd5b81356001600160401b038111156149b0578182fd5b614237848285016144ed565b6000602082840312156149cd578081fd5b8135613b47816150b8565b6000602082840312156149e9578081fd5b8151613b47816150b8565b600060208284031215614a05578081fd5b5035919050565b60008060408385031215614a1e578182fd5b823591506020830135614a30816150a0565b809150509250929050565b600060208284031215614a4c578081fd5b81356001600160e01b031981168114613b47578182fd5b60008060408385031215614a75578182fd5b50508035926020909101359150565b600080600060608486031215614a98578081fd5b83359250602084013591506040840135614ab1816150b8565b809150509250925092565b60008060008060808587031215614ad1578182fd5b8435935060208501359250604085013591506060850135614af1816150b8565b939692955090935050565b60008251614b0e818460208701615016565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614b50816017850160208801615016565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614b81816028840160208801615016565b01602801949350505050565b6001600160a01b038a811682528916602082015260408101889052606081018790526080810186905260a0810185905260c0810184905282151560e08201526101408101614bf261010083018480516001600160a01b03168252602090810151910152565b9a9950505050505050505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b602080825282518282018190526000919060409081850190868401855b82811015614ce357815180516001600160a01b0316855286810151614c70888701826001600160a01b03169052565b508086015185870152606080820151908601526080808201519086015260a0808201519086015260c0808201519086015260e0808201511515908601526101009081015180516001600160a01b031691860191909152602001516101208501526101409093019290850190600101614c41565b5091979650505050505050565b602080825282518282018190526000919060409081850190868401855b82811015614ce357815180516001600160a01b0390811686528782015116878601528581015186860152606080820151908601526080808201519086015260a08082015115159086015260c09081015115159085015260e09093019290850190600101614d0d565b6020808252825182820181905260009190848201906040850190845b81811015614dad57835183529284019291840191600101614d91565b50909695505050505050565b6020815260008251806020840152614dd8816040850160208701615016565b601f01601f19169190910160400192915050565b6020808252601d908201527f53656e646572206973206e6f742073656c6c6572206f722061646d696e000000604082015260600190565b602080825260119082015270050726963652063616e6e6f74206265203607c1b604082015260600190565b6020808252600f908201526e5061796d656e74206661696c75726560881b604082015260600190565b602080825260169082015275105d58dd1a5bdb88191bd95cc81b9bdd08195e1a5cdd60521b604082015260600190565b60208082526013908201527229b2b73232b91034b9903737ba1030b236b4b760691b604082015260600190565b6020808252602a908201527f46656520706c757320636f6d6d697373696f6e206d757374206265206c657373604082015269207468616e203130302560b01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715614f7d57614f7d61508a565b604052919050565b60006001600160401b03821115614f9e57614f9e61508a565b5060051b60200190565b60008219821115614fbb57614fbb615074565b500190565b600082614fdb57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615614ffa57614ffa615074565b500290565b60008282101561501157615011615074565b500390565b60005b83811015615031578181015183820152602001615019565b83811115613d235750506000910152565b60008161505157615051615074565b506000190190565b600060001982141561506d5761506d615074565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146150b557600080fd5b50565b80151581146150b557600080fdfe2172861495e7b85edac73e3cd5fbb42dd675baadf627720e687bcfdaca025096a26469706673582212206911bc79dae156503de9b1dcc2c0991f05473c0f70bdb042448b9318f5b2f2a664736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca000000000000000000000000e6a451b2b47e054c8cd37cddaab65aceea61f0cc0000000000000000000000001c3b019f6d5a38d3eeea65cc8ab8eca8d61dcc7000000000000000000000000019f2d953361e84dcc458fdff9cb99b626de9e026
-----Decoded View---------------
Arg [0] : starsAddress (address): 0xc55c2175E90A46602fD42e931f62B3Acc1A013Ca
Arg [1] : _admin (address): 0xE6a451b2b47E054C8Cd37cDdaAB65acEea61F0cc
Arg [2] : _treasuryWallet (address): 0x1c3B019F6d5a38d3EEea65cc8AB8EcA8D61dCC70
Arg [3] : _mogulNFTAddress (address): 0x19F2D953361e84dcc458fDfF9cb99b626de9E026
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca
Arg [1] : 000000000000000000000000e6a451b2b47e054c8cd37cddaab65aceea61f0cc
Arg [2] : 0000000000000000000000001c3b019f6d5a38d3eeea65cc8ab8eca8d61dcc70
Arg [3] : 00000000000000000000000019f2d953361e84dcc458fdff9cb99b626de9e026
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.