ETH Price: $3,399.57 (+2.33%)

Contract

0x5b748663AB0faE4BA7F27cb7b72D182530a16C0e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim213445282024-12-06 16:03:5917 days ago1733501039IN
0x5b748663...530a16C0e
0 ETH0.0009679844.56043286
Claim169982132023-04-07 17:53:35626 days ago1680890015IN
0x5b748663...530a16C0e
0 ETH0.0004687521.57885859
Claim169967632023-04-07 12:59:35626 days ago1680872375IN
0x5b748663...530a16C0e
0 ETH0.000891420.83116772
Bid169960602023-04-07 10:35:23626 days ago1680863723IN
0x5b748663...530a16C0e
0.24 ETH0.0005394822.80074011
Claim169959072023-04-07 10:03:59626 days ago1680861839IN
0x5b748663...530a16C0e
0 ETH0.0008532919.94603312
Claim169906722023-04-06 16:14:47627 days ago1680797687IN
0x5b748663...530a16C0e
0 ETH0.0018804332.35714605
Claim169897562023-04-06 13:06:59627 days ago1680786419IN
0x5b748663...530a16C0e
0 ETH0.0013633731.86951755
Claim169891172023-04-06 10:53:23627 days ago1680778403IN
0x5b748663...530a16C0e
0 ETH0.0011193126.16448756
Claim169886952023-04-06 9:25:35627 days ago1680773135IN
0x5b748663...530a16C0e
0 ETH0.0015079925.94849311
Claim169882392023-04-06 7:48:47627 days ago1680767327IN
0x5b748663...530a16C0e
0 ETH0.0018621632.04272326
Claim169844862023-04-05 18:59:11628 days ago1680721151IN
0x5b748663...530a16C0e
0 ETH0.0012736929.77324772
Claim169841972023-04-05 17:59:35628 days ago1680717575IN
0x5b748663...530a16C0e
0 ETH0.0015053335.18792036
Claim169838292023-04-05 16:43:11628 days ago1680712991IN
0x5b748663...530a16C0e
0 ETH0.0014557634.02908396
Claim169832492023-04-05 14:44:11628 days ago1680705851IN
0x5b748663...530a16C0e
0 ETH0.001515435.42327919
Claim169814992023-04-05 8:48:59628 days ago1680684539IN
0x5b748663...530a16C0e
0 ETH0.0016490628.36998644
Claim169814012023-04-05 8:28:47628 days ago1680683327IN
0x5b748663...530a16C0e
0 ETH0.0016728328.78493745
Claim169796472023-04-05 2:28:35629 days ago1680661715IN
0x5b748663...530a16C0e
0 ETH0.0015386135.96580905
Claim169771162023-04-04 17:53:35629 days ago1680630815IN
0x5b748663...530a16C0e
0 ETH0.00187232.21212745
Claim169767752023-04-04 16:43:47629 days ago1680626627IN
0x5b748663...530a16C0e
0 ETH0.0021781137.47943968
Claim169762232023-04-04 14:50:59629 days ago1680619859IN
0x5b748663...530a16C0e
0 ETH0.0016836839.35681986
Claim169758372023-04-04 13:32:23629 days ago1680615143IN
0x5b748663...530a16C0e
0 ETH0.001309130.60090791
Claim169750792023-04-04 10:56:23629 days ago1680605783IN
0x5b748663...530a16C0e
0 ETH0.0008111518.96108771
Claim169745802023-04-04 9:14:47629 days ago1680599687IN
0x5b748663...530a16C0e
0 ETH0.0012787922
Claim169743642023-04-04 8:30:35629 days ago1680597035IN
0x5b748663...530a16C0e
0 ETH0.000914321.37220295
Claim169727342023-04-04 2:54:11630 days ago1680576851IN
0x5b748663...530a16C0e
0 ETH0.0008050818.81920329
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
170386392023-04-13 12:49:23620 days ago1681390163
0x5b748663...530a16C0e
4.10857401 ETH
169967632023-04-07 12:59:35626 days ago1680872375
0x5b748663...530a16C0e
0.024 ETH
169959072023-04-07 10:03:59626 days ago1680861839
0x5b748663...530a16C0e
0.084 ETH
169906722023-04-06 16:14:47627 days ago1680797687
0x5b748663...530a16C0e
0.245 ETH
169897562023-04-06 13:06:59627 days ago1680786419
0x5b748663...530a16C0e
0.07 ETH
169891172023-04-06 10:53:23627 days ago1680778403
0x5b748663...530a16C0e
0.065 ETH
169886952023-04-06 9:25:35627 days ago1680773135
0x5b748663...530a16C0e
0.2352 ETH
169882392023-04-06 7:48:47627 days ago1680767327
0x5b748663...530a16C0e
0.4214 ETH
169844862023-04-05 18:59:11628 days ago1680721151
0x5b748663...530a16C0e
0.024 ETH
169841972023-04-05 17:59:35628 days ago1680717575
0x5b748663...530a16C0e
0.048 ETH
169838292023-04-05 16:43:11628 days ago1680712991
0x5b748663...530a16C0e
0.024 ETH
169832492023-04-05 14:44:11628 days ago1680705851
0x5b748663...530a16C0e
0.034 ETH
169814992023-04-05 8:48:59628 days ago1680684539
0x5b748663...530a16C0e
0.245 ETH
169814012023-04-05 8:28:47628 days ago1680683327
0x5b748663...530a16C0e
0.23716 ETH
169796472023-04-05 2:28:35629 days ago1680661715
0x5b748663...530a16C0e
0.0011 ETH
169771162023-04-04 17:53:35629 days ago1680630815
0x5b748663...530a16C0e
0.2744 ETH
169767752023-04-04 16:43:47629 days ago1680626627
0x5b748663...530a16C0e
0.2352 ETH
169762232023-04-04 14:50:59629 days ago1680619859
0x5b748663...530a16C0e
0.0201 ETH
169758372023-04-04 13:32:23629 days ago1680615143
0x5b748663...530a16C0e
0.01 ETH
169750792023-04-04 10:56:23629 days ago1680605783
0x5b748663...530a16C0e
0.024 ETH
169745802023-04-04 9:14:47629 days ago1680599687
0x5b748663...530a16C0e
0.2352 ETH
169743642023-04-04 8:30:35629 days ago1680597035
0x5b748663...530a16C0e
0.01 ETH
169727342023-04-04 2:54:11630 days ago1680576851
0x5b748663...530a16C0e
0.0201 ETH
169698882023-04-03 17:11:23630 days ago1680541883
0x5b748663...530a16C0e
0.06 ETH
169698362023-04-03 17:00:59630 days ago1680541259
0x5b748663...530a16C0e
0.06 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AuctionRaffle

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 13 : AuctionRaffle.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

import "./Config.sol";
import "./models/BidModel.sol";
import "./models/StateModel.sol";
import "./libs/MaxHeap.sol";

import "hardhat/console.sol";

/***
 * @title Auction & Raffle
 * @notice Draws winners using a mixed auction & raffle scheme.
 * @author TrueFi Engineering team
 */
contract AuctionRaffle is Ownable, Config, BidModel, StateModel {
    using SafeERC20 for IERC20;
    using MaxHeap for uint256[];

    mapping(address => Bid) _bids; // bidder address -> Bid
    mapping(uint256 => address payable) _bidders; // bidderID -> bidder address
    uint256 _nextBidderID = 1;

    uint256[] _heap;
    uint256 _minKeyIndex;
    uint256 _minKeyValue = type(uint256).max;

    SettleState _settleState = SettleState.AWAITING_SETTLING;
    uint256[] _raffleParticipants;

    uint256[] _auctionWinners;
    uint256[] _raffleWinners;

    bool _proceedsClaimed;
    uint256 _claimedFeesIndex;

    uint256[] _tempWinners; // temp array for sorting auction winners used by settleAuction method

    /// @dev A new bid has been placed or an existing bid has been bumped
    event NewBid(address bidder, uint256 bidderID, uint256 bidAmount);

    /// @dev A bidder has been drawn as auction winner
    event NewAuctionWinner(uint256 bidderID);

    /// @dev A bidder has been drawn as raffle winner
    event NewRaffleWinner(uint256 bidderID);

    /// @dev A bidder has been drawn as the golden ticket winner
    event NewGoldenTicketWinner(uint256 bidderID);

    modifier onlyInState(State requiredState) {
        require(getState() == requiredState, "AuctionRaffle: is in invalid state");
        _;
    }

    modifier onlyExternalTransactions() {
        require(msg.sender == tx.origin, "AuctionRaffle: internal transactions are forbidden");
        _;
    }

    constructor(
        address initialOwner,
        uint256 biddingStartTime,
        uint256 biddingEndTime,
        uint256 claimingEndTime,
        uint256 auctionWinnersCount,
        uint256 raffleWinnersCount,
        uint256 reservePrice,
        uint256 minBidIncrement,
        bytes32 discountRoot
    )
        Config(
            biddingStartTime,
            biddingEndTime,
            claimingEndTime,
            auctionWinnersCount,
            raffleWinnersCount,
            reservePrice,
            minBidIncrement,
            discountRoot
        )
        Ownable()
    {
        if (initialOwner != msg.sender) {
            Ownable.transferOwnership(initialOwner);
        }
    }

    receive() external payable {
        revert("AuctionRaffle: contract accepts ether transfers only by bid method");
    }

    fallback() external payable {
        revert("AuctionRaffle: contract accepts ether transfers only by bid method");
    }

    /***
     * @notice Places a new bid or bumps an existing bid.
     * @dev Assigns a unique bidderID to the sender address.
     */
    function bid() external payable onlyExternalTransactions onlyInState(State.BIDDING_OPEN) {
      makeBid();
    }

    /***
     * @notice Places a new bid or bumps an existing bid with a discount.
     * The discount is proved using a Merkle Proof.
     * @dev Applies a discount on the msg.sender's bid. We need to store each bidder's discount
     * so that we can easily compute claimable proceeds when settlement is done.
     * If msg.sender makes multiple bids, the highest discount is kept.
     */
    function bidWithDiscount(
      uint256 discountPercentage,
      bytes32[] memory proof
    ) external payable onlyExternalTransactions onlyInState(State.BIDDING_OPEN) {
      require(discountPercentage <= 100, "AuctionRaffle: discount must be at most 100%");

      bytes32 leaf = keccak256(abi.encode(msg.sender, discountPercentage));
      require(
        MerkleProof.verify(proof, discountRoot, leaf),
        "AuctionRaffle: discount proof invalid"
      );
      makeBid();

      // after making a bid, bidder exists for `msg.sender`
      Bid storage bidder = _bids[msg.sender];
      uint256 oldDiscount = bidder.discount;

      uint256 reservePrice = _reservePrice;
      uint256 discount = (reservePrice * discountPercentage) / 100;

      if (discount > oldDiscount) {
        bidder.discount = discount;
      }
    }

    /***
     * @notice Places a new bid or bumps an existing bid.
     * @dev Assigns a unique bidderID to the sender address.
     */
    function makeBid() private {
        Bid storage bidder = _bids[msg.sender];
        if (bidder.amount == 0) {
            require(msg.value >= _reservePrice, "AuctionRaffle: bid amount is below reserve price");
            bidder.amount = msg.value;
            bidder.bidderID = _nextBidderID++;
            _bidders[bidder.bidderID] = payable(msg.sender);
            _raffleParticipants.push(bidder.bidderID);

            addBidToHeap(bidder.bidderID, bidder.amount);
        } else {
            require(msg.value >= _minBidIncrement, "AuctionRaffle: bid increment too low");
            uint256 oldAmount = bidder.amount;
            bidder.amount += msg.value;

            updateHeapBid(bidder.bidderID, oldAmount, bidder.amount);
        }
        emit NewBid(msg.sender, bidder.bidderID, bidder.amount);
    }

    /**
     * @notice Draws auction winners and changes contract state to AUCTION_SETTLED.
     * @dev Removes highest bids from the heap, sets their WinType to AUCTION and adds them to _auctionWinners array.
     * Temporarily adds auction winner bidderIDs to a separate heap and then retrieves them in descending order.
     * This is done to efficiently remove auction winners from _raffleParticipants array as they no longer take part
     * in the raffle.
     */
    function settleAuction() external onlyOwner onlyInState(State.BIDDING_CLOSED) {
        _settleState = SettleState.AUCTION_SETTLED;
        uint256 biddersCount = getBiddersCount();
        uint256 raffleWinnersCount = _raffleWinnersCount;
        if (biddersCount <= raffleWinnersCount) {
            return;
        }

        uint256 auctionParticipantsCount = biddersCount - raffleWinnersCount;
        uint256 winnersLength = _auctionWinnersCount;
        if (auctionParticipantsCount < winnersLength) {
            winnersLength = auctionParticipantsCount;
        }

        for (uint256 i = 0; i < winnersLength; ++i) {
            uint256 key = _heap.removeMax();
            uint256 bidderID = extractBidderID(key);
            addAuctionWinner(bidderID);
            _tempWinners.insert(bidderID);
        }

        delete _heap;
        delete _minKeyIndex;
        delete _minKeyValue;

        for (uint256 i = 0; i < winnersLength; ++i) {
            uint256 bidderID = _tempWinners.removeMax();
            removeRaffleParticipant(bidderID - 1);
        }
    }

    /**
     * @notice Draws raffle winners and changes contract state to RAFFLE_SETTLED. The first selected raffle winner
     * becomes the Golden Ticket winner.
     * @dev Sets WinType of the first selected bid to GOLDEN_TICKET. Sets WinType to RAFFLE for the remaining selected
     * bids.
     */
    function settleRaffle() external onlyOwner onlyInState(State.AUCTION_SETTLED) {
        _settleState = SettleState.RAFFLE_SETTLED;

        uint256 participantsLength = _raffleParticipants.length;
        if (participantsLength == 0) {
            return;
        }

        uint256 seed = block.difficulty;
        uint256 raffleWinnersCount = _raffleWinnersCount;
        uint256[] memory randomNumbers = new uint256[](raffleWinnersCount / _winnersPerRandom);
        {
          uint256 randomNumbersLen = randomNumbers.length;
          for (uint256 i = 0; i < randomNumbersLen; ++i) {
            randomNumbers[i] = uint256(keccak256(abi.encode(seed, i)));
          }
        }

        (participantsLength, randomNumbers[0]) = selectGoldenTicketWinner(participantsLength, randomNumbers[0]);

        if (participantsLength < raffleWinnersCount) {
            selectAllRaffleParticipantsAsWinners(participantsLength);
            return;
        }

        selectRaffleWinners(participantsLength, randomNumbers);
    }

    /**
     * @notice Allows a bidder to claim their funds after the raffle is settled.
     * Golden Ticket winner can withdraw the full bid amount.
     * Raffle winner can withdraw the bid amount minus `_reservePrice`.
     * Non-winning bidder can withdraw the bid amount minus 2% fee.
     * Auction winner pays the full bid amount and is not entitled to any withdrawal.
     */
    function claim(uint256 bidderID) external onlyInState(State.RAFFLE_SETTLED) {
        address payable bidderAddress = getBidderAddress(bidderID);
        Bid storage bidder = _bids[bidderAddress];
        require(!bidder.claimed, "AuctionRaffle: funds have already been claimed");
        require(bidder.winType != WinType.AUCTION, "AuctionRaffle: auction winners cannot claim funds");

        bidder.claimed = true;
        uint256 claimAmount;
        if (bidder.winType == WinType.RAFFLE) {
            // discount = 0 if no discount to apply
            // discount = a % of _reservePrice so subtracting is safe
            claimAmount = bidder.amount - (_reservePrice - bidder.discount);
        } else if (bidder.winType == WinType.GOLDEN_TICKET) {
            claimAmount = bidder.amount;
        } else if (bidder.winType == WinType.LOSS) {
            claimAmount = (bidder.amount * 98) / 100;
        }

        if (claimAmount > 0) {
            bidderAddress.transfer(claimAmount);
        }
    }

    /**
     * @notice Allows the owner to claim proceeds from the ticket sale after the raffle is settled.
     * Proceeds include:
     * sum of auction winner bid amounts,
     * `_reservePrice` paid by each raffle winner (except the Golden Ticket winner).
     */
    function claimProceeds() external onlyOwner onlyInState(State.RAFFLE_SETTLED) {
        require(!_proceedsClaimed, "AuctionRaffle: proceeds have already been claimed");
        _proceedsClaimed = true;

        uint256 biddersCount = getBiddersCount();
        if (biddersCount == 0) {
            return;
        }

        uint256 totalAmount = 0;

        uint256 auctionWinnersCount = _auctionWinners.length;
        for (uint256 i = 0; i < auctionWinnersCount; ++i) {
            address bidderAddress = _bidders[_auctionWinners[i]];
            totalAmount += _bids[bidderAddress].amount;
        }

        // becausse there could be discounts applied on raffle winners, we need to subtract discounts
        uint256 raffleWinnersCount = _raffleWinnersCount - 1;
        if (biddersCount <= raffleWinnersCount) {
            raffleWinnersCount = biddersCount - 1;
        }

        totalAmount += raffleWinnersCount * _reservePrice;

        uint256 discounts = 0;
        for (uint256 i = 0; i < raffleWinnersCount; ++i) {
            address bidderAddress = _bidders[_raffleWinners[i]];
            discounts += _bids[bidderAddress].discount;
        }

        totalAmount -= discounts;
        payable(owner()).transfer(totalAmount);
    }

    /**
     * @notice Allows the owner to claim the 2% fees from non-winning bids after the raffle is settled.
     * @dev This function is designed to be called multiple times, to split iteration though all non-winning bids across
     * multiple transactions.
     * @param bidsCount The number of bids to be processed at once.
     */
    function claimFees(uint256 bidsCount) external onlyOwner onlyInState(State.RAFFLE_SETTLED) {
        uint256 claimedFeesIndex = _claimedFeesIndex;
        uint256 feesCount = _raffleParticipants.length;
        require(feesCount > 0, "AuctionRaffle: there are no fees to claim");
        require(claimedFeesIndex < feesCount, "AuctionRaffle: fees have already been claimed");

        uint256 endIndex = claimedFeesIndex + bidsCount;
        if (endIndex > feesCount) {
            endIndex = feesCount;
        }

        uint256 fee = 0;
        for (uint256 i = claimedFeesIndex; i < endIndex; ++i) {
            address bidderAddress = getBidderAddress(_raffleParticipants[i]);
            uint256 bidAmount = _bids[bidderAddress].amount;
            fee += bidAmount - (bidAmount * 98) / 100;
        }

        _claimedFeesIndex = endIndex;
        payable(owner()).transfer(fee);
    }

    /**
     * @notice Allows the owner to withdraw all funds left in the contract by the participants.
     * Callable only after the claiming window is closed.
     */
    function withdrawUnclaimedFunds() external onlyOwner onlyInState(State.CLAIMING_CLOSED) {
        uint256 unclaimedFunds = address(this).balance;
        payable(owner()).transfer(unclaimedFunds);
    }

    /**
     * @notice Allows the owner to retrieve any ERC-20 tokens that were sent to the contract by accident.
     * @param tokenAddress The address of an ERC-20 token contract.
     */
    function rescueTokens(address tokenAddress) external onlyOwner {
        IERC20 token = IERC20(tokenAddress);
        uint256 balance = token.balanceOf(address(this));

        require(balance > 0, "AuctionRaffle: no tokens for given address");
        token.safeTransfer(owner(), balance);
    }

    function getRaffleParticipants() external view returns (uint256[] memory) {
        return _raffleParticipants;
    }

    /// @return A list of auction winner bidder IDs.
    function getAuctionWinners() external view returns (uint256[] memory) {
        return _auctionWinners;
    }

    /// @return A list of raffle winner bidder IDs.
    function getRaffleWinners() external view returns (uint256[] memory) {
        return _raffleWinners;
    }

    function getBid(address bidder) external view returns (Bid memory) {
        Bid storage bid_ = _bids[bidder];
        require(bid_.bidderID != 0, "AuctionRaffle: no bid by given address");
        return bid_;
    }

    function getBidByID(uint256 bidderID) external view returns (Bid memory) {
        address bidder = getBidderAddress(bidderID);
        return _bids[bidder];
    }

    function getBidsWithAddresses() external view returns (BidWithAddress[] memory) {
        uint256 totalBids = getBiddersCount();

        BidWithAddress[] memory bids = new BidWithAddress[](totalBids);

        for (uint256 i = 1; i <= totalBids; ++i) {
            BidWithAddress memory bid_ = getBidWithAddress(i);
            bids[i - 1] = bid_;
        }

        return bids;
    }

    function getBidWithAddress(uint256 bidderID) public view returns (BidWithAddress memory) {
        address bidder = getBidderAddress(bidderID);
        Bid storage bid_ = _bids[bidder];

        BidWithAddress memory bidWithAddress = BidWithAddress({bidder: bidder, bid: bid_});

        return bidWithAddress;
    }

    /// @return Address of bidder account for given bidder ID.
    function getBidderAddress(uint256 bidderID) public view returns (address payable) {
        address payable bidderAddress = _bidders[bidderID];
        require(bidderAddress != address(0), "AuctionRaffle: bidder with given ID does not exist");
        return bidderAddress;
    }

    function getBiddersCount() public view returns (uint256) {
        return _nextBidderID - 1;
    }

    function getState() public view returns (State) {
        if (block.timestamp >= _claimingEndTime) {
            return State.CLAIMING_CLOSED;
        }
        if (_settleState == SettleState.RAFFLE_SETTLED) {
            return State.RAFFLE_SETTLED;
        }
        if (_settleState == SettleState.AUCTION_SETTLED) {
            return State.AUCTION_SETTLED;
        }
        if (block.timestamp >= _biddingEndTime) {
            return State.BIDDING_CLOSED;
        }
        if (block.timestamp >= _biddingStartTime) {
            return State.BIDDING_OPEN;
        }
        return State.AWAITING_BIDDING;
    }

    /**
     * @notice Adds a bid to the heap if it isn't full or the heap key is greater than `_minKeyValue`.
     * @dev Updates _minKeyIndex and _minKeyValue if needed.
     * @param bidderID Unique bidder ID
     * @param amount The bid amount
     */
    function addBidToHeap(uint256 bidderID, uint256 amount) private {
        bool isHeapFull = getBiddersCount() > _auctionWinnersCount; // bid() already incremented _nextBidderID
        uint256 key = getKey(bidderID, amount);
        uint256 minKeyValue = _minKeyValue;

        if (isHeapFull) {
            if (key <= minKeyValue) {
                return;
            }
            _heap.increaseKey(minKeyValue, key);
            updateMinKey();
        } else {
            _heap.insert(key);
            if (key <= minKeyValue) {
                _minKeyIndex = _heap.length - 1;
                _minKeyValue = key;
                return;
            }
            updateMinKey();
        }
    }

    /**
     * @notice Updates an existing bid or replaces an existing bid with a new one in the heap.
     * @dev Updates _minKeyIndex and _minKeyValue if needed.
     * @param bidderID Unique bidder ID
     * @param oldAmount Previous bid amount
     * @param newAmount New bid amount
     */
    function updateHeapBid(
        uint256 bidderID,
        uint256 oldAmount,
        uint256 newAmount
    ) private {
        bool isHeapFull = getBiddersCount() >= _auctionWinnersCount;
        uint256 key = getKey(bidderID, newAmount);
        uint256 minKeyValue = _minKeyValue;

        bool shouldUpdateHeap = key > minKeyValue;
        if (isHeapFull && !shouldUpdateHeap) {
            return;
        }
        uint256 oldKey = getKey(bidderID, oldAmount);
        bool updatingMinKey = oldKey <= minKeyValue;
        if (updatingMinKey) {
            _heap.increaseKeyAt(_minKeyIndex, key);
            updateMinKey();
            return;
        }
        _heap.increaseKey(oldKey, key);
    }

    function updateMinKey() private {
        (_minKeyIndex, _minKeyValue) = _heap.findMin();
    }

    function addAuctionWinner(uint256 bidderID) private {
        setBidWinType(bidderID, WinType.AUCTION);
        _auctionWinners.push(bidderID);
        emit NewAuctionWinner(bidderID);
    }

    function addRaffleWinner(uint256 bidderID) private {
        setBidWinType(bidderID, WinType.RAFFLE);
        _raffleWinners.push(bidderID);
        emit NewRaffleWinner(bidderID);
    }

    function addGoldenTicketWinner(uint256 bidderID) private {
        setBidWinType(bidderID, WinType.GOLDEN_TICKET);
        _raffleWinners.push(bidderID);
        emit NewGoldenTicketWinner(bidderID);
    }

    function setBidWinType(uint256 bidderID, WinType winType) private {
        address bidderAddress = getBidderAddress(bidderID);
        _bids[bidderAddress].winType = winType;
    }

    /**
     * @dev Selects one Golden Ticket winner from a random number.
     * Saves the winner at the beginning of _raffleWinners array and sets bidder WinType to GOLDEN_TICKET.
     * @param participantsLength The length of current participants array
     * @param randomNumber The random number to select raffle winner from
     * @return participantsLength New participants array length
     * @return randomNumber Shifted random number by `_randomMaskLength` bits to the right
     */
    function selectGoldenTicketWinner(uint256 participantsLength, uint256 randomNumber)
        private
        returns (uint256, uint256)
    {
        uint256 winnerIndex = winnerIndexFromRandomNumber(participantsLength, randomNumber);

        uint256 bidderID = _raffleParticipants[winnerIndex];
        addGoldenTicketWinner(bidderID);

        removeRaffleParticipant(winnerIndex);
        return (participantsLength - 1, randomNumber >> _randomMaskLength);
    }

    function selectAllRaffleParticipantsAsWinners(uint256 participantsLength) private {
        for (uint256 i = 0; i < participantsLength; ++i) {
            uint256 bidderID = _raffleParticipants[i];
            addRaffleWinner(bidderID);
        }
        delete _raffleParticipants;
    }

    /**
     * @dev Selects `_winnersPerRandom` - 1 raffle winners for the first random number -- it assumes that one bidder
     * was selected before as the Golden Ticket winner. Then it selects `_winnersPerRandom` winners for each remaining
     * random number.
     * @param participantsLength The length of current participants array
     * @param randomNumbers The array of random numbers to select raffle winners from
     */
    function selectRaffleWinners(uint256 participantsLength, uint256[] memory randomNumbers) private {
        participantsLength = selectRandomRaffleWinners(participantsLength, randomNumbers[0], _winnersPerRandom - 1);
        for (uint256 i = 1; i < randomNumbers.length; ++i) {
            participantsLength = selectRandomRaffleWinners(participantsLength, randomNumbers[i], _winnersPerRandom);
        }
    }

    /**
     * @notice Selects a number of raffle winners from _raffleParticipants array. Saves the winners in _raffleWinners
     * array and sets their WinType to RAFFLE.
     * @dev Divides passed randomNumber into `_randomMaskLength` bit numbers and then selects one raffle winner using
     * each small number.
     * @param participantsLength The length of current participants array
     * @param randomNumber The random number used to select raffle winners
     * @param winnersCount The number of raffle winners to select from a single random number
     * @return New participants length
     */
    function selectRandomRaffleWinners(
        uint256 participantsLength,
        uint256 randomNumber,
        uint256 winnersCount
    ) private returns (uint256) {
        for (uint256 i = 0; i < winnersCount; ++i) {
            uint256 winnerIndex = winnerIndexFromRandomNumber(participantsLength, randomNumber);

            uint256 bidderID = _raffleParticipants[winnerIndex];
            addRaffleWinner(bidderID);

            removeRaffleParticipant(winnerIndex);
            --participantsLength;
            randomNumber = randomNumber >> _randomMaskLength;
        }

        return participantsLength;
    }

    /**
     * @notice Removes a participant from _raffleParticipants array.
     * @dev Swaps _raffleParticipants[index] with the last one, then removes the last one.
     * @param index The index of raffle participant to remove
     */
    function removeRaffleParticipant(uint256 index) private {
        uint256 participantsLength = _raffleParticipants.length;
        require(index < participantsLength, "AuctionRaffle: invalid raffle participant index");
        _raffleParticipants[index] = _raffleParticipants[participantsLength - 1];
        _raffleParticipants.pop();
    }

    /**
     * @notice Calculates unique heap key based on bidder ID and bid amount. The key is designed so that higher bids
     * are assigned a higher key value. In case of a draw in bid amount, lower bidder ID gives a higher key value.
     * @dev The difference between `_bidderMask` and bidderID is stored in lower bits of the returned key.
     * Bid amount is stored in higher bits of the returned key.
     * @param bidderID Unique bidder ID
     * @param amount The bid amount
     * @return Unique heap key
     */
    function getKey(uint256 bidderID, uint256 amount) private pure returns (uint256) {
        return (amount << _bidderMaskLength) | (_bidderMask - bidderID);
    }

    /**
     * @notice Extracts bidder ID from a heap key
     * @param key Heap key
     * @return Extracted bidder ID
     */
    function extractBidderID(uint256 key) private pure returns (uint256) {
        return _bidderMask - (key & _bidderMask);
    }

    /**
     * @notice Calculates winner index
     * @dev Calculates modulo of `_randomMaskLength` lower bits of randomNumber and participantsLength
     * @param participantsLength The length of current participants array
     * @param randomNumber The random number to select raffle winner from
     * @return Winner index
     */
    function winnerIndexFromRandomNumber(uint256 participantsLength, uint256 randomNumber)
        private
        pure
        returns (uint256)
    {
        uint256 smallRandom = randomNumber & _randomMask;
        return smallRandom % participantsLength;
    }
}

File 2 of 13 : 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 3 of 13 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

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

File 5 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 7 of 13 : 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 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity 0.8.10;

/***
 * @dev Holds config values used by AuctionRaffle contract.
 * @author TrueFi Engineering team
 */
abstract contract Config {
    // The use of _randomMask and _bidderMask introduces an assumption on max number of participants: 2^32.
    // The use of _bidderMask also introduces an assumption on max bid amount: 2^224 wei.
    // Both of these values are fine for our use case.
    uint256 constant _randomMask = 0xffffffff;
    uint256 constant _randomMaskLength = 32;
    uint256 constant _winnersPerRandom = 256 / _randomMaskLength;
    uint256 constant _bidderMask = _randomMask;
    uint256 constant _bidderMaskLength = _randomMaskLength;

    uint256 immutable _biddingStartTime;
    uint256 immutable _biddingEndTime;
    uint256 immutable _claimingEndTime;
    uint256 immutable _auctionWinnersCount;
    uint256 immutable _raffleWinnersCount;
    uint256 immutable _reservePrice;
    uint256 immutable _minBidIncrement;

    bytes32 immutable public discountRoot;

    constructor(
        uint256 biddingStartTime_,
        uint256 biddingEndTime_,
        uint256 claimingEndTime_,
        uint256 auctionWinnersCount_,
        uint256 raffleWinnersCount_,
        uint256 reservePrice_,
        uint256 minBidIncrement_,
        bytes32 discountRoot_
    ) {
        require(auctionWinnersCount_ > 0, "Config: auction winners count must be greater than 0");
        require(raffleWinnersCount_ > 0, "Config: raffle winners count must be greater than 0");
        require(raffleWinnersCount_ % _winnersPerRandom == 0, "Config: invalid raffle winners count");
        require(biddingStartTime_ < biddingEndTime_, "Config: bidding start time must be before bidding end time");
        require(biddingEndTime_ < claimingEndTime_, "Config: bidding end time must be before claiming end time");
        require(reservePrice_ > 0, "Config: reserve price must be greater than 0");
        require(minBidIncrement_ > 0, "Config: min bid increment must be greater than 0");
        require(
            biddingEndTime_ - biddingStartTime_ >= 6 hours,
            "Config: bidding start time and bidding end time must be at least 6h apart"
        );
        require(
            claimingEndTime_ - biddingEndTime_ >= 6 hours,
            "Config: bidding end time and claiming end time must be at least 6h apart"
        );

        _biddingStartTime = biddingStartTime_;
        _biddingEndTime = biddingEndTime_;
        _claimingEndTime = claimingEndTime_;
        _auctionWinnersCount = auctionWinnersCount_;
        _raffleWinnersCount = raffleWinnersCount_;
        _reservePrice = reservePrice_;
        _minBidIncrement = minBidIncrement_;
        discountRoot = discountRoot_;
    }

    function biddingStartTime() external view returns (uint256) {
        return _biddingStartTime;
    }

    function biddingEndTime() external view returns (uint256) {
        return _biddingEndTime;
    }

    function claimingEndTime() external view returns (uint256) {
        return _claimingEndTime;
    }

    function auctionWinnersCount() external view returns (uint256) {
        return _auctionWinnersCount;
    }

    function raffleWinnersCount() external view returns (uint256) {
        return _raffleWinnersCount;
    }

    function reservePrice() external view returns (uint256) {
        return _reservePrice;
    }

    function minBidIncrement() external view returns (uint256) {
        return _minBidIncrement;
    }
}

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

pragma solidity 0.8.10;

/***
 * @title Max Heap library
 * @notice Data structure used by the AuctionRaffle contract to store top bids.
 * It allows retrieving them in descending order on auction settlement.
 * @author TrueFi Engineering team
 */
library MaxHeap {
    function insert(uint256[] storage heap, uint256 key) internal {
        uint256 index = heap.length;
        heap.push(key);
        bubbleUp(heap, index, key);
    }

    function increaseKey(
        uint256[] storage heap,
        uint256 oldValue,
        uint256 newValue
    ) internal {
        uint256 index = findKey(heap, oldValue);
        increaseKeyAt(heap, index, newValue);
    }

    function increaseKeyAt(
        uint256[] storage heap,
        uint256 index,
        uint256 newValue
    ) internal {
        require(newValue > heap[index], "MaxHeap: new value must be bigger than old value");
        heap[index] = newValue;
        bubbleUp(heap, index, newValue);
    }

    function removeMax(uint256[] storage heap) internal returns (uint256 max) {
        require(heap.length > 0, "MaxHeap: cannot remove max element from empty heap");
        max = heap[0];
        heap[0] = heap[heap.length - 1];
        heap.pop();

        uint256 index = 0;
        while (true) {
            uint256 l = left(index);
            uint256 r = right(index);
            uint256 biggest = index;

            if (l < heap.length && heap[l] > heap[index]) {
                biggest = l;
            }
            if (r < heap.length && heap[r] > heap[biggest]) {
                biggest = r;
            }
            if (biggest == index) {
                break;
            }
            (heap[index], heap[biggest]) = (heap[biggest], heap[index]);
            index = biggest;
        }
        return max;
    }

    function bubbleUp(
        uint256[] storage heap,
        uint256 index,
        uint256 key
    ) internal {
        while (index > 0 && heap[parent(index)] < heap[index]) {
            (heap[parent(index)], heap[index]) = (key, heap[parent(index)]);
            index = parent(index);
        }
    }

    function findKey(uint256[] storage heap, uint256 value) internal view returns (uint256) {
        for (uint256 i = 0; i < heap.length; ++i) {
            if (heap[i] == value) {
                return i;
            }
        }
        revert("MaxHeap: key with given value not found");
    }

    function findMin(uint256[] storage heap) internal view returns (uint256 index, uint256 min) {
        uint256 heapLength = heap.length;
        require(heapLength > 0, "MaxHeap: cannot find minimum element on empty heap");

        uint256 n = heapLength / 2;
        min = heap[n];
        index = n;

        for (uint256 i = n + 1; i < heapLength; ++i) {
            uint256 element = heap[i];
            if (element < min) {
                min = element;
                index = i;
            }
        }
    }

    function parent(uint256 index) internal pure returns (uint256) {
        return (index - 1) / 2;
    }

    function left(uint256 index) internal pure returns (uint256) {
        return 2 * index + 1;
    }

    function right(uint256 index) internal pure returns (uint256) {
        return 2 * index + 2;
    }
}

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

pragma solidity 0.8.10;

/***
 * @dev Defines bid related data types used by AuctionRaffle contract.
 * @author TrueFi Engineering team
 */
abstract contract BidModel {
    struct Bid {
        uint256 bidderID;
        uint256 amount;
        uint256 discount;
        WinType winType;
        bool claimed;
    }

    struct BidWithAddress {
        address bidder;
        Bid bid;
    }

    enum WinType {
        LOSS,
        GOLDEN_TICKET,
        AUCTION,
        RAFFLE
    }
}

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

pragma solidity 0.8.10;

/***
 * @dev Defines state enums used by AuctionRaffle contract.
 * @author TrueFi Engineering team
 */
abstract contract StateModel {
    enum State {
        AWAITING_BIDDING,
        BIDDING_OPEN,
        BIDDING_CLOSED,
        AUCTION_SETTLED,
        RAFFLE_SETTLED,
        CLAIMING_CLOSED
    }

    enum SettleState {
        AWAITING_SETTLING,
        AUCTION_SETTLED,
        RAFFLE_SETTLED
    }
}

File 13 of 13 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int256 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int256)", p0));
	}

	function logUint(uint256 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint256 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint256 p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1));
	}

	function log(uint256 p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1));
	}

	function log(uint256 p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1));
	}

	function log(uint256 p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1));
	}

	function log(string memory p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint256 p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"uint256","name":"biddingStartTime","type":"uint256"},{"internalType":"uint256","name":"biddingEndTime","type":"uint256"},{"internalType":"uint256","name":"claimingEndTime","type":"uint256"},{"internalType":"uint256","name":"auctionWinnersCount","type":"uint256"},{"internalType":"uint256","name":"raffleWinnersCount","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"minBidIncrement","type":"uint256"},{"internalType":"bytes32","name":"discountRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"bidderID","type":"uint256"}],"name":"NewAuctionWinner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bidderID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bidAmount","type":"uint256"}],"name":"NewBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"bidderID","type":"uint256"}],"name":"NewGoldenTicketWinner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"bidderID","type":"uint256"}],"name":"NewRaffleWinner","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"auctionWinnersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"discountPercentage","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"bidWithDiscount","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"biddingEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"biddingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bidderID","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bidsCount","type":"uint256"}],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimProceeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimingEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAuctionWinners","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"}],"name":"getBid","outputs":[{"components":[{"internalType":"uint256","name":"bidderID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"},{"internalType":"enum BidModel.WinType","name":"winType","type":"uint8"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct BidModel.Bid","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bidderID","type":"uint256"}],"name":"getBidByID","outputs":[{"components":[{"internalType":"uint256","name":"bidderID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"},{"internalType":"enum BidModel.WinType","name":"winType","type":"uint8"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct BidModel.Bid","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bidderID","type":"uint256"}],"name":"getBidWithAddress","outputs":[{"components":[{"internalType":"address","name":"bidder","type":"address"},{"components":[{"internalType":"uint256","name":"bidderID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"},{"internalType":"enum BidModel.WinType","name":"winType","type":"uint8"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct BidModel.Bid","name":"bid","type":"tuple"}],"internalType":"struct BidModel.BidWithAddress","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bidderID","type":"uint256"}],"name":"getBidderAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBiddersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBidsWithAddresses","outputs":[{"components":[{"internalType":"address","name":"bidder","type":"address"},{"components":[{"internalType":"uint256","name":"bidderID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"},{"internalType":"enum BidModel.WinType","name":"winType","type":"uint8"},{"internalType":"bool","name":"claimed","type":"bool"}],"internalType":"struct BidModel.Bid","name":"bid","type":"tuple"}],"internalType":"struct BidModel.BidWithAddress[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRaffleParticipants","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRaffleWinners","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getState","outputs":[{"internalType":"enum StateModel.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBidIncrement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleWinnersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"settleAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settleRaffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUnclaimedFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

61018060405260016003556000196006556007805460ff191690553480156200002757600080fd5b5060405162004255380380620042558339810160408190526200004a916200063f565b87878787878787876200005d3362000512565b60008511620000d95760405162461bcd60e51b815260206004820152603460248201527f436f6e6669673a2061756374696f6e2077696e6e65727320636f756e74206d7560448201527f73742062652067726561746572207468616e203000000000000000000000000060648201526084015b60405180910390fd5b60008411620001515760405162461bcd60e51b815260206004820152603360248201527f436f6e6669673a20726166666c652077696e6e65727320636f756e74206d757360448201527f742062652067726561746572207468616e2030000000000000000000000000006064820152608401620000d0565b620001606020610100620006d7565b6200016c9085620006ee565b15620001c75760405162461bcd60e51b8152602060048201526024808201527f436f6e6669673a20696e76616c696420726166666c652077696e6e65727320636044820152631bdd5b9d60e21b6064820152608401620000d0565b8688106200023e5760405162461bcd60e51b815260206004820152603a60248201527f436f6e6669673a2062696464696e672073746172742074696d65206d7573742060448201527f6265206265666f72652062696464696e6720656e642074696d650000000000006064820152608401620000d0565b858710620002b55760405162461bcd60e51b815260206004820152603960248201527f436f6e6669673a2062696464696e6720656e642074696d65206d75737420626560448201527f206265666f726520636c61696d696e6720656e642074696d65000000000000006064820152608401620000d0565b600083116200031c5760405162461bcd60e51b815260206004820152602c60248201527f436f6e6669673a2072657365727665207072696365206d75737420626520677260448201526b06561746572207468616e20360a41b6064820152608401620000d0565b60008211620003875760405162461bcd60e51b815260206004820152603060248201527f436f6e6669673a206d696e2062696420696e6372656d656e74206d757374206260448201526f0652067726561746572207468616e20360841b6064820152608401620000d0565b61546062000396898962000705565b10156200041e5760405162461bcd60e51b815260206004820152604960248201527f436f6e6669673a2062696464696e672073746172742074696d6520616e64206260448201527f696464696e6720656e642074696d65206d757374206265206174206c65617374606482015268080d9a08185c185c9d60ba1b608482015260a401620000d0565b6154606200042d888862000705565b1015620004b45760405162461bcd60e51b815260206004820152604860248201527f436f6e6669673a2062696464696e6720656e642074696d6520616e6420636c6160448201527f696d696e6720656e642074696d65206d757374206265206174206c65617374206064820152670d9a08185c185c9d60c21b608482015260a401620000d0565b60809790975260a09590955260c09390935260e091909152610100526101205261014052610160526001600160a01b0389163314620005035762000503896200056260201b620020371760201c565b5050505050505050506200072b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200056c620005e1565b6001600160a01b038116620005d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620000d0565b620005de8162000512565b50565b6000546001600160a01b031633146200063d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620000d0565b565b60008060008060008060008060006101208a8c0312156200065f57600080fd5b89516001600160a01b03811681146200067757600080fd5b8099505060208a0151975060408a0151965060608a0151955060808a0151945060a08a0151935060c08a0151925060e08a015191506101008a015190509295985092959850929598565b634e487b7160e01b600052601260045260246000fd5b600082620006e957620006e9620006c1565b500490565b600082620007005762000700620006c1565b500690565b6000828210156200072657634e487b7160e01b600052601160045260246000fd5b500390565b60805160a05160c05160e05161010051610120516101405161016051613a5b620007fa60003960008181610336015261194801526000818161041b01526123150152600081816106d201528181610dc3015281816111ed015281816119ff01526121e101526000818161046e015281816111ad015281816113f00152611b780152600081816105830152818161142b01528181612ad60152612b7801526000818161068a015261089f01526000818161037a01526109160152600081816104a101526109430152613a5b6000f3fe6080604052600436106101d05760003560e01c80638da5cb5b116100f7578063b70632b611610095578063d30d155511610064578063d30d1555146106ae578063db2e1eed146106c3578063e4515344146106f6578063f2fde38b146107235761026e565b8063b70632b614610619578063c8b342ab1461062e578063c8feb1fd1461065b578063cba9794a1461067b5761026e565b8063ab72bf32116100d1578063ab72bf32146105bc578063ac68a748146105d1578063b0ba4a31146105f1578063b5f5d245146106045761026e565b80638da5cb5b14610549578063953c519414610574578063a4d0a17e146105a75761026e565b8063335b115e1161016f5780635fa382801161013e5780635fa38280146104c5578063715018a61461050a5780637bea1a0a1461051f5780638c3b0ca8146105345761026e565b8063335b115e1461040c578063379607f51461043f5780633aa2aaa01461045f578063553fc574146104925761026e565b80631865c57d116101ab5780631865c57d1461039e5780631998aeef146103c05780631af37971146103c857806328314944146103ea5761026e565b8062ae3bf8146103025780630b2b5837146103245780631022eccb1461036b5761026e565b3661026e5760405162461bcd60e51b815260206004820152604260248201527f41756374696f6e526166666c653a20636f6e747261637420616363657074732060448201527f6574686572207472616e7366657273206f6e6c7920627920626964206d65746860648201527f6f64000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b60405162461bcd60e51b815260206004820152604260248201527f41756374696f6e526166666c653a20636f6e747261637420616363657074732060448201527f6574686572207472616e7366657273206f6e6c7920627920626964206d65746860648201527f6f64000000000000000000000000000000000000000000000000000000000000608482015260a401610265565b34801561030e57600080fd5b5061032261031d3660046134d7565b610743565b005b34801561033057600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561037757600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610358565b3480156103aa57600080fd5b506103b361089b565b604051610362919061353c565b610322610974565b3480156103d457600080fd5b506103dd610a83565b6040516103629190613556565b3480156103f657600080fd5b506103ff610adb565b6040516103629190613605565b34801561041857600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610358565b34801561044b57600080fd5b5061032261045a366004613647565b610b98565b34801561046b57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610358565b34801561049e57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610358565b3480156104d157600080fd5b506104e56104e0366004613647565b610ebc565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610362565b34801561051657600080fd5b50610322610f5a565b34801561052b57600080fd5b506103dd610f6e565b34801561054057600080fd5b50610322610fc4565b34801561055557600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166104e5565b34801561058057600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610358565b3480156105b357600080fd5b50610322611320565b3480156105c857600080fd5b506103586114f8565b3480156105dd57600080fd5b506103226105ec366004613647565b61150e565b6103226105ff36600461368f565b611799565b34801561061057600080fd5b506103dd611a51565b34801561062557600080fd5b50610322611aa7565b34801561063a57600080fd5b5061064e6106493660046134d7565b611cbd565b6040516103629190613777565b34801561066757600080fd5b5061064e610676366004613647565b611dd3565b34801561068757600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610358565b3480156106ba57600080fd5b50610322611e74565b3480156106cf57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610358565b34801561070257600080fd5b50610716610711366004613647565b611f70565b6040516103629190613785565b34801561072f57600080fd5b5061032261073e3660046134d7565b612037565b61074b6120d1565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819060009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156107ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107de9190613793565b9050600081116108565760405162461bcd60e51b815260206004820152602a60248201527f41756374696f6e526166666c653a206e6f20746f6b656e7320666f722067697660448201527f656e2061646472657373000000000000000000000000000000000000000000006064820152608401610265565b61089661087860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff84169083612138565b505050565b60007f000000000000000000000000000000000000000000000000000000000000000042106108ca5750600590565b600260075460ff1660028111156108e3576108e361350d565b14156108ef5750600490565b600160075460ff1660028111156109085761090861350d565b14156109145750600390565b7f000000000000000000000000000000000000000000000000000000000000000042106109415750600290565b7f0000000000000000000000000000000000000000000000000000000000000000421061096e5750600190565b50600090565b3332146109e95760405162461bcd60e51b815260206004820152603260248201527f41756374696f6e526166666c653a20696e7465726e616c207472616e7361637460448201527f696f6e732061726520666f7262696464656e00000000000000000000000000006064820152608401610265565b6001806109f461089b565b6005811115610a0557610a0561350d565b14610a785760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b610a806121c5565b50565b60606008805480602002602001604051908101604052809291908181526020018280548015610ad157602002820191906000526020600020905b815481526020019060010190808311610abd575b5050505050905090565b60606000610ae76114f8565b905060008167ffffffffffffffff811115610b0457610b04613660565b604051908082528060200260200182016040528015610b3d57816020015b610b2a61342b565b815260200190600190039081610b225790505b50905060015b828111610b91576000610b5582611f70565b90508083610b646001856137db565b81518110610b7457610b746137f2565b60200260200101819052505080610b8a90613821565b9050610b43565b5092915050565b600480610ba361089b565b6005811115610bb457610bb461350d565b14610c275760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b6000610c3283610ebc565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260409020600381015491925090610100900460ff1615610cdb5760405162461bcd60e51b815260206004820152602e60248201527f41756374696f6e526166666c653a2066756e6473206861766520616c7265616460448201527f79206265656e20636c61696d65640000000000000000000000000000000000006064820152608401610265565b600260038083015460ff1690811115610cf657610cf661350d565b1415610d6a5760405162461bcd60e51b815260206004820152603160248201527f41756374696f6e526166666c653a2061756374696f6e2077696e6e657273206360448201527f616e6e6f7420636c61696d2066756e64730000000000000000000000000000006064820152608401610265565b600381810180546101007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff8216179091556000919060ff1681811115610db257610db261350d565b1415610dfd576002820154610de7907f00000000000000000000000000000000000000000000000000000000000000006137db565b8260010154610df691906137db565b9050610e6a565b600160038084015460ff1690811115610e1857610e1861350d565b1415610e2957506001810154610e6a565b600060038084015460ff1690811115610e4457610e4461350d565b1415610e6a57606482600101546062610e5d919061385a565b610e6791906138c6565b90505b8015610eb55760405173ffffffffffffffffffffffffffffffffffffffff84169082156108fc029083906000818181858888f19350505050158015610eb3573d6000803e3d6000fd5b505b5050505050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610f545760405162461bcd60e51b815260206004820152603260248201527f41756374696f6e526166666c653a20626964646572207769746820676976656e60448201527f20494420646f6573206e6f7420657869737400000000000000000000000000006064820152608401610265565b92915050565b610f626120d1565b610f6c6000612421565b565b60606009805480602002602001604051908101604052809291908181526020018280548015610ad15760200282019190600052602060002090815481526020019060010190808311610abd575050505050905090565b610fcc6120d1565b600480610fd761089b565b6005811115610fe857610fe861350d565b1461105b5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600b5460ff16156110d45760405162461bcd60e51b815260206004820152603160248201527f41756374696f6e526166666c653a2070726f6365656473206861766520616c7260448201527f65616479206265656e20636c61696d65640000000000000000000000000000006064820152608401610265565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560006111096114f8565b905080611114575050565b600954600090815b818110156111a3576000600260006009848154811061113d5761113d6137f2565b6000918252602080832090910154835282810193909352604091820181205473ffffffffffffffffffffffffffffffffffffffff168082526001938490529190209091015490915061118f90856138da565b9350508061119c90613821565b905061111c565b5060006111d160017f00000000000000000000000000000000000000000000000000000000000000006137db565b90508084116111e8576111e56001856137db565b90505b6112127f00000000000000000000000000000000000000000000000000000000000000008261385a565b61121c90846138da565b92506000805b828110156112a657600060026000600a8481548110611243576112436137f2565b6000918252602080832090910154835282810193909352604091820181205473ffffffffffffffffffffffffffffffffffffffff168082526001909352206002015490915061129290846138da565b9250508061129f90613821565b9050611222565b506112b181856137db565b93506112d260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f19350505050158015611317573d6000803e3d6000fd5b50505050505050565b6113286120d1565b60028061133361089b565b60058111156113445761134461350d565b146113b75760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560006113ec6114f8565b90507f000000000000000000000000000000000000000000000000000000000000000080821161141b57505050565b600061142782846137db565b90507f0000000000000000000000000000000000000000000000000000000000000000808210156114555750805b60005b818110156114a257600061146c6004612496565b90506000611479826126fd565b905061148481612710565b61148f600d82612780565b50508061149b90613821565b9050611458565b506114af60046000613460565b60056000905560066000905560005b81811015610eb35760006114d2600d612496565b90506114e76114e26001836137db565b6127a1565b506114f181613821565b90506114be565b6000600160035461150991906137db565b905090565b6115166120d1565b60048061152161089b565b60058111156115325761153261350d565b146115a55760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600c546008548061161e5760405162461bcd60e51b815260206004820152602960248201527f41756374696f6e526166666c653a20746865726520617265206e6f206665657360448201527f20746f20636c61696d00000000000000000000000000000000000000000000006064820152608401610265565b8082106116935760405162461bcd60e51b815260206004820152602d60248201527f41756374696f6e526166666c653a2066656573206861766520616c726561647960448201527f206265656e20636c61696d6564000000000000000000000000000000000000006064820152608401610265565b600061169f85846138da565b9050818111156116ac5750805b6000835b8281101561174d5760006116e0600883815481106116d0576116d06137f2565b9060005260206000200154610ebc565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602081905260409091200154909150606461171a82606261385a565b61172491906138c6565b61172e90826137db565b61173890856138da565b935050508061174690613821565b90506116b0565b50600c8290556000805460405173ffffffffffffffffffffffffffffffffffffffff9091169183156108fc02918491818181858888f19350505050158015611317573d6000803e3d6000fd5b33321461180e5760405162461bcd60e51b815260206004820152603260248201527f41756374696f6e526166666c653a20696e7465726e616c207472616e7361637460448201527f696f6e732061726520666f7262696464656e00000000000000000000000000006064820152608401610265565b60018061181961089b565b600581111561182a5761182a61350d565b1461189d5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b60648311156119145760405162461bcd60e51b815260206004820152602c60248201527f41756374696f6e526166666c653a20646973636f756e74206d7573742062652060448201527f6174206d6f7374203130302500000000000000000000000000000000000000006064820152608401610265565b6040805133602082015290810184905260009060600160405160208183030381529060405280519060200120905061196d837f00000000000000000000000000000000000000000000000000000000000000008361288b565b6119df5760405162461bcd60e51b815260206004820152602560248201527f41756374696f6e526166666c653a20646973636f756e742070726f6f6620696e60448201527f76616c69640000000000000000000000000000000000000000000000000000006064820152608401610265565b6119e76121c5565b336000908152600160205260408120600281015490917f0000000000000000000000000000000000000000000000000000000000000000906064611a2b898461385a565b611a3591906138c6565b905082811115611a4757600284018190555b5050505050505050565b6060600a805480602002602001604051908101604052809291908181526020018280548015610ad15760200282019190600052602060002090815481526020019060010190808311610abd575050505050905090565b611aaf6120d1565b600380611aba61089b565b6005811115611acb57611acb61350d565b14611b3e5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600217905560085480611b75575050565b447f00000000000000000000000000000000000000000000000000000000000000006000611ba660206101006138c6565b611bb090836138c6565b67ffffffffffffffff811115611bc857611bc8613660565b604051908082528060200260200182016040528015611bf1578160200160208202803683370190505b50805190915060005b81811015611c5c5760408051602081018790529081018290526060016040516020818303038152906040528051906020012060001c838281518110611c4157611c416137f2565b6020908102919091010152611c5581613821565b9050611bfa565b5050611c828482600081518110611c7557611c756137f2565b60200260200101516128a1565b82600081518110611c9557611c956137f2565b6020908102919091010152935081841015611cb357610eb584612900565b610eb58482612954565b611cc561347e565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090208054611d5e5760405162461bcd60e51b815260206004820152602660248201527f41756374696f6e526166666c653a206e6f2062696420627920676976656e206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610265565b6040805160a08101825282548152600183015460208201526002830154918101919091526003808301548391606084019160ff1690811115611da257611da261350d565b6003811115611db357611db361350d565b815260039190910154610100900460ff1615156020909101529392505050565b611ddb61347e565b6000611de683610ebc565b9050600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff166003811115611da257611da261350d565b611e7c6120d1565b600580611e8761089b565b6005811115611e9857611e9861350d565b14611f0b5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b47611f2b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610896573d6000803e3d6000fd5b611f7861342b565b6000611f8383610ebc565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020818152604080842081518083018352958652815160a081018352815481529381015484840152600281015491840191909152600380820154969750909593949391840192918691606084019160ff16908111156120025761200261350d565b60038111156120135761201361350d565b815260039190910154610100900460ff161515602090910152905295945050505050565b61203f6120d1565b73ffffffffffffffffffffffffffffffffffffffff81166120c85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610265565b610a8081612421565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f6c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610265565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526108969084906129e0565b33600090815260016020819052604090912090810154612313577f00000000000000000000000000000000000000000000000000000000000000003410156122755760405162461bcd60e51b815260206004820152603060248201527f41756374696f6e526166666c653a2062696420616d6f756e742069732062656c60448201527f6f772072657365727665207072696365000000000000000000000000000000006064820152608401610265565b3460018201556003805490600061228b83613821565b90915550808255600090815260026020526040812080547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317905581546008805460018181018355919093527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee39092015581549082015461230e9190612ad2565b6123d7565b7f00000000000000000000000000000000000000000000000000000000000000003410156123a85760405162461bcd60e51b8152602060048201526024808201527f41756374696f6e526166666c653a2062696420696e6372656d656e7420746f6f60448201527f206c6f77000000000000000000000000000000000000000000000000000000006064820152608401610265565b60018101805490349060006123bd83856138da565b9091555050815460018301546123d591908390612b74565b505b805460018201546040805133815260208101939093528201527f87f5b2fe112bf269d30fb8ca9dc0bde0afd0cc39258e13fafd75fe794795bf0e906060015b60405180910390a150565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805460009061250d5760405162461bcd60e51b815260206004820152603260248201527f4d6178486561703a2063616e6e6f742072656d6f7665206d617820656c656d6560448201527f6e742066726f6d20656d707479206865617000000000000000000000000000006064820152608401610265565b81600081548110612520576125206137f2565b90600052602060002001549050816001838054905061253f91906137db565b8154811061254f5761254f6137f2565b90600052602060002001548260008154811061256d5761256d6137f2565b90600052602060002001819055508180548061258b5761258b6138f2565b6001900381819060005260206000200160009055905560005b60006125af82612c18565b905060006125bc83612c30565b855490915083908310801561260857508584815481106125de576125de6137f2565b90600052602060002001548684815481106125fb576125fb6137f2565b9060005260206000200154115b156126105750815b855482108015612657575085818154811061262d5761262d6137f2565b906000526020600020015486838154811061264a5761264a6137f2565b9060005260206000200154115b1561265f5750805b8381141561266f575050506126f7565b858181548110612681576126816137f2565b906000526020600020015486858154811061269e5761269e6137f2565b90600052602060002001548786815481106126bb576126bb6137f2565b9060005260206000200160008985815481106126d9576126d96137f2565b600091825260209091200192909255919091555092506125a4915050565b50919050565b6000610f5463ffffffff838116906137db565b61271b816002612c48565b600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af018190556040518181527f7595f3fd584af50df83ccb184a9c80f0e5abff0b8c2798b989a878d4840d9beb90602001612416565b81546001810183556000838152602090208101829055610896838284612cc3565b6008548082106128195760405162461bcd60e51b815260206004820152602f60248201527f41756374696f6e526166666c653a20696e76616c696420726166666c6520706160448201527f727469636970616e7420696e64657800000000000000000000000000000000006064820152608401610265565b60086128266001836137db565b81548110612836576128366137f2565b906000526020600020015460088381548110612854576128546137f2565b6000918252602090912001556008805480612871576128716138f2565b600190038181906000526020600020016000905590555050565b6000826128988584612d99565b14949350505050565b60008060006128b08585612de6565b90506000600882815481106128c7576128c76137f2565b906000526020600020015490506128dd81612e01565b6128e6826127a1565b6128f16001876137db565b9660209590951c955050505050565b60005b8181101561294757600060088281548110612920576129206137f2565b9060005260206000200154905061293681612e70565b5061294081613821565b9050612903565b50610a8060086000613460565b612993828260008151811061296b5761296b6137f2565b60200260200101516001602061010061298491906138c6565b61298e91906137db565b612ee0565b915060015b8151811015610896576129ce838383815181106129b7576129b76137f2565b6020026020010151602061010061298e91906138c6565b92506129d981613821565b9050612998565b6000612a42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612f5b9092919063ffffffff16565b8051909150156108965780806020019051810190612a609190613921565b6108965760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610265565b60007f0000000000000000000000000000000000000000000000000000000000000000612afd6114f8565b1190506000612b0c8484612f6a565b6006549091508215612b3f57808211612b26575050505050565b612b3260048284612f88565b612b3a612fa7565b610eb5565b612b4a600483612780565b808211612b6c57600454612b60906001906137db565b60055550600655505050565b610eb5612fa7565b60007f0000000000000000000000000000000000000000000000000000000000000000612b9f6114f8565b101590506000612baf8584612f6a565b600654909150808211838015612bc3575080155b15612bd15750505050505050565b6000612bdd8888612f6a565b9050828111801590612c0c57600554612bf99060049087612fb9565b612c01612fa7565b505050505050505050565b612c0160048387612f88565b6000612c2582600261385a565b610f549060016138da565b6000612c3d82600261385a565b610f549060026138da565b6000612c5383610ebc565b905081600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160006101000a81548160ff02191690836003811115612cb957612cb961350d565b0217905550505050565b600082118015612d125750828281548110612ce057612ce06137f2565b906000526020600020015483612cf584613074565b81548110612d0557612d056137f2565b9060005260206000200154105b15610896578083612d2284613074565b81548110612d3257612d326137f2565b906000526020600020015484612d4785613074565b81548110612d5757612d576137f2565b906000526020600020016000868681548110612d7557612d756137f2565b6000918252602090912001929092559190915550612d9282613074565b9150612cc3565b600081815b8451811015612dde57612dca82868381518110612dbd57612dbd6137f2565b602002602001015161308d565b915080612dd681613821565b915050612d9e565b509392505050565b600063ffffffff8216612df98482613943565b949350505050565b612e0c816001612c48565b600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018190556040518181527e8923b8adac05258abf40b3e936d1a95d3c63fa197d9ded7f853d8f7dcbc5a390602001612416565b612e7b816003612c48565b600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018190556040518181527fa201aedcbcadeeae47194e16fa8156404ec2c7060dec4bc5fe06b161a31bcb5690602001612416565b6000805b82811015612f52576000612ef88686612de6565b9050600060088281548110612f0f57612f0f6137f2565b90600052602060002001549050612f2581612e70565b612f2e826127a1565b612f3787613957565b9650505060209390931c92612f4b81613821565b9050612ee4565b50929392505050565b6060612df984846000856130bf565b6000612f7a8363ffffffff6137db565b602083901b17905092915050565b6000612f9484846131be565b9050612fa1848284612fb9565b50505050565b612fb16004613275565b600655600555565b828281548110612fcb57612fcb6137f2565b9060005260206000200154811161304a5760405162461bcd60e51b815260206004820152603060248201527f4d6178486561703a206e65772076616c7565206d75737420626520626967676560448201527f72207468616e206f6c642076616c7565000000000000000000000000000000006064820152608401610265565b8083838154811061305d5761305d6137f2565b600091825260209091200155610896838383612cc3565b600060026130836001846137db565b610f5491906138c6565b60008183106130a95760008281526020849052604090206130b8565b60008381526020839052604090205b9392505050565b6060824710156131375760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610265565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161316091906139b8565b60006040518083038185875af1925050503d806000811461319d576040519150601f19603f3d011682016040523d82523d6000602084013e6131a2565b606091505b50915091506131b387838387613383565b979650505050505050565b6000805b835481101561320657828482815481106131de576131de6137f2565b906000526020600020015414156131f6579050610f54565b6131ff81613821565b90506131c2565b5060405162461bcd60e51b815260206004820152602760248201527f4d6178486561703a206b6579207769746820676976656e2076616c7565206e6f60448201527f7420666f756e64000000000000000000000000000000000000000000000000006064820152608401610265565b80546000908190806132ef5760405162461bcd60e51b815260206004820152603260248201527f4d6178486561703a2063616e6e6f742066696e64206d696e696d756d20656c6560448201527f6d656e74206f6e20656d707479206865617000000000000000000000000000006064820152608401610265565b60006132fc6002836138c6565b9050848181548110613310576133106137f2565b90600052602060002001549250809350600081600161332f91906138da565b90505b8281101561337b57600086828154811061334e5761334e6137f2565b906000526020600020015490508481101561336a578094508195505b5061337481613821565b9050613332565b505050915091565b606083156133fc5782516133f55773ffffffffffffffffffffffffffffffffffffffff85163b6133f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610265565b5081612df9565b612df983838151156134115781518083602001fd5b8060405162461bcd60e51b815260040161026591906139d4565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200161345b61347e565b905290565b5080546000825590600052602060002090810190610a8091906134be565b6040518060a00160405280600081526020016000815260200160008152602001600060038111156134b1576134b161350d565b8152600060209091015290565b5b808211156134d357600081556001016134bf565b5090565b6000602082840312156134e957600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146130b857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600683106135505761355061350d565b91905290565b6020808252825182820181905260009190848201906040850190845b8181101561358e57835183529284019291840191600101613572565b50909695505050505050565b8051825260208101516020830152604081015160408301526060810151600481106135c7576135c761350d565b60608301526080908101511515910152565b73ffffffffffffffffffffffffffffffffffffffff81511682526020810151610896602084018261359a565b6020808252825182820181905260009190848201906040850190845b8181101561358e576136348385516135d9565b9284019260c09290920191600101613621565b60006020828403121561365957600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080604083850312156136a257600080fd5b8235915060208084013567ffffffffffffffff808211156136c257600080fd5b818601915086601f8301126136d657600080fd5b8135818111156136e8576136e8613660565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561372b5761372b613660565b60405291825284820192508381018501918983111561374957600080fd5b938501935b828510156137675784358452938501939285019261374e565b8096505050505050509250929050565b60a08101610f54828461359a565b60c08101610f5482846135d9565b6000602082840312156137a557600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156137ed576137ed6137ac565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613853576138536137ac565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613892576138926137ac565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826138d5576138d5613897565b500490565b600082198211156138ed576138ed6137ac565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006020828403121561393357600080fd5b815180151581146130b857600080fd5b60008261395257613952613897565b500690565b600081613966576139666137ac565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60005b838110156139a757818101518382015260200161398f565b83811115612fa15750506000910152565b600082516139ca81846020870161398c565b9190910192915050565b60208152600082518060208401526139f381604085016020870161398c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212206af67bdf37914cff56448442a05ed931c0492c9e1788297e459b72873b9e4a3a64736f6c634300080a003300000000000000000000000090110bf0b97457d4785d2ca7aeeba5206169192d00000000000000000000000000000000000000000000000000000000641eb81000000000000000000000000000000000000000000000000000000000642703800000000000000000000000000000000000000000000000000000000064303e00000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000001180000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000002386f26fc10000ae6e667ff7978c769ef8010a8cf237b13330c9da748e574cd15759dadc1cf2b7

Deployed Bytecode

0x6080604052600436106101d05760003560e01c80638da5cb5b116100f7578063b70632b611610095578063d30d155511610064578063d30d1555146106ae578063db2e1eed146106c3578063e4515344146106f6578063f2fde38b146107235761026e565b8063b70632b614610619578063c8b342ab1461062e578063c8feb1fd1461065b578063cba9794a1461067b5761026e565b8063ab72bf32116100d1578063ab72bf32146105bc578063ac68a748146105d1578063b0ba4a31146105f1578063b5f5d245146106045761026e565b80638da5cb5b14610549578063953c519414610574578063a4d0a17e146105a75761026e565b8063335b115e1161016f5780635fa382801161013e5780635fa38280146104c5578063715018a61461050a5780637bea1a0a1461051f5780638c3b0ca8146105345761026e565b8063335b115e1461040c578063379607f51461043f5780633aa2aaa01461045f578063553fc574146104925761026e565b80631865c57d116101ab5780631865c57d1461039e5780631998aeef146103c05780631af37971146103c857806328314944146103ea5761026e565b8062ae3bf8146103025780630b2b5837146103245780631022eccb1461036b5761026e565b3661026e5760405162461bcd60e51b815260206004820152604260248201527f41756374696f6e526166666c653a20636f6e747261637420616363657074732060448201527f6574686572207472616e7366657273206f6e6c7920627920626964206d65746860648201527f6f64000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b60405162461bcd60e51b815260206004820152604260248201527f41756374696f6e526166666c653a20636f6e747261637420616363657074732060448201527f6574686572207472616e7366657273206f6e6c7920627920626964206d65746860648201527f6f64000000000000000000000000000000000000000000000000000000000000608482015260a401610265565b34801561030e57600080fd5b5061032261031d3660046134d7565b610743565b005b34801561033057600080fd5b506103587fae6e667ff7978c769ef8010a8cf237b13330c9da748e574cd15759dadc1cf2b781565b6040519081526020015b60405180910390f35b34801561037757600080fd5b507f0000000000000000000000000000000000000000000000000000000064270380610358565b3480156103aa57600080fd5b506103b361089b565b604051610362919061353c565b610322610974565b3480156103d457600080fd5b506103dd610a83565b6040516103629190613556565b3480156103f657600080fd5b506103ff610adb565b6040516103629190613605565b34801561041857600080fd5b507f000000000000000000000000000000000000000000000000002386f26fc10000610358565b34801561044b57600080fd5b5061032261045a366004613647565b610b98565b34801561046b57600080fd5b507f0000000000000000000000000000000000000000000000000000000000000118610358565b34801561049e57600080fd5b507f00000000000000000000000000000000000000000000000000000000641eb810610358565b3480156104d157600080fd5b506104e56104e0366004613647565b610ebc565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610362565b34801561051657600080fd5b50610322610f5a565b34801561052b57600080fd5b506103dd610f6e565b34801561054057600080fd5b50610322610fc4565b34801561055557600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166104e5565b34801561058057600080fd5b507f0000000000000000000000000000000000000000000000000000000000000014610358565b3480156105b357600080fd5b50610322611320565b3480156105c857600080fd5b506103586114f8565b3480156105dd57600080fd5b506103226105ec366004613647565b61150e565b6103226105ff36600461368f565b611799565b34801561061057600080fd5b506103dd611a51565b34801561062557600080fd5b50610322611aa7565b34801561063a57600080fd5b5061064e6106493660046134d7565b611cbd565b6040516103629190613777565b34801561066757600080fd5b5061064e610676366004613647565b611dd3565b34801561068757600080fd5b507f0000000000000000000000000000000000000000000000000000000064303e00610358565b3480156106ba57600080fd5b50610322611e74565b3480156106cf57600080fd5b507f0000000000000000000000000000000000000000000000000354a6ba7a180000610358565b34801561070257600080fd5b50610716610711366004613647565b611f70565b6040516103629190613785565b34801561072f57600080fd5b5061032261073e3660046134d7565b612037565b61074b6120d1565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152819060009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156107ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107de9190613793565b9050600081116108565760405162461bcd60e51b815260206004820152602a60248201527f41756374696f6e526166666c653a206e6f20746f6b656e7320666f722067697660448201527f656e2061646472657373000000000000000000000000000000000000000000006064820152608401610265565b61089661087860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff84169083612138565b505050565b60007f0000000000000000000000000000000000000000000000000000000064303e0042106108ca5750600590565b600260075460ff1660028111156108e3576108e361350d565b14156108ef5750600490565b600160075460ff1660028111156109085761090861350d565b14156109145750600390565b7f000000000000000000000000000000000000000000000000000000006427038042106109415750600290565b7f00000000000000000000000000000000000000000000000000000000641eb810421061096e5750600190565b50600090565b3332146109e95760405162461bcd60e51b815260206004820152603260248201527f41756374696f6e526166666c653a20696e7465726e616c207472616e7361637460448201527f696f6e732061726520666f7262696464656e00000000000000000000000000006064820152608401610265565b6001806109f461089b565b6005811115610a0557610a0561350d565b14610a785760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b610a806121c5565b50565b60606008805480602002602001604051908101604052809291908181526020018280548015610ad157602002820191906000526020600020905b815481526020019060010190808311610abd575b5050505050905090565b60606000610ae76114f8565b905060008167ffffffffffffffff811115610b0457610b04613660565b604051908082528060200260200182016040528015610b3d57816020015b610b2a61342b565b815260200190600190039081610b225790505b50905060015b828111610b91576000610b5582611f70565b90508083610b646001856137db565b81518110610b7457610b746137f2565b60200260200101819052505080610b8a90613821565b9050610b43565b5092915050565b600480610ba361089b565b6005811115610bb457610bb461350d565b14610c275760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b6000610c3283610ebc565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260409020600381015491925090610100900460ff1615610cdb5760405162461bcd60e51b815260206004820152602e60248201527f41756374696f6e526166666c653a2066756e6473206861766520616c7265616460448201527f79206265656e20636c61696d65640000000000000000000000000000000000006064820152608401610265565b600260038083015460ff1690811115610cf657610cf661350d565b1415610d6a5760405162461bcd60e51b815260206004820152603160248201527f41756374696f6e526166666c653a2061756374696f6e2077696e6e657273206360448201527f616e6e6f7420636c61696d2066756e64730000000000000000000000000000006064820152608401610265565b600381810180546101007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff8216179091556000919060ff1681811115610db257610db261350d565b1415610dfd576002820154610de7907f0000000000000000000000000000000000000000000000000354a6ba7a1800006137db565b8260010154610df691906137db565b9050610e6a565b600160038084015460ff1690811115610e1857610e1861350d565b1415610e2957506001810154610e6a565b600060038084015460ff1690811115610e4457610e4461350d565b1415610e6a57606482600101546062610e5d919061385a565b610e6791906138c6565b90505b8015610eb55760405173ffffffffffffffffffffffffffffffffffffffff84169082156108fc029083906000818181858888f19350505050158015610eb3573d6000803e3d6000fd5b505b5050505050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610f545760405162461bcd60e51b815260206004820152603260248201527f41756374696f6e526166666c653a20626964646572207769746820676976656e60448201527f20494420646f6573206e6f7420657869737400000000000000000000000000006064820152608401610265565b92915050565b610f626120d1565b610f6c6000612421565b565b60606009805480602002602001604051908101604052809291908181526020018280548015610ad15760200282019190600052602060002090815481526020019060010190808311610abd575050505050905090565b610fcc6120d1565b600480610fd761089b565b6005811115610fe857610fe861350d565b1461105b5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600b5460ff16156110d45760405162461bcd60e51b815260206004820152603160248201527f41756374696f6e526166666c653a2070726f6365656473206861766520616c7260448201527f65616479206265656e20636c61696d65640000000000000000000000000000006064820152608401610265565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560006111096114f8565b905080611114575050565b600954600090815b818110156111a3576000600260006009848154811061113d5761113d6137f2565b6000918252602080832090910154835282810193909352604091820181205473ffffffffffffffffffffffffffffffffffffffff168082526001938490529190209091015490915061118f90856138da565b9350508061119c90613821565b905061111c565b5060006111d160017f00000000000000000000000000000000000000000000000000000000000001186137db565b90508084116111e8576111e56001856137db565b90505b6112127f0000000000000000000000000000000000000000000000000354a6ba7a1800008261385a565b61121c90846138da565b92506000805b828110156112a657600060026000600a8481548110611243576112436137f2565b6000918252602080832090910154835282810193909352604091820181205473ffffffffffffffffffffffffffffffffffffffff168082526001909352206002015490915061129290846138da565b9250508061129f90613821565b9050611222565b506112b181856137db565b93506112d260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f19350505050158015611317573d6000803e3d6000fd5b50505050505050565b6113286120d1565b60028061133361089b565b60058111156113445761134461350d565b146113b75760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560006113ec6114f8565b90507f000000000000000000000000000000000000000000000000000000000000011880821161141b57505050565b600061142782846137db565b90507f0000000000000000000000000000000000000000000000000000000000000014808210156114555750805b60005b818110156114a257600061146c6004612496565b90506000611479826126fd565b905061148481612710565b61148f600d82612780565b50508061149b90613821565b9050611458565b506114af60046000613460565b60056000905560066000905560005b81811015610eb35760006114d2600d612496565b90506114e76114e26001836137db565b6127a1565b506114f181613821565b90506114be565b6000600160035461150991906137db565b905090565b6115166120d1565b60048061152161089b565b60058111156115325761153261350d565b146115a55760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600c546008548061161e5760405162461bcd60e51b815260206004820152602960248201527f41756374696f6e526166666c653a20746865726520617265206e6f206665657360448201527f20746f20636c61696d00000000000000000000000000000000000000000000006064820152608401610265565b8082106116935760405162461bcd60e51b815260206004820152602d60248201527f41756374696f6e526166666c653a2066656573206861766520616c726561647960448201527f206265656e20636c61696d6564000000000000000000000000000000000000006064820152608401610265565b600061169f85846138da565b9050818111156116ac5750805b6000835b8281101561174d5760006116e0600883815481106116d0576116d06137f2565b9060005260206000200154610ebc565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602081905260409091200154909150606461171a82606261385a565b61172491906138c6565b61172e90826137db565b61173890856138da565b935050508061174690613821565b90506116b0565b50600c8290556000805460405173ffffffffffffffffffffffffffffffffffffffff9091169183156108fc02918491818181858888f19350505050158015611317573d6000803e3d6000fd5b33321461180e5760405162461bcd60e51b815260206004820152603260248201527f41756374696f6e526166666c653a20696e7465726e616c207472616e7361637460448201527f696f6e732061726520666f7262696464656e00000000000000000000000000006064820152608401610265565b60018061181961089b565b600581111561182a5761182a61350d565b1461189d5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b60648311156119145760405162461bcd60e51b815260206004820152602c60248201527f41756374696f6e526166666c653a20646973636f756e74206d7573742062652060448201527f6174206d6f7374203130302500000000000000000000000000000000000000006064820152608401610265565b6040805133602082015290810184905260009060600160405160208183030381529060405280519060200120905061196d837fae6e667ff7978c769ef8010a8cf237b13330c9da748e574cd15759dadc1cf2b78361288b565b6119df5760405162461bcd60e51b815260206004820152602560248201527f41756374696f6e526166666c653a20646973636f756e742070726f6f6620696e60448201527f76616c69640000000000000000000000000000000000000000000000000000006064820152608401610265565b6119e76121c5565b336000908152600160205260408120600281015490917f0000000000000000000000000000000000000000000000000354a6ba7a180000906064611a2b898461385a565b611a3591906138c6565b905082811115611a4757600284018190555b5050505050505050565b6060600a805480602002602001604051908101604052809291908181526020018280548015610ad15760200282019190600052602060002090815481526020019060010190808311610abd575050505050905090565b611aaf6120d1565b600380611aba61089b565b6005811115611acb57611acb61350d565b14611b3e5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600217905560085480611b75575050565b447f00000000000000000000000000000000000000000000000000000000000001186000611ba660206101006138c6565b611bb090836138c6565b67ffffffffffffffff811115611bc857611bc8613660565b604051908082528060200260200182016040528015611bf1578160200160208202803683370190505b50805190915060005b81811015611c5c5760408051602081018790529081018290526060016040516020818303038152906040528051906020012060001c838281518110611c4157611c416137f2565b6020908102919091010152611c5581613821565b9050611bfa565b5050611c828482600081518110611c7557611c756137f2565b60200260200101516128a1565b82600081518110611c9557611c956137f2565b6020908102919091010152935081841015611cb357610eb584612900565b610eb58482612954565b611cc561347e565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090208054611d5e5760405162461bcd60e51b815260206004820152602660248201527f41756374696f6e526166666c653a206e6f2062696420627920676976656e206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610265565b6040805160a08101825282548152600183015460208201526002830154918101919091526003808301548391606084019160ff1690811115611da257611da261350d565b6003811115611db357611db361350d565b815260039190910154610100900460ff1615156020909101529392505050565b611ddb61347e565b6000611de683610ebc565b9050600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff166003811115611da257611da261350d565b611e7c6120d1565b600580611e8761089b565b6005811115611e9857611e9861350d565b14611f0b5760405162461bcd60e51b815260206004820152602260248201527f41756374696f6e526166666c653a20697320696e20696e76616c69642073746160448201527f74650000000000000000000000000000000000000000000000000000000000006064820152608401610265565b47611f2b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610896573d6000803e3d6000fd5b611f7861342b565b6000611f8383610ebc565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020818152604080842081518083018352958652815160a081018352815481529381015484840152600281015491840191909152600380820154969750909593949391840192918691606084019160ff16908111156120025761200261350d565b60038111156120135761201361350d565b815260039190910154610100900460ff161515602090910152905295945050505050565b61203f6120d1565b73ffffffffffffffffffffffffffffffffffffffff81166120c85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610265565b610a8081612421565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f6c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610265565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526108969084906129e0565b33600090815260016020819052604090912090810154612313577f0000000000000000000000000000000000000000000000000354a6ba7a1800003410156122755760405162461bcd60e51b815260206004820152603060248201527f41756374696f6e526166666c653a2062696420616d6f756e742069732062656c60448201527f6f772072657365727665207072696365000000000000000000000000000000006064820152608401610265565b3460018201556003805490600061228b83613821565b90915550808255600090815260026020526040812080547fffffffffffffffffffffffff0000000000000000000000000000000000000000163317905581546008805460018181018355919093527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee39092015581549082015461230e9190612ad2565b6123d7565b7f000000000000000000000000000000000000000000000000002386f26fc100003410156123a85760405162461bcd60e51b8152602060048201526024808201527f41756374696f6e526166666c653a2062696420696e6372656d656e7420746f6f60448201527f206c6f77000000000000000000000000000000000000000000000000000000006064820152608401610265565b60018101805490349060006123bd83856138da565b9091555050815460018301546123d591908390612b74565b505b805460018201546040805133815260208101939093528201527f87f5b2fe112bf269d30fb8ca9dc0bde0afd0cc39258e13fafd75fe794795bf0e906060015b60405180910390a150565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805460009061250d5760405162461bcd60e51b815260206004820152603260248201527f4d6178486561703a2063616e6e6f742072656d6f7665206d617820656c656d6560448201527f6e742066726f6d20656d707479206865617000000000000000000000000000006064820152608401610265565b81600081548110612520576125206137f2565b90600052602060002001549050816001838054905061253f91906137db565b8154811061254f5761254f6137f2565b90600052602060002001548260008154811061256d5761256d6137f2565b90600052602060002001819055508180548061258b5761258b6138f2565b6001900381819060005260206000200160009055905560005b60006125af82612c18565b905060006125bc83612c30565b855490915083908310801561260857508584815481106125de576125de6137f2565b90600052602060002001548684815481106125fb576125fb6137f2565b9060005260206000200154115b156126105750815b855482108015612657575085818154811061262d5761262d6137f2565b906000526020600020015486838154811061264a5761264a6137f2565b9060005260206000200154115b1561265f5750805b8381141561266f575050506126f7565b858181548110612681576126816137f2565b906000526020600020015486858154811061269e5761269e6137f2565b90600052602060002001548786815481106126bb576126bb6137f2565b9060005260206000200160008985815481106126d9576126d96137f2565b600091825260209091200192909255919091555092506125a4915050565b50919050565b6000610f5463ffffffff838116906137db565b61271b816002612c48565b600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af018190556040518181527f7595f3fd584af50df83ccb184a9c80f0e5abff0b8c2798b989a878d4840d9beb90602001612416565b81546001810183556000838152602090208101829055610896838284612cc3565b6008548082106128195760405162461bcd60e51b815260206004820152602f60248201527f41756374696f6e526166666c653a20696e76616c696420726166666c6520706160448201527f727469636970616e7420696e64657800000000000000000000000000000000006064820152608401610265565b60086128266001836137db565b81548110612836576128366137f2565b906000526020600020015460088381548110612854576128546137f2565b6000918252602090912001556008805480612871576128716138f2565b600190038181906000526020600020016000905590555050565b6000826128988584612d99565b14949350505050565b60008060006128b08585612de6565b90506000600882815481106128c7576128c76137f2565b906000526020600020015490506128dd81612e01565b6128e6826127a1565b6128f16001876137db565b9660209590951c955050505050565b60005b8181101561294757600060088281548110612920576129206137f2565b9060005260206000200154905061293681612e70565b5061294081613821565b9050612903565b50610a8060086000613460565b612993828260008151811061296b5761296b6137f2565b60200260200101516001602061010061298491906138c6565b61298e91906137db565b612ee0565b915060015b8151811015610896576129ce838383815181106129b7576129b76137f2565b6020026020010151602061010061298e91906138c6565b92506129d981613821565b9050612998565b6000612a42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612f5b9092919063ffffffff16565b8051909150156108965780806020019051810190612a609190613921565b6108965760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610265565b60007f0000000000000000000000000000000000000000000000000000000000000014612afd6114f8565b1190506000612b0c8484612f6a565b6006549091508215612b3f57808211612b26575050505050565b612b3260048284612f88565b612b3a612fa7565b610eb5565b612b4a600483612780565b808211612b6c57600454612b60906001906137db565b60055550600655505050565b610eb5612fa7565b60007f0000000000000000000000000000000000000000000000000000000000000014612b9f6114f8565b101590506000612baf8584612f6a565b600654909150808211838015612bc3575080155b15612bd15750505050505050565b6000612bdd8888612f6a565b9050828111801590612c0c57600554612bf99060049087612fb9565b612c01612fa7565b505050505050505050565b612c0160048387612f88565b6000612c2582600261385a565b610f549060016138da565b6000612c3d82600261385a565b610f549060026138da565b6000612c5383610ebc565b905081600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160006101000a81548160ff02191690836003811115612cb957612cb961350d565b0217905550505050565b600082118015612d125750828281548110612ce057612ce06137f2565b906000526020600020015483612cf584613074565b81548110612d0557612d056137f2565b9060005260206000200154105b15610896578083612d2284613074565b81548110612d3257612d326137f2565b906000526020600020015484612d4785613074565b81548110612d5757612d576137f2565b906000526020600020016000868681548110612d7557612d756137f2565b6000918252602090912001929092559190915550612d9282613074565b9150612cc3565b600081815b8451811015612dde57612dca82868381518110612dbd57612dbd6137f2565b602002602001015161308d565b915080612dd681613821565b915050612d9e565b509392505050565b600063ffffffff8216612df98482613943565b949350505050565b612e0c816001612c48565b600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018190556040518181527e8923b8adac05258abf40b3e936d1a95d3c63fa197d9ded7f853d8f7dcbc5a390602001612416565b612e7b816003612c48565b600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8018190556040518181527fa201aedcbcadeeae47194e16fa8156404ec2c7060dec4bc5fe06b161a31bcb5690602001612416565b6000805b82811015612f52576000612ef88686612de6565b9050600060088281548110612f0f57612f0f6137f2565b90600052602060002001549050612f2581612e70565b612f2e826127a1565b612f3787613957565b9650505060209390931c92612f4b81613821565b9050612ee4565b50929392505050565b6060612df984846000856130bf565b6000612f7a8363ffffffff6137db565b602083901b17905092915050565b6000612f9484846131be565b9050612fa1848284612fb9565b50505050565b612fb16004613275565b600655600555565b828281548110612fcb57612fcb6137f2565b9060005260206000200154811161304a5760405162461bcd60e51b815260206004820152603060248201527f4d6178486561703a206e65772076616c7565206d75737420626520626967676560448201527f72207468616e206f6c642076616c7565000000000000000000000000000000006064820152608401610265565b8083838154811061305d5761305d6137f2565b600091825260209091200155610896838383612cc3565b600060026130836001846137db565b610f5491906138c6565b60008183106130a95760008281526020849052604090206130b8565b60008381526020839052604090205b9392505050565b6060824710156131375760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610265565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161316091906139b8565b60006040518083038185875af1925050503d806000811461319d576040519150601f19603f3d011682016040523d82523d6000602084013e6131a2565b606091505b50915091506131b387838387613383565b979650505050505050565b6000805b835481101561320657828482815481106131de576131de6137f2565b906000526020600020015414156131f6579050610f54565b6131ff81613821565b90506131c2565b5060405162461bcd60e51b815260206004820152602760248201527f4d6178486561703a206b6579207769746820676976656e2076616c7565206e6f60448201527f7420666f756e64000000000000000000000000000000000000000000000000006064820152608401610265565b80546000908190806132ef5760405162461bcd60e51b815260206004820152603260248201527f4d6178486561703a2063616e6e6f742066696e64206d696e696d756d20656c6560448201527f6d656e74206f6e20656d707479206865617000000000000000000000000000006064820152608401610265565b60006132fc6002836138c6565b9050848181548110613310576133106137f2565b90600052602060002001549250809350600081600161332f91906138da565b90505b8281101561337b57600086828154811061334e5761334e6137f2565b906000526020600020015490508481101561336a578094508195505b5061337481613821565b9050613332565b505050915091565b606083156133fc5782516133f55773ffffffffffffffffffffffffffffffffffffffff85163b6133f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610265565b5081612df9565b612df983838151156134115781518083602001fd5b8060405162461bcd60e51b815260040161026591906139d4565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200161345b61347e565b905290565b5080546000825590600052602060002090810190610a8091906134be565b6040518060a00160405280600081526020016000815260200160008152602001600060038111156134b1576134b161350d565b8152600060209091015290565b5b808211156134d357600081556001016134bf565b5090565b6000602082840312156134e957600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146130b857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60208101600683106135505761355061350d565b91905290565b6020808252825182820181905260009190848201906040850190845b8181101561358e57835183529284019291840191600101613572565b50909695505050505050565b8051825260208101516020830152604081015160408301526060810151600481106135c7576135c761350d565b60608301526080908101511515910152565b73ffffffffffffffffffffffffffffffffffffffff81511682526020810151610896602084018261359a565b6020808252825182820181905260009190848201906040850190845b8181101561358e576136348385516135d9565b9284019260c09290920191600101613621565b60006020828403121561365957600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080604083850312156136a257600080fd5b8235915060208084013567ffffffffffffffff808211156136c257600080fd5b818601915086601f8301126136d657600080fd5b8135818111156136e8576136e8613660565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f8301168101818110858211171561372b5761372b613660565b60405291825284820192508381018501918983111561374957600080fd5b938501935b828510156137675784358452938501939285019261374e565b8096505050505050509250929050565b60a08101610f54828461359a565b60c08101610f5482846135d9565b6000602082840312156137a557600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156137ed576137ed6137ac565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613853576138536137ac565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613892576138926137ac565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826138d5576138d5613897565b500490565b600082198211156138ed576138ed6137ac565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006020828403121561393357600080fd5b815180151581146130b857600080fd5b60008261395257613952613897565b500690565b600081613966576139666137ac565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60005b838110156139a757818101518382015260200161398f565b83811115612fa15750506000910152565b600082516139ca81846020870161398c565b9190910192915050565b60208152600082518060208401526139f381604085016020870161398c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212206af67bdf37914cff56448442a05ed931c0492c9e1788297e459b72873b9e4a3a64736f6c634300080a0033

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

00000000000000000000000090110bf0b97457d4785d2ca7aeeba5206169192d00000000000000000000000000000000000000000000000000000000641eb81000000000000000000000000000000000000000000000000000000000642703800000000000000000000000000000000000000000000000000000000064303e00000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000001180000000000000000000000000000000000000000000000000354a6ba7a180000000000000000000000000000000000000000000000000000002386f26fc10000ae6e667ff7978c769ef8010a8cf237b13330c9da748e574cd15759dadc1cf2b7

-----Decoded View---------------
Arg [0] : initialOwner (address): 0x90110BF0B97457D4785D2CA7AEEbA5206169192d
Arg [1] : biddingStartTime (uint256): 1679734800
Arg [2] : biddingEndTime (uint256): 1680278400
Arg [3] : claimingEndTime (uint256): 1680883200
Arg [4] : auctionWinnersCount (uint256): 20
Arg [5] : raffleWinnersCount (uint256): 280
Arg [6] : reservePrice (uint256): 240000000000000000
Arg [7] : minBidIncrement (uint256): 10000000000000000
Arg [8] : discountRoot (bytes32): 0xae6e667ff7978c769ef8010a8cf237b13330c9da748e574cd15759dadc1cf2b7

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000090110bf0b97457d4785d2ca7aeeba5206169192d
Arg [1] : 00000000000000000000000000000000000000000000000000000000641eb810
Arg [2] : 0000000000000000000000000000000000000000000000000000000064270380
Arg [3] : 0000000000000000000000000000000000000000000000000000000064303e00
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000118
Arg [6] : 0000000000000000000000000000000000000000000000000354a6ba7a180000
Arg [7] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [8] : ae6e667ff7978c769ef8010a8cf237b13330c9da748e574cd15759dadc1cf2b7


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.