ETH Price: $2,647.92 (+1.36%)

Contract

0xa51973e10286f2ee010961d041159D9802A1947B
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Send NF Ts160685072022-11-28 12:32:59690 days ago1669638779IN
0xa51973e1...802A1947B
0 ETH0.0022293212.07127619
Enter Bid160344792022-11-23 18:27:35694 days ago1669228055IN
0xa51973e1...802A1947B
0 ETH0.0028083814.83964977
Enter Bid160344652022-11-23 18:24:47694 days ago1669227887IN
0xa51973e1...802A1947B
0 ETH0.002615913.82254211
Enter Bid160344482022-11-23 18:21:11694 days ago1669227671IN
0xa51973e1...802A1947B
0 ETH0.0009448515.73245669
Enter Bid160344482022-11-23 18:21:11694 days ago1669227671IN
0xa51973e1...802A1947B
0 ETH0.0019605715.73245669
Enter Bid160344482022-11-23 18:21:11694 days ago1669227671IN
0xa51973e1...802A1947B
0 ETH0.0020755716.23245669
Enter Bid160344472022-11-23 18:20:59694 days ago1669227659IN
0xa51973e1...802A1947B
0 ETH0.0019040614.16718518
Enter Bid160344472022-11-23 18:20:59694 days ago1669227659IN
0xa51973e1...802A1947B
0 ETH0.0019040614.16718518
Enter Bid160344242022-11-23 18:16:23694 days ago1669227383IN
0xa51973e1...802A1947B
0 ETH0.0017231313.47609606
Enter Bid160344132022-11-23 18:14:11694 days ago1669227251IN
0xa51973e1...802A1947B
0 ETH0.0039801315.81640081
Enter Bid160344012022-11-23 18:11:47694 days ago1669227107IN
0xa51973e1...802A1947B
0 ETH0.0051968415.85864892
Enter Bid160343922022-11-23 18:09:59694 days ago1669226999IN
0xa51973e1...802A1947B
0 ETH0.0059607217.09805433
Enter Bid160343872022-11-23 18:08:59694 days ago1669226939IN
0xa51973e1...802A1947B
0 ETH0.0038412717.29322686
Enter Bid160343852022-11-23 18:08:35694 days ago1669226915IN
0xa51973e1...802A1947B
0 ETH0.002240617.52303305
Enter Bid160343842022-11-23 18:08:23694 days ago1669226903IN
0xa51973e1...802A1947B
0 ETH0.0030292316.00765099
Enter Bid160343662022-11-23 18:04:23694 days ago1669226663IN
0xa51973e1...802A1947B
0 ETH0.0032775917.32006573
Enter Bid160343642022-11-23 18:03:59694 days ago1669226639IN
0xa51973e1...802A1947B
0 ETH0.0030501118.00997748
Enter Bid160343602022-11-23 18:03:11694 days ago1669226591IN
0xa51973e1...802A1947B
0 ETH0.0035611618.35
Enter Bid160343592022-11-23 18:02:59694 days ago1669226579IN
0xa51973e1...802A1947B
0 ETH0.0019331117.90348051
Enter Bid160343482022-11-23 18:00:47694 days ago1669226447IN
0xa51973e1...802A1947B
0 ETH0.0037536419.17170101
Enter Bid160343442022-11-23 17:59:59694 days ago1669226399IN
0xa51973e1...802A1947B
0 ETH0.00355821.01038551
Enter Bid160343412022-11-23 17:59:23694 days ago1669226363IN
0xa51973e1...802A1947B
0 ETH0.0051830923.33403591
Enter Bid160343392022-11-23 17:58:59694 days ago1669226339IN
0xa51973e1...802A1947B
0 ETH0.0059559222.36220066
Enter Bid160343232022-11-23 17:55:35694 days ago1669226135IN
0xa51973e1...802A1947B
0 ETH0.0060631317.47755753
Enter Bid160343202022-11-23 17:54:59694 days ago1669226099IN
0xa51973e1...802A1947B
0 ETH0.0045635517.34870684
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BurnAuction1155

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : BurnAuction1155.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";

contract BurnAuction1155 is ReentrancyGuard, Ownable {
    using ECDSA for bytes32;
    using Strings for uint256;

    uint16 public currentAuctionIndex;
    uint16 refundIndex;

    uint256 public beginAuctionTime;
    uint256 public timeToBid;
    uint256 public currentAuctionExtensionTime;

    address public BidNFT;
    address[] public joinedAuction;

    address public signer;
    address[] private batchTransferAddresses;
    uint256[] private batchIds;
    bool private nftsSent;
    bool private auctionCleared;

    struct Bid {
        uint256 tokenId;
        uint256 amount;
    }

    mapping(uint256 => mapping(address => uint256)) public amountBidByAuction;

    // Index with currentAuctionIndex to get the current auction reservers
    mapping(uint256 => mapping(address => Bid[])) public addressBidsByAuction;

    constructor() {
        currentAuctionIndex = 20000;
        batchTransferAddresses = [address(this), address(this), address(this), address(this)];
        batchIds = [0,1,2,3];
        auctionCleared = true;
    }

    function setBidContract(address _address) external onlyOwner {
        require(_address != address(0), "Address cannot be the zero address");
        BidNFT = _address;
    }

    function getTotalAuctionMembers() external view returns(uint256) {
        return joinedAuction.length;
    }

    function changeTimeToBid(uint256 _time) external onlyOwner {
        require(block.timestamp < (beginAuctionTime + timeToBid), "Auction has ended");
        timeToBid = _time;
    }

    function timeUntilAuctionEnds() external view returns(uint256) {
        require(block.timestamp > beginAuctionTime, "Auction is not active");
        require(block.timestamp < (beginAuctionTime + timeToBid), "Auction has ended");
        return (beginAuctionTime + timeToBid) - block.timestamp;
    }

    function getFinalValue(uint256[] memory nftValues) pure internal returns(uint256) {
        uint256 val;
        for(uint256 i = 0; i < nftValues.length; ) {
            val += nftValues[i];
            unchecked { ++i; }
        }
        return val;
    }

    function enterBid(uint256[] calldata nfts, uint256[] calldata nftValues, uint256[] calldata nftAmounts, bytes calldata signature) external nonReentrant {
        require(block.timestamp > beginAuctionTime, "Auction is not currently active");
        require(block.timestamp < (timeToBid + beginAuctionTime), "Auction has ended");
        require(verifySignature(nfts, nftValues, nftAmounts, signature), "Invalid nft values");
        require(IERC1155(BidNFT).isApprovedForAll(msg.sender, address(this)), "Contract not approved to transfer");

        // If this is the users first time bidding add them to the bidders array which is accurate for the current auction
        // and add them to the addressHasReserved mapping which records bidders for all auctions
        if(addressBidsByAuction[currentAuctionIndex][_msgSender()].length < 1) {
            joinedAuction.push(_msgSender());
        }

        // Transfer all bid NFTs to this contract
        IERC1155(BidNFT).safeBatchTransferFrom(_msgSender(), address(this), nfts, nftAmounts, "0x");

        for(uint256 i = 0; i < nfts.length; ) {
            Bid memory bid = Bid(nfts[i], nftAmounts[i]);
            addressBidsByAuction[currentAuctionIndex][_msgSender()].push(bid);
            unchecked { ++i; } 
        }
        
        amountBidByAuction[currentAuctionIndex][_msgSender()] += getFinalValue(nftValues);

        // If current bid is closer to auction end time than the auction extension time then extend the auction to prevent sniping
        if((beginAuctionTime + timeToBid) - block.timestamp < currentAuctionExtensionTime) {
            timeToBid = (block.timestamp + currentAuctionExtensionTime) - beginAuctionTime;
        }
    }

    
    // Create auction function (set auction start time, auction length, extension time) and can't be called until `clearAuction` has run
    function createAuction(uint256 startTime, uint256 bidTime, uint256 bidSnipeTimer) external onlyOwner {
        require(BidNFT != address(0), "Bid NFT needs to be set");
        require(auctionCleared == true, "Previous auction needs to be cleared");

        currentAuctionExtensionTime = bidSnipeTimer;
        beginAuctionTime = startTime;
        timeToBid = bidTime;
        nftsSent = false;
        auctionCleared = false;
    }

    function sendNFTs() external onlyOwner {
        address toDeadAddress = 0x000000000000000000000000000000000000dEaD;        
        uint256[] memory balances = IERC1155(BidNFT).balanceOfBatch(batchTransferAddresses, batchIds);
        IERC1155(BidNFT).safeBatchTransferFrom(address(this), toDeadAddress, batchIds, balances, "0x");
        nftsSent = true;
    }

    function clearAuction() public onlyOwner {
        require(beginAuctionTime > 0, "Auction already cleared");
        require(block.timestamp > beginAuctionTime + timeToBid, "Auction has yet to conclude");
        require(nftsSent == true, "Must send all NFTs before clearing auction");
        _clearAuction();
    }

    function _clearAuction() internal {
        delete beginAuctionTime;
        delete joinedAuction;
        delete currentAuctionExtensionTime;
        auctionCleared = true;

        unchecked { ++currentAuctionIndex; }
    }

    function setSigner(address signer_) external onlyOwner {
        require(signer_ != address(0), "Signer cannot be the zero address");
        signer = signer_;
    }

    function verifySignature(uint256[] calldata nfts, uint256[] calldata nftValues, uint256[] calldata nftAmounts, bytes calldata signature) internal view returns (bool) {
        require(signer != address(0), "Signer not set");
        bytes32 hash = keccak256(abi.encodePacked(nfts, nftValues, nftAmounts));
        bytes32 signedHash = hash.toEthSignedMessageHash();

        return SignatureChecker.isValidSignatureNow(signer, signedHash, signature);
    }

    // In case an ERC20 token needs to be sent from contract
    function ERC20Withdraw(address to, address _token, uint256 quantity) external onlyOwner {
        IERC20 targetToken = IERC20(_token);
        targetToken.transferFrom(address(this), to, quantity);
    }

    function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 2 of 12 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.1) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../Address.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success &&
            result.length == 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

File 3 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (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) {
        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.
            /// @solidity memory-safe-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 {
            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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 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 4 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 5 of 12 : 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 6 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 8 of 12 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

File 9 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 11 of 12 : 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 12 of 12 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"BidNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ERC20Withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressBidsByAuction","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"amountBidByAuction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beginAuctionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"changeTimeToBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"bidTime","type":"uint256"},{"internalType":"uint256","name":"bidSnipeTimer","type":"uint256"}],"name":"createAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentAuctionExtensionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentAuctionIndex","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"nfts","type":"uint256[]"},{"internalType":"uint256[]","name":"nftValues","type":"uint256[]"},{"internalType":"uint256[]","name":"nftAmounts","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"enterBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTotalAuctionMembers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"joinedAuction","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sendNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setBidContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeToBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeUntilAuctionEnds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060016000556200002233620000b6565b6001805461ffff60a01b191661027160a51b17905560408051608081018252308082526020820181905291810182905260608101919091526200006a90600890600462000108565b5060408051608081018252600081526001602082015260029181019190915260036060820152620000a090600990600462000172565b50600a805461ff001916610100179055620001cc565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000160579160200282015b828111156200016057825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000129565b506200016e929150620001b5565b5090565b82805482825590600052602060002090810192821562000160579160200282015b8281111562000160578251829060ff1690559160200191906001019062000193565b5b808211156200016e5760008155600101620001b6565b611c1d80620001dc6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063b0f7d96d116100c3578063d7ebac811161007c578063d7ebac81146102ef578063db8f665214610317578063dfac38d71461032a578063ed3e9ac514610333578063f23a6e611461033c578063f2fde38b1461035b57600080fd5b8063b0f7d96d14610263578063bc197c8114610276578063c850d2f8146102ae578063cab2e391146102b6578063cda4beef146102c9578063d4c21dab146102dc57600080fd5b80636c19e783116101155780636c19e78314610213578063715018a6146102265780638da5cb5b1461022e578063961449991461023f57806397b3de4e146102525780639cea14871461025a57600080fd5b80631a8414611461015d578063238ac933146101675780633b7e48d1146101975780633f13e4b31461019f57806358882e7f146101b257806360b9619d146101da575b600080fd5b61016561036e565b005b60075461017a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61016561049f565b60055461017a906001600160a01b031681565b6001546101c790600160a01b900461ffff1681565b60405161ffff909116815260200161018e565b6102056101e8366004611373565b600b60209081526000928352604080842090915290825290205481565b60405190815260200161018e565b61016561022136600461139f565b6105a2565b61016561062c565b6001546001600160a01b031661017a565b61016561024d3660046113ba565b61063e565b600654610205565b61020560035481565b6101656102713660046113f6565b6106c9565b610295610284366004611555565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161018e565b610205610704565b6101656102c436600461139f565b61079d565b6101656102d73660046115ff565b610828565b6101656102ea366004611670565b61090a565b6103026102fd366004611761565b610d49565b6040805192835260208301919091520161018e565b61017a6103253660046113f6565b610d93565b61020560025481565b61020560045481565b61029561034a366004611786565b63f23a6e6160e01b95945050505050565b61016561036936600461139f565b610dbd565b610376610e36565b6000600254116103cd5760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e20616c726561647920636c656172656400000000000000000060448201526064015b60405180910390fd5b6003546002546103dd9190611801565b421161042b5760405162461bcd60e51b815260206004820152601b60248201527f41756374696f6e206861732079657420746f20636f6e636c756465000000000060448201526064016103c4565b600a5460ff1615156001146104955760405162461bcd60e51b815260206004820152602a60248201527f4d7573742073656e6420616c6c204e465473206265666f726520636c6561726960448201526937339030bab1ba34b7b760b11b60648201526084016103c4565b61049d610e90565b565b6104a7610e36565b6005546040516313849cfd60e21b815261dead916000916001600160a01b0390911690634e1273f4906104e29060089060099060040161185a565b600060405180830381865afa1580156104ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261052791908101906118c2565b600554604051631759616b60e11b81529192506001600160a01b031690632eb2c2d69061055f90309086906009908790600401611953565b600060405180830381600087803b15801561057957600080fd5b505af115801561058d573d6000803e3d6000fd5b5050600a805460ff1916600117905550505050565b6105aa610e36565b6001600160a01b03811661060a5760405162461bcd60e51b815260206004820152602160248201527f5369676e65722063616e6e6f7420626520746865207a65726f206164647265736044820152607360f81b60648201526084016103c4565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610634610e36565b61049d6000610ede565b610646610e36565b6040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018390528391908216906323b872dd906064016020604051808303816000875af115801561069e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c291906119de565b5050505050565b6106d1610e36565b6003546002546106e19190611801565b42106106ff5760405162461bcd60e51b81526004016103c490611a00565b600355565b6000600254421161074f5760405162461bcd60e51b815260206004820152601560248201527441756374696f6e206973206e6f742061637469766560581b60448201526064016103c4565b60035460025461075f9190611801565b421061077d5760405162461bcd60e51b81526004016103c490611a00565b4260035460025461078e9190611801565b6107989190611a2b565b905090565b6107a5610e36565b6001600160a01b0381166108065760405162461bcd60e51b815260206004820152602260248201527f416464726573732063616e6e6f7420626520746865207a65726f206164647265604482015261737360f01b60648201526084016103c4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610830610e36565b6005546001600160a01b03166108885760405162461bcd60e51b815260206004820152601760248201527f426964204e4654206e6565647320746f2062652073657400000000000000000060448201526064016103c4565b600a5460ff6101009091041615156001146108f15760405162461bcd60e51b8152602060048201526024808201527f50726576696f75732061756374696f6e206e6565647320746f20626520636c65604482015263185c995960e21b60648201526084016103c4565b600455600291909155600355600a805461ffff19169055565b60026000540361095c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c4565b600260008190555442116109b25760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e206973206e6f742063757272656e746c79206163746976650060448201526064016103c4565b6002546003546109c29190611801565b42106109e05760405162461bcd60e51b81526004016103c490611a00565b6109f08888888888888888610f30565b610a315760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964206e66742076616c75657360701b60448201526064016103c4565b60055460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610a7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa391906119de565b610af95760405162461bcd60e51b815260206004820152602160248201527f436f6e7472616374206e6f7420617070726f76656420746f207472616e7366656044820152603960f91b60648201526084016103c4565b60018054600160a01b900461ffff166000908152600c602090815260408083203384529091529020541015610b6b57600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b031916331790555b6005546001600160a01b0316632eb2c2d633308b8b89896040518763ffffffff1660e01b8152600401610ba396959493929190611a70565b600060405180830381600087803b158015610bbd57600080fd5b505af1158015610bd1573d6000803e3d6000fd5b5050505060005b87811015610c7f57600060405180604001604052808b8b85818110610bff57610bff611ad2565b905060200201358152602001878785818110610c1d57610c1d611ad2565b6020908102929092013590925260018054600160a01b900461ffff166000908152600c83526040808220338352845281208054808401825590825290839020855160029092020190815593909101519281019290925550919091019050610bd8565b50610cbc86868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061106a92505050565b600154600160a01b900461ffff166000908152600b6020908152604080832033845290915281208054909190610cf3908490611801565b90915550506004546003546002544291610d0c91611801565b610d169190611a2b565b1015610d3a57600254600454610d2c9042611801565b610d369190611a2b565b6003555b50506001600055505050505050565b600c6020528260005260406000206020528160005260406000208181548110610d7157600080fd5b6000918252602090912060029091020180546001909101549093509150839050565b60068181548110610da357600080fd5b6000918252602090912001546001600160a01b0316905081565b610dc5610e36565b6001600160a01b038116610e2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103c4565b610e3381610ede565b50565b6001546001600160a01b0316331461049d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c4565b60026000905560066000610ea49190611325565b6000600455600a805461ff0019166101001790556001805461ffff600160a01b808304821684019091160261ffff60a01b19909116179055565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546000906001600160a01b0316610f7c5760405162461bcd60e51b815260206004820152600e60248201526d14da59db995c881b9bdd081cd95d60921b60448201526064016103c4565b6000898989898989604051602001610f9996959493929190611b11565b604051602081830303815290604052805190602001209050600061100a826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600754604080516020601f890181900481028201810190925287815292935061105b926001600160a01b0390921691849189908990819084018382808284376000920191909152506110af92505050565b9b9a5050505050505050505050565b60008060005b83518110156110a85783818151811061108b5761108b611ad2565b60200260200101518261109e9190611801565b9150600101611070565b5092915050565b60008060006110be85856111f3565b909250905060008160048111156110d7576110d7611b3e565b1480156110f55750856001600160a01b0316826001600160a01b0316145b15611105576001925050506111ec565b600080876001600160a01b0316631626ba7e60e01b888860405160240161112d929190611b78565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161116b9190611bb2565b600060405180830381855afa9150503d80600081146111a6576040519150601f19603f3d011682016040523d82523d6000602084013e6111ab565b606091505b50915091508180156111be575080516020145b80156111e557508051630b135d3f60e11b906111e39083016020908101908401611bce565b145b9450505050505b9392505050565b60008082516041036112295760208301516040840151606085015160001a61121d87828585611238565b94509450505050611231565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561126f575060009050600361131c565b8460ff16601b1415801561128757508460ff16601c14155b15611298575060009050600461131c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156112ec573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113155760006001925092505061131c565b9150600090505b94509492505050565b5080546000825590600052602060002090810190610e3391905b80821115611353576000815560010161133f565b5090565b80356001600160a01b038116811461136e57600080fd5b919050565b6000806040838503121561138657600080fd5b8235915061139660208401611357565b90509250929050565b6000602082840312156113b157600080fd5b6111ec82611357565b6000806000606084860312156113cf57600080fd5b6113d884611357565b92506113e660208501611357565b9150604084013590509250925092565b60006020828403121561140857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561144e5761144e61140f565b604052919050565b600067ffffffffffffffff8211156114705761147061140f565b5060051b60200190565b600082601f83011261148b57600080fd5b813560206114a061149b83611456565b611425565b82815260059290921b840181019181810190868411156114bf57600080fd5b8286015b848110156114da57803583529183019183016114c3565b509695505050505050565b600082601f8301126114f657600080fd5b813567ffffffffffffffff8111156115105761151061140f565b611523601f8201601f1916602001611425565b81815284602083860101111561153857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561156d57600080fd5b61157686611357565b945061158460208701611357565b9350604086013567ffffffffffffffff808211156115a157600080fd5b6115ad89838a0161147a565b945060608801359150808211156115c357600080fd5b6115cf89838a0161147a565b935060808801359150808211156115e557600080fd5b506115f2888289016114e5565b9150509295509295909350565b60008060006060848603121561161457600080fd5b505081359360208301359350604090920135919050565b60008083601f84011261163d57600080fd5b50813567ffffffffffffffff81111561165557600080fd5b6020830191508360208260051b850101111561123157600080fd5b6000806000806000806000806080898b03121561168c57600080fd5b883567ffffffffffffffff808211156116a457600080fd5b6116b08c838d0161162b565b909a50985060208b01359150808211156116c957600080fd5b6116d58c838d0161162b565b909850965060408b01359150808211156116ee57600080fd5b6116fa8c838d0161162b565b909650945060608b013591508082111561171357600080fd5b818b0191508b601f83011261172757600080fd5b81358181111561173657600080fd5b8c602082850101111561174857600080fd5b6020830194508093505050509295985092959890939650565b60008060006060848603121561177657600080fd5b833592506113e660208501611357565b600080600080600060a0868803121561179e57600080fd5b6117a786611357565b94506117b560208701611357565b93506040860135925060608601359150608086013567ffffffffffffffff8111156117df57600080fd5b6115f2888289016114e5565b634e487b7160e01b600052601160045260246000fd5b80820180821115611814576118146117eb565b92915050565b6000815480845260208085019450836000528060002060005b8381101561184f57815487529582019560019182019101611833565b509495945050505050565b6000604082016040835280855480835260608501915086600052602092508260002060005b828110156118a45781546001600160a01b03168452928401926001918201910161187f565b505050838103828501526118b8818661181a565b9695505050505050565b600060208083850312156118d557600080fd5b825167ffffffffffffffff8111156118ec57600080fd5b8301601f810185136118fd57600080fd5b805161190b61149b82611456565b81815260059190911b8201830190838101908783111561192a57600080fd5b928401925b828410156119485783518252928401929084019061192f565b979650505050505050565b600060018060a01b03808716835260208187168185015260a0604085015261197e60a085018761181a565b8481036060860152855180825282870193509082019060005b818110156119b357845183529383019391830191600101611997565b505084810360808601526002815261060f60f31b6020820152604081015b9998505050505050505050565b6000602082840312156119f057600080fd5b815180151581146111ec57600080fd5b602080825260119082015270105d58dd1a5bdb881a185cc8195b991959607a1b604082015260600190565b81810381811115611814576118146117eb565b81835260006001600160fb1b03831115611a5757600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0387811682528616602082015260a060408201819052600090611a9d9083018688611a3e565b8281036060840152611ab0818587611a3e565b83810360808501526002815261060f60f31b60208201529050604081016119d1565b634e487b7160e01b600052603260045260246000fd5b60006001600160fb1b03831115611afe57600080fd5b8260051b80838637939093019392505050565b6000611b32611b2b611b24848a8c611ae8565b8789611ae8565b8486611ae8565b98975050505050505050565b634e487b7160e01b600052602160045260246000fd5b60005b83811015611b6f578181015183820152602001611b57565b50506000910152565b8281526040602082015260008251806040840152611b9d816060850160208701611b54565b601f01601f1916919091016060019392505050565b60008251611bc4818460208701611b54565b9190910192915050565b600060208284031215611be057600080fd5b505191905056fea2646970667358221220c150175d7166934f831440ec2440d90b172ff74f55f7c5f5962b0c2e1b5546ce64736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063b0f7d96d116100c3578063d7ebac811161007c578063d7ebac81146102ef578063db8f665214610317578063dfac38d71461032a578063ed3e9ac514610333578063f23a6e611461033c578063f2fde38b1461035b57600080fd5b8063b0f7d96d14610263578063bc197c8114610276578063c850d2f8146102ae578063cab2e391146102b6578063cda4beef146102c9578063d4c21dab146102dc57600080fd5b80636c19e783116101155780636c19e78314610213578063715018a6146102265780638da5cb5b1461022e578063961449991461023f57806397b3de4e146102525780639cea14871461025a57600080fd5b80631a8414611461015d578063238ac933146101675780633b7e48d1146101975780633f13e4b31461019f57806358882e7f146101b257806360b9619d146101da575b600080fd5b61016561036e565b005b60075461017a906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61016561049f565b60055461017a906001600160a01b031681565b6001546101c790600160a01b900461ffff1681565b60405161ffff909116815260200161018e565b6102056101e8366004611373565b600b60209081526000928352604080842090915290825290205481565b60405190815260200161018e565b61016561022136600461139f565b6105a2565b61016561062c565b6001546001600160a01b031661017a565b61016561024d3660046113ba565b61063e565b600654610205565b61020560035481565b6101656102713660046113f6565b6106c9565b610295610284366004611555565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161018e565b610205610704565b6101656102c436600461139f565b61079d565b6101656102d73660046115ff565b610828565b6101656102ea366004611670565b61090a565b6103026102fd366004611761565b610d49565b6040805192835260208301919091520161018e565b61017a6103253660046113f6565b610d93565b61020560025481565b61020560045481565b61029561034a366004611786565b63f23a6e6160e01b95945050505050565b61016561036936600461139f565b610dbd565b610376610e36565b6000600254116103cd5760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e20616c726561647920636c656172656400000000000000000060448201526064015b60405180910390fd5b6003546002546103dd9190611801565b421161042b5760405162461bcd60e51b815260206004820152601b60248201527f41756374696f6e206861732079657420746f20636f6e636c756465000000000060448201526064016103c4565b600a5460ff1615156001146104955760405162461bcd60e51b815260206004820152602a60248201527f4d7573742073656e6420616c6c204e465473206265666f726520636c6561726960448201526937339030bab1ba34b7b760b11b60648201526084016103c4565b61049d610e90565b565b6104a7610e36565b6005546040516313849cfd60e21b815261dead916000916001600160a01b0390911690634e1273f4906104e29060089060099060040161185a565b600060405180830381865afa1580156104ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261052791908101906118c2565b600554604051631759616b60e11b81529192506001600160a01b031690632eb2c2d69061055f90309086906009908790600401611953565b600060405180830381600087803b15801561057957600080fd5b505af115801561058d573d6000803e3d6000fd5b5050600a805460ff1916600117905550505050565b6105aa610e36565b6001600160a01b03811661060a5760405162461bcd60e51b815260206004820152602160248201527f5369676e65722063616e6e6f7420626520746865207a65726f206164647265736044820152607360f81b60648201526084016103c4565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610634610e36565b61049d6000610ede565b610646610e36565b6040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018390528391908216906323b872dd906064016020604051808303816000875af115801561069e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c291906119de565b5050505050565b6106d1610e36565b6003546002546106e19190611801565b42106106ff5760405162461bcd60e51b81526004016103c490611a00565b600355565b6000600254421161074f5760405162461bcd60e51b815260206004820152601560248201527441756374696f6e206973206e6f742061637469766560581b60448201526064016103c4565b60035460025461075f9190611801565b421061077d5760405162461bcd60e51b81526004016103c490611a00565b4260035460025461078e9190611801565b6107989190611a2b565b905090565b6107a5610e36565b6001600160a01b0381166108065760405162461bcd60e51b815260206004820152602260248201527f416464726573732063616e6e6f7420626520746865207a65726f206164647265604482015261737360f01b60648201526084016103c4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b610830610e36565b6005546001600160a01b03166108885760405162461bcd60e51b815260206004820152601760248201527f426964204e4654206e6565647320746f2062652073657400000000000000000060448201526064016103c4565b600a5460ff6101009091041615156001146108f15760405162461bcd60e51b8152602060048201526024808201527f50726576696f75732061756374696f6e206e6565647320746f20626520636c65604482015263185c995960e21b60648201526084016103c4565b600455600291909155600355600a805461ffff19169055565b60026000540361095c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103c4565b600260008190555442116109b25760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e206973206e6f742063757272656e746c79206163746976650060448201526064016103c4565b6002546003546109c29190611801565b42106109e05760405162461bcd60e51b81526004016103c490611a00565b6109f08888888888888888610f30565b610a315760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964206e66742076616c75657360701b60448201526064016103c4565b60055460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610a7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa391906119de565b610af95760405162461bcd60e51b815260206004820152602160248201527f436f6e7472616374206e6f7420617070726f76656420746f207472616e7366656044820152603960f91b60648201526084016103c4565b60018054600160a01b900461ffff166000908152600c602090815260408083203384529091529020541015610b6b57600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b031916331790555b6005546001600160a01b0316632eb2c2d633308b8b89896040518763ffffffff1660e01b8152600401610ba396959493929190611a70565b600060405180830381600087803b158015610bbd57600080fd5b505af1158015610bd1573d6000803e3d6000fd5b5050505060005b87811015610c7f57600060405180604001604052808b8b85818110610bff57610bff611ad2565b905060200201358152602001878785818110610c1d57610c1d611ad2565b6020908102929092013590925260018054600160a01b900461ffff166000908152600c83526040808220338352845281208054808401825590825290839020855160029092020190815593909101519281019290925550919091019050610bd8565b50610cbc86868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061106a92505050565b600154600160a01b900461ffff166000908152600b6020908152604080832033845290915281208054909190610cf3908490611801565b90915550506004546003546002544291610d0c91611801565b610d169190611a2b565b1015610d3a57600254600454610d2c9042611801565b610d369190611a2b565b6003555b50506001600055505050505050565b600c6020528260005260406000206020528160005260406000208181548110610d7157600080fd5b6000918252602090912060029091020180546001909101549093509150839050565b60068181548110610da357600080fd5b6000918252602090912001546001600160a01b0316905081565b610dc5610e36565b6001600160a01b038116610e2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103c4565b610e3381610ede565b50565b6001546001600160a01b0316331461049d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c4565b60026000905560066000610ea49190611325565b6000600455600a805461ff0019166101001790556001805461ffff600160a01b808304821684019091160261ffff60a01b19909116179055565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546000906001600160a01b0316610f7c5760405162461bcd60e51b815260206004820152600e60248201526d14da59db995c881b9bdd081cd95d60921b60448201526064016103c4565b6000898989898989604051602001610f9996959493929190611b11565b604051602081830303815290604052805190602001209050600061100a826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b600754604080516020601f890181900481028201810190925287815292935061105b926001600160a01b0390921691849189908990819084018382808284376000920191909152506110af92505050565b9b9a5050505050505050505050565b60008060005b83518110156110a85783818151811061108b5761108b611ad2565b60200260200101518261109e9190611801565b9150600101611070565b5092915050565b60008060006110be85856111f3565b909250905060008160048111156110d7576110d7611b3e565b1480156110f55750856001600160a01b0316826001600160a01b0316145b15611105576001925050506111ec565b600080876001600160a01b0316631626ba7e60e01b888860405160240161112d929190611b78565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161116b9190611bb2565b600060405180830381855afa9150503d80600081146111a6576040519150601f19603f3d011682016040523d82523d6000602084013e6111ab565b606091505b50915091508180156111be575080516020145b80156111e557508051630b135d3f60e11b906111e39083016020908101908401611bce565b145b9450505050505b9392505050565b60008082516041036112295760208301516040840151606085015160001a61121d87828585611238565b94509450505050611231565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561126f575060009050600361131c565b8460ff16601b1415801561128757508460ff16601c14155b15611298575060009050600461131c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156112ec573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113155760006001925092505061131c565b9150600090505b94509492505050565b5080546000825590600052602060002090810190610e3391905b80821115611353576000815560010161133f565b5090565b80356001600160a01b038116811461136e57600080fd5b919050565b6000806040838503121561138657600080fd5b8235915061139660208401611357565b90509250929050565b6000602082840312156113b157600080fd5b6111ec82611357565b6000806000606084860312156113cf57600080fd5b6113d884611357565b92506113e660208501611357565b9150604084013590509250925092565b60006020828403121561140857600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561144e5761144e61140f565b604052919050565b600067ffffffffffffffff8211156114705761147061140f565b5060051b60200190565b600082601f83011261148b57600080fd5b813560206114a061149b83611456565b611425565b82815260059290921b840181019181810190868411156114bf57600080fd5b8286015b848110156114da57803583529183019183016114c3565b509695505050505050565b600082601f8301126114f657600080fd5b813567ffffffffffffffff8111156115105761151061140f565b611523601f8201601f1916602001611425565b81815284602083860101111561153857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561156d57600080fd5b61157686611357565b945061158460208701611357565b9350604086013567ffffffffffffffff808211156115a157600080fd5b6115ad89838a0161147a565b945060608801359150808211156115c357600080fd5b6115cf89838a0161147a565b935060808801359150808211156115e557600080fd5b506115f2888289016114e5565b9150509295509295909350565b60008060006060848603121561161457600080fd5b505081359360208301359350604090920135919050565b60008083601f84011261163d57600080fd5b50813567ffffffffffffffff81111561165557600080fd5b6020830191508360208260051b850101111561123157600080fd5b6000806000806000806000806080898b03121561168c57600080fd5b883567ffffffffffffffff808211156116a457600080fd5b6116b08c838d0161162b565b909a50985060208b01359150808211156116c957600080fd5b6116d58c838d0161162b565b909850965060408b01359150808211156116ee57600080fd5b6116fa8c838d0161162b565b909650945060608b013591508082111561171357600080fd5b818b0191508b601f83011261172757600080fd5b81358181111561173657600080fd5b8c602082850101111561174857600080fd5b6020830194508093505050509295985092959890939650565b60008060006060848603121561177657600080fd5b833592506113e660208501611357565b600080600080600060a0868803121561179e57600080fd5b6117a786611357565b94506117b560208701611357565b93506040860135925060608601359150608086013567ffffffffffffffff8111156117df57600080fd5b6115f2888289016114e5565b634e487b7160e01b600052601160045260246000fd5b80820180821115611814576118146117eb565b92915050565b6000815480845260208085019450836000528060002060005b8381101561184f57815487529582019560019182019101611833565b509495945050505050565b6000604082016040835280855480835260608501915086600052602092508260002060005b828110156118a45781546001600160a01b03168452928401926001918201910161187f565b505050838103828501526118b8818661181a565b9695505050505050565b600060208083850312156118d557600080fd5b825167ffffffffffffffff8111156118ec57600080fd5b8301601f810185136118fd57600080fd5b805161190b61149b82611456565b81815260059190911b8201830190838101908783111561192a57600080fd5b928401925b828410156119485783518252928401929084019061192f565b979650505050505050565b600060018060a01b03808716835260208187168185015260a0604085015261197e60a085018761181a565b8481036060860152855180825282870193509082019060005b818110156119b357845183529383019391830191600101611997565b505084810360808601526002815261060f60f31b6020820152604081015b9998505050505050505050565b6000602082840312156119f057600080fd5b815180151581146111ec57600080fd5b602080825260119082015270105d58dd1a5bdb881a185cc8195b991959607a1b604082015260600190565b81810381811115611814576118146117eb565b81835260006001600160fb1b03831115611a5757600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0387811682528616602082015260a060408201819052600090611a9d9083018688611a3e565b8281036060840152611ab0818587611a3e565b83810360808501526002815261060f60f31b60208201529050604081016119d1565b634e487b7160e01b600052603260045260246000fd5b60006001600160fb1b03831115611afe57600080fd5b8260051b80838637939093019392505050565b6000611b32611b2b611b24848a8c611ae8565b8789611ae8565b8486611ae8565b98975050505050505050565b634e487b7160e01b600052602160045260246000fd5b60005b83811015611b6f578181015183820152602001611b57565b50506000910152565b8281526040602082015260008251806040840152611b9d816060850160208701611b54565b601f01601f1916919091016060019392505050565b60008251611bc4818460208701611b54565b9190910192915050565b600060208284031215611be057600080fd5b505191905056fea2646970667358221220c150175d7166934f831440ec2440d90b172ff74f55f7c5f5962b0c2e1b5546ce64736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.