ETH Price: $2,816.71 (-10.60%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...186842822023-11-30 11:59:59430 days ago1701345599IN
0x4EA67AeB...C41F750fd
0 ETH0.0024042731.27669152
Claim SHB157003532022-10-08 2:21:47848 days ago1665195707IN
0x4EA67AeB...C41F750fd
0 ETH0.000642359.03091553
Claim SHB157003502022-10-08 2:21:11848 days ago1665195671IN
0x4EA67AeB...C41F750fd
0 ETH0.000663929.3340872
Claim SHB157003482022-10-08 2:20:47848 days ago1665195647IN
0x4EA67AeB...C41F750fd
0 ETH0.000800149.06893147
Claim SHB157002932022-10-08 2:09:35848 days ago1665194975IN
0x4EA67AeB...C41F750fd
0 ETH0.0011122612.60658885
Set Token Uri155259582022-09-13 8:41:39873 days ago1663058499IN
0x4EA67AeB...C41F750fd
0 ETH0.0004508910.75482905
Set Token Uri155259312022-09-13 8:34:06873 days ago1663058046IN
0x4EA67AeB...C41F750fd
0 ETH0.0004668511.13558705
Set Token Uri155259202022-09-13 8:30:34873 days ago1663057834IN
0x4EA67AeB...C41F750fd
0 ETH0.0014820712.78327393
Claim SHB155257662022-09-13 7:51:06873 days ago1663055466IN
0x4EA67AeB...C41F750fd
0 ETH0.000604626.85288074
Claim NFT155257422022-09-13 7:46:40873 days ago1663055200IN
0x4EA67AeB...C41F750fd
0 ETH0.001025487.91958103
Set Token Uri154280702022-08-28 13:25:39889 days ago1661693139IN
0x4EA67AeB...C41F750fd
0 ETH0.000649495.60201567
Set Token Uri154280702022-08-28 13:25:39889 days ago1661693139IN
0x4EA67AeB...C41F750fd
0 ETH0.000590235.09090596
Set Token Uri154280702022-08-28 13:25:39889 days ago1661693139IN
0x4EA67AeB...C41F750fd
0 ETH0.00059825.15965104
Set Token Uri154280702022-08-28 13:25:39889 days ago1661693139IN
0x4EA67AeB...C41F750fd
0 ETH0.0011593910
Set Token Uri154280652022-08-28 13:25:03889 days ago1661693103IN
0x4EA67AeB...C41F750fd
0 ETH0.000687355.92863337
Set Token Uri154280622022-08-28 13:24:38889 days ago1661693078IN
0x4EA67AeB...C41F750fd
0 ETH0.000789666.81102795
Set Token Uri154280622022-08-28 13:24:38889 days ago1661693078IN
0x4EA67AeB...C41F750fd
0 ETH0.0011593910
Claim SHB154279822022-08-28 13:04:18889 days ago1661691858IN
0x4EA67AeB...C41F750fd
0 ETH0.000361185.07788967
Claim SHB154279822022-08-28 13:04:18889 days ago1661691858IN
0x4EA67AeB...C41F750fd
0 ETH0.000361185.07788967
Claim SHB154279822022-08-28 13:04:18889 days ago1661691858IN
0x4EA67AeB...C41F750fd
0 ETH0.000361185.07788967
Claim SHB154279822022-08-28 13:04:18889 days ago1661691858IN
0x4EA67AeB...C41F750fd
0 ETH0.000361185.07788967
Claim SHB154279822022-08-28 13:04:18889 days ago1661691858IN
0x4EA67AeB...C41F750fd
0 ETH0.000361185.07788967
Claim SHB154279772022-08-28 13:02:44889 days ago1661691764IN
0x4EA67AeB...C41F750fd
0 ETH0.000387715.45081254
Claim SHB154279772022-08-28 13:02:44889 days ago1661691764IN
0x4EA67AeB...C41F750fd
0 ETH0.000387715.45081254
Safe Transfer Fr...154277742022-08-28 12:22:56889 days ago1661689376IN
0x4EA67AeB...C41F750fd
0 ETH0.00018684.30963417
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BrandCentralClaimAuction

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : BrandCentralClaimAuction.sol
pragma solidity 0.8.7;

// SPDX-License-Identifier: MIT

import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { IBrandCentralClaimAuction } from "./IBrandCentralClaimAuction.sol";

/// @title Limited Brand Ticker Auction for composable NFTs that have a claim to a ticker
/// @notice Winners receive a composable NFT that has the SHB from their winning bid wrapped in the NFT
/// @notice Winners will be able to unwrap their SHB from their NFT at a later date
/// @notice If the NFT is sold, the rights to the underlying SHB are sold too - hence the composable nature
contract BrandCentralClaimAuction is ERC721("BrandCentralClaimNFT", "cSHNFT"), IBrandCentralClaimAuction, Ownable {

    event Deployed();
    event BidReceived(string lowerticker, uint256 shbAmount);
    event AuctionForTickerExtended(string lowerticker, uint256 newAuctionEndBlock);
    event TokenClaimed(string lowerticker, uint256 indexed tokenId);
    event URIUpdated(uint256 indexed tokenId);

    /// @dev Token ID -> Token URI set by owner
    mapping(uint256 => string) _tokenUris;

    /// @dev All auction constants
    uint256 public constant SECONDS_PER_BLOCK = 13; // This is only rough
    uint256 public constant BLOCKS_PER_DAY = 1 days / SECONDS_PER_BLOCK;
    uint256 public constant AUCTION_LENGTH_IN_DAYS = 5;
    uint256 public constant TOTAL_AUCTION_LENGTH_IN_BLOCKS = BLOCKS_PER_DAY * AUCTION_LENGTH_IN_DAYS;
    uint256 public constant BID_EXTENSION_IN_BLOCKS = 100;
    uint256 public constant NUM_OF_TICKER_PROPOSALS_PER_DAY = 10;
    uint256 public constant MAX_TICKERS_BEING_AUCTIONED = 50;
    uint256 public constant BID_STEP = 2 * 10 ** 18;

    struct Auction {
        uint256 shbBid;     // Highest SHB bid
        address bidder;     // Current highest bidder
        uint256 biddingEnd; // When the auction ends for this specific ticket
        bool shbClaimed;    // If SHB has been claimed by the NFT owner
    }

    /// @notice Lowercase brand ticker -> Auction information
    mapping(string => Auction) public auctions;

    /// @notice Token ID -> Lower brand ticker
    mapping(uint256 => string) public override tokenIdToLowerTicker;

    /// @notice Lower brand ticker -> Token ID reverse lookup
    mapping(string => uint256) public override lowerTickerToTokenId;

    /// @notice Lower brand ticker -> whether it is restricted and outside of the auction
    mapping(string => bool) public override isRestrictedBrandTicker;

    /// @notice Auction start block. Where bidding of any ticker can start
    uint256 public startBlock;

    /// @notice Auction end block. After this block, no more bids for tickers can be received
    uint256 public endBlock;

    /// @notice Block number after which NFT holders can claim attached SHB tokens
    uint256 public shbClaimBlock;

    /// @notice SHB token address - bidding token for all auctions
    IERC20 public shbToken;

    /// @notice Number of tickers that have been auctioned between start and end block
    uint256 public numberOfTickersBeingAuctioned;

    /// @notice Day number of auction -> Number of tickers that have been auctioned on the day
    mapping(uint256 => uint256) public tickersAuctionedOnDay;

    /// @notice Total supply of the NFT which is equal to the number of winners that have claimed their NFT
    uint256 public totalSupply;

    /// @param _startBlock Block number of when the first batch of tickers will be auctioned
    /// @param _shbToken SHB token address
    constructor(uint256 _startBlock, IERC20 _shbToken) {
        isRestrictedBrandTicker["bsn"] = true;
        isRestrictedBrandTicker["cbsn"] = true;
        isRestrictedBrandTicker["dart"] = true;
        isRestrictedBrandTicker["saver"] = true;
        isRestrictedBrandTicker["stake"] = true;
        isRestrictedBrandTicker["house"] = true;
        isRestrictedBrandTicker["poly"] = true;
        isRestrictedBrandTicker["wolf"] = true;
        isRestrictedBrandTicker["elevt"] = true;
        isRestrictedBrandTicker["mynt"] = true;
        isRestrictedBrandTicker["club"] = true;
        isRestrictedBrandTicker["impfi"] = true;
        isRestrictedBrandTicker["colab"] = true;
        isRestrictedBrandTicker["cland"] = true;

        startBlock = _startBlock;

        // auto calculate end block
        endBlock = startBlock + TOTAL_AUCTION_LENGTH_IN_BLOCKS;

        shbToken = _shbToken;

        emit Deployed();
    }

    /// @notice Once all auctions are open, anyone can bid for a 3-5 letter ticker using SHB tokens
    /// @notice Daily limits for number of tickers that can be auctioned
    /// @notice Only 26 letters of the English alphabet is permitted
    /// @notice A lowercase version is stored but a display version could be stored later. Off chain it would be better to be uppercase
    /// @param _ticker Ticker string that either has an active auction or not
    /// @param _shbBidAmount Bid amount in SHB for the ticker
    function bidForTicker(string calldata _ticker, uint256 _shbBidAmount) external {
        require(_blockNumber() > startBlock, "Auctions not started");
        require(bytes(_ticker).length >= 3 && bytes(_ticker).length <= 5, "Must be between 3-5 characters");

        string memory lowerBrandTicker = _toLowerCase(_ticker);
        require(!isRestrictedBrandTicker[lowerBrandTicker], "Cannot bid for restricted ticker");

        Auction storage auction = auctions[lowerBrandTicker];

        // ensure first bid and increments go up by minimum stated by minBid() function
        if (auction.shbBid == 0) {
            require(_shbBidAmount >= minBid(), "Min bid step not reached");
        } else {
            require(_shbBidAmount >= (auction.shbBid + BID_STEP), "Min bid step not reached");

            // refund previous bidder
            shbToken.transfer(auction.bidder, auction.shbBid);
        }

        auction.shbBid = _shbBidAmount;
        auction.bidder = msg.sender;

        // For the first bid, start a countdown timer. Otherwise, if near the end of the auction, go into sudden death.
        bool hasCountdownStarted = auction.biddingEnd != 0;
        if (!hasCountdownStarted) {
            auction.biddingEnd = _blockNumber() + BLOCKS_PER_DAY;

            uint256 _currentDayOfAuction = currentDayOfAuction();
            require(numberOfTickersBeingAuctioned + 1 <= MAX_TICKERS_BEING_AUCTIONED, "Max exceeded");
            require(
                tickersAuctionedOnDay[_currentDayOfAuction] + 1 <= NUM_OF_TICKER_PROPOSALS_PER_DAY,
                "Daily ticker allowance exceeded"
            );
            require(_blockNumber() < endBlock, "All auctions have ended");

            numberOfTickersBeingAuctioned += 1;
            tickersAuctionedOnDay[_currentDayOfAuction] += 1;
        } else {
            require(_blockNumber() < auction.biddingEnd, "Past bidding period for ticker");
            bool isNearEndOfBidding = _blockNumber() > auction.biddingEnd - (BID_EXTENSION_IN_BLOCKS * 2);

            // extend the auction for the ticker if someone is outbidding near the end
            if (isNearEndOfBidding) {
                auction.biddingEnd = auction.biddingEnd + BID_EXTENSION_IN_BLOCKS;
                emit AuctionForTickerExtended(lowerBrandTicker, auction.biddingEnd);
            }
        }

        // Transfer SHB to this contract to be attached to minted NFT
        shbToken.transferFrom(msg.sender, address(this), _shbBidAmount);

        emit BidReceived(lowerBrandTicker, _shbBidAmount);
    }

    /// @notice Winner of the NFT ticker auction can come and claim their composable NFT
    /// @param _ticker Brand ticker the winner won in the auction
    function claimNFT(string calldata _ticker) external {
        string memory lowerBrandTicker = _toLowerCase(_ticker);

        Auction storage auction = auctions[lowerBrandTicker];

        require(msg.sender == auction.bidder, "Only winner");
        require(_blockNumber() > auction.biddingEnd, "Bidding not yet ended");
        require(lowerTickerToTokenId[lowerBrandTicker] == 0, "Token already minted");

        // Increase total supply and use as the next token ID
        totalSupply += 1;

        // Set up the ticker <> token ID mappings
        tokenIdToLowerTicker[totalSupply] = lowerBrandTicker;
        lowerTickerToTokenId[lowerBrandTicker] = totalSupply;

        // Mint the token to the winner
        _mint(msg.sender, totalSupply);

        emit TokenClaimed(lowerBrandTicker, totalSupply);
    }

    /// @notice Once SHB claims are open, the owner of an NFT will be able to claim the underlying SHB from the auction
    function claimSHB(uint256 _tokenId) external {
        require(ownerOf(_tokenId) == msg.sender, "Only token owner");

        Auction storage auction = auctions[tokenIdToLowerTicker[_tokenId]];
        require(!auction.shbClaimed, "SHB claimed");
        require(shbClaimBlock > 0, "SHB claim block not set");
        require(_blockNumber() >= shbClaimBlock, "SHB claim block not reached");

        auction.shbClaimed = true;

        shbToken.transfer(msg.sender, auction.shbBid);
    }

    /// @dev Contract owner can set SHB claim block
    function setSHBClaimBlock(uint256 _blockNum) external onlyOwner {
        shbClaimBlock = _blockNum;
    }

    /// @notice Token owner can set their own token URI unleashing their creativity
    function setTokenUri(uint256 _tokenId, string calldata _uri) external {
        require(ownerOf(_tokenId) == msg.sender, "Only owner");
        _tokenUris[_tokenId] = _uri;
        emit URIUpdated(_tokenId);
    }

    /// @notice returns the token URI for a given token
    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        return _tokenUris[_tokenId];
    }

    /// @notice Based on the start block and auction length in days, returns the current day of the auction
    function currentDayOfAuction() public view returns (uint256) {
        if (_blockNumber() < startBlock) {
            return 1;
        }

        uint256 day;

        for(uint i = 0; i < AUCTION_LENGTH_IN_DAYS; i++) {
            day += 1;

            uint256 lastBlockOfTheDay = startBlock + (day * BLOCKS_PER_DAY);

            if (_blockNumber() < lastBlockOfTheDay) {
                break;
            }
        }

        return day;
    }

    /// @notice Based on the current day of the auction, returns the minimum SHB bid
    function minBid() public view returns (uint256) {
        return (2 ** currentDayOfAuction()) * 10 ** 18;
    }

    /// @notice Returns the current blocknumber which can be overriden by the testing contract
    function _blockNumber() internal virtual view returns (uint256) {
        return block.number;
    }

    /// @notice Converts a string to lowercase and validates characters
    function _toLowerCase(string memory _base) private pure returns (string memory) {
        bytes memory bStr = bytes(_base);
        bytes memory bLower = new bytes(bStr.length);
        for (uint i = 0; i < bStr.length; i++) {
            if ((bStr[i] >= 0x41) && (bStr[i] <= 0x5A)) {
                bLower[i] = bytes1(uint8(bStr[i]) + 32);
            } else {
                require(bStr[i] >= 0x61 && bStr[i] <= 0x7A, "Name can only contain the 26 letters of the roman alphabet");
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }
}

File 2 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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);
}

File 4 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 13 : IBrandCentralClaimAuction.sol
pragma solidity 0.8.7;

// SPDX-License-Identifier: MIT

interface IBrandCentralClaimAuction {
    function tokenIdToLowerTicker(uint256 _tokenId) external view returns (string memory);
    function lowerTickerToTokenId(string calldata _lowerTicker) external view returns (uint256);
    function isRestrictedBrandTicker(string calldata _lowerTicker) external view returns (bool);
}

File 6 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

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;
}

File 7 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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);
}

File 8 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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);
            }
        }
    }
}

File 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

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);
    }
}

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"contract IERC20","name":"_shbToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"lowerticker","type":"string"},{"indexed":false,"internalType":"uint256","name":"newAuctionEndBlock","type":"uint256"}],"name":"AuctionForTickerExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"lowerticker","type":"string"},{"indexed":false,"internalType":"uint256","name":"shbAmount","type":"uint256"}],"name":"BidReceived","type":"event"},{"anonymous":false,"inputs":[],"name":"Deployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"lowerticker","type":"string"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"URIUpdated","type":"event"},{"inputs":[],"name":"AUCTION_LENGTH_IN_DAYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BID_EXTENSION_IN_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BID_STEP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BLOCKS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TICKERS_BEING_AUCTIONED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_OF_TICKER_PROPOSALS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDS_PER_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_AUCTION_LENGTH_IN_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"auctions","outputs":[{"internalType":"uint256","name":"shbBid","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"biddingEnd","type":"uint256"},{"internalType":"bool","name":"shbClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_ticker","type":"string"},{"internalType":"uint256","name":"_shbBidAmount","type":"uint256"}],"name":"bidForTicker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ticker","type":"string"}],"name":"claimNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimSHB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentDayOfAuction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"isRestrictedBrandTicker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"lowerTickerToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfTickersBeingAuctioned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNum","type":"uint256"}],"name":"setSHBClaimBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shbClaimBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shbToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tickersAuctionedOnDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToLowerTicker","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002f7f38038062002f7f833981016040819052620000349162000454565b604080518082018252601481527f4272616e6443656e7472616c436c61696d4e465400000000000000000000000060208083019182528351808501909452600684526518d4d213919560d21b9084015281519192916200009791600091620003ae565b508051620000ad906001906020840190620003ae565b505050620000ca620000c46200035860201b60201c565b6200035c565b6001600b604051620000e590623139b760e91b815260030190565b90815260408051918290036020018220805493151560ff199485161790556331b139b760e11b8252600b6004808401829052825193849003602490810185208054871660019081179091556319185c9d60e21b86528583018490528451958690038201862080548816821790556439b0bb32b960d91b865260058087018590528551968790036025908101882080548a1684179055647374616b6560d81b88528782018690528651978890038101882080548a168417905564686f75736560d81b88528782018690528651978890038101882080548a168417905563706f6c7960e01b88528785018690528651978890038401882080548a1684179055633bb7b63360e11b88528785018690528651978890038401882080548a168417905564195b195d9d60da1b88528782018690528651978890038101882080548a1684179055631b5e5b9d60e21b88528785018690528651978890038401882080548a16841790556331b63ab160e11b88529387018590528551968790039092018620805488168217905564696d70666960d81b86528582018490528451958690038301862080548816821790556431b7b630b160d91b86528582018490528451958690038301862080548816821790556418db185b9960da1b865285820193909352925193849003019092208054909316909117909155600c839055620002ee600d62015180620004ae565b620002fa9190620004d1565b600c5462000309919062000493565b600d55600f80546001600160a01b0319166001600160a01b0383161790556040517f3fad920548ed9f22deb8333b4cc1e4f9bc36666a1c2aa30ad59a0a3bb9dcbb9290600090a1505062000546565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620003bc90620004f3565b90600052602060002090601f016020900481019282620003e057600085556200042b565b82601f10620003fb57805160ff19168380011785556200042b565b828001600101855582156200042b579182015b828111156200042b5782518255916020019190600101906200040e565b50620004399291506200043d565b5090565b5b808211156200043957600081556001016200043e565b600080604083850312156200046857600080fd5b825160208401519092506001600160a01b03811681146200048857600080fd5b809150509250929050565b60008219821115620004a957620004a962000530565b500190565b600082620004cc57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615620004ee57620004ee62000530565b500290565b600181811c908216806200050857607f821691505b602082108114156200052a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b612a2980620005566000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c80638919b60611610146578063bbafb50f116100c3578063cea211cf11610087578063cea211cf1461054c578063e121a5e41461055f578063e985e9c514610567578063ed760eae1461057a578063f2fde38b1461058d578063f4cf4d54146105a057600080fd5b8063bbafb50f14610507578063bbf4839f1461051a578063bdbef16d14610522578063c1d7425814610531578063c87b56dd1461053957600080fd5b806395d89b411161010a57806395d89b411461044f578063a190e7bd14610457578063a22cb4651461046a578063b76b16181461047d578063b88d4fde146104f457600080fd5b80638919b606146103f75780638caaf132146103ff5780638da5cb5b1461040757806390e63cc714610418578063936b38621461044657600080fd5b806342842e0e116101df57806366dbae35116101a357806366dbae3514610380578063699b0e24146103ab5780636bb987fe146103b457806370a08231146103bc578063715018a6146103cf57806384a39bed146103d757600080fd5b806342842e0e1461033657806348cd4cb11461034957806354812e721461035257806357f7789e1461035a5780636352211e1461036d57600080fd5b8063117207561161022657806311720756146102f757806318160ddd1461030a57806323b872dd1461031357806334ba35e5146103265780633e109a191461032e57600080fd5b806301ffc9a71461026357806306fdde031461028b578063081812fc146102a0578063083c6323146102cb578063095ea7b3146102e2575b600080fd5b6102766102713660046123ed565b6105b3565b60405190151581526020015b60405180910390f35b610293610605565b6040516102829190612684565b6102b36102ae3660046124fe565b610697565b6040516001600160a01b039091168152602001610282565b6102d4600d5481565b604051908152602001610282565b6102f56102f03660046123a6565b610731565b005b6102f5610305366004612427565b610847565b6102d460125481565b6102f56103213660046122b7565b610a56565b6102d4600a81565b6102d4610a87565b6102f56103443660046122b7565b610ab3565b6102d4600c5481565b6102d4603281565b6102f5610368366004612517565b610ace565b6102b361037b3660046124fe565b610b65565b6102d461038e3660046124b5565b8051602081830181018051600a8252928201919093012091525481565b6102d460105481565b6102d4610bdc565b6102d46103ca366004612262565b610bed565b6102f5610c74565b6102d46103e53660046124fe565b60116020526000908152604090205481565b6102d4600581565b6102d4610caa565b6006546001600160a01b03166102b3565b6102766104263660046124b5565b8051602081830181018051600b8252928201919093012091525460ff1681565b6102d4600e5481565b610293610cc4565b6102936104653660046124fe565b610cd3565b6102f561047836600461236f565b610d6d565b6104ca61048b3660046124b5565b8051602081830181018051600882529282019190930120915280546001820154600283015460039093015491926001600160a01b039091169160ff1684565b604080519485526001600160a01b0390931660208501529183015215156060820152608001610282565b6102f56105023660046122f3565b610e32565b6102f56105153660046124fe565b610e6a565b6102d4610e99565b6102d4671bc16d674ec8000081565b6102d4600d81565b6102936105473660046124fe565b610f1b565b6102f561055a366004612469565b610fbd565b6102d4606481565b610276610575366004612284565b6115b8565b600f546102b3906001600160a01b031681565b6102f561059b366004612262565b6115e6565b6102f56105ae3660046124fe565b611681565b60006001600160e01b031982166380ac58cd60e01b14806105e457506001600160e01b03198216635b5e139f60e01b145b806105ff57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106149061293d565b80601f01602080910402602001604051908101604052809291908181526020018280546106409061293d565b801561068d5780601f106106625761010080835404028352916020019161068d565b820191906000526020600020905b81548152906001019060200180831161067057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061073c82610b65565b9050806001600160a01b0316836001600160a01b031614156107aa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161070c565b336001600160a01b03821614806107c657506107c681336115b8565b6108385760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161070c565b6108428383611880565b505050565b600061088883838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118ee92505050565b9050600060088260405161089c919061258f565b9081526040519081900360200190206001810154909150336001600160a01b03909116146108fa5760405162461bcd60e51b815260206004820152600b60248201526a27b7363c903bb4b73732b960a91b604482015260640161070c565b600281015443116109455760405162461bcd60e51b8152602060048201526015602482015274109a59191a5b99c81b9bdd081e595d08195b991959605a1b604482015260640161070c565b600a82604051610955919061258f565b9081526020016040518091039020546000146109aa5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b604482015260640161070c565b6001601260008282546109bd9190612791565b9091555050601254600090815260096020908152604090912083516109e49285019061207a565b50601254600a836040516109f8919061258f565b908152602001604051809103902081905550610a1633601254611b2f565b6012547f25651dcbc35b5fe391b2fe5ba82d5830a2cb25f3f2e51d10563ba61f4246a31e83604051610a489190612684565b60405180910390a250505050565b610a603382611c71565b610a7c5760405162461bcd60e51b815260040161070c90612740565b610842838383611d48565b6000610a91610e99565b610a9c906002612833565b610aae90670de0b6b3a76400006128db565b905090565b61084283838360405180602001604052806000815250610e32565b33610ad884610b65565b6001600160a01b031614610b1b5760405162461bcd60e51b815260206004820152600a60248201526927b7363c9037bbb732b960b11b604482015260640161070c565b6000838152600760205260409020610b349083836120fe565b5060405183907f850c2c3c307c386ac3863b3eae2e398118d24175c7332bb7720256e8c894efd090600090a2505050565b6000818152600260205260408120546001600160a01b0316806105ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161070c565b610bea600d620151806127ce565b81565b60006001600160a01b038216610c585760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161070c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610c9e5760405162461bcd60e51b815260040161070c9061270b565b610ca86000611ee8565b565b6005610cba600d620151806127ce565b610bea91906128db565b6060600180546106149061293d565b60096020526000908152604090208054610cec9061293d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d189061293d565b8015610d655780601f10610d3a57610100808354040283529160200191610d65565b820191906000526020600020905b815481529060010190602001808311610d4857829003601f168201915b505050505081565b6001600160a01b038216331415610dc65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161070c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e3c3383611c71565b610e585760405162461bcd60e51b815260040161070c90612740565b610e6484848484611f3a565b50505050565b6006546001600160a01b03163314610e945760405162461bcd60e51b815260040161070c9061270b565b600e55565b6000600c54610ea54390565b1015610eb15750600190565b6000805b6005811015610f1557610ec9600183612791565b91506000610edb600d620151806127ce565b610ee590846128db565b600c54610ef29190612791565b905080431015610f025750610f15565b5080610f0d81612972565b915050610eb5565b50919050565b6000818152600760205260409020805460609190610f389061293d565b80601f0160208091040260200160405190810160405280929190818152602001828054610f649061293d565b8015610fb15780601f10610f8657610100808354040283529160200191610fb1565b820191906000526020600020905b815481529060010190602001808311610f9457829003601f168201915b50505050509050919050565b600c5443116110055760405162461bcd60e51b8152602060048201526014602482015273105d58dd1a5bdb9cc81b9bdd081cdd185c9d195960621b604482015260640161070c565b60038210801590611017575060058211155b6110635760405162461bcd60e51b815260206004820152601e60248201527f4d757374206265206265747765656e20332d3520636861726163746572730000604482015260640161070c565b60006110a484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118ee92505050565b9050600b816040516110b6919061258f565b9081526040519081900360200190205460ff16156111165760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f742062696420666f722072657374726963746564207469636b6572604482015260640161070c565b6000600882604051611128919061258f565b908152604051908190036020019020805490915061119757611148610a87565b8310156111925760405162461bcd60e51b8152602060048201526018602482015277135a5b88189a59081cdd195c081b9bdd081c995858da195960421b604482015260640161070c565b611285565b80546111ac90671bc16d674ec8000090612791565b8310156111f65760405162461bcd60e51b8152602060048201526018602482015277135a5b88189a59081cdd195c081b9bdd081c995858da195960421b604482015260640161070c565b600f546001820154825460405163a9059cbb60e01b81526001600160a01b039283166004820152602481019190915291169063a9059cbb90604401602060405180830381600087803b15801561124b57600080fd5b505af115801561125f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128391906123d0565b505b8281556001810180546001600160a01b03191633179055600281015415158061141e576112b6600d620151806127ce565b6112c09043612791565b600283015560006112cf610e99565b9050603260105460016112e29190612791565b111561131f5760405162461bcd60e51b815260206004820152600c60248201526b13585e08195e18d95959195960a21b604482015260640161070c565b600081815260116020526040902054600a9061133c906001612791565b111561138a5760405162461bcd60e51b815260206004820152601f60248201527f4461696c79207469636b657220616c6c6f77616e636520657863656564656400604482015260640161070c565b600d5443106113db5760405162461bcd60e51b815260206004820152601760248201527f416c6c2061756374696f6e73206861766520656e646564000000000000000000604482015260640161070c565b6001601060008282546113ee9190612791565b90915550506000818152601160205260408120805460019290611412908490612791565b909155506114ec915050565b600282015443106114715760405162461bcd60e51b815260206004820152601e60248201527f506173742062696464696e6720706572696f6420666f72207469636b65720000604482015260640161070c565b600061147f606460026128db565b836002015461148e91906128fa565b4311905080156114ea57606483600201546114a99190612791565b600284018190556040517fb36bca0e247686120b0735990aebf7ce65078d43c3d3cb03a2fdf268ba639e09916114e191879190612697565b60405180910390a15b505b600f546040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561153e57600080fd5b505af1158015611552573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157691906123d0565b507f92b9d3f831026e3be9ca93b62d4b0519dd6cadc85b52df8fd62a76cdffda00a683856040516115a8929190612697565b60405180910390a1505050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146116105760405162461bcd60e51b815260040161070c9061270b565b6001600160a01b0381166116755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161070c565b61167e81611ee8565b50565b3361168b82610b65565b6001600160a01b0316146116d45760405162461bcd60e51b815260206004820152601060248201526f27b7363c903a37b5b2b71037bbb732b960811b604482015260640161070c565b60008181526009602052604080822090516008916116f1916125ab565b908152604051908190036020019020600381015490915060ff16156117465760405162461bcd60e51b815260206004820152600b60248201526a14d2108818db185a5b595960aa1b604482015260640161070c565b6000600e54116117985760405162461bcd60e51b815260206004820152601760248201527f53484220636c61696d20626c6f636b206e6f7420736574000000000000000000604482015260640161070c565b600e544310156117ea5760405162461bcd60e51b815260206004820152601b60248201527f53484220636c61696d20626c6f636b206e6f7420726561636865640000000000604482015260640161070c565b60038101805460ff19166001179055600f54815460405163a9059cbb60e01b815233600482015260248101919091526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561184857600080fd5b505af115801561185c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084291906123d0565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b582610b65565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060008290506000815167ffffffffffffffff811115611911576119116129b9565b6040519080825280601f01601f19166020018201604052801561193b576020820181803683370190505b50905060005b8251811015611b2757604160f81b838281518110611961576119616129a3565b01602001516001600160f81b031916108015906119a25750605a60f81b838281518110611990576119906129a3565b01602001516001600160f81b03191611155b15611a04578281815181106119b9576119b96129a3565b602001015160f81c60f81b60f81c60206119d391906127a9565b60f81b8282815181106119e8576119e86129a3565b60200101906001600160f81b031916908160001a905350611b15565b606160f81b838281518110611a1b57611a1b6129a3565b01602001516001600160f81b03191610801590611a5c5750607a60f81b838281518110611a4a57611a4a6129a3565b01602001516001600160f81b03191611155b611ace5760405162461bcd60e51b815260206004820152603a60248201527f4e616d652063616e206f6e6c7920636f6e7461696e20746865203236206c657460448201527f74657273206f662074686520726f6d616e20616c706861626574000000000000606482015260840161070c565b828181518110611ae057611ae06129a3565b602001015160f81c60f81b828281518110611afd57611afd6129a3565b60200101906001600160f81b031916908160001a9053505b80611b1f81612972565b915050611941565b509392505050565b6001600160a01b038216611b855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161070c565b6000818152600260205260409020546001600160a01b031615611bea5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161070c565b6001600160a01b0382166000908152600360205260408120805460019290611c13908490612791565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316611cea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161070c565b6000611cf583610b65565b9050806001600160a01b0316846001600160a01b03161480611d305750836001600160a01b0316611d2584610697565b6001600160a01b0316145b80611d405750611d4081856115b8565b949350505050565b826001600160a01b0316611d5b82610b65565b6001600160a01b031614611dc35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161070c565b6001600160a01b038216611e255760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161070c565b611e30600082611880565b6001600160a01b0383166000908152600360205260408120805460019290611e599084906128fa565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e87908490612791565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f45848484611d48565b611f5184848484611f6d565b610e645760405162461bcd60e51b815260040161070c906126b9565b60006001600160a01b0384163b1561206f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fb1903390899088908890600401612647565b602060405180830381600087803b158015611fcb57600080fd5b505af1925050508015611ffb575060408051601f3d908101601f19168201909252611ff89181019061240a565b60015b612055573d808015612029576040519150601f19603f3d011682016040523d82523d6000602084013e61202e565b606091505b50805161204d5760405162461bcd60e51b815260040161070c906126b9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d40565b506001949350505050565b8280546120869061293d565b90600052602060002090601f0160209004810192826120a857600085556120ee565b82601f106120c157805160ff19168380011785556120ee565b828001600101855582156120ee579182015b828111156120ee5782518255916020019190600101906120d3565b506120fa929150612172565b5090565b82805461210a9061293d565b90600052602060002090601f01602090048101928261212c57600085556120ee565b82601f106121455782800160ff198235161785556120ee565b828001600101855582156120ee579182015b828111156120ee578235825591602001919060010190612157565b5b808211156120fa5760008155600101612173565b600067ffffffffffffffff808411156121a2576121a26129b9565b604051601f8501601f19908116603f011681019082821181831017156121ca576121ca6129b9565b816040528093508581528686860111156121e357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461221457600080fd5b919050565b60008083601f84011261222b57600080fd5b50813567ffffffffffffffff81111561224357600080fd5b60208301915083602082850101111561225b57600080fd5b9250929050565b60006020828403121561227457600080fd5b61227d826121fd565b9392505050565b6000806040838503121561229757600080fd5b6122a0836121fd565b91506122ae602084016121fd565b90509250929050565b6000806000606084860312156122cc57600080fd5b6122d5846121fd565b92506122e3602085016121fd565b9150604084013590509250925092565b6000806000806080858703121561230957600080fd5b612312856121fd565b9350612320602086016121fd565b925060408501359150606085013567ffffffffffffffff81111561234357600080fd5b8501601f8101871361235457600080fd5b61236387823560208401612187565b91505092959194509250565b6000806040838503121561238257600080fd5b61238b836121fd565b9150602083013561239b816129cf565b809150509250929050565b600080604083850312156123b957600080fd5b6123c2836121fd565b946020939093013593505050565b6000602082840312156123e257600080fd5b815161227d816129cf565b6000602082840312156123ff57600080fd5b813561227d816129dd565b60006020828403121561241c57600080fd5b815161227d816129dd565b6000806020838503121561243a57600080fd5b823567ffffffffffffffff81111561245157600080fd5b61245d85828601612219565b90969095509350505050565b60008060006040848603121561247e57600080fd5b833567ffffffffffffffff81111561249557600080fd5b6124a186828701612219565b909790965060209590950135949350505050565b6000602082840312156124c757600080fd5b813567ffffffffffffffff8111156124de57600080fd5b8201601f810184136124ef57600080fd5b611d4084823560208401612187565b60006020828403121561251057600080fd5b5035919050565b60008060006040848603121561252c57600080fd5b83359250602084013567ffffffffffffffff81111561254a57600080fd5b61255686828701612219565b9497909650939450505050565b6000815180845261257b816020860160208601612911565b601f01601f19169290920160200192915050565b600082516125a1818460208701612911565b9190910192915050565b600080835481600182811c9150808316806125c757607f831692505b60208084108214156125e757634e487b7160e01b86526022600452602486fd5b8180156125fb576001811461260c57612639565b60ff19861689528489019650612639565b60008a81526020902060005b868110156126315781548b820152908501908301612618565b505084890196505b509498975050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267a90830184612563565b9695505050505050565b60208152600061227d6020830184612563565b6040815260006126aa6040830185612563565b90508260208301529392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156127a4576127a461298d565b500190565b600060ff821660ff84168060ff038211156127c6576127c661298d565b019392505050565b6000826127eb57634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561282b5781600019048211156128115761281161298d565b8085161561281e57918102915b93841c93908002906127f5565b509250929050565b600061227d8383600082612849575060016105ff565b81612856575060006105ff565b816001811461286c576002811461287657612892565b60019150506105ff565b60ff8411156128875761288761298d565b50506001821b6105ff565b5060208310610133831016604e8410600b84101617156128b5575081810a6105ff565b6128bf83836127f0565b80600019048211156128d3576128d361298d565b029392505050565b60008160001904831182151516156128f5576128f561298d565b500290565b60008282101561290c5761290c61298d565b500390565b60005b8381101561292c578181015183820152602001612914565b83811115610e645750506000910152565b600181811c9082168061295157607f821691505b60208210811415610f1557634e487b7160e01b600052602260045260246000fd5b60006000198214156129865761298661298d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461167e57600080fd5b6001600160e01b03198116811461167e57600080fdfea26469706673582212209d025d7b0de89202aa84bfccf5cc65b911cb57aa58181acce33c84be9b17404264736f6c634300080700330000000000000000000000000000000000000000000000000000000000cc88af0000000000000000000000007c3e3bdcec89a3f706c9a02797ec427ffa596787

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025e5760003560e01c80638919b60611610146578063bbafb50f116100c3578063cea211cf11610087578063cea211cf1461054c578063e121a5e41461055f578063e985e9c514610567578063ed760eae1461057a578063f2fde38b1461058d578063f4cf4d54146105a057600080fd5b8063bbafb50f14610507578063bbf4839f1461051a578063bdbef16d14610522578063c1d7425814610531578063c87b56dd1461053957600080fd5b806395d89b411161010a57806395d89b411461044f578063a190e7bd14610457578063a22cb4651461046a578063b76b16181461047d578063b88d4fde146104f457600080fd5b80638919b606146103f75780638caaf132146103ff5780638da5cb5b1461040757806390e63cc714610418578063936b38621461044657600080fd5b806342842e0e116101df57806366dbae35116101a357806366dbae3514610380578063699b0e24146103ab5780636bb987fe146103b457806370a08231146103bc578063715018a6146103cf57806384a39bed146103d757600080fd5b806342842e0e1461033657806348cd4cb11461034957806354812e721461035257806357f7789e1461035a5780636352211e1461036d57600080fd5b8063117207561161022657806311720756146102f757806318160ddd1461030a57806323b872dd1461031357806334ba35e5146103265780633e109a191461032e57600080fd5b806301ffc9a71461026357806306fdde031461028b578063081812fc146102a0578063083c6323146102cb578063095ea7b3146102e2575b600080fd5b6102766102713660046123ed565b6105b3565b60405190151581526020015b60405180910390f35b610293610605565b6040516102829190612684565b6102b36102ae3660046124fe565b610697565b6040516001600160a01b039091168152602001610282565b6102d4600d5481565b604051908152602001610282565b6102f56102f03660046123a6565b610731565b005b6102f5610305366004612427565b610847565b6102d460125481565b6102f56103213660046122b7565b610a56565b6102d4600a81565b6102d4610a87565b6102f56103443660046122b7565b610ab3565b6102d4600c5481565b6102d4603281565b6102f5610368366004612517565b610ace565b6102b361037b3660046124fe565b610b65565b6102d461038e3660046124b5565b8051602081830181018051600a8252928201919093012091525481565b6102d460105481565b6102d4610bdc565b6102d46103ca366004612262565b610bed565b6102f5610c74565b6102d46103e53660046124fe565b60116020526000908152604090205481565b6102d4600581565b6102d4610caa565b6006546001600160a01b03166102b3565b6102766104263660046124b5565b8051602081830181018051600b8252928201919093012091525460ff1681565b6102d4600e5481565b610293610cc4565b6102936104653660046124fe565b610cd3565b6102f561047836600461236f565b610d6d565b6104ca61048b3660046124b5565b8051602081830181018051600882529282019190930120915280546001820154600283015460039093015491926001600160a01b039091169160ff1684565b604080519485526001600160a01b0390931660208501529183015215156060820152608001610282565b6102f56105023660046122f3565b610e32565b6102f56105153660046124fe565b610e6a565b6102d4610e99565b6102d4671bc16d674ec8000081565b6102d4600d81565b6102936105473660046124fe565b610f1b565b6102f561055a366004612469565b610fbd565b6102d4606481565b610276610575366004612284565b6115b8565b600f546102b3906001600160a01b031681565b6102f561059b366004612262565b6115e6565b6102f56105ae3660046124fe565b611681565b60006001600160e01b031982166380ac58cd60e01b14806105e457506001600160e01b03198216635b5e139f60e01b145b806105ff57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106149061293d565b80601f01602080910402602001604051908101604052809291908181526020018280546106409061293d565b801561068d5780601f106106625761010080835404028352916020019161068d565b820191906000526020600020905b81548152906001019060200180831161067057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061073c82610b65565b9050806001600160a01b0316836001600160a01b031614156107aa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161070c565b336001600160a01b03821614806107c657506107c681336115b8565b6108385760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161070c565b6108428383611880565b505050565b600061088883838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118ee92505050565b9050600060088260405161089c919061258f565b9081526040519081900360200190206001810154909150336001600160a01b03909116146108fa5760405162461bcd60e51b815260206004820152600b60248201526a27b7363c903bb4b73732b960a91b604482015260640161070c565b600281015443116109455760405162461bcd60e51b8152602060048201526015602482015274109a59191a5b99c81b9bdd081e595d08195b991959605a1b604482015260640161070c565b600a82604051610955919061258f565b9081526020016040518091039020546000146109aa5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b604482015260640161070c565b6001601260008282546109bd9190612791565b9091555050601254600090815260096020908152604090912083516109e49285019061207a565b50601254600a836040516109f8919061258f565b908152602001604051809103902081905550610a1633601254611b2f565b6012547f25651dcbc35b5fe391b2fe5ba82d5830a2cb25f3f2e51d10563ba61f4246a31e83604051610a489190612684565b60405180910390a250505050565b610a603382611c71565b610a7c5760405162461bcd60e51b815260040161070c90612740565b610842838383611d48565b6000610a91610e99565b610a9c906002612833565b610aae90670de0b6b3a76400006128db565b905090565b61084283838360405180602001604052806000815250610e32565b33610ad884610b65565b6001600160a01b031614610b1b5760405162461bcd60e51b815260206004820152600a60248201526927b7363c9037bbb732b960b11b604482015260640161070c565b6000838152600760205260409020610b349083836120fe565b5060405183907f850c2c3c307c386ac3863b3eae2e398118d24175c7332bb7720256e8c894efd090600090a2505050565b6000818152600260205260408120546001600160a01b0316806105ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161070c565b610bea600d620151806127ce565b81565b60006001600160a01b038216610c585760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161070c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610c9e5760405162461bcd60e51b815260040161070c9061270b565b610ca86000611ee8565b565b6005610cba600d620151806127ce565b610bea91906128db565b6060600180546106149061293d565b60096020526000908152604090208054610cec9061293d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d189061293d565b8015610d655780601f10610d3a57610100808354040283529160200191610d65565b820191906000526020600020905b815481529060010190602001808311610d4857829003601f168201915b505050505081565b6001600160a01b038216331415610dc65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161070c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e3c3383611c71565b610e585760405162461bcd60e51b815260040161070c90612740565b610e6484848484611f3a565b50505050565b6006546001600160a01b03163314610e945760405162461bcd60e51b815260040161070c9061270b565b600e55565b6000600c54610ea54390565b1015610eb15750600190565b6000805b6005811015610f1557610ec9600183612791565b91506000610edb600d620151806127ce565b610ee590846128db565b600c54610ef29190612791565b905080431015610f025750610f15565b5080610f0d81612972565b915050610eb5565b50919050565b6000818152600760205260409020805460609190610f389061293d565b80601f0160208091040260200160405190810160405280929190818152602001828054610f649061293d565b8015610fb15780601f10610f8657610100808354040283529160200191610fb1565b820191906000526020600020905b815481529060010190602001808311610f9457829003601f168201915b50505050509050919050565b600c5443116110055760405162461bcd60e51b8152602060048201526014602482015273105d58dd1a5bdb9cc81b9bdd081cdd185c9d195960621b604482015260640161070c565b60038210801590611017575060058211155b6110635760405162461bcd60e51b815260206004820152601e60248201527f4d757374206265206265747765656e20332d3520636861726163746572730000604482015260640161070c565b60006110a484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506118ee92505050565b9050600b816040516110b6919061258f565b9081526040519081900360200190205460ff16156111165760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f742062696420666f722072657374726963746564207469636b6572604482015260640161070c565b6000600882604051611128919061258f565b908152604051908190036020019020805490915061119757611148610a87565b8310156111925760405162461bcd60e51b8152602060048201526018602482015277135a5b88189a59081cdd195c081b9bdd081c995858da195960421b604482015260640161070c565b611285565b80546111ac90671bc16d674ec8000090612791565b8310156111f65760405162461bcd60e51b8152602060048201526018602482015277135a5b88189a59081cdd195c081b9bdd081c995858da195960421b604482015260640161070c565b600f546001820154825460405163a9059cbb60e01b81526001600160a01b039283166004820152602481019190915291169063a9059cbb90604401602060405180830381600087803b15801561124b57600080fd5b505af115801561125f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128391906123d0565b505b8281556001810180546001600160a01b03191633179055600281015415158061141e576112b6600d620151806127ce565b6112c09043612791565b600283015560006112cf610e99565b9050603260105460016112e29190612791565b111561131f5760405162461bcd60e51b815260206004820152600c60248201526b13585e08195e18d95959195960a21b604482015260640161070c565b600081815260116020526040902054600a9061133c906001612791565b111561138a5760405162461bcd60e51b815260206004820152601f60248201527f4461696c79207469636b657220616c6c6f77616e636520657863656564656400604482015260640161070c565b600d5443106113db5760405162461bcd60e51b815260206004820152601760248201527f416c6c2061756374696f6e73206861766520656e646564000000000000000000604482015260640161070c565b6001601060008282546113ee9190612791565b90915550506000818152601160205260408120805460019290611412908490612791565b909155506114ec915050565b600282015443106114715760405162461bcd60e51b815260206004820152601e60248201527f506173742062696464696e6720706572696f6420666f72207469636b65720000604482015260640161070c565b600061147f606460026128db565b836002015461148e91906128fa565b4311905080156114ea57606483600201546114a99190612791565b600284018190556040517fb36bca0e247686120b0735990aebf7ce65078d43c3d3cb03a2fdf268ba639e09916114e191879190612697565b60405180910390a15b505b600f546040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561153e57600080fd5b505af1158015611552573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157691906123d0565b507f92b9d3f831026e3be9ca93b62d4b0519dd6cadc85b52df8fd62a76cdffda00a683856040516115a8929190612697565b60405180910390a1505050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146116105760405162461bcd60e51b815260040161070c9061270b565b6001600160a01b0381166116755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161070c565b61167e81611ee8565b50565b3361168b82610b65565b6001600160a01b0316146116d45760405162461bcd60e51b815260206004820152601060248201526f27b7363c903a37b5b2b71037bbb732b960811b604482015260640161070c565b60008181526009602052604080822090516008916116f1916125ab565b908152604051908190036020019020600381015490915060ff16156117465760405162461bcd60e51b815260206004820152600b60248201526a14d2108818db185a5b595960aa1b604482015260640161070c565b6000600e54116117985760405162461bcd60e51b815260206004820152601760248201527f53484220636c61696d20626c6f636b206e6f7420736574000000000000000000604482015260640161070c565b600e544310156117ea5760405162461bcd60e51b815260206004820152601b60248201527f53484220636c61696d20626c6f636b206e6f7420726561636865640000000000604482015260640161070c565b60038101805460ff19166001179055600f54815460405163a9059cbb60e01b815233600482015260248101919091526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561184857600080fd5b505af115801561185c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084291906123d0565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b582610b65565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060008290506000815167ffffffffffffffff811115611911576119116129b9565b6040519080825280601f01601f19166020018201604052801561193b576020820181803683370190505b50905060005b8251811015611b2757604160f81b838281518110611961576119616129a3565b01602001516001600160f81b031916108015906119a25750605a60f81b838281518110611990576119906129a3565b01602001516001600160f81b03191611155b15611a04578281815181106119b9576119b96129a3565b602001015160f81c60f81b60f81c60206119d391906127a9565b60f81b8282815181106119e8576119e86129a3565b60200101906001600160f81b031916908160001a905350611b15565b606160f81b838281518110611a1b57611a1b6129a3565b01602001516001600160f81b03191610801590611a5c5750607a60f81b838281518110611a4a57611a4a6129a3565b01602001516001600160f81b03191611155b611ace5760405162461bcd60e51b815260206004820152603a60248201527f4e616d652063616e206f6e6c7920636f6e7461696e20746865203236206c657460448201527f74657273206f662074686520726f6d616e20616c706861626574000000000000606482015260840161070c565b828181518110611ae057611ae06129a3565b602001015160f81c60f81b828281518110611afd57611afd6129a3565b60200101906001600160f81b031916908160001a9053505b80611b1f81612972565b915050611941565b509392505050565b6001600160a01b038216611b855760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161070c565b6000818152600260205260409020546001600160a01b031615611bea5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161070c565b6001600160a01b0382166000908152600360205260408120805460019290611c13908490612791565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316611cea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161070c565b6000611cf583610b65565b9050806001600160a01b0316846001600160a01b03161480611d305750836001600160a01b0316611d2584610697565b6001600160a01b0316145b80611d405750611d4081856115b8565b949350505050565b826001600160a01b0316611d5b82610b65565b6001600160a01b031614611dc35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161070c565b6001600160a01b038216611e255760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161070c565b611e30600082611880565b6001600160a01b0383166000908152600360205260408120805460019290611e599084906128fa565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e87908490612791565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f45848484611d48565b611f5184848484611f6d565b610e645760405162461bcd60e51b815260040161070c906126b9565b60006001600160a01b0384163b1561206f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611fb1903390899088908890600401612647565b602060405180830381600087803b158015611fcb57600080fd5b505af1925050508015611ffb575060408051601f3d908101601f19168201909252611ff89181019061240a565b60015b612055573d808015612029576040519150601f19603f3d011682016040523d82523d6000602084013e61202e565b606091505b50805161204d5760405162461bcd60e51b815260040161070c906126b9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d40565b506001949350505050565b8280546120869061293d565b90600052602060002090601f0160209004810192826120a857600085556120ee565b82601f106120c157805160ff19168380011785556120ee565b828001600101855582156120ee579182015b828111156120ee5782518255916020019190600101906120d3565b506120fa929150612172565b5090565b82805461210a9061293d565b90600052602060002090601f01602090048101928261212c57600085556120ee565b82601f106121455782800160ff198235161785556120ee565b828001600101855582156120ee579182015b828111156120ee578235825591602001919060010190612157565b5b808211156120fa5760008155600101612173565b600067ffffffffffffffff808411156121a2576121a26129b9565b604051601f8501601f19908116603f011681019082821181831017156121ca576121ca6129b9565b816040528093508581528686860111156121e357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461221457600080fd5b919050565b60008083601f84011261222b57600080fd5b50813567ffffffffffffffff81111561224357600080fd5b60208301915083602082850101111561225b57600080fd5b9250929050565b60006020828403121561227457600080fd5b61227d826121fd565b9392505050565b6000806040838503121561229757600080fd5b6122a0836121fd565b91506122ae602084016121fd565b90509250929050565b6000806000606084860312156122cc57600080fd5b6122d5846121fd565b92506122e3602085016121fd565b9150604084013590509250925092565b6000806000806080858703121561230957600080fd5b612312856121fd565b9350612320602086016121fd565b925060408501359150606085013567ffffffffffffffff81111561234357600080fd5b8501601f8101871361235457600080fd5b61236387823560208401612187565b91505092959194509250565b6000806040838503121561238257600080fd5b61238b836121fd565b9150602083013561239b816129cf565b809150509250929050565b600080604083850312156123b957600080fd5b6123c2836121fd565b946020939093013593505050565b6000602082840312156123e257600080fd5b815161227d816129cf565b6000602082840312156123ff57600080fd5b813561227d816129dd565b60006020828403121561241c57600080fd5b815161227d816129dd565b6000806020838503121561243a57600080fd5b823567ffffffffffffffff81111561245157600080fd5b61245d85828601612219565b90969095509350505050565b60008060006040848603121561247e57600080fd5b833567ffffffffffffffff81111561249557600080fd5b6124a186828701612219565b909790965060209590950135949350505050565b6000602082840312156124c757600080fd5b813567ffffffffffffffff8111156124de57600080fd5b8201601f810184136124ef57600080fd5b611d4084823560208401612187565b60006020828403121561251057600080fd5b5035919050565b60008060006040848603121561252c57600080fd5b83359250602084013567ffffffffffffffff81111561254a57600080fd5b61255686828701612219565b9497909650939450505050565b6000815180845261257b816020860160208601612911565b601f01601f19169290920160200192915050565b600082516125a1818460208701612911565b9190910192915050565b600080835481600182811c9150808316806125c757607f831692505b60208084108214156125e757634e487b7160e01b86526022600452602486fd5b8180156125fb576001811461260c57612639565b60ff19861689528489019650612639565b60008a81526020902060005b868110156126315781548b820152908501908301612618565b505084890196505b509498975050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267a90830184612563565b9695505050505050565b60208152600061227d6020830184612563565b6040815260006126aa6040830185612563565b90508260208301529392505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156127a4576127a461298d565b500190565b600060ff821660ff84168060ff038211156127c6576127c661298d565b019392505050565b6000826127eb57634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561282b5781600019048211156128115761281161298d565b8085161561281e57918102915b93841c93908002906127f5565b509250929050565b600061227d8383600082612849575060016105ff565b81612856575060006105ff565b816001811461286c576002811461287657612892565b60019150506105ff565b60ff8411156128875761288761298d565b50506001821b6105ff565b5060208310610133831016604e8410600b84101617156128b5575081810a6105ff565b6128bf83836127f0565b80600019048211156128d3576128d361298d565b029392505050565b60008160001904831182151516156128f5576128f561298d565b500290565b60008282101561290c5761290c61298d565b500390565b60005b8381101561292c578181015183820152602001612914565b83811115610e645750506000910152565b600181811c9082168061295157607f821691505b60208210811415610f1557634e487b7160e01b600052602260045260246000fd5b60006000198214156129865761298661298d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461167e57600080fd5b6001600160e01b03198116811461167e57600080fdfea26469706673582212209d025d7b0de89202aa84bfccf5cc65b911cb57aa58181acce33c84be9b17404264736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000cc88af0000000000000000000000007c3e3bdcec89a3f706c9a02797ec427ffa596787

-----Decoded View---------------
Arg [0] : _startBlock (uint256): 13404335
Arg [1] : _shbToken (address): 0x7c3E3bdCec89a3f706C9a02797EC427ffa596787

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000cc88af
Arg [1] : 0000000000000000000000007c3e3bdcec89a3f706c9a02797ec427ffa596787


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.