ETH Price: $3,481.65 (+1.96%)

Contract

0x25eF4D7F1D2706808D67a7Ecf577062B055aFD4E
 

Overview

ETH Balance

0.9809 ETH

Eth Value

$3,415.15 (@ $3,481.65/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Initialize Aucti...211296192024-11-06 15:51:3548 days ago1730908295IN
0x25eF4D7F...B055aFD4E
0.01 ETH0.000700424.42572905
Claim210716362024-10-29 13:37:5956 days ago1730209079IN
0x25eF4D7F...B055aFD4E
0 ETH0.0019145815.03164264
Claim210704862024-10-29 9:46:2356 days ago1730195183IN
0x25eF4D7F...B055aFD4E
0 ETH0.001214929.53768289
Initialize Aucti...210644052024-10-28 13:23:1157 days ago1730121791IN
0x25eF4D7F...B055aFD4E
0.05 ETH0.0009702511.9120408
Claim210334872024-10-24 5:52:3561 days ago1729749155IN
0x25eF4D7F...B055aFD4E
0 ETH0.000591985.93594762
Initialize Aucti...210241282024-10-22 22:33:3563 days ago1729636415IN
0x25eF4D7F...B055aFD4E
0.05 ETH0.000508065.99464223
Claim209805612024-10-16 20:38:3569 days ago1729111115IN
0x25eF4D7F...B055aFD4E
0 ETH0.0023059318.10255189
Claim209805192024-10-16 20:29:5969 days ago1729110599IN
0x25eF4D7F...B055aFD4E
0 ETH0.0021427816.82069671
Claim207479912024-09-14 9:36:11101 days ago1726306571IN
0x25eF4D7F...B055aFD4E
0 ETH0.000235781.85115803
Claim206487822024-08-31 13:14:47115 days ago1725110087IN
0x25eF4D7F...B055aFD4E
0 ETH0.000166741.30903588
Claim205895782024-08-23 6:41:11123 days ago1724395271IN
0x25eF4D7F...B055aFD4E
0 ETH0.000097060.9734519
Withdraw205895742024-08-23 6:40:23123 days ago1724395223IN
0x25eF4D7F...B055aFD4E
0 ETH0.00005621.06416609
Initialize Aucti...205855782024-08-22 17:16:23124 days ago1724346983IN
0x25eF4D7F...B055aFD4E
0.05 ETH0.000182072.15159522
Withdraw204853212024-08-08 17:19:59138 days ago1723137599IN
0x25eF4D7F...B055aFD4E
0 ETH0.0005623810.64878997
Claim204852722024-08-08 17:10:11138 days ago1723137011IN
0x25eF4D7F...B055aFD4E
0 ETH0.001370911.73426397
Initialize Aucti...204776442024-08-07 15:39:11139 days ago1723045151IN
0x25eF4D7F...B055aFD4E
0.05 ETH0.0014580217.90125909
Claim204668952024-08-06 3:38:47140 days ago1722915527IN
0x25eF4D7F...B055aFD4E
0 ETH0.000301772.36906136
Claim204502762024-08-03 20:02:23143 days ago1722715343IN
0x25eF4D7F...B055aFD4E
0 ETH0.000367052.88135318
Claim204283612024-07-31 18:36:11146 days ago1722450971IN
0x25eF4D7F...B055aFD4E
0 ETH0.0024342519.10692012
Claim204283592024-07-31 18:35:47146 days ago1722450947IN
0x25eF4D7F...B055aFD4E
0 ETH0.0024383619.14092227
Claim204283532024-07-31 18:34:35146 days ago1722450875IN
0x25eF4D7F...B055aFD4E
0 ETH0.0021015916.4973309
Claim204206132024-07-30 16:38:59147 days ago1722357539IN
0x25eF4D7F...B055aFD4E
0 ETH0.001077748.46075152
Claim204206032024-07-30 16:36:59147 days ago1722357419IN
0x25eF4D7F...B055aFD4E
0 ETH0.001197479.40064638
Claim203162862024-07-16 3:08:59161 days ago1721099339IN
0x25eF4D7F...B055aFD4E
0 ETH0.000595784.67712761
Claim201777852024-06-26 18:55:11181 days ago1719428111IN
0x25eF4D7F...B055aFD4E
0 ETH0.001261168.72884576
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
210334872024-10-24 5:52:3561 days ago1729749155
0x25eF4D7F...B055aFD4E
0.025 ETH
205895782024-08-23 6:41:11123 days ago1724395271
0x25eF4D7F...B055aFD4E
0.025 ETH
205895742024-08-23 6:40:23123 days ago1724395223
0x25eF4D7F...B055aFD4E
0.025 ETH
204853212024-08-08 17:19:59138 days ago1723137599
0x25eF4D7F...B055aFD4E
0.025 ETH
204852722024-08-08 17:10:11138 days ago1723137011
0x25eF4D7F...B055aFD4E
0.025 ETH
198069232024-05-05 22:38:35233 days ago1714948715
0x25eF4D7F...B055aFD4E
0.025 ETH
198069122024-05-05 22:36:23233 days ago1714948583
0x25eF4D7F...B055aFD4E
0.025 ETH
196697922024-04-16 18:21:11252 days ago1713291671
0x25eF4D7F...B055aFD4E
0.05 ETH
196697432024-04-16 18:11:11252 days ago1713291071
0x25eF4D7F...B055aFD4E
0.05 ETH
196654482024-04-16 3:44:35252 days ago1713239075
0x25eF4D7F...B055aFD4E
0.05 ETH
196164062024-04-09 6:49:11259 days ago1712645351
0x25eF4D7F...B055aFD4E
0.025 ETH
192463942024-02-17 8:27:59311 days ago1708158479
0x25eF4D7F...B055aFD4E
0.025 ETH
191621022024-02-05 12:34:47323 days ago1707136487
0x25eF4D7F...B055aFD4E
0.025 ETH
188328062023-12-21 7:37:47369 days ago1703144267
0x25eF4D7F...B055aFD4E
0.05 ETH
187324632023-12-07 5:54:23383 days ago1701928463
0x25eF4D7F...B055aFD4E
0.05 ETH
184404692023-10-27 8:52:11424 days ago1698396731
0x25eF4D7F...B055aFD4E
0.05 ETH
182346542023-09-28 13:53:59453 days ago1695909239
0x25eF4D7F...B055aFD4E
0.05 ETH
182145322023-09-25 18:17:35456 days ago1695665855
0x25eF4D7F...B055aFD4E
0.05 ETH
177506452023-07-22 19:06:23521 days ago1690052783
0x25eF4D7F...B055aFD4E
0.05 ETH
176358552023-07-06 16:01:35537 days ago1688659295
0x25eF4D7F...B055aFD4E
0.05 ETH
175383832023-06-22 23:20:47551 days ago1687476047
0x25eF4D7F...B055aFD4E
0.05 ETH
175283432023-06-21 13:30:23552 days ago1687354223
0x25eF4D7F...B055aFD4E
0.05 ETH
174437772023-06-09 16:12:11564 days ago1686327131
0x25eF4D7F...B055aFD4E
0.05 ETH
174029542023-06-03 21:57:11570 days ago1685829431
0x25eF4D7F...B055aFD4E
0.05 ETH
170263202023-04-11 17:28:35623 days ago1681234115
0x25eF4D7F...B055aFD4E
0.05 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GalleryTwentySeven

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 17 : GalleryTwentySeven.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "./TwentySevenYearScapes.sol";

/*
            @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
              |     |     |     |     |     |     -@@
              |     |     |     |     |     |     -@@
              |     |     |     |     |     |     -@@
              |     |     |     |     |     |     -@@
            @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
            @@-     |     ||    |    ||     |     |
            @@-     |     ||    |    ||     |     |
            @@-     |     ||    |    ||     |     |
            @@-     |     ||    |    ||     |     |
@8857@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8857@
*/
contract GalleryTwentySeven is Ownable, ReentrancyGuard {
    // Scape collection contracts
    address private _scapes;
    address private _twentySevenYearScapes;

    /// @dev The signer for new auctions.
    address private _signer;

    /// @dev The minimum value of an auction.
    uint128 private _startingPrice;

    /// @dev The minimum basis points increase per bid.
    uint64 private _bidBasisIncrease;

    /// @dev Minimum auction runtime in seconds after new bids.
    uint64 private _biddingGracePeriod;

    /// @dev The auction for each Scape tokenID.
    mapping(uint256 => Auction) private _auctions;

    /// @dev When the automatic refunds of previous bids fail, they are stored in here.
    mapping(address => uint256) private _failedBidBalances;

    struct Auction {
        address latestBidder;
        uint128 latestBid;
        uint64 endTimestamp;
        bool rewardsClaimed;
        bool settled;
    }

    /// @dev Emitted when a new bid is entered.
    event Bid(
        uint256 indexed scapeId,
        uint256 indexed bid,
        address indexed from,
        string message
    );

    /// @dev Emitted when a new bid is entered within the _biddingGracePeriod.
    event AuctionExtended(
        uint256 indexed scapeId,
        uint256 indexed endTimestamp
    );

    /// @dev Initialize the Gallery contract
    constructor(
        address scapes,
        address twentySevenYearScapes,
        uint128 startingPrice,
        uint64 bidBasisIncrease,
        uint64 biddingGracePeriod
    ) {
        _scapes = scapes;
        _twentySevenYearScapes = twentySevenYearScapes;
        _startingPrice = startingPrice;
        _bidBasisIncrease = bidBasisIncrease;
        _biddingGracePeriod = biddingGracePeriod;
        _signer = owner();
    }

    /// @dev Get an auction for a specific Scape tokenID
    function getAuction(uint256 scapeId)
        public
        view
        returns (
            address latestBidder,
            uint128 latestBid,
            uint64 endTimestamp,
            bool settled,
            bool rewardsClaimed
        )
    {
        Auction memory auction = _auctions[scapeId];

        return (
            auction.latestBidder,
            auction.latestBid,
            auction.endTimestamp,
            auction.settled,
            auction.rewardsClaimed
        );
    }

    function currentStartingPrice() external view returns (uint128) {
        return _startingPrice;
    }

    function currentBidBasisIncrease() external view returns (uint64) {
        return _bidBasisIncrease;
    }

    function currentBiddingGracePeriod() external view returns (uint64) {
        return _biddingGracePeriod;
    }

    /// @dev The minimum value of the next bid for an auction.
    function currentBidPrice(uint256 scapeId) external view returns (uint128) {
        return _currentBidPrice(_auctions[scapeId]);
    }

    /// @dev The first bid to initialize an auction
    /// @param scapeId The tokenId of the Scape of the day
    /// @param endTimestamp The default end time of the auction
    /// @param signature The signature to verify the above arguments
    /// @param message The bid message that inspires Yotukito
    function initializeAuction(
        uint256 scapeId,
        uint64 endTimestamp,
        bytes memory signature,
        string memory message
    ) external payable {
        require(
            _auctions[scapeId].endTimestamp == 0,
            "Auction has already started."
        );
        require(msg.value >= _startingPrice, "Auction starting price not met.");
        require(endTimestamp >= uint64(block.timestamp), "Auction has ended.");

        // Verify this data was signed by punkscape
        bytes32 signedData = ECDSA.toEthSignedMessageHash(
            keccak256(abi.encodePacked(scapeId, endTimestamp))
        );
        require(
            ECDSA.recover(signedData, signature) == _signer,
            "Auction data not signed."
        );

        _auctions[scapeId] = Auction(
            _msgSender(),
            uint128(msg.value),
            endTimestamp,
            false,
            false
        );
        _maybeExtendTime(scapeId, _auctions[scapeId]);

        emit Bid(scapeId, msg.value, _msgSender(), message);
    }

    /// @dev Secondary bids
    /// @param scapeId The tokenId of the Scape to bid on
    /// @param message The bid message that inspires Yotukito
    function bid(uint256 scapeId, string memory message)
        external
        payable
        nonReentrant
    {
        Auction storage auction = _auctions[scapeId];
        uint256 bidValue = msg.value;
        address bidder = msg.sender;

        require(
            bidValue >= _currentBidPrice(auction),
            "Minimum bid value not met."
        );
        require(
            block.timestamp <= auction.endTimestamp,
            "Auction is not active."
        );

        // Pay back previous bidder
        if (_hasBid(auction)) {
            if (!payable(auction.latestBidder).send(auction.latestBid)) {
                _failedBidBalances[auction.latestBidder] += auction.latestBid;
            }
        }

        _maybeExtendTime(scapeId, auction);

        // Store the bid
        auction.latestBid = uint128(bidValue);
        auction.latestBidder = bidder;

        emit Bid(scapeId, bidValue, bidder, message);
    }

    /// @dev Mints a Twenty Seven Year Scape (27YS).
    /// @param scapeId The tokenId of the Scape for which to claim the 27YS
    /// @param tokenId The tokenId of the 27YS
    /// @param cid The IPFS content identifyer of the metadata of this token
    /// @param signature The signature that verifies the authenticity of the above arguments
    function claim(
        uint256 scapeId,
        uint256 tokenId,
        string memory cid,
        bytes memory signature
    ) external {
        Auction storage auction = _auctions[scapeId];
        require(!auction.settled, "Auction already settled");

        // Verify this data was signed by punkscape
        bytes32 message = ECDSA.toEthSignedMessageHash(
            keccak256(abi.encodePacked(scapeId, tokenId, cid))
        );
        require(
            ECDSA.recover(message, signature) == _signer,
            "Claim data not signed."
        );

        address claimableBy = _hasBid(auction)
            ? auction.latestBidder
            : ERC721(_scapes).ownerOf(scapeId);
        require(_msgSender() == claimableBy, "Not allowed to claim.");

        TwentySevenYearScapes(_twentySevenYearScapes).mint(
            claimableBy,
            tokenId,
            cid
        );

        // Reserve 50% of the auction reward for the Scape owner
        uint256 ownerShare = auction.latestBid / 2;
        payable(owner()).transfer(auction.latestBid - ownerShare);

        // End the auction
        auction.settled = true;
    }

    /// @dev Claims the rewards of previous auctions.
    /// @param scapeIDs The tokenIDs of all Scapes for which to claim rewards.
    function withdraw(uint256[] memory scapeIDs) external {
        uint128 total = 0;

        for (uint256 index = 0; index < scapeIDs.length; index++) {
            uint256 id = scapeIDs[index];
            Auction storage auction = _auctions[id];

            // The rewards must not be claimed yet and the auction must be complete
            require(
                auction.rewardsClaimed == false,
                "Auction rewards already claimed"
            );
            require(
                auction.endTimestamp < block.timestamp &&
                    auction.endTimestamp > 0,
                "Auction not complete"
            );

            // Holders can claim rewards within one year after an auction ends
            uint64 oneYear = 31536000;
            if (auction.endTimestamp + oneYear > block.timestamp) {
                address scapeOwner = ERC721(_scapes).ownerOf(id);
                require(scapeOwner == _msgSender(), "Not eligible for reward");
            } else {
                require(_msgSender() == owner(), "Not eligible for reward");
            }

            // Mark the auction rewards as already claimed to prevent multiple claims
            auction.rewardsClaimed = true;

            // 50% of total rewards
            total += auction.latestBid / 2;
        }

        // Pay out the rewards
        payable(_msgSender()).transfer(total);
    }

    /// @dev Extends the end time of an auction if we are within the grace period.
    function _maybeExtendTime(uint256 scapeId, Auction storage auction)
        internal
    {
        uint64 gracePeriodStart = auction.endTimestamp - _biddingGracePeriod;
        uint64 _now = uint64(block.timestamp);
        if (_now > gracePeriodStart) {
            auction.endTimestamp = _now + _biddingGracePeriod;

            emit AuctionExtended(scapeId, auction.endTimestamp);
        }
    }

    /// @dev Set the signer address used to verify initializeAuction and claim.
    function setSigner(address signer_) external onlyOwner {
        _signer = signer_;
    }

    /// @dev Set the default auction starting price.
    function setStartingPrice(uint128 startingPrice) external onlyOwner {
        _startingPrice = startingPrice;
    }

    /// @dev Set the minimum percentage increase for bids in an auction.
    function setBidBasisIncrease(uint64 bidBasisIncrease) external onlyOwner {
        _bidBasisIncrease = bidBasisIncrease;
    }

    /// @dev Set ducation of the bidding grace period in seconds.
    function setBiddingGracePeriod(uint64 biddingGracePeriod)
        external
        onlyOwner
    {
        _biddingGracePeriod = biddingGracePeriod;
    }

    /// @dev Whether an auction has an existing bid.
    function _hasBid(Auction memory auction) internal pure returns (bool) {
        return auction.latestBid > 0;
    }

    /// @dev Calculates the minimum price for the next bid.
    function _currentBidPrice(Auction memory auction)
        internal
        view
        returns (uint128)
    {
        if (!_hasBid(auction)) {
            return _startingPrice;
        }

        uint128 percentageIncreasePrice = (auction.latestBid *
            (10000 + _bidBasisIncrease)) / 10000;
        return
            percentageIncreasePrice - auction.latestBid < _startingPrice
                ? auction.latestBid + _startingPrice
                : percentageIncreasePrice;
    }

    /// @dev Get the failed bid balance for an address.
    function getFailedBidBalance(address _address)
        external
        view
        returns (uint256)
    {
        return _failedBidBalances[_address];
    }

    /// @dev Withdraw user balance in case automatic refund in bid failed.
    function withdrawFailedBidBalance() external {
        uint256 amount = _failedBidBalances[msg.sender];
        require(amount > 0, "No balance to withdraw.");
        // Set balance to zero because it could be called again in receive before send returns
        _failedBidBalances[msg.sender] = 0;
        if (!payable(msg.sender).send(amount)) {
            _failedBidBalances[msg.sender] = amount;
        }
    }
}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

File 5 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 17 : TwentySevenYearScapes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@1001-digital/erc721-extensions/contracts/WithLimitedSupply.sol";

import "./WithMetadata.sol";

/*

   @@@@@@   @@@@@@@@  @@@ @@@   @@@@@@
  @@@@@@@@  @@@@@@@@  @@@ @@@  @@@@@@@
       @@@       @@!  @@! !@@  !@@
      @!@       !@!   !@! @!!  !@!
     !!@       @!!     !@!@!   !!@@!!
    !!:       !!!       @!!!    !!@!!!
   !:!       !!:        !!:         !:!
  :!:       :!:         :!:        !:!
  :: :::::   ::          ::    :::: ::
  :: : :::  : :          :     :: : :

*/
contract TwentySevenYearScapes is
    ERC721,
    WithMetadata,
    WithLimitedSupply
{
    // The Gallery 27 Auction House contract address
    address private _auctionContract;

    /// @dev Emitted when a new token is minted
    event Mint(uint256 indexed tokenId, string cid);

    /// Initialize the TwentySevenYearScapes Contract
    /// @dev initialize the contract
    constructor()
        ERC721("TwentySevenYearScapes", "27YS")
        WithMetadata("ipns://k51qzi5uqu5dihww7e3ugve5qc5ziwemg3ecbllglobgqge6ibqjfjtzobfp7v")
        WithLimitedSupply(10000)
    {}

    /// Mint a new Twenty Seven Year Scape
    /// @param _to The address of the recipient of the token
    /// @param _tokenId The id of the token to mint
    /// @param _cid The content hash of the token to mint
    function mint(address _to, uint256 _tokenId, string memory _cid) public ensureAvailability {
        require(_msgSender() == auctionContract(), "Not allowed to mint");

        nextToken();

        _safeMint(_to, _tokenId);

        emit Mint(_tokenId, _cid);
    }

    /// @dev Returns the address of the auction contract.
    function auctionContract() public view virtual returns (address) {
        return _auctionContract;
    }

    /// @dev Updates the auction contract address
    function setAuctionContract(address contractAddress) external onlyOwner {
        _auctionContract = contractAddress;
    }

    /// @dev Get the tokenURI for a specific token
    function tokenURI(uint256 tokenId)
        public view override(WithMetadata, ERC721)
        returns (string memory)
    {
        return WithMetadata.tokenURI(tokenId);
    }

    /// @dev Configure the baseURI for the tokenURI method
    function _baseURI()
        internal view override(WithMetadata, ERC721)
        returns (string memory)
    {
        return WithMetadata._baseURI();
    }
}

File 7 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 9 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

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 12 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 13 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 14 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 15 of 17 : WithLimitedSupply.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Counters.sol";

/// @author 1001.digital
/// @title A token tracker that limits the token supply and increments token IDs on each new mint.
abstract contract WithLimitedSupply {
    using Counters for Counters.Counter;

    /// @dev Emitted when the supply of this collection changes
    event SupplyChanged(uint256 indexed supply);

    // Keeps track of how many we have minted
    Counters.Counter private _tokenCount;

    /// @dev The maximum count of tokens this token tracker will hold.
    uint256 private _totalSupply;

    /// Instanciate the contract
    /// @param totalSupply_ how many tokens this collection should hold
    constructor (uint256 totalSupply_) {
        _totalSupply = totalSupply_;
    }

    /// @dev Get the max Supply
    /// @return the maximum token count
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /// @dev Get the current token count
    /// @return the created token count
    function tokenCount() public view returns (uint256) {
        return _tokenCount.current();
    }

    /// @dev Check whether tokens are still available
    /// @return the available token count
    function availableTokenCount() public view returns (uint256) {
        return totalSupply() - tokenCount();
    }

    /// @dev Increment the token count and fetch the latest count
    /// @return the next token id
    function nextToken() internal virtual returns (uint256) {
        uint256 token = _tokenCount.current();

        _tokenCount.increment();

        return token;
    }

    /// @dev Check whether another token is still available
    modifier ensureAvailability() {
        require(availableTokenCount() > 0, "No more tokens available");
        _;
    }

    /// @param amount Check whether number of tokens are still available
    /// @dev Check whether tokens are still available
    modifier ensureAvailabilityFor(uint256 amount) {
        require(availableTokenCount() >= amount, "Requested number of tokens not available");
        _;
    }

    /// Update the supply for the collection
    /// @param _supply the new token supply.
    /// @dev create additional token supply for this collection.
    function _setSupply(uint256 _supply) internal virtual {
        require(_supply > tokenCount(), "Can't set the supply to less than the current token count");
        _totalSupply = _supply;

        emit SupplyChanged(totalSupply());
    }
}

File 16 of 17 : WithMetadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract WithMetadata is ERC721, Ownable {
    using Strings for uint256;

    /// @dev Emitted when the content identifyer changes
    event MetadataURIChanged(string indexed baseURI);

    // Whether metadata is frozen
    bool public frozen;

    /// @dev The base URI of the folder containing all JSON files.
    string public baseURI;

    /// Instantiate the contract
    /// @param baseURI_ the base URI the token metadata.
    constructor (string memory baseURI_) {
        baseURI = baseURI_;
    }

    /// Get the tokenURI for a tokenID
    /// @param tokenId the token id for which to get the matadata URL
    /// @dev links to the metadata json file on IPFS.
    /// @return the URL to the token metadata file
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        // We don't check whether the _baseURI is set like in the OpenZeppelin implementation
        // as we're deploying the contract with the CID.
        return string(abi.encodePacked(
            _baseURI(), "/", tokenId.toString(), "/metadata.json"
        ));
    }

    /// Configure the baseURI for the tokenURI method.
    /// @dev override the standard OpenZeppelin implementation
    /// @return the IPFS base uri
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    /// Set the base URI for this collection.
    /// @param baseURI_ the new base URI
    /// @dev update the base URI for this collection.
    function setBaseURI(string memory baseURI_) public onlyOwner unfrozen {
        baseURI = baseURI_;

        emit MetadataURIChanged(baseURI);
    }

    /// @dev Freeze the metadata
    function freeze() external onlyOwner {
        frozen = true;
    }

    /// @dev Whether metadata is unfrozen
    modifier unfrozen() {
        require(! frozen, "Metadata already frozen");

        _;
    }
}

File 17 of 17 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"scapes","type":"address"},{"internalType":"address","name":"twentySevenYearScapes","type":"address"},{"internalType":"uint128","name":"startingPrice","type":"uint128"},{"internalType":"uint64","name":"bidBasisIncrease","type":"uint64"},{"internalType":"uint64","name":"biddingGracePeriod","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"scapeId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"endTimestamp","type":"uint256"}],"name":"AuctionExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"scapeId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"bid","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"Bid","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"},{"inputs":[{"internalType":"uint256","name":"scapeId","type":"uint256"},{"internalType":"string","name":"message","type":"string"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"scapeId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"cid","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentBidBasisIncrease","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"scapeId","type":"uint256"}],"name":"currentBidPrice","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBiddingGracePeriod","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentStartingPrice","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"scapeId","type":"uint256"}],"name":"getAuction","outputs":[{"internalType":"address","name":"latestBidder","type":"address"},{"internalType":"uint128","name":"latestBid","type":"uint128"},{"internalType":"uint64","name":"endTimestamp","type":"uint64"},{"internalType":"bool","name":"settled","type":"bool"},{"internalType":"bool","name":"rewardsClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getFailedBidBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"scapeId","type":"uint256"},{"internalType":"uint64","name":"endTimestamp","type":"uint64"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"message","type":"string"}],"name":"initializeAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"bidBasisIncrease","type":"uint64"}],"name":"setBidBasisIncrease","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"biddingGracePeriod","type":"uint64"}],"name":"setBiddingGracePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"startingPrice","type":"uint128"}],"name":"setStartingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"scapeIDs","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFailedBidBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002b5738038062002b5783398101604081905262000034916200017c565b6200003f33620000f7565b60018055600280546001600160a01b038088166001600160a01b0319928316179092556003805492871692909116919091179055600580546001600160401b03838116600160c01b026001600160c01b03918616600160801b026001600160c01b03199093166001600160801b038816179290921716179055620000cb6000546001600160a01b031690565b600480546001600160a01b0319166001600160a01b039290921691909117905550620001fa9350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200015f57600080fd5b919050565b80516001600160401b03811681146200015f57600080fd5b600080600080600060a086880312156200019557600080fd5b620001a08662000147565b9450620001b06020870162000147565b60408701519094506001600160801b0381168114620001ce57600080fd5b9250620001de6060870162000164565b9150620001ee6080870162000164565b90509295509295909350565b61294d806200020a6000396000f3fe6080604052600436106101295760003560e01c806378bd7935116100a5578063cb0fc56d11610074578063e8ef7d0d11610059578063e8ef7d0d146104b1578063f2fde38b146104e4578063f63e05ff1461050457600080fd5b8063cb0fc56d14610449578063d0f44e8c1461048a57600080fd5b806378bd7935146102865780638da5cb5b146103d4578063983d95ce14610409578063c087cc4b1461042957600080fd5b80633aeb2df7116100fc5780636c19e783116100e15780636c19e783146102315780636fa36c8f14610251578063715018a61461027157600080fd5b80633aeb2df7146101cb5780636750b92a146101e057600080fd5b806307265c121461012e5780630fc55fd1146101435780632e5b445d146101565780633aa44b0f14610176575b600080fd5b61014161013c36600461238e565b610524565b005b61014161015136600461240c565b6109ae565b34801561016257600080fd5b50610141610171366004612453565b610ddd565b34801561018257600080fd5b506005547801000000000000000000000000000000000000000000000000900467ffffffffffffffff165b60405167ffffffffffffffff90911681526020015b60405180910390f35b3480156101d757600080fd5b50610141610e93565b3480156101ec57600080fd5b506102236101fb366004612490565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b6040519081526020016101c2565b34801561023d57600080fd5b5061014161024c366004612490565b610f34565b34801561025d57600080fd5b5061014161026c3660046124ad565b610fe2565b34801561027d57600080fd5b50610141611476565b34801561029257600080fd5b506103736102a13660046124e9565b600081815260066020908152604091829020825160a081018452815473ffffffffffffffffffffffffffffffffffffffff168082526001909201546fffffffffffffffffffffffffffffffff811693820184905267ffffffffffffffff70010000000000000000000000000000000082041694820185905260ff7801000000000000000000000000000000000000000000000000820481161515606084018190527901000000000000000000000000000000000000000000000000009092041615156080909201829052919590929450565b6040805173ffffffffffffffffffffffffffffffffffffffff90961686526fffffffffffffffffffffffffffffffff909416602086015267ffffffffffffffff9092169284019290925290151560608301521515608082015260a0016101c2565b3480156103e057600080fd5b5060005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c2565b34801561041557600080fd5b50610141610424366004612502565b6114e9565b34801561043557600080fd5b50610141610444366004612453565b6118b2565b34801561045557600080fd5b506104696104643660046124e9565b611968565b6040516fffffffffffffffffffffffffffffffff90911681526020016101c2565b34801561049657600080fd5b506005546fffffffffffffffffffffffffffffffff16610469565b3480156104bd57600080fd5b50600554700100000000000000000000000000000000900467ffffffffffffffff166101ad565b3480156104f057600080fd5b506101416104ff366004612490565b611a3e565b34801561051057600080fd5b5061014161051f3660046125a8565b611b37565b600084815260066020526040902060010154700100000000000000000000000000000000900467ffffffffffffffff16156105a65760405162461bcd60e51b815260206004820152601c60248201527f41756374696f6e2068617320616c726561647920737461727465642e0000000060448201526064015b60405180910390fd5b6005546fffffffffffffffffffffffffffffffff1634101561060a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e207374617274696e67207072696365206e6f74206d65742e00604482015260640161059d565b4267ffffffffffffffff168367ffffffffffffffff16101561066e5760405162461bcd60e51b815260206004820152601260248201527f41756374696f6e2068617320656e6465642e0000000000000000000000000000604482015260640161059d565b600061073285856040516020016106b492919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b60045490915073ffffffffffffffffffffffffffffffffffffffff166107588285611be1565b73ffffffffffffffffffffffffffffffffffffffff16146107bb5760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e2064617461206e6f74207369676e65642e0000000000000000604482015260640161059d565b6040518060a001604052806107cd3390565b73ffffffffffffffffffffffffffffffffffffffff90811682526fffffffffffffffffffffffffffffffff34811660208085019190915267ffffffffffffffff808a166040808701919091526000606080880182905260809788018290528d825260068552908290208851815497167fffffffffffffffffffffffff000000000000000000000000000000000000000090971696909617865592870151600186018054928901519489015198909701511515790100000000000000000000000000000000000000000000000000027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff981515780100000000000000000000000000000000000000000000000002989098167fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff94909316700100000000000000000000000000000000027fffffffffffffffff000000000000000000000000000000000000000000000000909216941693909317929092171617929092179055610957908690611c05565b3373ffffffffffffffffffffffffffffffffffffffff1634867f0f57cf15df3698066a25c564ab43c76d2554bda422d0fec9c3354d62b95e3f5e8560405161099f9190612650565b60405180910390a45050505050565b60026001541415610a015760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161059d565b60026001908155600083815260066020908152604091829020825160a081018452815473ffffffffffffffffffffffffffffffffffffffff168152938101546fffffffffffffffffffffffffffffffff81169285019290925267ffffffffffffffff7001000000000000000000000000000000008304169284019290925260ff7801000000000000000000000000000000000000000000000000820481161515606085015279010000000000000000000000000000000000000000000000000090910416151560808301529034903390610ada90611d2b565b6fffffffffffffffffffffffffffffffff16821015610b3b5760405162461bcd60e51b815260206004820152601a60248201527f4d696e696d756d206269642076616c7565206e6f74206d65742e000000000000604482015260640161059d565b6001830154700100000000000000000000000000000000900467ffffffffffffffff16421115610bad5760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e206973206e6f74206163746976652e00000000000000000000604482015260640161059d565b6040805160a081018252845473ffffffffffffffffffffffffffffffffffffffff16815260018501546fffffffffffffffffffffffffffffffff81166020830181905267ffffffffffffffff7001000000000000000000000000000000008304169383019390935260ff7801000000000000000000000000000000000000000000000000820481161515606084015279010000000000000000000000000000000000000000000000000090910416151560809091015215610d0e578254600184015460405173ffffffffffffffffffffffffffffffffffffffff909216916fffffffffffffffffffffffffffffffff90911680156108fc02916000818181858888f19350505050610d0e576001830154835473ffffffffffffffffffffffffffffffffffffffff16600090815260076020526040812080546fffffffffffffffffffffffffffffffff90931692909190610d08908490612692565b90915550505b610d188584611c05565b6001830180547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905582547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff82169081178455604051839087907f0f57cf15df3698066a25c564ab43c76d2554bda422d0fec9c3354d62b95e3f5e90610dca908990612650565b60405180910390a4505060018055505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b6005805467ffffffffffffffff90921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526007602052604090205480610ef05760405162461bcd60e51b815260206004820152601760248201527f4e6f2062616c616e636520746f2077697468647261772e000000000000000000604482015260640161059d565b336000818152600760205260408082208290555183156108fc0291849190818181858888f19350505050610f31573360009081526007602052604090208190555b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f9b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008481526006602052604090206001810154790100000000000000000000000000000000000000000000000000900460ff16156110625760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e20616c726561647920736574746c6564000000000000000000604482015260640161059d565b600061107c8686866040516020016106b4939291906126aa565b60045490915073ffffffffffffffffffffffffffffffffffffffff166110a28285611be1565b73ffffffffffffffffffffffffffffffffffffffff16146111055760405162461bcd60e51b815260206004820152601660248201527f436c61696d2064617461206e6f74207369676e65642e00000000000000000000604482015260640161059d565b6040805160a081018252835473ffffffffffffffffffffffffffffffffffffffff16815260018401546fffffffffffffffffffffffffffffffff81166020830181905267ffffffffffffffff7001000000000000000000000000000000008304169383019390935260ff7801000000000000000000000000000000000000000000000000820481161515606084015279010000000000000000000000000000000000000000000000000090910416151560809091015260009061125a576002546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810189905273ffffffffffffffffffffffffffffffffffffffff90911690636352211e90602401602060405180830381865afa158015611231573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125591906126d7565b611273565b825473ffffffffffffffffffffffffffffffffffffffff165b90503373ffffffffffffffffffffffffffffffffffffffff8216146112da5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420616c6c6f77656420746f20636c61696d2e0000000000000000000000604482015260640161059d565b6003546040517fd3fc986400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063d3fc9864906113349084908a908a906004016126f4565b600060405180830381600087803b15801561134e57600080fd5b505af1158015611362573d6000803e3d6000fd5b50505060018401546000915061138c906002906fffffffffffffffffffffffffffffffff16612732565b6fffffffffffffffffffffffffffffffff1690506113bf60005473ffffffffffffffffffffffffffffffffffffffff1690565b600185015473ffffffffffffffffffffffffffffffffffffffff91909116906108fc906113ff9084906fffffffffffffffffffffffffffffffff16612788565b6040518115909202916000818181858888f19350505050158015611427573d6000803e3d6000fd5b5050505060010180547fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff1679010000000000000000000000000000000000000000000000000017905550505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b6114e76000611e2f565b565b6000805b825181101561186e57600083828151811061150a5761150a61279f565b6020908102919091018101516000818152600690925260409091206001810154919250907801000000000000000000000000000000000000000000000000900460ff161561159a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e207265776172647320616c726561647920636c61696d656400604482015260640161059d565b60018101544270010000000000000000000000000000000090910467ffffffffffffffff161080156115ed57506001810154700100000000000000000000000000000000900467ffffffffffffffff1615155b6116395760405162461bcd60e51b815260206004820152601460248201527f41756374696f6e206e6f7420636f6d706c657465000000000000000000000000604482015260640161059d565b60018101546301e1338090429061166f908390700100000000000000000000000000000000900467ffffffffffffffff166127ce565b67ffffffffffffffff161115611780576002546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810185905260009173ffffffffffffffffffffffffffffffffffffffff1690636352211e90602401602060405180830381865afa1580156116ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171391906126d7565b905073ffffffffffffffffffffffffffffffffffffffff8116331461177a5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656c696769626c6520666f7220726577617264000000000000000000604482015260640161059d565b506117e7565b60005473ffffffffffffffffffffffffffffffffffffffff1633146117e75760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656c696769626c6520666f7220726577617264000000000000000000604482015260640161059d565b6001820180547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff811678010000000000000000000000000000000000000000000000001790915561184c906002906fffffffffffffffffffffffffffffffff16612732565b61185690866127fa565b9450505050808061186690612825565b9150506114ed565b5060405133906fffffffffffffffffffffffffffffffff831680156108fc02916000818181858888f193505050501580156118ad573d6000803e3d6000fd5b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146119195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b6005805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff909216919091179055565b6000818152600660209081526040808320815160a081018352815473ffffffffffffffffffffffffffffffffffffffff1681526001909101546fffffffffffffffffffffffffffffffff81169382019390935267ffffffffffffffff7001000000000000000000000000000000008404169181019190915260ff7801000000000000000000000000000000000000000000000000830481161515606083015279010000000000000000000000000000000000000000000000000090920490911615156080820152611a3890611d2b565b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611aa55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b73ffffffffffffffffffffffffffffffffffffffff8116611b2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161059d565b610f3181611e2f565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b600580547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b6000806000611bf08585611ea4565b91509150611bfd81611f14565b509392505050565b6005546001820154600091611c589167ffffffffffffffff78010000000000000000000000000000000000000000000000009092048216917001000000000000000000000000000000009091041661285e565b90504267ffffffffffffffff8083169082161115611d2557600554611ca3907801000000000000000000000000000000000000000000000000900467ffffffffffffffff16826127ce565b6001840180547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff1670010000000000000000000000000000000067ffffffffffffffff9384168102919091179182905560405191049091169085907f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e90600090a35b50505050565b6000611d4c82602001516fffffffffffffffffffffffffffffffff16151590565b611d6a5750506005546fffffffffffffffffffffffffffffffff1690565b60055460009061271090611d9c90700100000000000000000000000000000000900467ffffffffffffffff16826127ce565b67ffffffffffffffff168460200151611db59190612887565b611dbf9190612732565b60055460208501519192506fffffffffffffffffffffffffffffffff1690611de790836128bf565b6fffffffffffffffffffffffffffffffff1610611e045780611e28565b6005546020840151611e28916fffffffffffffffffffffffffffffffff16906127fa565b9392505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080825160411415611edb5760208301516040840151606085015160001a611ecf87828585612105565b94509450505050611f0d565b825160401415611f055760208301516040840151611efa86838361221d565b935093505050611f0d565b506000905060025b9250929050565b6000816004811115611f2857611f286128e8565b1415611f315750565b6001816004811115611f4557611f456128e8565b1415611f935760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161059d565b6002816004811115611fa757611fa76128e8565b1415611ff55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161059d565b6003816004811115612009576120096128e8565b141561207d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161059d565b6004816004811115612091576120916128e8565b1415610f315760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161059d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561213c5750600090506003612214565b8460ff16601b1415801561215457508460ff16601c14155b156121655750600090506004612214565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156121b9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661220d57600060019250925050612214565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161225787828885612105565b935093505050935093915050565b803567ffffffffffffffff8116811461227d57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156122f8576122f8612282565b604052919050565b600082601f83011261231157600080fd5b813567ffffffffffffffff81111561232b5761232b612282565b61235c60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016122b1565b81815284602083860101111561237157600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156123a457600080fd5b843593506123b460208601612265565b9250604085013567ffffffffffffffff808211156123d157600080fd5b6123dd88838901612300565b935060608701359150808211156123f357600080fd5b5061240087828801612300565b91505092959194509250565b6000806040838503121561241f57600080fd5b82359150602083013567ffffffffffffffff81111561243d57600080fd5b61244985828601612300565b9150509250929050565b60006020828403121561246557600080fd5b611e2882612265565b73ffffffffffffffffffffffffffffffffffffffff81168114610f3157600080fd5b6000602082840312156124a257600080fd5b8135611e288161246e565b600080600080608085870312156124c357600080fd5b8435935060208501359250604085013567ffffffffffffffff808211156123d157600080fd5b6000602082840312156124fb57600080fd5b5035919050565b6000602080838503121561251557600080fd5b823567ffffffffffffffff8082111561252d57600080fd5b818501915085601f83011261254157600080fd5b81358181111561255357612553612282565b8060051b91506125648483016122b1565b818152918301840191848101908884111561257e57600080fd5b938501935b8385101561259c57843582529385019390850190612583565b98975050505050505050565b6000602082840312156125ba57600080fd5b81356fffffffffffffffffffffffffffffffff81168114611e2857600080fd5b60005b838110156125f55781810151838201526020016125dd565b83811115611d255750506000910152565b6000815180845261261e8160208601602086016125da565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611e286020830184612606565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156126a5576126a5612663565b500190565b838152826020820152600082516126c88160408501602087016125da565b91909101604001949350505050565b6000602082840312156126e957600080fd5b8151611e288161246e565b73ffffffffffffffffffffffffffffffffffffffff841681528260208201526060604082015260006127296060830184612606565b95945050505050565b60006fffffffffffffffffffffffffffffffff8084168061277c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b92169190910492915050565b60008282101561279a5761279a612663565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600067ffffffffffffffff8083168185168083038211156127f1576127f1612663565b01949350505050565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156127f1576127f1612663565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561285757612857612663565b5060010190565b600067ffffffffffffffff8381169083168181101561287f5761287f612663565b039392505050565b60006fffffffffffffffffffffffffffffffff808316818516818304811182151516156128b6576128b6612663565b02949350505050565b60006fffffffffffffffffffffffffffffffff8381169083168181101561287f5761287f612663565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea26469706673582212209148696f560ef98f89d976bc8600ae200cf43b699a138647a52270899017f66f64736f6c634300080b0033000000000000000000000000b7def63a9040ad5dc431aff79045617922f4023a0000000000000000000000005d3d01a47a62bff2eb86eba75f3a23c38dc22fba000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000384

Deployed Bytecode

0x6080604052600436106101295760003560e01c806378bd7935116100a5578063cb0fc56d11610074578063e8ef7d0d11610059578063e8ef7d0d146104b1578063f2fde38b146104e4578063f63e05ff1461050457600080fd5b8063cb0fc56d14610449578063d0f44e8c1461048a57600080fd5b806378bd7935146102865780638da5cb5b146103d4578063983d95ce14610409578063c087cc4b1461042957600080fd5b80633aeb2df7116100fc5780636c19e783116100e15780636c19e783146102315780636fa36c8f14610251578063715018a61461027157600080fd5b80633aeb2df7146101cb5780636750b92a146101e057600080fd5b806307265c121461012e5780630fc55fd1146101435780632e5b445d146101565780633aa44b0f14610176575b600080fd5b61014161013c36600461238e565b610524565b005b61014161015136600461240c565b6109ae565b34801561016257600080fd5b50610141610171366004612453565b610ddd565b34801561018257600080fd5b506005547801000000000000000000000000000000000000000000000000900467ffffffffffffffff165b60405167ffffffffffffffff90911681526020015b60405180910390f35b3480156101d757600080fd5b50610141610e93565b3480156101ec57600080fd5b506102236101fb366004612490565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b6040519081526020016101c2565b34801561023d57600080fd5b5061014161024c366004612490565b610f34565b34801561025d57600080fd5b5061014161026c3660046124ad565b610fe2565b34801561027d57600080fd5b50610141611476565b34801561029257600080fd5b506103736102a13660046124e9565b600081815260066020908152604091829020825160a081018452815473ffffffffffffffffffffffffffffffffffffffff168082526001909201546fffffffffffffffffffffffffffffffff811693820184905267ffffffffffffffff70010000000000000000000000000000000082041694820185905260ff7801000000000000000000000000000000000000000000000000820481161515606084018190527901000000000000000000000000000000000000000000000000009092041615156080909201829052919590929450565b6040805173ffffffffffffffffffffffffffffffffffffffff90961686526fffffffffffffffffffffffffffffffff909416602086015267ffffffffffffffff9092169284019290925290151560608301521515608082015260a0016101c2565b3480156103e057600080fd5b5060005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c2565b34801561041557600080fd5b50610141610424366004612502565b6114e9565b34801561043557600080fd5b50610141610444366004612453565b6118b2565b34801561045557600080fd5b506104696104643660046124e9565b611968565b6040516fffffffffffffffffffffffffffffffff90911681526020016101c2565b34801561049657600080fd5b506005546fffffffffffffffffffffffffffffffff16610469565b3480156104bd57600080fd5b50600554700100000000000000000000000000000000900467ffffffffffffffff166101ad565b3480156104f057600080fd5b506101416104ff366004612490565b611a3e565b34801561051057600080fd5b5061014161051f3660046125a8565b611b37565b600084815260066020526040902060010154700100000000000000000000000000000000900467ffffffffffffffff16156105a65760405162461bcd60e51b815260206004820152601c60248201527f41756374696f6e2068617320616c726561647920737461727465642e0000000060448201526064015b60405180910390fd5b6005546fffffffffffffffffffffffffffffffff1634101561060a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e207374617274696e67207072696365206e6f74206d65742e00604482015260640161059d565b4267ffffffffffffffff168367ffffffffffffffff16101561066e5760405162461bcd60e51b815260206004820152601260248201527f41756374696f6e2068617320656e6465642e0000000000000000000000000000604482015260640161059d565b600061073285856040516020016106b492919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b60045490915073ffffffffffffffffffffffffffffffffffffffff166107588285611be1565b73ffffffffffffffffffffffffffffffffffffffff16146107bb5760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e2064617461206e6f74207369676e65642e0000000000000000604482015260640161059d565b6040518060a001604052806107cd3390565b73ffffffffffffffffffffffffffffffffffffffff90811682526fffffffffffffffffffffffffffffffff34811660208085019190915267ffffffffffffffff808a166040808701919091526000606080880182905260809788018290528d825260068552908290208851815497167fffffffffffffffffffffffff000000000000000000000000000000000000000090971696909617865592870151600186018054928901519489015198909701511515790100000000000000000000000000000000000000000000000000027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff981515780100000000000000000000000000000000000000000000000002989098167fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff94909316700100000000000000000000000000000000027fffffffffffffffff000000000000000000000000000000000000000000000000909216941693909317929092171617929092179055610957908690611c05565b3373ffffffffffffffffffffffffffffffffffffffff1634867f0f57cf15df3698066a25c564ab43c76d2554bda422d0fec9c3354d62b95e3f5e8560405161099f9190612650565b60405180910390a45050505050565b60026001541415610a015760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161059d565b60026001908155600083815260066020908152604091829020825160a081018452815473ffffffffffffffffffffffffffffffffffffffff168152938101546fffffffffffffffffffffffffffffffff81169285019290925267ffffffffffffffff7001000000000000000000000000000000008304169284019290925260ff7801000000000000000000000000000000000000000000000000820481161515606085015279010000000000000000000000000000000000000000000000000090910416151560808301529034903390610ada90611d2b565b6fffffffffffffffffffffffffffffffff16821015610b3b5760405162461bcd60e51b815260206004820152601a60248201527f4d696e696d756d206269642076616c7565206e6f74206d65742e000000000000604482015260640161059d565b6001830154700100000000000000000000000000000000900467ffffffffffffffff16421115610bad5760405162461bcd60e51b815260206004820152601660248201527f41756374696f6e206973206e6f74206163746976652e00000000000000000000604482015260640161059d565b6040805160a081018252845473ffffffffffffffffffffffffffffffffffffffff16815260018501546fffffffffffffffffffffffffffffffff81166020830181905267ffffffffffffffff7001000000000000000000000000000000008304169383019390935260ff7801000000000000000000000000000000000000000000000000820481161515606084015279010000000000000000000000000000000000000000000000000090910416151560809091015215610d0e578254600184015460405173ffffffffffffffffffffffffffffffffffffffff909216916fffffffffffffffffffffffffffffffff90911680156108fc02916000818181858888f19350505050610d0e576001830154835473ffffffffffffffffffffffffffffffffffffffff16600090815260076020526040812080546fffffffffffffffffffffffffffffffff90931692909190610d08908490612692565b90915550505b610d188584611c05565b6001830180547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff841617905582547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff82169081178455604051839087907f0f57cf15df3698066a25c564ab43c76d2554bda422d0fec9c3354d62b95e3f5e90610dca908990612650565b60405180910390a4505060018055505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b6005805467ffffffffffffffff90921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b3360009081526007602052604090205480610ef05760405162461bcd60e51b815260206004820152601760248201527f4e6f2062616c616e636520746f2077697468647261772e000000000000000000604482015260640161059d565b336000818152600760205260408082208290555183156108fc0291849190818181858888f19350505050610f31573360009081526007602052604090208190555b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f9b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008481526006602052604090206001810154790100000000000000000000000000000000000000000000000000900460ff16156110625760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e20616c726561647920736574746c6564000000000000000000604482015260640161059d565b600061107c8686866040516020016106b4939291906126aa565b60045490915073ffffffffffffffffffffffffffffffffffffffff166110a28285611be1565b73ffffffffffffffffffffffffffffffffffffffff16146111055760405162461bcd60e51b815260206004820152601660248201527f436c61696d2064617461206e6f74207369676e65642e00000000000000000000604482015260640161059d565b6040805160a081018252835473ffffffffffffffffffffffffffffffffffffffff16815260018401546fffffffffffffffffffffffffffffffff81166020830181905267ffffffffffffffff7001000000000000000000000000000000008304169383019390935260ff7801000000000000000000000000000000000000000000000000820481161515606084015279010000000000000000000000000000000000000000000000000090910416151560809091015260009061125a576002546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810189905273ffffffffffffffffffffffffffffffffffffffff90911690636352211e90602401602060405180830381865afa158015611231573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061125591906126d7565b611273565b825473ffffffffffffffffffffffffffffffffffffffff165b90503373ffffffffffffffffffffffffffffffffffffffff8216146112da5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420616c6c6f77656420746f20636c61696d2e0000000000000000000000604482015260640161059d565b6003546040517fd3fc986400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063d3fc9864906113349084908a908a906004016126f4565b600060405180830381600087803b15801561134e57600080fd5b505af1158015611362573d6000803e3d6000fd5b50505060018401546000915061138c906002906fffffffffffffffffffffffffffffffff16612732565b6fffffffffffffffffffffffffffffffff1690506113bf60005473ffffffffffffffffffffffffffffffffffffffff1690565b600185015473ffffffffffffffffffffffffffffffffffffffff91909116906108fc906113ff9084906fffffffffffffffffffffffffffffffff16612788565b6040518115909202916000818181858888f19350505050158015611427573d6000803e3d6000fd5b5050505060010180547fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff1679010000000000000000000000000000000000000000000000000017905550505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b6114e76000611e2f565b565b6000805b825181101561186e57600083828151811061150a5761150a61279f565b6020908102919091018101516000818152600690925260409091206001810154919250907801000000000000000000000000000000000000000000000000900460ff161561159a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e207265776172647320616c726561647920636c61696d656400604482015260640161059d565b60018101544270010000000000000000000000000000000090910467ffffffffffffffff161080156115ed57506001810154700100000000000000000000000000000000900467ffffffffffffffff1615155b6116395760405162461bcd60e51b815260206004820152601460248201527f41756374696f6e206e6f7420636f6d706c657465000000000000000000000000604482015260640161059d565b60018101546301e1338090429061166f908390700100000000000000000000000000000000900467ffffffffffffffff166127ce565b67ffffffffffffffff161115611780576002546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810185905260009173ffffffffffffffffffffffffffffffffffffffff1690636352211e90602401602060405180830381865afa1580156116ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171391906126d7565b905073ffffffffffffffffffffffffffffffffffffffff8116331461177a5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656c696769626c6520666f7220726577617264000000000000000000604482015260640161059d565b506117e7565b60005473ffffffffffffffffffffffffffffffffffffffff1633146117e75760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656c696769626c6520666f7220726577617264000000000000000000604482015260640161059d565b6001820180547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff811678010000000000000000000000000000000000000000000000001790915561184c906002906fffffffffffffffffffffffffffffffff16612732565b61185690866127fa565b9450505050808061186690612825565b9150506114ed565b5060405133906fffffffffffffffffffffffffffffffff831680156108fc02916000818181858888f193505050501580156118ad573d6000803e3d6000fd5b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146119195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b6005805467ffffffffffffffff909216700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff909216919091179055565b6000818152600660209081526040808320815160a081018352815473ffffffffffffffffffffffffffffffffffffffff1681526001909101546fffffffffffffffffffffffffffffffff81169382019390935267ffffffffffffffff7001000000000000000000000000000000008404169181019190915260ff7801000000000000000000000000000000000000000000000000830481161515606083015279010000000000000000000000000000000000000000000000000090920490911615156080820152611a3890611d2b565b92915050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611aa55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b73ffffffffffffffffffffffffffffffffffffffff8116611b2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161059d565b610f3181611e2f565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161059d565b600580547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055565b6000806000611bf08585611ea4565b91509150611bfd81611f14565b509392505050565b6005546001820154600091611c589167ffffffffffffffff78010000000000000000000000000000000000000000000000009092048216917001000000000000000000000000000000009091041661285e565b90504267ffffffffffffffff8083169082161115611d2557600554611ca3907801000000000000000000000000000000000000000000000000900467ffffffffffffffff16826127ce565b6001840180547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff1670010000000000000000000000000000000067ffffffffffffffff9384168102919091179182905560405191049091169085907f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e90600090a35b50505050565b6000611d4c82602001516fffffffffffffffffffffffffffffffff16151590565b611d6a5750506005546fffffffffffffffffffffffffffffffff1690565b60055460009061271090611d9c90700100000000000000000000000000000000900467ffffffffffffffff16826127ce565b67ffffffffffffffff168460200151611db59190612887565b611dbf9190612732565b60055460208501519192506fffffffffffffffffffffffffffffffff1690611de790836128bf565b6fffffffffffffffffffffffffffffffff1610611e045780611e28565b6005546020840151611e28916fffffffffffffffffffffffffffffffff16906127fa565b9392505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080825160411415611edb5760208301516040840151606085015160001a611ecf87828585612105565b94509450505050611f0d565b825160401415611f055760208301516040840151611efa86838361221d565b935093505050611f0d565b506000905060025b9250929050565b6000816004811115611f2857611f286128e8565b1415611f315750565b6001816004811115611f4557611f456128e8565b1415611f935760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161059d565b6002816004811115611fa757611fa76128e8565b1415611ff55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161059d565b6003816004811115612009576120096128e8565b141561207d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161059d565b6004816004811115612091576120916128e8565b1415610f315760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161059d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561213c5750600090506003612214565b8460ff16601b1415801561215457508460ff16601c14155b156121655750600090506004612214565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156121b9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661220d57600060019250925050612214565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161225787828885612105565b935093505050935093915050565b803567ffffffffffffffff8116811461227d57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156122f8576122f8612282565b604052919050565b600082601f83011261231157600080fd5b813567ffffffffffffffff81111561232b5761232b612282565b61235c60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016122b1565b81815284602083860101111561237157600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080608085870312156123a457600080fd5b843593506123b460208601612265565b9250604085013567ffffffffffffffff808211156123d157600080fd5b6123dd88838901612300565b935060608701359150808211156123f357600080fd5b5061240087828801612300565b91505092959194509250565b6000806040838503121561241f57600080fd5b82359150602083013567ffffffffffffffff81111561243d57600080fd5b61244985828601612300565b9150509250929050565b60006020828403121561246557600080fd5b611e2882612265565b73ffffffffffffffffffffffffffffffffffffffff81168114610f3157600080fd5b6000602082840312156124a257600080fd5b8135611e288161246e565b600080600080608085870312156124c357600080fd5b8435935060208501359250604085013567ffffffffffffffff808211156123d157600080fd5b6000602082840312156124fb57600080fd5b5035919050565b6000602080838503121561251557600080fd5b823567ffffffffffffffff8082111561252d57600080fd5b818501915085601f83011261254157600080fd5b81358181111561255357612553612282565b8060051b91506125648483016122b1565b818152918301840191848101908884111561257e57600080fd5b938501935b8385101561259c57843582529385019390850190612583565b98975050505050505050565b6000602082840312156125ba57600080fd5b81356fffffffffffffffffffffffffffffffff81168114611e2857600080fd5b60005b838110156125f55781810151838201526020016125dd565b83811115611d255750506000910152565b6000815180845261261e8160208601602086016125da565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611e286020830184612606565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156126a5576126a5612663565b500190565b838152826020820152600082516126c88160408501602087016125da565b91909101604001949350505050565b6000602082840312156126e957600080fd5b8151611e288161246e565b73ffffffffffffffffffffffffffffffffffffffff841681528260208201526060604082015260006127296060830184612606565b95945050505050565b60006fffffffffffffffffffffffffffffffff8084168061277c577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b92169190910492915050565b60008282101561279a5761279a612663565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600067ffffffffffffffff8083168185168083038211156127f1576127f1612663565b01949350505050565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156127f1576127f1612663565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561285757612857612663565b5060010190565b600067ffffffffffffffff8381169083168181101561287f5761287f612663565b039392505050565b60006fffffffffffffffffffffffffffffffff808316818516818304811182151516156128b6576128b6612663565b02949350505050565b60006fffffffffffffffffffffffffffffffff8381169083168181101561287f5761287f612663565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea26469706673582212209148696f560ef98f89d976bc8600ae200cf43b699a138647a52270899017f66f64736f6c634300080b0033

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

000000000000000000000000b7def63a9040ad5dc431aff79045617922f4023a0000000000000000000000005d3d01a47a62bff2eb86eba75f3a23c38dc22fba000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000384

-----Decoded View---------------
Arg [0] : scapes (address): 0xb7def63A9040ad5dC431afF79045617922f4023A
Arg [1] : twentySevenYearScapes (address): 0x5D3d01a47a62BfF2eB86eBA75F3A23c38dC22fBA
Arg [2] : startingPrice (uint128): 100000000000000000
Arg [3] : bidBasisIncrease (uint64): 1000
Arg [4] : biddingGracePeriod (uint64): 900

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000b7def63a9040ad5dc431aff79045617922f4023a
Arg [1] : 0000000000000000000000005d3d01a47a62bff2eb86eba75f3a23c38dc22fba
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000384


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  ]
[ 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.