ETH Price: $2,429.41 (+0.28%)

Contract

0x87AAdE1067Ed0276ec9BEf6db8E17Abe27A6B454
 

Overview

ETH Balance

0.002100014963048448 ETH

Eth Value

$5.10 (@ $2,429.41/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw200178742024-06-04 10:31:11124 days ago1717497071IN
0x87AAdE10...e27A6B454
0 ETH0.000217126.17740532
Withdraw200178682024-06-04 10:29:59124 days ago1717496999IN
0x87AAdE10...e27A6B454
0 ETH0.000219376.23904727
Withdraw199889452024-05-31 9:33:23128 days ago1717148003IN
0x87AAdE10...e27A6B454
0 ETH0.0004552912.94876564
Initiate Withdra...199613642024-05-27 12:59:23131 days ago1716814763IN
0x87AAdE10...e27A6B454
0 ETH0.000417213.7733378
Initiate Withdra...199613522024-05-27 12:56:59131 days ago1716814619IN
0x87AAdE10...e27A6B454
0 ETH0.0004710215.54395614
Initiate Withdra...199329302024-05-23 13:37:35135 days ago1716471455IN
0x87AAdE10...e27A6B454
0 ETH0.0005846219.29280362
Initialize Artic...186145712023-11-20 17:45:47320 days ago1700502347IN
0x87AAdE10...e27A6B454
0.002 ETH0.0021325840.95929799
Increase Bounty185265872023-11-08 10:17:11333 days ago1699438631IN
0x87AAdE10...e27A6B454
0.2 ETH0.0006853723.8847576
Transfer Ownersh...185220682023-11-07 19:08:35333 days ago1699384115IN
0x87AAdE10...e27A6B454
0 ETH0.0009433633.10972549
Initialize Artic...185208602023-11-07 15:06:11333 days ago1699369571IN
0x87AAdE10...e27A6B454
0.005 ETH0.0019358537.18070699
Increase Bounty175426412023-06-23 13:43:59470 days ago1687527839IN
0x87AAdE10...e27A6B454
0.122 ETH0.0004692516.35321728
Initialize Artic...175425462023-06-23 13:24:47470 days ago1687526687IN
0x87AAdE10...e27A6B454
0.001 ETH0.0009668818.57035434
Initialize Artic...175368102023-06-22 18:02:11471 days ago1687456931IN
0x87AAdE10...e27A6B454
0.0001 ETH0.0010310318.94624264
Increase Bounty174723992023-06-13 16:56:35480 days ago1686675395IN
0x87AAdE10...e27A6B454
0.099 ETH0.0007582126.43416771
Initialize Artic...174721062023-06-13 15:57:11480 days ago1686671831IN
0x87AAdE10...e27A6B454
0.001 ETH0.0012683224.36562453
Change Admin174231012023-06-06 18:12:47487 days ago1686075167IN
0x87AAdE10...e27A6B454
0 ETH0.0008761131.05786862
0x60a06040174223762023-06-06 15:45:11487 days ago1686066311IN
 Create: TruthPost
0 ETH0.094411125

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
200178742024-06-04 10:31:11124 days ago1717497071
0x87AAdE10...e27A6B454
0.09999999 ETH
200178682024-06-04 10:29:59124 days ago1717496999
0x87AAdE10...e27A6B454
0.12299999 ETH
199889452024-05-31 9:33:23128 days ago1717148003
0x87AAdE10...e27A6B454
0.20499999 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TruthPost

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 7 : TruthPost.sol
/// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import "@kleros/dispute-resolver-interface-contract/contracts/IDisputeResolver.sol";
import "./ITruthPost.sol";

/// @title  The Trust Post
/// @author https://github.com/proveuswrong<0xferit, gratestas>
/// @notice Smart contract for a type of curation, where submitted items are on hold until they are withdrawn and the amount of security deposits are determined by submitters.
/// @dev    You should target ITruthPost interface contract for building on top. Otherwise you risk incompatibility across versions.
///         Articles are not addressed with their identifiers. That enables us to reuse same storage address for another article later.///         Arbitrator is fixed, but subcourts, jury size and metaevidence are not.
///         We prevent articles to get withdrawn immediately. This is to prevent submitter to escape punishment in case someone discovers an argument to debunk the article.
///         Bounty amounts are compressed with a lossy compression method to save on storage cost.
/// @custom:approvals 0xferit, gratestas
contract TruthPost is ITruthPost, IArbitrable, IEvidence {
    IArbitrator public immutable ARBITRATOR;
    uint256 public constant NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE = 32; // To compress bounty amount to gain space in struct. Lossy compression.

    uint8 public categoryCounter = 0;

    address payable public admin = payable(msg.sender);

    modifier onlyAdmin() {
        require(msg.sender == admin);
        _;
    }

    struct DisputeData {
        address payable challenger;
        RulingOptions outcome;
        uint8 articleCategory;
        bool resolved; // To remove dependency to disputeStatus function of arbitrator. This function is likely to be removed in Kleros v2.
        uint80 articleStorageAddress; // 2^16 is sufficient. Just using extra available space.
        Round[] rounds; // Tracks each appeal round of a dispute.
    }

    struct Round {
        mapping(address => uint256[NUMBER_OF_RULING_OPTIONS + 1]) contributions;
        bool[NUMBER_OF_RULING_OPTIONS + 1] hasPaid; // True if the fees for this particular answer has been fully paid in the form hasPaid[rulingOutcome].
        uint256[NUMBER_OF_RULING_OPTIONS + 1] totalPerRuling;
        uint256 totalClaimableAfterExpenses;
    }

    struct Article {
        address payable owner;
        uint32 withdrawalPermittedAt; // Overflows in year 2106.
        uint56 bountyAmount; // 32-bits compression. Decompressed size is 88 bits.
        uint8 category;
    }

    bytes[64] public categoryToArbitratorExtraData;

    mapping(uint80 => Article) public articleStorage; // Key: Storage address of article. Articles are not addressed with their identifiers, to enable reusing a storage slot.
    mapping(uint256 => DisputeData) public disputes; // Key: Dispute ID as in arbitrator.

    constructor(
        IArbitrator _arbitrator,
        bytes memory _arbitratorExtraData,
        string memory _metaevidenceIpfsUri,
        uint256 _articleWithdrawalTimelock,
        uint256 _winnerStakeMultiplier,
        uint256 _loserStakeMultiplier,
        address payable _treasury
    ) ITruthPost(_articleWithdrawalTimelock, _winnerStakeMultiplier, _loserStakeMultiplier, _treasury) {
        ARBITRATOR = _arbitrator;
        newCategory(_metaevidenceIpfsUri, _arbitratorExtraData);
    }

    /// @inheritdoc ITruthPost
    function initializeArticle(
        string calldata _articleID,
        uint8 _category,
        uint80 _searchPointer
    ) external payable override {
        require(_category < categoryCounter, "This category does not exist");

        Article storage article;
        do {
            article = articleStorage[_searchPointer++];
        } while (article.bountyAmount != 0);

        article.owner = payable(msg.sender);
        article.bountyAmount = uint56(msg.value >> NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE);
        article.category = _category;

        require(article.bountyAmount > 0, "You can't initialize an article without putting a bounty.");

        uint256 articleStorageAddress = _searchPointer - 1;
        emit NewArticle(_articleID, _category, articleStorageAddress);
        emit BalanceUpdate(
            articleStorageAddress,
            uint256(article.bountyAmount) << NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE
        );
    }

    /// @inheritdoc ITruthPost
    function submitEvidence(uint256 _disputeID, string calldata _evidenceURI) external override {
        emit Evidence(ARBITRATOR, _disputeID, msg.sender, _evidenceURI);
    }

    /// @inheritdoc ITruthPost
    function increaseBounty(uint80 _articleStorageAddress) external payable override {
        Article storage article = articleStorage[_articleStorageAddress];
        require(msg.sender == article.owner, "Only author can increase bounty of an article.");
        // To prevent mistakes.

        article.bountyAmount += uint56(msg.value >> NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE);

        emit BalanceUpdate(
            _articleStorageAddress,
            uint256(article.bountyAmount) << NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE
        );
    }

    /// @inheritdoc ITruthPost
    function initiateWithdrawal(uint80 _articleStorageAddress) external override {
        Article storage article = articleStorage[_articleStorageAddress];
        require(msg.sender == article.owner, "Only author can withdraw an article.");
        require(article.withdrawalPermittedAt == 0, "Withdrawal already initiated or there is a challenge.");

        article.withdrawalPermittedAt = uint32(block.timestamp + ARTICLE_WITHDRAWAL_TIMELOCK);
        emit TimelockStarted(_articleStorageAddress);
    }

    /// @inheritdoc ITruthPost
    function withdraw(uint80 _articleStorageAddress) external override {
        Article storage article = articleStorage[_articleStorageAddress];

        require(msg.sender == article.owner, "Only author can withdraw an article.");
        require(article.withdrawalPermittedAt != 0, "You need to initiate withdrawal first.");
        require(
            article.withdrawalPermittedAt <= block.timestamp,
            "You need to wait for timelock or wait until the challenge ends."
        );

        uint256 withdrawal = uint96(article.bountyAmount) << NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE;
        article.bountyAmount = 0;
        // This is critical to reset.
        article.withdrawalPermittedAt = 0;
        // This too, otherwise new article inside the same slot can withdraw instantly.
        payable(msg.sender).transfer(withdrawal);
        emit ArticleWithdrawn(_articleStorageAddress);
    }

    /// @inheritdoc ITruthPost
    function challenge(uint80 _articleStorageAddress) external payable override {
        Article storage article = articleStorage[_articleStorageAddress];
        require(article.bountyAmount > 0, "Nothing to challenge.");
        require(article.withdrawalPermittedAt != type(uint32).max, "There is an ongoing challenge.");
        article.withdrawalPermittedAt = type(uint32).max;
        // Mark as challenged.

        require(msg.value >= challengeFee(_articleStorageAddress), "Insufficient funds to challenge.");

        uint256 taxAmount = ((uint96(article.bountyAmount) << NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE) *
            challengeTaxRate) / MULTIPLIER_DENOMINATOR;
        treasuryBalance += taxAmount;

        uint256 disputeID = ARBITRATOR.createDispute{value: msg.value - taxAmount}(
            NUMBER_OF_RULING_OPTIONS,
            categoryToArbitratorExtraData[article.category]
        );

        disputes[disputeID].challenger = payable(msg.sender);
        disputes[disputeID].rounds.push();
        disputes[disputeID].articleStorageAddress = uint80(_articleStorageAddress);
        disputes[disputeID].articleCategory = article.category;

        // Evidence group ID is dispute ID.
        emit Dispute(ARBITRATOR, disputeID, article.category, disputeID);
        // This event links the dispute to an article storage address.
        emit Challenge(_articleStorageAddress, msg.sender, disputeID);
    }

    /// @inheritdoc ITruthPost
    function fundAppeal(uint256 _disputeID, RulingOptions _supportedRuling)
        external
        payable
        override
        returns (bool fullyFunded)
    {
        DisputeData storage dispute = disputes[_disputeID];

        RulingOptions currentRuling = RulingOptions(ARBITRATOR.currentRuling(_disputeID));
        uint256 basicCost;
        uint256 totalCost;
        {
            (uint256 appealWindowStart, uint256 appealWindowEnd) = ARBITRATOR.appealPeriod(_disputeID);

            uint256 multiplier;

            if (_supportedRuling == currentRuling) {
                require(block.timestamp < appealWindowEnd, "Funding must be made within the appeal period.");

                multiplier = WINNER_STAKE_MULTIPLIER;
            } else {
                require(
                    block.timestamp <
                        (appealWindowStart +
                            (((appealWindowEnd - appealWindowStart) * LOSER_APPEAL_PERIOD_MULTIPLIER) /
                                MULTIPLIER_DENOMINATOR)),
                    "Funding must be made within the first half appeal period."
                );

                multiplier = LOSER_STAKE_MULTIPLIER;
            }

            basicCost = ARBITRATOR.appealCost(_disputeID, categoryToArbitratorExtraData[dispute.articleCategory]);
            totalCost = basicCost + ((basicCost * (multiplier)) / MULTIPLIER_DENOMINATOR);
        }

        RulingOptions supportedRulingOutcome = RulingOptions(_supportedRuling);

        uint256 lastRoundIndex = dispute.rounds.length - 1;
        Round storage lastRound = dispute.rounds[lastRoundIndex];
        require(!lastRound.hasPaid[uint256(supportedRulingOutcome)], "Appeal fee has already been paid.");

        uint256 contribution;
        {
            uint256 paidSoFar = lastRound.totalPerRuling[uint256(supportedRulingOutcome)];

            if (paidSoFar >= totalCost) {
                contribution = 0;
                // This can happen if arbitration fee gets lowered in between contributions.
            } else {
                contribution = totalCost - paidSoFar > msg.value ? msg.value : totalCost - paidSoFar;
            }
        }

        emit Contribution(_disputeID, lastRoundIndex, _supportedRuling, msg.sender, contribution);

        lastRound.contributions[msg.sender][uint256(supportedRulingOutcome)] += contribution;
        lastRound.totalPerRuling[uint256(supportedRulingOutcome)] += contribution;

        if (lastRound.totalPerRuling[uint256(supportedRulingOutcome)] >= totalCost) {
            lastRound.totalClaimableAfterExpenses += lastRound.totalPerRuling[uint256(supportedRulingOutcome)];
            lastRound.hasPaid[uint256(supportedRulingOutcome)] = true;
            emit RulingFunded(_disputeID, lastRoundIndex, _supportedRuling);
        }

        if (
            lastRound.hasPaid[uint256(RulingOptions.ChallengeFailed)] &&
            lastRound.hasPaid[uint256(RulingOptions.Debunked)]
        ) {
            dispute.rounds.push();
            lastRound.totalClaimableAfterExpenses -= basicCost;
            ARBITRATOR.appeal{value: basicCost}(_disputeID, categoryToArbitratorExtraData[dispute.articleCategory]);
        }

        // Ignoring failure condition deliberately.
        if (msg.value - contribution > 0) payable(msg.sender).send(msg.value - contribution);

        return lastRound.hasPaid[uint256(supportedRulingOutcome)];
    }

    /// @notice Execute a ruling
    /// @dev This is only for arbitrator to use.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _ruling Winning ruling option.
    function rule(uint256 _disputeID, uint256 _ruling) external override {
        require(IArbitrator(msg.sender) == ARBITRATOR);

        DisputeData storage dispute = disputes[_disputeID];
        Round storage lastRound = dispute.rounds[dispute.rounds.length - 1];

        // Appeal overrides arbitrator ruling. If a ruling option was not fully funded and the counter ruling option was funded, funded ruling option wins by default.
        RulingOptions wonByDefault;
        if (lastRound.hasPaid[uint256(RulingOptions.ChallengeFailed)]) {
            wonByDefault = RulingOptions.ChallengeFailed;
        } else if (lastRound.hasPaid[uint256(RulingOptions.ChallengeFailed)]) {
            wonByDefault = RulingOptions.Debunked;
        }

        RulingOptions actualRuling = wonByDefault != RulingOptions.Tied ? wonByDefault : RulingOptions(_ruling);
        dispute.outcome = actualRuling;

        uint80 articleStorageAddress = dispute.articleStorageAddress;

        Article storage article = articleStorage[articleStorageAddress];

        if (actualRuling == RulingOptions.Debunked) {
            uint256 bounty = uint96(article.bountyAmount) << NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE;
            article.bountyAmount = 0;

            emit Debunked(articleStorageAddress);
            disputes[_disputeID].challenger.send(bounty);
            // Ignoring failure condition deliberately.
        }
        // In case of tie, article stands.
        article.withdrawalPermittedAt = 0;
        // Unmark as challenged.
        dispute.resolved = true;

        emit Ruling(IArbitrator(msg.sender), _disputeID, _ruling);
    }

    /// @inheritdoc ITruthPost
    function withdrawFeesAndRewardsForAllRoundsAndAllRulings(uint256 _disputeID, address payable _contributor)
        external
        override
    {
        DisputeData storage dispute = disputes[_disputeID];
        uint256 noOfRounds = dispute.rounds.length;
        for (uint256 roundNumber = 0; roundNumber < noOfRounds; roundNumber++) {
            for (uint256 rulingOption = 0; rulingOption <= NUMBER_OF_RULING_OPTIONS; rulingOption++)
                withdrawFeesAndRewards(_disputeID, _contributor, roundNumber, RulingOptions(rulingOption));
        }
    }

    /// @inheritdoc ITruthPost
    function withdrawFeesAndRewardsForAllRounds(
        uint256 _disputeID,
        address payable _contributor,
        RulingOptions _ruling
    ) external override {
        DisputeData storage dispute = disputes[_disputeID];
        uint256 noOfRounds = dispute.rounds.length;
        for (uint256 roundNumber = 0; roundNumber < noOfRounds; roundNumber++) {
            withdrawFeesAndRewards(_disputeID, _contributor, roundNumber, _ruling);
        }
    }

    /// @inheritdoc ITruthPost
    function withdrawFeesAndRewardsForGivenPositions(
        uint256 _disputeID,
        address payable _contributor,
        uint256[][] calldata positions
    ) external override {
        for (uint256 roundNumber = 0; roundNumber < positions.length; roundNumber++) {
            for (uint256 rulingOption = 0; rulingOption < positions[roundNumber].length; rulingOption++) {
                if (positions[roundNumber][rulingOption] > 0) {
                    withdrawFeesAndRewards(_disputeID, _contributor, roundNumber, RulingOptions(rulingOption));
                }
            }
        }
    }

    /// @inheritdoc ITruthPost
    function withdrawFeesAndRewards(
        uint256 _disputeID,
        address payable _contributor,
        uint256 _roundNumber,
        RulingOptions _ruling
    ) public override returns (uint256 amount) {
        DisputeData storage dispute = disputes[_disputeID];
        require(dispute.resolved, "There is no ruling yet.");

        Round storage round = dispute.rounds[_roundNumber];

        amount = getWithdrawableAmount(round, _contributor, _ruling, dispute.outcome);

        if (amount != 0) {
            round.contributions[_contributor][uint256(RulingOptions(_ruling))] = 0;
            _contributor.send(amount);
            // Ignoring failure condition deliberately.
            emit Withdrawal(_disputeID, _roundNumber, _ruling, _contributor, amount);
        }
    }

    /// @notice Updates the challenge tax rate of the contract to a new value.
    /// @dev    The new challenge tax rate must be at most 25% based on MULTIPLIER_DENOMINATOR.
    ///         Only the current administrator can call this function. Emits ChallengeTaxRateUpdate.
    /// @param _newChallengeTaxRate The new challenge tax rate to be set.
    function updateChallengeTaxRate(uint256 _newChallengeTaxRate) external onlyAdmin {
        require(_newChallengeTaxRate <= 256, "The tax rate can only be increased by a maximum of 25%");
        challengeTaxRate = _newChallengeTaxRate;
        emit ChallengeTaxRateUpdate(_newChallengeTaxRate);
    }

    /// @notice Transfers the balance of the contract to the treasury.
    /// @dev    Allows the contract to send its entire balance to the treasury address.
    ///         It is important to ensure that the treasury address is set correctly.
    ///         If the transfer fails, an exception will be raised, and the funds will remain in the contract.
    ///         Emits TreasuryBalanceUpdate.
    function transferBalanceToTreasury() public {
        uint256 amount = treasuryBalance;
        treasuryBalance = 0;
        TREASURY.send(amount);
        emit TreasuryBalanceUpdate(amount);
    }

    /// @inheritdoc ITruthPost
    function switchPublishingLock() public override onlyAdmin {
        isPublishingEnabled = !isPublishingEnabled;
    }

    /// @notice Changes the administrator of the contract to a new address.
    /// @dev    Only the current administrator can call this function. Emits AdminUpdate.
    /// @param  _newAdmin The address of the new administrator.
    function changeAdmin(address payable _newAdmin) external onlyAdmin {
        admin = _newAdmin;
        emit AdminUpdate(_newAdmin);
    }

    /// @notice Changes the treasury address of the contract to a new address.
    /// @dev    Only the current administrator can call this function. Emits TreasuryUpdate.
    /// @param  _newTreasury The address of the new treasury.
    function changeTreasury(address payable _newTreasury) external onlyAdmin {
        TREASURY = _newTreasury;
        emit TreasuryUpdate(_newTreasury);
    }

    /// @inheritdoc ITruthPost
    function changeWinnerStakeMultiplier(uint256 _newWinnerStakeMultiplier) external override onlyAdmin {
        WINNER_STAKE_MULTIPLIER = _newWinnerStakeMultiplier;
        emit WinnerStakeMultiplierUpdate(_newWinnerStakeMultiplier);
    }

    /// @inheritdoc ITruthPost
    function changeLoserStakeMultiplier(uint256 _newLoserStakeMultiplier) external override onlyAdmin {
        LOSER_STAKE_MULTIPLIER = _newLoserStakeMultiplier;
        emit LoserStakeMultiplierUpdate(_newLoserStakeMultiplier);
    }

    /// @inheritdoc ITruthPost
    function changeLoserAppealPeriodMultiplier(uint256 _newLoserAppealPeriodMultiplier) external override onlyAdmin {
        LOSER_APPEAL_PERIOD_MULTIPLIER = _newLoserAppealPeriodMultiplier;
        emit LoserAppealPeriodMultiplierUpdate(_newLoserAppealPeriodMultiplier);
    }
    
    /// @inheritdoc ITruthPost
    function changeArticleWithdrawalTimelock(uint256 _newArticleWithdrawalTimelock) external override onlyAdmin {
        ARTICLE_WITHDRAWAL_TIMELOCK = _newArticleWithdrawalTimelock;
        emit ArticleWithdrawalTimelockUpdate(_newArticleWithdrawalTimelock);
    }


    /// @notice Initialize a category.
    /// @param _metaevidenceIpfsUri IPFS content identifier for metaevidence.
    /// @param _arbitratorExtraData Extra data of Kleros arbitrator, signaling subcourt and jury size selection.
    function newCategory(string memory _metaevidenceIpfsUri, bytes memory _arbitratorExtraData) public {
        require(categoryCounter + 1 != 0, "No space left for a new category");
        emit MetaEvidence(categoryCounter, _metaevidenceIpfsUri);
        categoryToArbitratorExtraData[categoryCounter] = _arbitratorExtraData;

        categoryCounter++;
    }

    /// @inheritdoc ITruthPost
    function transferOwnership(uint80 _articleStorageAddress, address payable _newOwner) external override {
        Article storage article = articleStorage[_articleStorageAddress];
        require(msg.sender == article.owner, "Only author can transfer ownership.");
        article.owner = _newOwner;
        emit OwnershipTransfer(_newOwner);
    }

    /// @inheritdoc ITruthPost
    function challengeFee(uint80 _articleStorageAddress) public view override returns (uint256) {
        Article storage article = articleStorage[_articleStorageAddress];

        uint256 arbitrationFee = ARBITRATOR.arbitrationCost(categoryToArbitratorExtraData[article.category]);
        uint256 challengeTax = ((uint96(article.bountyAmount) << NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE) *
            challengeTaxRate) / MULTIPLIER_DENOMINATOR;

        return arbitrationFee + challengeTax;
    }

    /// @inheritdoc ITruthPost
    function appealFee(uint256 _disputeID) external view override returns (uint256 arbitrationFee) {
        DisputeData storage dispute = disputes[_disputeID];
        arbitrationFee = ARBITRATOR.appealCost(_disputeID, categoryToArbitratorExtraData[dispute.articleCategory]);
    }

    /// @inheritdoc ITruthPost
    function findVacantStorageSlot(uint80 _searchPointer) external view override returns (uint256 vacantSlotIndex) {
        Article storage article;
        do {
            article = articleStorage[_searchPointer++];
        } while (article.bountyAmount != 0);

        return _searchPointer - 1;
    }

    /// @inheritdoc ITruthPost
    function getTotalWithdrawableAmount(uint256 _disputeID, address payable _contributor)
        external
        view
        override
        returns (uint256 sum, uint256[][] memory amounts)
    {
        DisputeData storage dispute = disputes[_disputeID];
        if (!dispute.resolved) return (uint256(0), amounts);
        uint256 noOfRounds = dispute.rounds.length;
        RulingOptions finalRuling = dispute.outcome;

        amounts = new uint256[][](noOfRounds);
        for (uint256 roundNumber = 0; roundNumber < noOfRounds; roundNumber++) {
            amounts[roundNumber] = new uint256[](NUMBER_OF_RULING_OPTIONS + 1);

            Round storage round = dispute.rounds[roundNumber];
            for (uint256 rulingOption = 0; rulingOption <= NUMBER_OF_RULING_OPTIONS; rulingOption++) {
                uint256 currentAmount = getWithdrawableAmount(
                    round,
                    _contributor,
                    RulingOptions(rulingOption),
                    finalRuling
                );
                if (currentAmount > 0) {
                    sum += getWithdrawableAmount(round, _contributor, RulingOptions(rulingOption), finalRuling);
                    amounts[roundNumber][rulingOption] = currentAmount;
                }
            }
        }
    }

    /// @notice Returns withdrawable amount for given parameters.
    function getWithdrawableAmount(
        Round storage _round,
        address _contributor,
        RulingOptions _ruling,
        RulingOptions _finalRuling
    ) internal view returns (uint256 amount) {
        RulingOptions givenRuling = RulingOptions(_ruling);

        if (!_round.hasPaid[uint256(givenRuling)]) {
            // Allow to reimburse if funding was unsuccessful for this ruling option.
            amount = _round.contributions[_contributor][uint256(givenRuling)];
        } else {
            // Funding was successful for this ruling option.
            if (_ruling == _finalRuling) {
                // This ruling option is the ultimate winner.
                amount = _round.totalPerRuling[uint256(givenRuling)] > 0
                    ? (_round.contributions[_contributor][uint256(givenRuling)] * _round.totalClaimableAfterExpenses) /
                        _round.totalPerRuling[uint256(givenRuling)]
                    : 0;
            } else if (!_round.hasPaid[uint256(RulingOptions(_finalRuling))]) {
                // The ultimate winner was not funded in this round. Contributions discounting the appeal fee are reimbursed proportionally.
                amount =
                    (_round.contributions[_contributor][uint256(givenRuling)] * _round.totalClaimableAfterExpenses) /
                    (_round.totalPerRuling[uint256(RulingOptions.ChallengeFailed)] +
                        _round.totalPerRuling[uint256(RulingOptions.Debunked)]);
            }
        }
    }

    /// @inheritdoc ITruthPost
    function getRoundInfo(uint256 _disputeID, uint256 _round)
        external
        view
        override
        returns (
            bool[NUMBER_OF_RULING_OPTIONS + 1] memory hasPaid,
            uint256[NUMBER_OF_RULING_OPTIONS + 1] memory totalPerRuling,
            uint256 totalClaimableAfterExpenses
        )
    {
        Round storage round = disputes[_disputeID].rounds[_round];
        return (round.hasPaid, round.totalPerRuling, round.totalClaimableAfterExpenses);
    }

    /// @inheritdoc ITruthPost
    function getLastRoundWinner(uint256 _disputeID) public view override returns (uint256) {
        return ARBITRATOR.currentRuling(_disputeID);
    }

    /// @inheritdoc ITruthPost
    function getAppealPeriod(uint256 _disputeID, RulingOptions _ruling)
        external
        view
        override
        returns (uint256, uint256)
    {
        (uint256 appealWindowStart, uint256 appealWindowEnd) = ARBITRATOR.appealPeriod(_disputeID);
        uint256 loserAppealWindowEnd = appealWindowStart +
            (((appealWindowEnd - appealWindowStart) * LOSER_APPEAL_PERIOD_MULTIPLIER) / MULTIPLIER_DENOMINATOR);

        bool isWinner = RulingOptions(getLastRoundWinner(_disputeID)) == _ruling;
        return isWinner ? (appealWindowStart, appealWindowEnd) : (appealWindowStart, loserAppealWindowEnd);
    }

    /// @inheritdoc ITruthPost
    function getReturnOfInvestmentRatio(RulingOptions _ruling, RulingOptions _lastRoundWinner)
        external
        view
        override
        returns (uint256)
    {
        bool isWinner = _lastRoundWinner == _ruling;
        uint256 DECIMAL_PRECISION = 1000;
        uint256 multiplier = isWinner ? WINNER_STAKE_MULTIPLIER : LOSER_STAKE_MULTIPLIER;
        return (((WINNER_STAKE_MULTIPLIER + LOSER_STAKE_MULTIPLIER + MULTIPLIER_DENOMINATOR) * DECIMAL_PRECISION) /
            (multiplier + MULTIPLIER_DENOMINATOR));
    }

    /// @inheritdoc ITruthPost
    function getAmountRemainsToBeRaised(uint256 _disputeID, RulingOptions _ruling)
        external
        view
        override
        returns (uint256)
    {
        DisputeData storage dispute = disputes[_disputeID];
        uint256 lastRoundIndex = dispute.rounds.length - 1;
        Round storage lastRound = dispute.rounds[lastRoundIndex];

        bool isWinner = RulingOptions(getLastRoundWinner(_disputeID)) == _ruling;
        uint256 multiplier = isWinner ? WINNER_STAKE_MULTIPLIER : LOSER_STAKE_MULTIPLIER;

        uint256 raisedSoFar = lastRound.totalPerRuling[uint256(_ruling)];
        uint256 basicCost = ARBITRATOR.appealCost(_disputeID, categoryToArbitratorExtraData[dispute.articleCategory]);
        uint256 totalCost = basicCost + ((basicCost * (multiplier)) / MULTIPLIER_DENOMINATOR);

        return totalCost - raisedSoFar;
    }

}

File 2 of 7 : Arbitrator.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.10;

import "@kleros/erc-792/contracts/IArbitrable.sol";
import "@kleros/erc-792/contracts/IArbitrator.sol";

/** @title An IArbitrator implemetation for testing purposes.
 *  @dev DON'T USE ON PRODUCTION.
 */
contract Arbitrator is IArbitrator {
  address public governor = msg.sender;
  uint256 internal arbitrationPrice = 1_000_000_000_000_000_000;

  struct Dispute {
    IArbitrable arbitrated;
    uint256 appealDeadline;
    uint256 numberOfRulingOptions;
    uint256 ruling;
    DisputeStatus status;
  }

  modifier onlyGovernor() {
    require(msg.sender == governor, "Can only be called by the governor.");
    _;
  }

  Dispute[] public disputes;

  function setArbitrationPrice(uint256 _arbitrationPrice) external onlyGovernor {
    arbitrationPrice = _arbitrationPrice;
  }

  function arbitrationCost(bytes memory) public view override returns (uint256 fee) {
    return arbitrationPrice;
  }

  function appealCost(uint256, bytes memory) public view override returns (uint256 fee) {
    return arbitrationCost("UNUSED");
  }

  function createDispute(uint256 _choices, bytes memory _extraData) public payable override returns (uint256 disputeID) {
    uint256 arbitrationFee = arbitrationCost(_extraData);
    require(msg.value >= arbitrationFee, "Value is less than required arbitration fee.");
    disputes.push(
      Dispute({
        arbitrated: IArbitrable(msg.sender),
        numberOfRulingOptions: _choices,
        ruling: 0,
        status: DisputeStatus.Waiting,
        appealDeadline: 0
      })
    );
    disputeID = disputes.length - 1;
    emit DisputeCreation(disputeID, IArbitrable(msg.sender));
  }

  function giveRuling(
    uint256 _disputeID,
    uint256 _ruling,
    uint256 _appealWindow
  ) external onlyGovernor {
    Dispute storage dispute = disputes[_disputeID];
    require(_ruling <= dispute.numberOfRulingOptions, "Invalid ruling.");
    require(dispute.status == DisputeStatus.Waiting, "The dispute must be waiting for arbitration.");

    dispute.ruling = _ruling;
    dispute.status = DisputeStatus.Appealable;
    dispute.appealDeadline = block.timestamp + _appealWindow;

    emit AppealPossible(_disputeID, dispute.arbitrated);
  }

  function appeal(uint256 _disputeID, bytes memory _extraData) public payable override {
    Dispute storage dispute = disputes[_disputeID];
    uint256 appealFee = appealCost(_disputeID, _extraData);
    require(dispute.status == DisputeStatus.Appealable, "The dispute must be appealable.");
    require(block.timestamp < dispute.appealDeadline, "The appeal must occur before the end of the appeal period.");
    require(msg.value >= appealFee, "Value is less than required appeal fee");

    dispute.appealDeadline = 0;
    dispute.status = DisputeStatus.Waiting;
    emit AppealDecision(_disputeID, IArbitrable(msg.sender));
  }

  function executeRuling(uint256 _disputeID) external {
    Dispute storage dispute = disputes[_disputeID];
    require(dispute.status == DisputeStatus.Appealable, "The dispute must be appealable.");
    require(block.timestamp >= dispute.appealDeadline, "The dispute must be executed after its appeal period has ended.");

    dispute.status = DisputeStatus.Solved;
    dispute.arbitrated.rule(_disputeID, dispute.ruling);
  }

  function disputeStatus(uint256 _disputeID) public view override returns (DisputeStatus status) {
    Dispute storage dispute = disputes[_disputeID];
    if (disputes[_disputeID].status == DisputeStatus.Appealable && block.timestamp >= dispute.appealDeadline)
      // If the appeal period is over, consider it solved even if rule has not been called yet.
      return DisputeStatus.Solved;
    else return disputes[_disputeID].status;
  }

  function currentRuling(uint256 _disputeID) public view override returns (uint256 ruling) {
    return disputes[_disputeID].ruling;
  }

  function appealPeriod(uint256 _disputeID) public view override returns (uint256 start, uint256 end) {
    Dispute storage dispute = disputes[_disputeID];
    return (block.timestamp, dispute.appealDeadline);
  }
}

File 3 of 7 : IArbitrable.sol
/**
 * @authors: [@ferittuncer, @hbarcelos]
 * @reviewers: [@remedcu]
 * @auditors: []
 * @bounties: []
 * @deployments: []
 * SPDX-License-Identifier: MIT
 */
pragma solidity ^0.8.0;

import "./IArbitrator.sol";

/**
 * @title IArbitrable
 * Arbitrable interface.
 * When developing arbitrable contracts, we need to:
 * - Define the action taken when a ruling is received by the contract.
 * - Allow dispute creation. For this a function must call arbitrator.createDispute{value: _fee}(_choices,_extraData);
 */
interface IArbitrable {
    /**
     * @dev To be raised when a ruling is given.
     * @param _arbitrator The arbitrator giving the ruling.
     * @param _disputeID ID of the dispute in the Arbitrator contract.
     * @param _ruling The ruling which was given.
     */
    event Ruling(IArbitrator indexed _arbitrator, uint256 indexed _disputeID, uint256 _ruling);

    /**
     * @dev Give a ruling for a dispute. Must be called by the arbitrator.
     * The purpose of this function is to ensure that the address calling it has the right to rule on the contract.
     * @param _disputeID ID of the dispute in the Arbitrator contract.
     * @param _ruling Ruling given by the arbitrator. Note that 0 is reserved for "Not able/wanting to make a decision".
     */
    function rule(uint256 _disputeID, uint256 _ruling) external;
}

File 4 of 7 : IArbitrator.sol
/**
 * @authors: [@ferittuncer, @hbarcelos]
 * @reviewers: [@remedcu]
 * @auditors: []
 * @bounties: []
 * @deployments: []
 * SPDX-License-Identifier: MIT
 */

pragma solidity ^0.8.0;

import "./IArbitrable.sol";

/**
 * @title Arbitrator
 * Arbitrator abstract contract.
 * When developing arbitrator contracts we need to:
 * - Define the functions for dispute creation (createDispute) and appeal (appeal). Don't forget to store the arbitrated contract and the disputeID (which should be unique, may nbDisputes).
 * - Define the functions for cost display (arbitrationCost and appealCost).
 * - Allow giving rulings. For this a function must call arbitrable.rule(disputeID, ruling).
 */
interface IArbitrator {
    enum DisputeStatus {
        Waiting,
        Appealable,
        Solved
    }

    /**
     * @dev To be emitted when a dispute is created.
     * @param _disputeID ID of the dispute.
     * @param _arbitrable The contract which created the dispute.
     */
    event DisputeCreation(uint256 indexed _disputeID, IArbitrable indexed _arbitrable);

    /**
     * @dev To be emitted when a dispute can be appealed.
     * @param _disputeID ID of the dispute.
     * @param _arbitrable The contract which created the dispute.
     */
    event AppealPossible(uint256 indexed _disputeID, IArbitrable indexed _arbitrable);

    /**
     * @dev To be emitted when the current ruling is appealed.
     * @param _disputeID ID of the dispute.
     * @param _arbitrable The contract which created the dispute.
     */
    event AppealDecision(uint256 indexed _disputeID, IArbitrable indexed _arbitrable);

    /**
     * @dev Create a dispute. Must be called by the arbitrable contract.
     * Must be paid at least arbitrationCost(_extraData).
     * @param _choices Amount of choices the arbitrator can make in this dispute.
     * @param _extraData Can be used to give additional info on the dispute to be created.
     * @return disputeID ID of the dispute created.
     */
    function createDispute(uint256 _choices, bytes calldata _extraData) external payable returns (uint256 disputeID);

    /**
     * @dev Compute the cost of arbitration. It is recommended not to increase it often, as it can be highly time and gas consuming for the arbitrated contracts to cope with fee augmentation.
     * @param _extraData Can be used to give additional info on the dispute to be created.
     * @return cost Amount to be paid.
     */
    function arbitrationCost(bytes calldata _extraData) external view returns (uint256 cost);

    /**
     * @dev Appeal a ruling. Note that it has to be called before the arbitrator contract calls rule.
     * @param _disputeID ID of the dispute to be appealed.
     * @param _extraData Can be used to give extra info on the appeal.
     */
    function appeal(uint256 _disputeID, bytes calldata _extraData) external payable;

    /**
     * @dev Compute the cost of appeal. It is recommended not to increase it often, as it can be higly time and gas consuming for the arbitrated contracts to cope with fee augmentation.
     * @param _disputeID ID of the dispute to be appealed.
     * @param _extraData Can be used to give additional info on the dispute to be created.
     * @return cost Amount to be paid.
     */
    function appealCost(uint256 _disputeID, bytes calldata _extraData) external view returns (uint256 cost);

    /**
     * @dev Compute the start and end of the dispute's current or next appeal period, if possible. If not known or appeal is impossible: should return (0, 0).
     * @param _disputeID ID of the dispute.
     * @return start The start of the period.
     * @return end The end of the period.
     */
    function appealPeriod(uint256 _disputeID) external view returns (uint256 start, uint256 end);

    /**
     * @dev Return the status of a dispute.
     * @param _disputeID ID of the dispute to rule.
     * @return status The status of the dispute.
     */
    function disputeStatus(uint256 _disputeID) external view returns (DisputeStatus status);

    /**
     * @dev Return the current ruling of a dispute. This is useful for parties to know if they should appeal.
     * @param _disputeID ID of the dispute.
     * @return ruling The ruling which has been given or the one which will be given if there is no appeal.
     */
    function currentRuling(uint256 _disputeID) external view returns (uint256 ruling);
}

File 5 of 7 : IEvidence.sol
/**
 * @authors: [@ferittuncer, @hbarcelos]
 * @reviewers: []
 * @auditors: []
 * @bounties: []
 * @deployments: []
 * SPDX-License-Identifier: MIT
 */
pragma solidity ^0.8.0;

import "../IArbitrator.sol";

/** @title IEvidence
 *  ERC-1497: Evidence Standard
 */
interface IEvidence {
    /**
     * @dev To be emitted when meta-evidence is submitted.
     * @param _metaEvidenceID Unique identifier of meta-evidence.
     * @param _evidence IPFS path to metaevidence, example: '/ipfs/Qmarwkf7C9RuzDEJNnarT3WZ7kem5bk8DZAzx78acJjMFH/metaevidence.json'
     */
    event MetaEvidence(uint256 indexed _metaEvidenceID, string _evidence);

    /**
     * @dev To be raised when evidence is submitted. Should point to the resource (evidences are not to be stored on chain due to gas considerations).
     * @param _arbitrator The arbitrator of the contract.
     * @param _evidenceGroupID Unique identifier of the evidence group the evidence belongs to.
     * @param _party The address of the party submiting the evidence. Note that 0x0 refers to evidence not submitted by any party.
     * @param _evidence IPFS path to evidence, example: '/ipfs/Qmarwkf7C9RuzDEJNnarT3WZ7kem5bk8DZAzx78acJjMFH/evidence.json'
     */
    event Evidence(
        IArbitrator indexed _arbitrator,
        uint256 indexed _evidenceGroupID,
        address indexed _party,
        string _evidence
    );

    /**
     * @dev To be emitted when a dispute is created to link the correct meta-evidence to the disputeID.
     * @param _arbitrator The arbitrator of the contract.
     * @param _disputeID ID of the dispute in the Arbitrator contract.
     * @param _metaEvidenceID Unique identifier of meta-evidence.
     * @param _evidenceGroupID Unique identifier of the evidence group that is linked to this dispute.
     */
    event Dispute(
        IArbitrator indexed _arbitrator,
        uint256 indexed _disputeID,
        uint256 _metaEvidenceID,
        uint256 _evidenceGroupID
    );
}

File 6 of 7 : IDisputeResolver.sol
// SPDX-License-Identifier: MIT

/**
 *  @authors: [@ferittuncer]
 *  @reviewers: [@mtsalenc*, @hbarcelos*, @unknownunknown1, @MerlinEgalite, @fnanni-0*, @shalzz]
 *  @auditors: []
 *  @bounties: []
 *  @deployments: []
 */

pragma solidity ^0.8.0;

import "@kleros/erc-792/contracts/IArbitrable.sol";
import "@kleros/erc-792/contracts/erc-1497/IEvidence.sol";
import "@kleros/erc-792/contracts/IArbitrator.sol";

/**
 *  @title This serves as a standard interface for crowdfunded appeals and evidence submission, which aren't a part of the arbitration (erc-792 and erc-1497) standard yet.
    This interface is used in Dispute Resolver (resolve.kleros.io).
 */
abstract contract IDisputeResolver is IArbitrable, IEvidence {
    string public constant VERSION = "2.0.0"; // Can be used to distinguish between multiple deployed versions, if necessary.

    /** @dev Raised when a contribution is made, inside fundAppeal function.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _round The round number the contribution was made to.
     *  @param ruling Indicates the ruling option which got the contribution.
     *  @param _contributor Caller of fundAppeal function.
     *  @param _amount Contribution amount.
     */
    event Contribution(uint256 indexed _localDisputeID, uint256 indexed _round, uint256 ruling, address indexed _contributor, uint256 _amount);

    /** @dev Raised when a contributor withdraws non-zero value.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _round The round number the withdrawal was made from.
     *  @param _ruling Indicates the ruling option which contributor gets rewards from.
     *  @param _contributor The beneficiary of withdrawal.
     *  @param _reward Total amount of withdrawal, consists of reimbursed deposits plus rewards.
     */
    event Withdrawal(uint256 indexed _localDisputeID, uint256 indexed _round, uint256 _ruling, address indexed _contributor, uint256 _reward);

    /** @dev To be raised when a ruling option is fully funded for appeal.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _round Number of the round this ruling option was fully funded in.
     *  @param _ruling The ruling option which just got fully funded.
     */
    event RulingFunded(uint256 indexed _localDisputeID, uint256 indexed _round, uint256 indexed _ruling);

    /** @dev Maps external (arbitrator side) dispute id to local (arbitrable) dispute id.
     *  @param _externalDisputeID Dispute id as in arbitrator contract.
     *  @return localDisputeID Dispute id as in arbitrable contract.
     */
    function externalIDtoLocalID(uint256 _externalDisputeID) external virtual returns (uint256 localDisputeID);

    /** @dev Returns number of possible ruling options. Valid rulings are [0, return value].
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @return count The number of ruling options.
     */
    function numberOfRulingOptions(uint256 _localDisputeID) external view virtual returns (uint256 count);

    /** @dev Allows to submit evidence for a given dispute.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _evidenceURI IPFS path to evidence, example: '/ipfs/Qmarwkf7C9RuzDEJNnarT3WZ7kem5bk8DZAzx78acJjMFH/evidence.json'
     */
    function submitEvidence(uint256 _localDisputeID, string calldata _evidenceURI) external virtual;

    /** @dev Manages contributions and calls appeal function of the specified arbitrator to appeal a dispute. This function lets appeals be crowdfunded.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _ruling The ruling option to which the caller wants to contribute.
     *  @return fullyFunded True if the ruling option got fully funded as a result of this contribution.
     */
    function fundAppeal(uint256 _localDisputeID, uint256 _ruling) external payable virtual returns (bool fullyFunded);

    /** @dev Returns appeal multipliers.
     *  @return winnerStakeMultiplier Winners stake multiplier.
     *  @return loserStakeMultiplier Losers stake multiplier.
     *  @return loserAppealPeriodMultiplier Losers appeal period multiplier. The loser is given less time to fund its appeal to defend against last minute appeal funding attacks.
     *  @return denominator Multiplier denominator in basis points.
     */
    function getMultipliers()
        external
        view
        virtual
        returns (
            uint256 winnerStakeMultiplier,
            uint256 loserStakeMultiplier,
            uint256 loserAppealPeriodMultiplier,
            uint256 denominator
        );

    /** @dev Allows to withdraw any reimbursable fees or rewards after the dispute gets resolved.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _contributor Beneficiary of withdraw operation.
     *  @param _round Number of the round that caller wants to execute withdraw on.
     *  @param _ruling A ruling option that caller wants to execute withdraw on.
     *  @return sum The amount that is going to be transferred to contributor as a result of this function call.
     */
    function withdrawFeesAndRewards(
        uint256 _localDisputeID,
        address payable _contributor,
        uint256 _round,
        uint256 _ruling
    ) external virtual returns (uint256 sum);

    /** @dev Allows to withdraw any rewards or reimbursable fees after the dispute gets resolved for all rounds at once.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _contributor Beneficiary of withdraw operation.
     *  @param _ruling Ruling option that caller wants to execute withdraw on.
     */
    function withdrawFeesAndRewardsForAllRounds(
        uint256 _localDisputeID,
        address payable _contributor,
        uint256 _ruling
    ) external virtual;

    /** @dev Returns the sum of withdrawable amount.
     *  @param _localDisputeID Identifier of a dispute in scope of arbitrable contract. Arbitrator ids can be translated to local ids via externalIDtoLocalID.
     *  @param _contributor Beneficiary of withdraw operation.
     *  @param _ruling Ruling option that caller wants to get withdrawable amount from.
     *  @return sum The total amount available to withdraw.
     */
    function getTotalWithdrawableAmount(
        uint256 _localDisputeID,
        address payable _contributor,
        uint256 _ruling
    ) external view virtual returns (uint256 sum);
}

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

pragma solidity ^0.8.10;

/// @title  The Truth Post: Accurate and Relevant News
/// @author https://github.com/proveuswrong<0xferit, gratestas>
/// @dev    This contract serves as a standard interface among multiple deployments of the Truth Post contracts.
///         You should target this interface contract for interactions, not the concrete contract; otherwise you risk incompatibility across versions.
/// @custom:approvals 0xferit, gratestas
abstract contract ITruthPost {
    string public constant VERSION = "1.2.0";

    enum RulingOptions {
        Tied,
        ChallengeFailed,
        Debunked
    }

    bool isPublishingEnabled = true;
    address payable public TREASURY;
    uint256 public treasuryBalance;
    uint256 public constant NUMBER_OF_RULING_OPTIONS = 2;
    uint256 public constant MULTIPLIER_DENOMINATOR = 1024; // Denominator for multipliers.
    uint256 public LOSER_APPEAL_PERIOD_MULTIPLIER = 512; // Multiplier of the appeal period for losers (any other ruling options) in basis points. The loser is given less time to fund its appeal to defend against last minute appeal funding attacks.
    uint256 public ARTICLE_WITHDRAWAL_TIMELOCK; // To prevent authors to act fast and escape punishment.
    uint256 public WINNER_STAKE_MULTIPLIER; // Multiplier of the arbitration cost that the winner has to pay as fee stake for a round in basis points.
    uint256 public LOSER_STAKE_MULTIPLIER; // Multiplier of the arbitration cost that the loser has to pay as fee stake for a round in basis points.
    uint256 public challengeTaxRate = 16;

    constructor(
        uint256 _articleWithdrawalTimelock,
        uint256 _winnerStakeMultiplier,
        uint256 _loserStakeMultiplier,
        address payable _treasury
    ) {
        ARTICLE_WITHDRAWAL_TIMELOCK = _articleWithdrawalTimelock;
        WINNER_STAKE_MULTIPLIER = _winnerStakeMultiplier;
        LOSER_STAKE_MULTIPLIER = _loserStakeMultiplier;
        TREASURY = _treasury;
    }

    event NewArticle(string articleID, uint8 category, uint256 articleAddress);
    event Debunked(uint256 articleAddress);
    event ArticleWithdrawn(uint256 articleAddress);
    event BalanceUpdate(uint256 articleAddress, uint256 newTotal);
    event TimelockStarted(uint256 articleAddress);
    event Challenge(uint256 indexed articleAddress, address challanger, uint256 disputeID);
    event Contribution(
        uint256 indexed disputeId,
        uint256 indexed round,
        RulingOptions ruling,
        address indexed contributor,
        uint256 amount
    );
    event Withdrawal(
        uint256 indexed disputeId,
        uint256 indexed round,
        RulingOptions ruling,
        address indexed contributor,
        uint256 reward
    );
    event RulingFunded(uint256 indexed disputeId, uint256 indexed round, RulingOptions indexed ruling);
    event OwnershipTransfer(address indexed _newOwner);
    event AdminUpdate(address indexed _newAdmin);
    event WinnerStakeMultiplierUpdate(uint256 indexed _newWinnerStakeMultiplier);
    event LoserStakeMultiplierUpdate(uint256 indexed _newLoserStakeMultiplier);
    event LoserAppealPeriodMultiplierUpdate(uint256 indexed _newLoserAppealPeriodMultiplier);
    event ArticleWithdrawalTimelockUpdate(uint256 indexed _newWithdrawalTimelock);
    event ChallengeTaxRateUpdate(uint256 indexed _newTaxRate);
    event TreasuryUpdate(address indexed _newTreasury);
    event TreasuryBalanceUpdate(uint256 indexed _byAmount);


    /// @notice Submit an evidence.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _evidenceURI IPFS path to evidence, example: '/ipfs/Qmarwkf7C9RuzDEJNnarT3WZ7kem5bk8DZAzx78acJjMFH/evidence.json'
    function submitEvidence(uint256 _disputeID, string calldata _evidenceURI) external virtual;

    /// @notice Fund a crowdfunding appeal.
    /// @dev Lets user to contribute funding of an appeal round. Emits Contribution. If fully funded, emits RulingFunded.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _ruling The ruling option to which the caller wants to contribute.
    /// @return fullyFunded True if the ruling option got fully funded as a result of this contribution.
    function fundAppeal(uint256 _disputeID, RulingOptions _ruling) external payable virtual returns (bool fullyFunded);

    /// @notice Publish an article.
    /// @dev    Do not confuse articleID with articleAddress. Emits NewArticle.
    /// @param _articleID Unique identifier of an article in IPFS content identifier format.
    /// @param _category The category code of this new article.
    /// @param _searchPointer Starting point of the search. Find a vacant storage slot before calling this function to minimize gas cost.
    function initializeArticle(
        string calldata _articleID,
        uint8 _category,
        uint80 _searchPointer
    ) external payable virtual;

    /// @notice Increase bounty.
    /// @dev Lets author to increase a bounty of a live article. Emits BalanceUpdate.
    /// @param _articleStorageAddress The address of the article in the storage.
    function increaseBounty(uint80 _articleStorageAddress) external payable virtual;

    /// @notice Initiate unpublishing process.
    /// @dev Lets an author to start unpublishing process. Emits TimelockStarted.
    /// @param _articleStorageAddress The address of the article in the storage.
    function initiateWithdrawal(uint80 _articleStorageAddress) external virtual;

    /// @notice Execute unpublishing.
    /// @dev Executes unpublishing of an article. Emits Withdrew.
    /// @param _articleStorageAddress The address of the article in the storage.
    function withdraw(uint80 _articleStorageAddress) external virtual;

    /// @notice Challenge article.
    /// @dev Challenges the article at the given storage address. Emits Challenge.
    /// @param _articleStorageAddress The address of the article in the storage.
    function challenge(uint80 _articleStorageAddress) external payable virtual;

    /// @notice Transfer ownership of an article.
    /// @dev Lets you to transfer ownership of an article. 
    ///      This is useful when you want to change owner account without withdrawing and resubmitting. 
    ///      Emits OwnershipTransfer.
    /// @param _articleStorageAddress The address of article in the storage.
    /// @param _newOwner The new owner of the article which resides in the storage address, provided by the previous parameter.
    function transferOwnership(uint80 _articleStorageAddress, address payable _newOwner) external virtual;

    /// @notice Update the arbitration cost for the winner.
    /// @dev Sets the multiplier of the arbitration cost that the winner has to pay as fee stake to a new value. 
    ///      Emits WinnerStakeMultiplierUpdate.
    /// @param _newWinnerStakeMultiplier The new value of WINNER_STAKE_MULTIPLIER.
    function changeWinnerStakeMultiplier(uint256 _newWinnerStakeMultiplier) external virtual;

    /// @notice Update the arbitration cost for the loser.
    /// @dev Sets the multiplier of the arbitration cost that the loser has to pay as fee stake to a new value. 
    ///      Emits LoserStakeMultiplierUpdate.
    /// @param _newLoserStakeMultiplier The new value of LOSER_STAKE_MULTIPLIER.
    
    function changeLoserStakeMultiplier(uint256 _newLoserStakeMultiplier) external virtual;

    /// @notice Update the appeal window for the loser.
    /// @dev Sets the multiplier of the appeal window for the loser to a new value. Emits LoserAppealPeriodMultiplierUpdate.
    /// @param _newLoserAppealPeriodMultiplier The new value of LOSER_APPEAL_PERIOD_MULTIPLIER.
    function changeLoserAppealPeriodMultiplier(uint256 _newLoserAppealPeriodMultiplier) external virtual;

    /// @notice Update the timelock for the article withdtrawal.
    /// @dev Sets the timelock before an author can initiate the withdrawal of an article to a new value. 
    ///      Emits ArticleWithdrawalTimelockUpdate.
    /// @param _newArticleWithdrawalTimelock The new value of ARTICLE_WITHDRAWAL_TIMELOCK.
    function changeArticleWithdrawalTimelock(uint256 _newArticleWithdrawalTimelock) external virtual;

    /// @notice Find a vacant storage slot for an article.
    /// @dev Helper function to find a vacant slot for article. Use this function before calling initialize to minimize your gas cost.
    /// @param _searchPointer Starting point of the search. If you do not have a guess, just pass 0.
    function findVacantStorageSlot(uint80 _searchPointer) external view virtual returns (uint256 vacantSlotIndex);

    /// @notice Get required challenge fee.
    /// @dev Returns the total amount needs to be paid to challenge an article, including taxes if any.
    /// @param _articleStorageAddress The address of article in the storage.
    function challengeFee(uint80 _articleStorageAddress) public view virtual returns (uint256 challengeFee);

    /// @notice Get required appeal fee and deposit.
    /// @dev Returns the total amount needs to be paid to appeal a dispute, including fees and stake deposit.
    /// @param _disputeID ID of the dispute as in arbitrator.
    function appealFee(uint256 _disputeID) external view virtual returns (uint256 arbitrationFee);

    /// @notice Withdraw appeal crowdfunding balance.
    /// @dev Allows to withdraw any reimbursable fees or rewards after the dispute gets resolved.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _contributor Beneficiary of withdraw operation.
    /// @param _round Number of the round that caller wants to execute withdraw on.
    /// @param _ruling A ruling option that caller wants to execute withdraw on.
    /// @return sum The amount that is going to be transferred to contributor as a result of this function call.
    function withdrawFeesAndRewards(
        uint256 _disputeID,
        address payable _contributor,
        uint256 _round,
        RulingOptions _ruling
    ) external virtual returns (uint256 sum);

    /// @notice Withdraw appeal crowdfunding balance for given ruling option for all rounds.
    /// @dev Allows to withdraw any rewards or reimbursable fees after the dispute gets resolved for all rounds at once.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _contributor Beneficiary of withdraw operation.
    /// @param _ruling Ruling option that caller wants to execute withdraw on.
    function withdrawFeesAndRewardsForAllRounds(
        uint256 _disputeID,
        address payable _contributor,
        RulingOptions _ruling
    ) external virtual;

    /// @notice Withdraw appeal crowdfunding balance for given ruling option and for given rounds.
    /// @dev Allows to withdraw any rewards or reimbursable fees after the dispute gets resolved for given positions at once.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _contributor Beneficiary of withdraw operation.
    /// @param positions [rounds][rulings].
    function withdrawFeesAndRewardsForGivenPositions(
        uint256 _disputeID,
        address payable _contributor,
        uint256[][] calldata positions
    ) external virtual;

    /// @notice Withdraw appeal crowdfunding balance for all ruling options and all rounds.
    /// @dev Allows to withdraw any rewards or reimbursable fees after the dispute gets resolved for all rounds and all rulings at once.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _contributor Beneficiary of withdraw operation.
    function withdrawFeesAndRewardsForAllRoundsAndAllRulings(uint256 _disputeID, address payable _contributor)
        external
        virtual;

    /// @notice Learn the total amount of appeal crowdfunding balance available.
    /// @dev Returns the sum of withdrawable amount and 2D array of positions[round][ruling].
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _contributor Beneficiary of withdraw operation.
    /// @return sum The total amount available to withdraw.
    function getTotalWithdrawableAmount(uint256 _disputeID, address payable _contributor)
        external
        view
        virtual
        returns (uint256 sum, uint256[][] memory positions);

    /// @notice Learn about given dispute round.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _round Round ID.
    /// @return hasPaid Whether given ruling option was fully funded.
    /// @return totalPerRuling The total raised per ruling option.
    /// @return totalClaimableAfterExpenses Total amount will be distributed back to winners, after deducting expenses.
    function getRoundInfo(uint256 _disputeID, uint256 _round)
        external
        view
        virtual
        returns (
            bool[NUMBER_OF_RULING_OPTIONS + 1] memory hasPaid,
            uint256[NUMBER_OF_RULING_OPTIONS + 1] memory totalPerRuling,
            uint256 totalClaimableAfterExpenses
        );

    /// @notice Learn about how much more needs to be raised for given ruling option.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _ruling The ruling option to query.
    /// @return Amount needs to be raised
    function getAmountRemainsToBeRaised(uint256 _disputeID, RulingOptions _ruling)
        external
        view
        virtual
        returns (uint256);

    /// @notice Get return of investment ratio.
    /// @dev Purely depends on whether given ruling option is winner and stake multipliers.
    /// @param _ruling The ruling option to query.
    /// @param _lastRoundWinner Winner of the last round.
    /// @return Return of investment ratio, denominated by MULTIPLIER_DENOMINATOR.
    function getReturnOfInvestmentRatio(RulingOptions _ruling, RulingOptions _lastRoundWinner)
        external
        view
        virtual
        returns (uint256);

    /// @notice Get appeal time window.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @param _ruling The ruling option to query.
    /// @return Start
    /// @return End
    function getAppealPeriod(uint256 _disputeID, RulingOptions _ruling)
        external
        view
        virtual
        returns (uint256, uint256);

    /// @notice Get last round's winner.
    /// @param _disputeID The dispute ID as in arbitrator.
    /// @return Winning ruling option.
    function getLastRoundWinner(uint256 _disputeID) public view virtual returns (uint256);

    /// @notice Switches publishing lock.
    /// @dev    Useful when it's no longer safe or secure to use this contract.
    ///         Prevents new articles to be published. Only intended for privileges users.
    function switchPublishingLock() public virtual;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IArbitrator","name":"_arbitrator","type":"address"},{"internalType":"bytes","name":"_arbitratorExtraData","type":"bytes"},{"internalType":"string","name":"_metaevidenceIpfsUri","type":"string"},{"internalType":"uint256","name":"_articleWithdrawalTimelock","type":"uint256"},{"internalType":"uint256","name":"_winnerStakeMultiplier","type":"uint256"},{"internalType":"uint256","name":"_loserStakeMultiplier","type":"uint256"},{"internalType":"address payable","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_newAdmin","type":"address"}],"name":"AdminUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_newWithdrawalTimelock","type":"uint256"}],"name":"ArticleWithdrawalTimelockUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"articleAddress","type":"uint256"}],"name":"ArticleWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"articleAddress","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotal","type":"uint256"}],"name":"BalanceUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"articleAddress","type":"uint256"},{"indexed":false,"internalType":"address","name":"challanger","type":"address"},{"indexed":false,"internalType":"uint256","name":"disputeID","type":"uint256"}],"name":"Challenge","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_newTaxRate","type":"uint256"}],"name":"ChallengeTaxRateUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"disputeId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"enum ITruthPost.RulingOptions","name":"ruling","type":"uint8"},{"indexed":true,"internalType":"address","name":"contributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Contribution","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"articleAddress","type":"uint256"}],"name":"Debunked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IArbitrator","name":"_arbitrator","type":"address"},{"indexed":true,"internalType":"uint256","name":"_disputeID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_metaEvidenceID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_evidenceGroupID","type":"uint256"}],"name":"Dispute","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IArbitrator","name":"_arbitrator","type":"address"},{"indexed":true,"internalType":"uint256","name":"_evidenceGroupID","type":"uint256"},{"indexed":true,"internalType":"address","name":"_party","type":"address"},{"indexed":false,"internalType":"string","name":"_evidence","type":"string"}],"name":"Evidence","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_newLoserAppealPeriodMultiplier","type":"uint256"}],"name":"LoserAppealPeriodMultiplierUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_newLoserStakeMultiplier","type":"uint256"}],"name":"LoserStakeMultiplierUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_metaEvidenceID","type":"uint256"},{"indexed":false,"internalType":"string","name":"_evidence","type":"string"}],"name":"MetaEvidence","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"articleID","type":"string"},{"indexed":false,"internalType":"uint8","name":"category","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"articleAddress","type":"uint256"}],"name":"NewArticle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_newOwner","type":"address"}],"name":"OwnershipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IArbitrator","name":"_arbitrator","type":"address"},{"indexed":true,"internalType":"uint256","name":"_disputeID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_ruling","type":"uint256"}],"name":"Ruling","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"disputeId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":true,"internalType":"enum ITruthPost.RulingOptions","name":"ruling","type":"uint8"}],"name":"RulingFunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"articleAddress","type":"uint256"}],"name":"TimelockStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_byAmount","type":"uint256"}],"name":"TreasuryBalanceUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_newTreasury","type":"address"}],"name":"TreasuryUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_newWinnerStakeMultiplier","type":"uint256"}],"name":"WinnerStakeMultiplierUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"disputeId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"round","type":"uint256"},{"indexed":false,"internalType":"enum ITruthPost.RulingOptions","name":"ruling","type":"uint8"},{"indexed":true,"internalType":"address","name":"contributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"ARBITRATOR","outputs":[{"internalType":"contract IArbitrator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ARTICLE_WITHDRAWAL_TIMELOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOSER_APPEAL_PERIOD_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOSER_STAKE_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPLIER_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMBER_OF_LEAST_SIGNIFICANT_BITS_TO_IGNORE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUMBER_OF_RULING_OPTIONS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WINNER_STAKE_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"}],"name":"appealFee","outputs":[{"internalType":"uint256","name":"arbitrationFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"","type":"uint80"}],"name":"articleStorage","outputs":[{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"uint32","name":"withdrawalPermittedAt","type":"uint32"},{"internalType":"uint56","name":"bountyAmount","type":"uint56"},{"internalType":"uint8","name":"category","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"categoryCounter","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"categoryToArbitratorExtraData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_articleStorageAddress","type":"uint80"}],"name":"challenge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint80","name":"_articleStorageAddress","type":"uint80"}],"name":"challengeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"challengeTaxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newArticleWithdrawalTimelock","type":"uint256"}],"name":"changeArticleWithdrawalTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLoserAppealPeriodMultiplier","type":"uint256"}],"name":"changeLoserAppealPeriodMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLoserStakeMultiplier","type":"uint256"}],"name":"changeLoserStakeMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newTreasury","type":"address"}],"name":"changeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newWinnerStakeMultiplier","type":"uint256"}],"name":"changeWinnerStakeMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"disputes","outputs":[{"internalType":"address payable","name":"challenger","type":"address"},{"internalType":"enum ITruthPost.RulingOptions","name":"outcome","type":"uint8"},{"internalType":"uint8","name":"articleCategory","type":"uint8"},{"internalType":"bool","name":"resolved","type":"bool"},{"internalType":"uint80","name":"articleStorageAddress","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_searchPointer","type":"uint80"}],"name":"findVacantStorageSlot","outputs":[{"internalType":"uint256","name":"vacantSlotIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"enum ITruthPost.RulingOptions","name":"_supportedRuling","type":"uint8"}],"name":"fundAppeal","outputs":[{"internalType":"bool","name":"fullyFunded","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"enum ITruthPost.RulingOptions","name":"_ruling","type":"uint8"}],"name":"getAmountRemainsToBeRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"enum ITruthPost.RulingOptions","name":"_ruling","type":"uint8"}],"name":"getAppealPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"}],"name":"getLastRoundWinner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum ITruthPost.RulingOptions","name":"_ruling","type":"uint8"},{"internalType":"enum ITruthPost.RulingOptions","name":"_lastRoundWinner","type":"uint8"}],"name":"getReturnOfInvestmentRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"uint256","name":"_round","type":"uint256"}],"name":"getRoundInfo","outputs":[{"internalType":"bool[3]","name":"hasPaid","type":"bool[3]"},{"internalType":"uint256[3]","name":"totalPerRuling","type":"uint256[3]"},{"internalType":"uint256","name":"totalClaimableAfterExpenses","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"address payable","name":"_contributor","type":"address"}],"name":"getTotalWithdrawableAmount","outputs":[{"internalType":"uint256","name":"sum","type":"uint256"},{"internalType":"uint256[][]","name":"amounts","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_articleStorageAddress","type":"uint80"}],"name":"increaseBounty","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_articleID","type":"string"},{"internalType":"uint8","name":"_category","type":"uint8"},{"internalType":"uint80","name":"_searchPointer","type":"uint80"}],"name":"initializeArticle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint80","name":"_articleStorageAddress","type":"uint80"}],"name":"initiateWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metaevidenceIpfsUri","type":"string"},{"internalType":"bytes","name":"_arbitratorExtraData","type":"bytes"}],"name":"newCategory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"uint256","name":"_ruling","type":"uint256"}],"name":"rule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"string","name":"_evidenceURI","type":"string"}],"name":"submitEvidence","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchPublishingLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferBalanceToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint80","name":"_articleStorageAddress","type":"uint80"},{"internalType":"address payable","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newChallengeTaxRate","type":"uint256"}],"name":"updateChallengeTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint80","name":"_articleStorageAddress","type":"uint80"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"address payable","name":"_contributor","type":"address"},{"internalType":"uint256","name":"_roundNumber","type":"uint256"},{"internalType":"enum ITruthPost.RulingOptions","name":"_ruling","type":"uint8"}],"name":"withdrawFeesAndRewards","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"address payable","name":"_contributor","type":"address"},{"internalType":"enum ITruthPost.RulingOptions","name":"_ruling","type":"uint8"}],"name":"withdrawFeesAndRewardsForAllRounds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"address payable","name":"_contributor","type":"address"}],"name":"withdrawFeesAndRewardsForAllRoundsAndAllRulings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_disputeID","type":"uint256"},{"internalType":"address payable","name":"_contributor","type":"address"},{"internalType":"uint256[][]","name":"positions","type":"uint256[][]"}],"name":"withdrawFeesAndRewardsForGivenPositions","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526000805460ff1916600117905561020060025560106006556007805433610100026001600160a81b03199091161790553480156200004157600080fd5b50604051620044f9380380620044f9833981016040819052620000649162000389565b600384905560048390556005829055600080546001600160a01b0380841661010002610100600160a81b0319909216919091179091558716608052620000ab8587620000b8565b5050505050505062000539565b600754620000cb9060ff16600162000466565b60ff166200011f5760405162461bcd60e51b815260206004820181905260248201527f4e6f207370616365206c65667420666f722061206e65772063617465676f7279604482015260640160405180910390fd5b60075460405160ff909116907f61606860eb6c87306811e2695215385101daab53bd6ab4e9f9049aead9363c7d906200015a9085906200048e565b60405180910390a2600754819060089060ff1660408110620001805762000180620004c3565b01908051906020019062000196929190620001c9565b506007805460ff16906000620001ac83620004d9565b91906101000a81548160ff021916908360ff160217905550505050565b828054620001d790620004fc565b90600052602060002090601f016020900481019282620001fb576000855562000246565b82601f106200021657805160ff191683800117855562000246565b8280016001018555821562000246579182015b828111156200024657825182559160200191906001019062000229565b506200025492915062000258565b5090565b5b8082111562000254576000815560010162000259565b6001600160a01b03811681146200028557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620002bb578181015183820152602001620002a1565b83811115620002cb576000848401525b50505050565b60006001600160401b0380841115620002ee57620002ee62000288565b604051601f8501601f19908116603f0116810190828211818310171562000319576200031962000288565b816040528093508581528686860111156200033357600080fd5b620003438660208301876200029e565b5050509392505050565b600082601f8301126200035f57600080fd5b6200037083835160208501620002d1565b9392505050565b805162000384816200026f565b919050565b600080600080600080600060e0888a031215620003a557600080fd5b8751620003b2816200026f565b60208901519097506001600160401b0380821115620003d057600080fd5b818a0191508a601f830112620003e557600080fd5b620003f68b835160208501620002d1565b975060408a01519150808211156200040d57600080fd5b506200041c8a828b016200034d565b955050606088015193506080880151925060a088015191506200044260c0890162000377565b905092959891949750929550565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168060ff0382111562000486576200048662000450565b019392505050565b6020815260008251806020840152620004af8160408501602087016200029e565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff811415620004f357620004f362000450565b60010192915050565b600181811c908216806200051157607f821691505b602082108114156200053357634e487b7160e01b600052602260045260246000fd5b50919050565b608051613f49620005b0600039600081816105fb01528181610b5f01528181610bed01528181610dd301528181611210015281816113ae0152818161178801528181611bb601528181611cfc015281816120af01528181612245015281816122f4015281816127b801526128b20152613f496000f3fe60806040526004361061031e5760003560e01c806392239dff116101a5578063ba0ec60b116100ec578063d970d18c11610095578063f851a4401161006f578063f851a440146109ad578063fc0ac672146109d2578063fe6ca782146109e8578063ffa1ad74146109fe57600080fd5b8063d970d18c14610962578063dc227fc214610977578063e349ad301461099757600080fd5b8063c9330c0f116100c6578063c9330c0f1461090c578063c94828f01461092c578063d3b476b11461094c57600080fd5b8063ba0ec60b146108ce578063bc0936fd146108e3578063be467604146108f657600080fd5b8063adc7faba1161014e578063b34bfaa811610128578063b34bfaa814610883578063b4c7058114610899578063b7bddc72146108b957600080fd5b8063adc7faba14610815578063af4a914414610835578063b14f2a391461086357600080fd5b8063a509efeb1161017f578063a509efeb146107b5578063a6a7f0eb146107d5578063ab9cd37e146107f557600080fd5b806392239dff1461075557806392e2592514610775578063956dcbd21461079557600080fd5b8063564a565d11610269578063736ed418116102125780637f67bd6c116101ec5780637f67bd6c146106e65780638a9bb02a146107065780638f2839701461073557600080fd5b8063736ed4181461061d5780637597b3cb1461063057806378431ce91461064557600080fd5b806367284f211161024357806367284f21146105a95780636760aeb0146105c957806368871c9c146105e957600080fd5b8063564a565d146104da578063638af3da1461055457806364ff9dfa1461058957600080fd5b806329238089116102cb578063313dab20116102a5578063313dab20146104775780634c55c0001461048d5780634de12db0146104ad57600080fd5b806329238089146104075780632d2c55651461041a578063311a6c561461045757600080fd5b806315f36ebe116102fc57806315f36ebe146103995780631e26de34146103c757806326804bef146103e757600080fd5b806303624fc01461032357806306bcbd731461035457806312b3a2c014610376575b600080fd5b34801561032f57600080fd5b5060075461033d9060ff1681565b60405160ff90911681526020015b60405180910390f35b34801561036057600080fd5b5061037461036f366004613578565b610a47565b005b6103896103843660046135ba565b610b39565b604051901515815260200161034b565b3480156103a557600080fd5b506103b96103b43660046135dd565b611335565b60405190815260200161034b565b3480156103d357600080fd5b506103b96103e23660046135f8565b611399565b3480156103f357600080fd5b506103746104023660046135f8565b611462565b610374610415366004613653565b611529565b34801561042657600080fd5b5060005461043f9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161034b565b34801561046357600080fd5b506103746104723660046136bf565b61177d565b34801561048357600080fd5b506103b960015481565b34801561049957600080fd5b506103746104a836600461376d565b611a0d565b3480156104b957600080fd5b506104cd6104c83660046135f8565b611b0e565b60405161034b9190613849565b3480156104e657600080fd5b506105436104f53660046135f8565b604960205260009081526040902080546001909101546001600160a01b0382169160ff600160a01b8204811692600160a81b8304821692600160b01b9004909116906001600160501b031685565b60405161034b959493929190613894565b34801561056057600080fd5b5061057461056f3660046135ba565b611bae565b6040805192835260208301919091520161034b565b34801561059557600080fd5b506103b96105a43660046135dd565b611cdb565b3480156105b557600080fd5b506103746105c43660046138d9565b611df4565b3480156105d557600080fd5b506103746105e4366004613963565b611eb8565b3480156105f557600080fd5b5061043f7f000000000000000000000000000000000000000000000000000000000000000081565b61037461062b3660046135dd565b611efd565b34801561063c57600080fd5b506103b9600281565b34801561065157600080fd5b506106a66106603660046135dd565b6048602052600090815260409020546001600160a01b03811690600160a01b810463ffffffff1690600160c01b810466ffffffffffffff1690600160f81b900460ff1684565b604080516001600160a01b03909516855263ffffffff909316602085015266ffffffffffffff9091169183019190915260ff16606082015260800161034b565b3480156106f257600080fd5b506103b96107013660046135f8565b6122db565b34801561071257600080fd5b506107266107213660046136bf565b61236d565b60405161034b9392919061399f565b34801561074157600080fd5b50610374610750366004613a04565b61245d565b34801561076157600080fd5b506103746107703660046135f8565b6124d8565b34801561078157600080fd5b506103746107903660046135f8565b612527565b3480156107a157600080fd5b506103746107b03660046135dd565b612576565b3480156107c157600080fd5b506103b96107d03660046135ba565b6126e3565b3480156107e157600080fd5b506103746107f0366004613a1f565b6128a5565b34801561080157600080fd5b506103746108103660046135dd565b612918565b34801561082157600080fd5b506103746108303660046135f8565b612b4a565b34801561084157600080fd5b50610855610850366004613a6b565b612b99565b60405161034b929190613a8e565b34801561086f57600080fd5b5061037461087e366004613a04565b612d83565b34801561088f57600080fd5b506103b960055481565b3480156108a557600080fd5b506103b96108b4366004613b20565b612dfc565b3480156108c557600080fd5b50610374612e86565b3480156108da57600080fd5b50610374612eeb565b6103746108f13660046135dd565b612f1b565b34801561090257600080fd5b506103b960025481565b34801561091857600080fd5b50610374610927366004613a6b565b613055565b34801561093857600080fd5b506103746109473660046135f8565b6130bc565b34801561095857600080fd5b506103b960035481565b34801561096e57600080fd5b506103b9602081565b34801561098357600080fd5b506103b9610992366004613b4a565b61310b565b3480156109a357600080fd5b506103b960045481565b3480156109b957600080fd5b5060075461043f9061010090046001600160a01b031681565b3480156109de57600080fd5b506103b960065481565b3480156109f457600080fd5b506103b961040081565b348015610a0a57600080fd5b506104cd6040518060400160405280600581526020017f312e322e3000000000000000000000000000000000000000000000000000000081525081565b6001600160501b038216600090815260486020526040902080546001600160a01b03163314610ae35760405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920617574686f722063616e207472616e73666572206f776e6572736860448201527f69702e000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811782556040517fdfc39691aec87dc6aa51ff70c0e592f260c54d2ed6c64e8c4c2306da0eec872b90600090a2505050565b6000828152604960205260408082209051631c3db16d60e01b81526004810185905282907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631c3db16d90602401602060405180830381865afa158015610bae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd29190613b85565b6002811115610be357610be361385c565b90506000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663afe15cfb8a6040518263ffffffff1660e01b8152600401610c3991815260200190565b6040805180830381865afa158015610c55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c799190613b9e565b915091506000856002811115610c9157610c9161385c565b896002811115610ca357610ca361385c565b1415610d2757814210610d1e5760405162461bcd60e51b815260206004820152602e60248201527f46756e64696e67206d757374206265206d6164652077697468696e207468652060448201527f61707065616c20706572696f642e0000000000000000000000000000000000006064820152608401610ada565b50600454610dcf565b60025461040090610d388585613bd8565b610d429190613bef565b610d4c9190613c0e565b610d569084613c30565b4210610dca5760405162461bcd60e51b815260206004820152603960248201527f46756e64696e67206d757374206265206d6164652077697468696e207468652060448201527f66697273742068616c662061707065616c20706572696f642e000000000000006064820152608401610ada565b506005545b86547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f23f16e6908c90600890600160a81b900460ff1660408110610e2157610e21613c48565b016040518363ffffffff1660e01b8152600401610e3f929190613d39565b602060405180830381865afa158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e809190613b85565b9450610400610e8f8287613bef565b610e999190613c0e565b610ea39086613c30565b600288015490945089935060009250610ebf9150600190613bd8565b90506000866002018281548110610ed857610ed8613c48565b9060005260206000209060060201905080600101836002811115610efe57610efe61385c565b60038110610f0e57610f0e613c48565b602081049091015460ff601f9092166101000a90041615610f975760405162461bcd60e51b815260206004820152602160248201527f41707065616c206665652068617320616c7265616479206265656e207061696460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610ada565b60008082600201856002811115610fb057610fb061385c565b60038110610fc057610fc0613c48565b01549050858110610fd45760009150610ff8565b34610fdf8288613bd8565b11610ff357610fee8187613bd8565b610ff5565b345b91505b50336001600160a01b0316838c7f2b4ef80a862edc5616a4e61c11f4a368f33323faca91fa7635d48b85c183e66a8d85604051611036929190613d5a565b60405180910390a433600090815260208390526040902081908560028111156110615761106161385c565b6003811061107157611071613c48565b0160008282546110819190613c30565b92505081905550808260020185600281111561109f5761109f61385c565b600381106110af576110af613c48565b0160008282546110bf9190613c30565b9250508190555084826002018560028111156110dd576110dd61385c565b600381106110ed576110ed613c48565b0154106111bb578160020184600281111561110a5761110a61385c565b6003811061111a5761111a613c48565b015482600501600082825461112f9190613c30565b909155506001905082810185600281111561114c5761114c61385c565b6003811061115c5761115c613c48565b602091828204019190066101000a81548160ff02191690831515021790555089600281111561118d5761118d61385c565b60405184908d907fb5681f036910f38d8c2fa06f2cbedc227ecf03d7c4a358ee9096197b15ff8fd090600090a45b6001820154610100900460ff1680156111de5750600182015462010000900460ff165b156112b15760028801805460010181556000908152600583018054889290611207908490613bd8565b909155505087547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906349912f889088908e90600890600160a81b900460ff166040811061126057611260613c48565b016040518463ffffffff1660e01b815260040161127e929190613d39565b6000604051808303818588803b15801561129757600080fd5b505af11580156112ab573d6000803e3d6000fd5b50505050505b60006112bd8234613bd8565b11156112e957336108fc6112d18334613bd8565b6040518115909202916000818181858888f150505050505b816001018460028111156112ff576112ff61385c565b6003811061130f5761130f613c48565b602081049091015460ff601f9092166101000a9004169850505050505050505092915050565b6000805b604860008461134781613d75565b6001600160501b03919091168252602082019290925260400160002080549194509150600160c01b900466ffffffffffffff1661133957611389600184613d9c565b6001600160501b03169392505050565b600081815260496020526040808220805490917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169163f23f16e6918691600891600160a81b90910460ff169081106113fc576113fc613c48565b016040518363ffffffff1660e01b815260040161141a929190613d39565b602060405180830381865afa158015611437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145b9190613b85565b9392505050565b60075461010090046001600160a01b0316331461147e57600080fd5b6101008111156114f65760405162461bcd60e51b815260206004820152603660248201527f5468652074617820726174652063616e206f6e6c7920626520696e637265617360448201527f65642062792061206d6178696d756d206f6620323525000000000000000000006064820152608401610ada565b600681905560405181907f5100ab374784a62034356f9af3b71ea723c1e89beb5627c6c1dacea1117250b890600090a250565b60075460ff908116908316106115815760405162461bcd60e51b815260206004820152601c60248201527f546869732063617465676f727920646f6573206e6f74206578697374000000006044820152606401610ada565b60005b604860008361159281613d75565b6001600160501b03919091168252602082019290925260400160002080549193509150600160c01b900466ffffffffffffff166115845780547fff00000000000000ffffffff000000000000000000000000000000000000000016337fff00000000000000ffffffffffffffffffffffffffffffffffffffffffffffff1617600160c01b3460201c66ffffffffffffff9081168202929092177effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160f81b60ff8716021780845504166116ce5760405162461bcd60e51b815260206004820152603960248201527f596f752063616e277420696e697469616c697a6520616e2061727469636c652060448201527f776974686f75742070757474696e67206120626f756e74792e000000000000006064820152608401610ada565b60006116db600184613d9c565b6001600160501b031690507f4f9a2b734331c583faf3f19d1feb5f08b742e016a56fb61379950beaf3e223418686868460405161171b9493929190613ded565b60405180910390a1815460408051838152600160c01b909204602090811b6affffffffffffff0000000016908301527fdf5fc410d3381cc7f0a7fe3af72f4e3cf53ef5787f20554af69035a950e1b2e3910160405180910390a1505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146117b257600080fd5b60008281526049602052604081206002810180549192916117d590600190613bd8565b815481106117e5576117e5613c48565b60009182526020822060016006929092020190810154909250610100900460ff161561181357506001611829565b6001820154610100900460ff1615611829575060025b60008082600281111561183e5761183e61385c565b141561185b578460028111156118565761185661385c565b61185d565b815b8454909150819085907fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b83600281111561189f5761189f61385c565b021790555060018401546001600160501b0316600081815260486020526040902060028360028111156118d4576118d461385c565b141561198b5780547fff00000000000000ffffffffffffffffffffffffffffffffffffffffffffffff811682556040516001600160501b0384168152600160c01b909104602090811b6affffffffffffff0000000016917f8271992f9b3a3f30dc2a464982dc4a136e7357403462443a171a0fb0c6ccc265910160405180910390a16000898152604960205260408082205490516001600160a01b039091169183156108fc02918491818181858888f15050505050505b805463ffffffff60a01b1916815585547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff16600160b01b178655604051889033907f394027a5fa6e098a1191094d1719d6929b9abc535fcc0c8f448d6a4e75622276906119fb908b815260200190565b60405180910390a35050505050505050565b600754611a1e9060ff166001613e17565b60ff16611a6d5760405162461bcd60e51b815260206004820181905260248201527f4e6f207370616365206c65667420666f722061206e65772063617465676f72796044820152606401610ada565b60075460405160ff909116907f61606860eb6c87306811e2695215385101daab53bd6ab4e9f9049aead9363c7d90611aa6908590613849565b60405180910390a2600754819060089060ff1660408110611ac957611ac9613c48565b019080519060200190611add92919061348e565b506007805460ff16906000611af183613e3c565b91906101000a81548160ff021916908360ff160217905550505050565b60088160408110611b1e57600080fd5b018054909150611b2d90613c5e565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5990613c5e565b8015611ba65780601f10611b7b57610100808354040283529160200191611ba6565b820191906000526020600020905b815481529060010190602001808311611b8957829003601f168201915b505050505081565b6000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663afe15cfb876040518263ffffffff1660e01b8152600401611c0291815260200190565b6040805180830381865afa158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c429190613b9e565b9150915060006104006002548484611c5a9190613bd8565b611c649190613bef565b611c6e9190613c0e565b611c789084613c30565b90506000866002811115611c8e57611c8e61385c565b611c97896122db565b6002811115611ca857611ca861385c565b6002811115611cb957611cb961385c565b14905080611cc8578382611ccb565b83835b95509550505050505b9250929050565b6001600160501b0381166000908152604860205260408082208054909183917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169163f7434ea991600891600160f81b90910460ff16908110611d4857611d48613c48565b016040518263ffffffff1660e01b8152600401611d659190613e5c565b602060405180830381865afa158015611d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da69190613b85565b600654835491925060009161040091611dd591600160c01b900460201b6affffffffffffff0000000016613bef565b611ddf9190613c0e565b9050611deb8183613c30565b95945050505050565b60005b81811015611eb15760005b838383818110611e1457611e14613c48565b9050602002810190611e269190613e6f565b9050811015611e9e576000848484818110611e4357611e43613c48565b9050602002810190611e559190613e6f565b83818110611e6557611e65613c48565b905060200201351115611e8c57611e8a8686848460028111156109925761099261385c565b505b80611e9681613eb9565b915050611e02565b5080611ea981613eb9565b915050611df7565b5050505050565b6000838152604960205260408120600281015490915b81811015611ef557611ee28686838761310b565b5080611eed81613eb9565b915050611ece565b505050505050565b6001600160501b03811660009081526048602052604090208054600160c01b900466ffffffffffffff16611f735760405162461bcd60e51b815260206004820152601560248201527f4e6f7468696e6720746f206368616c6c656e67652e00000000000000000000006044820152606401610ada565b8054600160a01b900463ffffffff9081161415611fd25760405162461bcd60e51b815260206004820152601e60248201527f546865726520697320616e206f6e676f696e67206368616c6c656e67652e00006044820152606401610ada565b805463ffffffff60a01b191677ffffffff000000000000000000000000000000000000000017815561200382611cdb565b3410156120525760405162461bcd60e51b815260206004820181905260248201527f496e73756666696369656e742066756e647320746f206368616c6c656e67652e6044820152606401610ada565b60065481546000916104009161207f9190600160c01b900460201b6affffffffffffff0000000016613bef565b6120899190613c0e565b9050806001600082825461209d9190613c30565b90915550600090506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663c13517e16120de8434613bd8565b8554600290600890600160f81b900460ff166040811061210057612100613c48565b016040518463ffffffff1660e01b815260040161211e929190613d39565b60206040518083038185885af115801561213c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906121619190613b85565b60008181526049602090815260409182902080543373ffffffffffffffffffffffffffffffffffffffff1982168117835560028301805460019081019091558301805469ffffffffffffffffffff19166001600160501b038c1617905588547fffffffffffffffffffff00ff00000000000000000000000000000000000000009092167fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff90911617600160f81b9182900460ff908116600160a81b029190911790925587548451919004909116815290810183905291925082916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016917f74baab670a4015ab2f1b467c5252a96141a2573f2908e58a92081e80d3cfde3d910160405180910390a360408051338152602081018390526001600160501b038616917f1e5338a1fb672aa84963dc9f9e4afd009b4ed726debb09224bf4d02a6c68b4e4910160405180910390a250505050565b604051631c3db16d60e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631c3db16d90602401602060405180830381865afa158015612343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123679190613b85565b92915050565b612375613512565b61237d613512565b60008481526049602052604081206002018054829190869081106123a3576123a3613c48565b906000526020600020906006020190508060010181600201826005015482600380602002604051908101604052809291908260038015612418576020028201916000905b825461010083900a900460ff1615158152602060019283018181049485019490930390920291018084116123e75790505b505060408051606081019182905294975086935060039250905082845b8154815260200190600101908083116124355750505050509150935093509350509250925092565b60075461010090046001600160a01b0316331461247957600080fd5b6007805474ffffffffffffffffffffffffffffffffffffffff0019166101006001600160a01b038416908102919091179091556040517f0c2515f25186df02132ad46f01e062c3b8982c8de57fa2b1b0a280d8e810f39b90600090a250565b60075461010090046001600160a01b031633146124f457600080fd5b600581905560405181907f505f3bf1e426c82f14f7c9cfb2d31ef5b7bb76428e16bd90dabec113e3d4a2bc90600090a250565b60075461010090046001600160a01b0316331461254357600080fd5b600381905560405181907f207e19e347becb468ef02d25790188e4d5da0fe37176d3bbb7940168ec5d613690600090a250565b6001600160501b038116600090815260486020526040902080546001600160a01b031633146125f35760405162461bcd60e51b8152602060048201526024808201527f4f6e6c7920617574686f722063616e20776974686472617720616e206172746960448201526331b6329760e11b6064820152608401610ada565b8054600160a01b900463ffffffff16156126755760405162461bcd60e51b815260206004820152603560248201527f5769746864726177616c20616c726561647920696e69746961746564206f722060448201527f74686572652069732061206368616c6c656e67652e00000000000000000000006064820152608401610ada565b6003546126829042613c30565b815463ffffffff91909116600160a01b0263ffffffff60a01b199091161781556040516001600160501b03831681527f416c1ad2b96c356f3bbd35431f86cce449ddbb4f8c3755ea9d2776b04c2e9c8f906020015b60405180910390a15050565b60008281526049602052604081206002810154829061270490600190613bd8565b9050600082600201828154811061271d5761271d613c48565b9060005260206000209060060201905060008560028111156127415761274161385c565b61274a886122db565b600281111561275b5761275b61385c565b600281111561276c5761276c61385c565b14905060008161277e57600554612782565b6004545b905060008360020188600281111561279c5761279c61385c565b600381106127ac576127ac613c48565b015486549091506000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f23f16e6908c90600890600160a81b900460ff166040811061280657612806613c48565b016040518363ffffffff1660e01b8152600401612824929190613d39565b602060405180830381865afa158015612841573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128659190613b85565b905060006104006128768584613bef565b6128809190613c0e565b61288a9083613c30565b90506128968382613bd8565b9b9a5050505050505050505050565b336001600160a01b0316837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167fdccf2f8b2cc26eafcd61905cba744cff4b81d14740725f6376390dc6298a6a3c858560405161290b929190613ed4565b60405180910390a4505050565b6001600160501b038116600090815260486020526040902080546001600160a01b031633146129955760405162461bcd60e51b8152602060048201526024808201527f4f6e6c7920617574686f722063616e20776974686472617720616e206172746960448201526331b6329760e11b6064820152608401610ada565b8054600160a01b900463ffffffff16612a165760405162461bcd60e51b815260206004820152602660248201527f596f75206e65656420746f20696e697469617465207769746864726177616c2060448201527f66697273742e00000000000000000000000000000000000000000000000000006064820152608401610ada565b805442600160a01b90910463ffffffff161115612a9b5760405162461bcd60e51b815260206004820152603f60248201527f596f75206e65656420746f207761697420666f722074696d656c6f636b206f7260448201527f207761697420756e74696c20746865206368616c6c656e676520656e64732e006064820152608401610ada565b80547fff0000000000000000000000ffffffffffffffffffffffffffffffffffffffff81168255604051600160c01b90910460201b6affffffffffffff00000000169033906108fc8315029083906000818181858888f19350505050158015612b08573d6000803e3d6000fd5b506040516001600160501b03841681527f70b41d8cca762ceec66d93f536dbb31f5cabbf1901f862508b9438de54fce4eb9060200160405180910390a1505050565b60075461010090046001600160a01b03163314612b6657600080fd5b600481905560405181907f8df75282265171690a1298cf028f5e3c7d8d42313394a4f25d4aeea6c1ea62cf90600090a250565b6000828152604960205260408120805460609190600160b01b900460ff16612bc5576000925050611cd4565b60028101548154600160a01b900460ff168167ffffffffffffffff811115612bef57612bef6136e1565b604051908082528060200260200182016040528015612c2257816020015b6060815260200190600190039081612c0d5790505b50935060005b82811015612d7857612c3c60026001613c30565b67ffffffffffffffff811115612c5457612c546136e1565b604051908082528060200260200182016040528015612c7d578160200160208202803683370190505b50858281518110612c9057612c90613c48565b60200260200101819052506000846002018281548110612cb257612cb2613c48565b9060005260206000209060060201905060005b60028111612d63576000612cec838b846002811115612ce657612ce661385c565b8861326f565b90508015612d5057612d0b838b846002811115612ce657612ce661385c565b612d15908a613c30565b985080888581518110612d2a57612d2a613c48565b60200260200101518381518110612d4357612d43613c48565b6020026020010181815250505b5080612d5b81613eb9565b915050612cc5565b50508080612d7090613eb9565b915050612c28565b505050509250929050565b60075461010090046001600160a01b03163314612d9f57600080fd5b6000805474ffffffffffffffffffffffffffffffffffffffff0019166101006001600160a01b03841690810291909117825560405190917f8a3509a4057c89a5993a4a3140c2ebf7e829d325d8998eaa6c48adcff98b2cef91a250565b600080836002811115612e1157612e1161385c565b836002811115612e2357612e2361385c565b1490506103e8600082612e3857600554612e3c565b6004545b9050612e4a61040082613c30565b82610400600554600454612e5e9190613c30565b612e689190613c30565b612e729190613bef565b612e7c9190613c0e565b9695505050505050565b60018054600091829055815460405191926101009091046001600160a01b0316916108fc84150291849190818181858888f150506040518493507fb315332b30dc40d1e51def214ce42d93a73bd0c17b08db04b34f10736bb2f06f925060009150a250565b60075461010090046001600160a01b03163314612f0757600080fd5b6000805460ff19811660ff90911615179055565b6001600160501b038116600090815260486020526040902080546001600160a01b03163314612fb25760405162461bcd60e51b815260206004820152602e60248201527f4f6e6c7920617574686f722063616e20696e63726561736520626f756e74792060448201527f6f6620616e2061727469636c652e0000000000000000000000000000000000006064820152608401610ada565b80543460201c908290601890612fd9908490600160c01b900466ffffffffffffff16613ee8565b82546101009290920a66ffffffffffffff818102199093169190921691909102179055508054604080516001600160501b0385168152600160c01b909204602090811b6affffffffffffff0000000016908301527fdf5fc410d3381cc7f0a7fe3af72f4e3cf53ef5787f20554af69035a950e1b2e391016126d7565b6000828152604960205260408120600281015490915b81811015611eb15760005b600281116130a9576130968686848460028111156109925761099261385c565b50806130a181613eb9565b915050613076565b50806130b481613eb9565b91505061306b565b60075461010090046001600160a01b031633146130d857600080fd5b600281905560405181907fbf39faa024d2f97599a0095e84098ee2171b6681738416c0030f442ba956d52b90600090a250565b60008481526049602052604081208054600160b01b900460ff166131715760405162461bcd60e51b815260206004820152601760248201527f5468657265206973206e6f2072756c696e67207965742e0000000000000000006044820152606401610ada565b600081600201858154811061318857613188613c48565b906000526020600020906006020190506131b58187868560000160149054906101000a900460ff1661326f565b92508215613265576001600160a01b03861660009081526020829052604081208560028111156131e7576131e761385c565b600381106131f7576131f7613c48565b01556040516001600160a01b0387169084156108fc029085906000818181858888f1935050505050856001600160a01b031685887fff2b7c936d6023fea901b3455cefc23b124c1ca5997dc5b48c461fd20984289d878760405161325c929190613d5a565b60405180910390a45b5050949350505050565b600082600186018160028111156132885761328861385c565b6003811061329857613298613c48565b602081049091015460ff601f9092166101000a9004166132f5576001600160a01b03851660009081526020879052604090208160028111156132dc576132dc61385c565b600381106132ec576132ec613c48565b01549150613485565b8260028111156133075761330761385c565b8460028111156133195761331961385c565b14156133d9576000866002018260028111156133375761333761385c565b6003811061334757613347613c48565b0154116133555760006133d2565b8560020181600281111561336b5761336b61385c565b6003811061337b5761337b613c48565b015460058701546001600160a01b03871660009081526020899052604090208360028111156133ac576133ac61385c565b600381106133bc576133bc613c48565b01546133c89190613bef565b6133d29190613c0e565b9150613485565b856001018360028111156133ef576133ef61385c565b600381106133ff576133ff613c48565b602081049091015460ff601f9092166101000a900416613485576004860154600387015461342d9190613c30565b60058701546001600160a01b038716600090815260208990526040902083600281111561345c5761345c61385c565b6003811061346c5761346c613c48565b01546134789190613bef565b6134829190613c0e565b91505b50949350505050565b82805461349a90613c5e565b90600052602060002090601f0160209004810192826134bc5760008555613502565b82601f106134d557805160ff1916838001178555613502565b82800160010185558215613502579182015b828111156135025782518255916020019190600101906134e7565b5061350e929150613530565b5090565b60405180606001604052806003906020820280368337509192915050565b5b8082111561350e5760008155600101613531565b80356001600160501b038116811461355c57600080fd5b919050565b80356001600160a01b038116811461355c57600080fd5b6000806040838503121561358b57600080fd5b61359483613545565b91506135a260208401613561565b90509250929050565b80356003811061355c57600080fd5b600080604083850312156135cd57600080fd5b823591506135a2602084016135ab565b6000602082840312156135ef57600080fd5b61145b82613545565b60006020828403121561360a57600080fd5b5035919050565b60008083601f84011261362357600080fd5b50813567ffffffffffffffff81111561363b57600080fd5b602083019150836020828501011115611cd457600080fd5b6000806000806060858703121561366957600080fd5b843567ffffffffffffffff81111561368057600080fd5b61368c87828801613611565b909550935050602085013560ff811681146136a657600080fd5b91506136b460408601613545565b905092959194509250565b600080604083850312156136d257600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613712576137126136e1565b604051601f8501601f19908116603f0116810190828211818310171561373a5761373a6136e1565b8160405280935085815286868601111561375357600080fd5b858560208301376000602087830101525050509392505050565b6000806040838503121561378057600080fd5b823567ffffffffffffffff8082111561379857600080fd5b818501915085601f8301126137ac57600080fd5b6137bb868335602085016136f7565b935060208501359150808211156137d157600080fd5b508301601f810185136137e357600080fd5b6137f2858235602084016136f7565b9150509250929050565b6000815180845260005b8181101561382257602081850181015186830182015201613806565b81811115613834576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061145b60208301846137fc565b634e487b7160e01b600052602160045260246000fd5b6003811061389057634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038616815260a081016138b16020830187613872565b60ff94909416604082015291151560608301526001600160501b031660809091015292915050565b600080600080606085870312156138ef57600080fd5b843593506138ff60208601613561565b9250604085013567ffffffffffffffff8082111561391c57600080fd5b818701915087601f83011261393057600080fd5b81358181111561393f57600080fd5b8860208260051b850101111561395457600080fd5b95989497505060200194505050565b60008060006060848603121561397857600080fd5b8335925061398860208501613561565b9150613996604085016135ab565b90509250925092565b60e08101818560005b60038110156139c957815115158352602092830192909101906001016139a8565b505050606082018460005b60038110156139f35781518352602092830192909101906001016139d4565b5050508260c0830152949350505050565b600060208284031215613a1657600080fd5b61145b82613561565b600080600060408486031215613a3457600080fd5b83359250602084013567ffffffffffffffff811115613a5257600080fd5b613a5e86828701613611565b9497909650939450505050565b60008060408385031215613a7e57600080fd5b823591506135a260208401613561565b600060408201848352602060408185015281855180845260608601915060608160051b87010193508287016000805b83811015613b1157888703605f19018552825180518089529087019087890190845b81811015613afb57835183529289019291890191600101613adf565b5090985050509385019391850191600101613abd565b50949998505050505050505050565b60008060408385031215613b3357600080fd5b613b3c836135ab565b91506135a2602084016135ab565b60008060008060808587031215613b6057600080fd5b84359350613b7060208601613561565b9250604085013591506136b4606086016135ab565b600060208284031215613b9757600080fd5b5051919050565b60008060408385031215613bb157600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b600082821015613bea57613bea613bc2565b500390565b6000816000190483118215151615613c0957613c09613bc2565b500290565b600082613c2b57634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115613c4357613c43613bc2565b500190565b634e487b7160e01b600052603260045260246000fd5b600181811c90821680613c7257607f821691505b60208210811415613c9357634e487b7160e01b600052602260045260246000fd5b50919050565b8054600090600181811c9080831680613cb357607f831692505b6020808410821415613cd557634e487b7160e01b600052602260045260246000fd5b83885260208801828015613cf05760018114613d0157613d2c565b60ff19871682528282019750613d2c565b60008981526020902060005b87811015613d2657815484820152908601908401613d0d565b83019850505b5050505050505092915050565b828152604060208201526000613d526040830184613c99565b949350505050565b60408101613d688285613872565b8260208301529392505050565b60006001600160501b0380831681811415613d9257613d92613bc2565b6001019392505050565b60006001600160501b0383811690831681811015613dbc57613dbc613bc2565b039392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b606081526000613e01606083018688613dc4565b60ff949094166020830152506040015292915050565b600060ff821660ff84168060ff03821115613e3457613e34613bc2565b019392505050565b600060ff821660ff811415613e5357613e53613bc2565b60010192915050565b60208152600061145b6020830184613c99565b6000808335601e19843603018112613e8657600080fd5b83018035915067ffffffffffffffff821115613ea157600080fd5b6020019150600581901b3603821315611cd457600080fd5b6000600019821415613ecd57613ecd613bc2565b5060010190565b602081526000613d52602083018486613dc4565b600066ffffffffffffff808316818516808303821115613f0a57613f0a613bc2565b0194935050505056fea2646970667358221220a906a41ab294bd1772920ea2f89288b3be011f722e02fbdcd5fd7de216c3d2f564736f6c634300080a0033000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe2806900000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000387e8b40e332831b7a8ad629966df3e9f969c6ad00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000462f697066732f516d557179704c366b4a74506d3179666d375377705974614268465a327931736b647148436675337545383333642f6d65746145766964656e63652e6a736f6e0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061031e5760003560e01c806392239dff116101a5578063ba0ec60b116100ec578063d970d18c11610095578063f851a4401161006f578063f851a440146109ad578063fc0ac672146109d2578063fe6ca782146109e8578063ffa1ad74146109fe57600080fd5b8063d970d18c14610962578063dc227fc214610977578063e349ad301461099757600080fd5b8063c9330c0f116100c6578063c9330c0f1461090c578063c94828f01461092c578063d3b476b11461094c57600080fd5b8063ba0ec60b146108ce578063bc0936fd146108e3578063be467604146108f657600080fd5b8063adc7faba1161014e578063b34bfaa811610128578063b34bfaa814610883578063b4c7058114610899578063b7bddc72146108b957600080fd5b8063adc7faba14610815578063af4a914414610835578063b14f2a391461086357600080fd5b8063a509efeb1161017f578063a509efeb146107b5578063a6a7f0eb146107d5578063ab9cd37e146107f557600080fd5b806392239dff1461075557806392e2592514610775578063956dcbd21461079557600080fd5b8063564a565d11610269578063736ed418116102125780637f67bd6c116101ec5780637f67bd6c146106e65780638a9bb02a146107065780638f2839701461073557600080fd5b8063736ed4181461061d5780637597b3cb1461063057806378431ce91461064557600080fd5b806367284f211161024357806367284f21146105a95780636760aeb0146105c957806368871c9c146105e957600080fd5b8063564a565d146104da578063638af3da1461055457806364ff9dfa1461058957600080fd5b806329238089116102cb578063313dab20116102a5578063313dab20146104775780634c55c0001461048d5780634de12db0146104ad57600080fd5b806329238089146104075780632d2c55651461041a578063311a6c561461045757600080fd5b806315f36ebe116102fc57806315f36ebe146103995780631e26de34146103c757806326804bef146103e757600080fd5b806303624fc01461032357806306bcbd731461035457806312b3a2c014610376575b600080fd5b34801561032f57600080fd5b5060075461033d9060ff1681565b60405160ff90911681526020015b60405180910390f35b34801561036057600080fd5b5061037461036f366004613578565b610a47565b005b6103896103843660046135ba565b610b39565b604051901515815260200161034b565b3480156103a557600080fd5b506103b96103b43660046135dd565b611335565b60405190815260200161034b565b3480156103d357600080fd5b506103b96103e23660046135f8565b611399565b3480156103f357600080fd5b506103746104023660046135f8565b611462565b610374610415366004613653565b611529565b34801561042657600080fd5b5060005461043f9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161034b565b34801561046357600080fd5b506103746104723660046136bf565b61177d565b34801561048357600080fd5b506103b960015481565b34801561049957600080fd5b506103746104a836600461376d565b611a0d565b3480156104b957600080fd5b506104cd6104c83660046135f8565b611b0e565b60405161034b9190613849565b3480156104e657600080fd5b506105436104f53660046135f8565b604960205260009081526040902080546001909101546001600160a01b0382169160ff600160a01b8204811692600160a81b8304821692600160b01b9004909116906001600160501b031685565b60405161034b959493929190613894565b34801561056057600080fd5b5061057461056f3660046135ba565b611bae565b6040805192835260208301919091520161034b565b34801561059557600080fd5b506103b96105a43660046135dd565b611cdb565b3480156105b557600080fd5b506103746105c43660046138d9565b611df4565b3480156105d557600080fd5b506103746105e4366004613963565b611eb8565b3480156105f557600080fd5b5061043f7f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe2806981565b61037461062b3660046135dd565b611efd565b34801561063c57600080fd5b506103b9600281565b34801561065157600080fd5b506106a66106603660046135dd565b6048602052600090815260409020546001600160a01b03811690600160a01b810463ffffffff1690600160c01b810466ffffffffffffff1690600160f81b900460ff1684565b604080516001600160a01b03909516855263ffffffff909316602085015266ffffffffffffff9091169183019190915260ff16606082015260800161034b565b3480156106f257600080fd5b506103b96107013660046135f8565b6122db565b34801561071257600080fd5b506107266107213660046136bf565b61236d565b60405161034b9392919061399f565b34801561074157600080fd5b50610374610750366004613a04565b61245d565b34801561076157600080fd5b506103746107703660046135f8565b6124d8565b34801561078157600080fd5b506103746107903660046135f8565b612527565b3480156107a157600080fd5b506103746107b03660046135dd565b612576565b3480156107c157600080fd5b506103b96107d03660046135ba565b6126e3565b3480156107e157600080fd5b506103746107f0366004613a1f565b6128a5565b34801561080157600080fd5b506103746108103660046135dd565b612918565b34801561082157600080fd5b506103746108303660046135f8565b612b4a565b34801561084157600080fd5b50610855610850366004613a6b565b612b99565b60405161034b929190613a8e565b34801561086f57600080fd5b5061037461087e366004613a04565b612d83565b34801561088f57600080fd5b506103b960055481565b3480156108a557600080fd5b506103b96108b4366004613b20565b612dfc565b3480156108c557600080fd5b50610374612e86565b3480156108da57600080fd5b50610374612eeb565b6103746108f13660046135dd565b612f1b565b34801561090257600080fd5b506103b960025481565b34801561091857600080fd5b50610374610927366004613a6b565b613055565b34801561093857600080fd5b506103746109473660046135f8565b6130bc565b34801561095857600080fd5b506103b960035481565b34801561096e57600080fd5b506103b9602081565b34801561098357600080fd5b506103b9610992366004613b4a565b61310b565b3480156109a357600080fd5b506103b960045481565b3480156109b957600080fd5b5060075461043f9061010090046001600160a01b031681565b3480156109de57600080fd5b506103b960065481565b3480156109f457600080fd5b506103b961040081565b348015610a0a57600080fd5b506104cd6040518060400160405280600581526020017f312e322e3000000000000000000000000000000000000000000000000000000081525081565b6001600160501b038216600090815260486020526040902080546001600160a01b03163314610ae35760405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920617574686f722063616e207472616e73666572206f776e6572736860448201527f69702e000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811782556040517fdfc39691aec87dc6aa51ff70c0e592f260c54d2ed6c64e8c4c2306da0eec872b90600090a2505050565b6000828152604960205260408082209051631c3db16d60e01b81526004810185905282907f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b031690631c3db16d90602401602060405180830381865afa158015610bae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd29190613b85565b6002811115610be357610be361385c565b90506000806000807f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b031663afe15cfb8a6040518263ffffffff1660e01b8152600401610c3991815260200190565b6040805180830381865afa158015610c55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c799190613b9e565b915091506000856002811115610c9157610c9161385c565b896002811115610ca357610ca361385c565b1415610d2757814210610d1e5760405162461bcd60e51b815260206004820152602e60248201527f46756e64696e67206d757374206265206d6164652077697468696e207468652060448201527f61707065616c20706572696f642e0000000000000000000000000000000000006064820152608401610ada565b50600454610dcf565b60025461040090610d388585613bd8565b610d429190613bef565b610d4c9190613c0e565b610d569084613c30565b4210610dca5760405162461bcd60e51b815260206004820152603960248201527f46756e64696e67206d757374206265206d6164652077697468696e207468652060448201527f66697273742068616c662061707065616c20706572696f642e000000000000006064820152608401610ada565b506005545b86547f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b03169063f23f16e6908c90600890600160a81b900460ff1660408110610e2157610e21613c48565b016040518363ffffffff1660e01b8152600401610e3f929190613d39565b602060405180830381865afa158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e809190613b85565b9450610400610e8f8287613bef565b610e999190613c0e565b610ea39086613c30565b600288015490945089935060009250610ebf9150600190613bd8565b90506000866002018281548110610ed857610ed8613c48565b9060005260206000209060060201905080600101836002811115610efe57610efe61385c565b60038110610f0e57610f0e613c48565b602081049091015460ff601f9092166101000a90041615610f975760405162461bcd60e51b815260206004820152602160248201527f41707065616c206665652068617320616c7265616479206265656e207061696460448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610ada565b60008082600201856002811115610fb057610fb061385c565b60038110610fc057610fc0613c48565b01549050858110610fd45760009150610ff8565b34610fdf8288613bd8565b11610ff357610fee8187613bd8565b610ff5565b345b91505b50336001600160a01b0316838c7f2b4ef80a862edc5616a4e61c11f4a368f33323faca91fa7635d48b85c183e66a8d85604051611036929190613d5a565b60405180910390a433600090815260208390526040902081908560028111156110615761106161385c565b6003811061107157611071613c48565b0160008282546110819190613c30565b92505081905550808260020185600281111561109f5761109f61385c565b600381106110af576110af613c48565b0160008282546110bf9190613c30565b9250508190555084826002018560028111156110dd576110dd61385c565b600381106110ed576110ed613c48565b0154106111bb578160020184600281111561110a5761110a61385c565b6003811061111a5761111a613c48565b015482600501600082825461112f9190613c30565b909155506001905082810185600281111561114c5761114c61385c565b6003811061115c5761115c613c48565b602091828204019190066101000a81548160ff02191690831515021790555089600281111561118d5761118d61385c565b60405184908d907fb5681f036910f38d8c2fa06f2cbedc227ecf03d7c4a358ee9096197b15ff8fd090600090a45b6001820154610100900460ff1680156111de5750600182015462010000900460ff165b156112b15760028801805460010181556000908152600583018054889290611207908490613bd8565b909155505087547f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b0316906349912f889088908e90600890600160a81b900460ff166040811061126057611260613c48565b016040518463ffffffff1660e01b815260040161127e929190613d39565b6000604051808303818588803b15801561129757600080fd5b505af11580156112ab573d6000803e3d6000fd5b50505050505b60006112bd8234613bd8565b11156112e957336108fc6112d18334613bd8565b6040518115909202916000818181858888f150505050505b816001018460028111156112ff576112ff61385c565b6003811061130f5761130f613c48565b602081049091015460ff601f9092166101000a9004169850505050505050505092915050565b6000805b604860008461134781613d75565b6001600160501b03919091168252602082019290925260400160002080549194509150600160c01b900466ffffffffffffff1661133957611389600184613d9c565b6001600160501b03169392505050565b600081815260496020526040808220805490917f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b03169163f23f16e6918691600891600160a81b90910460ff169081106113fc576113fc613c48565b016040518363ffffffff1660e01b815260040161141a929190613d39565b602060405180830381865afa158015611437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061145b9190613b85565b9392505050565b60075461010090046001600160a01b0316331461147e57600080fd5b6101008111156114f65760405162461bcd60e51b815260206004820152603660248201527f5468652074617820726174652063616e206f6e6c7920626520696e637265617360448201527f65642062792061206d6178696d756d206f6620323525000000000000000000006064820152608401610ada565b600681905560405181907f5100ab374784a62034356f9af3b71ea723c1e89beb5627c6c1dacea1117250b890600090a250565b60075460ff908116908316106115815760405162461bcd60e51b815260206004820152601c60248201527f546869732063617465676f727920646f6573206e6f74206578697374000000006044820152606401610ada565b60005b604860008361159281613d75565b6001600160501b03919091168252602082019290925260400160002080549193509150600160c01b900466ffffffffffffff166115845780547fff00000000000000ffffffff000000000000000000000000000000000000000016337fff00000000000000ffffffffffffffffffffffffffffffffffffffffffffffff1617600160c01b3460201c66ffffffffffffff9081168202929092177effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160f81b60ff8716021780845504166116ce5760405162461bcd60e51b815260206004820152603960248201527f596f752063616e277420696e697469616c697a6520616e2061727469636c652060448201527f776974686f75742070757474696e67206120626f756e74792e000000000000006064820152608401610ada565b60006116db600184613d9c565b6001600160501b031690507f4f9a2b734331c583faf3f19d1feb5f08b742e016a56fb61379950beaf3e223418686868460405161171b9493929190613ded565b60405180910390a1815460408051838152600160c01b909204602090811b6affffffffffffff0000000016908301527fdf5fc410d3381cc7f0a7fe3af72f4e3cf53ef5787f20554af69035a950e1b2e3910160405180910390a1505050505050565b336001600160a01b037f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe2806916146117b257600080fd5b60008281526049602052604081206002810180549192916117d590600190613bd8565b815481106117e5576117e5613c48565b60009182526020822060016006929092020190810154909250610100900460ff161561181357506001611829565b6001820154610100900460ff1615611829575060025b60008082600281111561183e5761183e61385c565b141561185b578460028111156118565761185661385c565b61185d565b815b8454909150819085907fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b83600281111561189f5761189f61385c565b021790555060018401546001600160501b0316600081815260486020526040902060028360028111156118d4576118d461385c565b141561198b5780547fff00000000000000ffffffffffffffffffffffffffffffffffffffffffffffff811682556040516001600160501b0384168152600160c01b909104602090811b6affffffffffffff0000000016917f8271992f9b3a3f30dc2a464982dc4a136e7357403462443a171a0fb0c6ccc265910160405180910390a16000898152604960205260408082205490516001600160a01b039091169183156108fc02918491818181858888f15050505050505b805463ffffffff60a01b1916815585547fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff16600160b01b178655604051889033907f394027a5fa6e098a1191094d1719d6929b9abc535fcc0c8f448d6a4e75622276906119fb908b815260200190565b60405180910390a35050505050505050565b600754611a1e9060ff166001613e17565b60ff16611a6d5760405162461bcd60e51b815260206004820181905260248201527f4e6f207370616365206c65667420666f722061206e65772063617465676f72796044820152606401610ada565b60075460405160ff909116907f61606860eb6c87306811e2695215385101daab53bd6ab4e9f9049aead9363c7d90611aa6908590613849565b60405180910390a2600754819060089060ff1660408110611ac957611ac9613c48565b019080519060200190611add92919061348e565b506007805460ff16906000611af183613e3c565b91906101000a81548160ff021916908360ff160217905550505050565b60088160408110611b1e57600080fd5b018054909150611b2d90613c5e565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5990613c5e565b8015611ba65780601f10611b7b57610100808354040283529160200191611ba6565b820191906000526020600020905b815481529060010190602001808311611b8957829003601f168201915b505050505081565b6000806000807f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b031663afe15cfb876040518263ffffffff1660e01b8152600401611c0291815260200190565b6040805180830381865afa158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c429190613b9e565b9150915060006104006002548484611c5a9190613bd8565b611c649190613bef565b611c6e9190613c0e565b611c789084613c30565b90506000866002811115611c8e57611c8e61385c565b611c97896122db565b6002811115611ca857611ca861385c565b6002811115611cb957611cb961385c565b14905080611cc8578382611ccb565b83835b95509550505050505b9250929050565b6001600160501b0381166000908152604860205260408082208054909183917f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b03169163f7434ea991600891600160f81b90910460ff16908110611d4857611d48613c48565b016040518263ffffffff1660e01b8152600401611d659190613e5c565b602060405180830381865afa158015611d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da69190613b85565b600654835491925060009161040091611dd591600160c01b900460201b6affffffffffffff0000000016613bef565b611ddf9190613c0e565b9050611deb8183613c30565b95945050505050565b60005b81811015611eb15760005b838383818110611e1457611e14613c48565b9050602002810190611e269190613e6f565b9050811015611e9e576000848484818110611e4357611e43613c48565b9050602002810190611e559190613e6f565b83818110611e6557611e65613c48565b905060200201351115611e8c57611e8a8686848460028111156109925761099261385c565b505b80611e9681613eb9565b915050611e02565b5080611ea981613eb9565b915050611df7565b5050505050565b6000838152604960205260408120600281015490915b81811015611ef557611ee28686838761310b565b5080611eed81613eb9565b915050611ece565b505050505050565b6001600160501b03811660009081526048602052604090208054600160c01b900466ffffffffffffff16611f735760405162461bcd60e51b815260206004820152601560248201527f4e6f7468696e6720746f206368616c6c656e67652e00000000000000000000006044820152606401610ada565b8054600160a01b900463ffffffff9081161415611fd25760405162461bcd60e51b815260206004820152601e60248201527f546865726520697320616e206f6e676f696e67206368616c6c656e67652e00006044820152606401610ada565b805463ffffffff60a01b191677ffffffff000000000000000000000000000000000000000017815561200382611cdb565b3410156120525760405162461bcd60e51b815260206004820181905260248201527f496e73756666696369656e742066756e647320746f206368616c6c656e67652e6044820152606401610ada565b60065481546000916104009161207f9190600160c01b900460201b6affffffffffffff0000000016613bef565b6120899190613c0e565b9050806001600082825461209d9190613c30565b90915550600090506001600160a01b037f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280691663c13517e16120de8434613bd8565b8554600290600890600160f81b900460ff166040811061210057612100613c48565b016040518463ffffffff1660e01b815260040161211e929190613d39565b60206040518083038185885af115801561213c573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906121619190613b85565b60008181526049602090815260409182902080543373ffffffffffffffffffffffffffffffffffffffff1982168117835560028301805460019081019091558301805469ffffffffffffffffffff19166001600160501b038c1617905588547fffffffffffffffffffff00ff00000000000000000000000000000000000000009092167fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff90911617600160f81b9182900460ff908116600160a81b029190911790925587548451919004909116815290810183905291925082916001600160a01b037f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe2806916917f74baab670a4015ab2f1b467c5252a96141a2573f2908e58a92081e80d3cfde3d910160405180910390a360408051338152602081018390526001600160501b038616917f1e5338a1fb672aa84963dc9f9e4afd009b4ed726debb09224bf4d02a6c68b4e4910160405180910390a250505050565b604051631c3db16d60e01b8152600481018290526000907f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b031690631c3db16d90602401602060405180830381865afa158015612343573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123679190613b85565b92915050565b612375613512565b61237d613512565b60008481526049602052604081206002018054829190869081106123a3576123a3613c48565b906000526020600020906006020190508060010181600201826005015482600380602002604051908101604052809291908260038015612418576020028201916000905b825461010083900a900460ff1615158152602060019283018181049485019490930390920291018084116123e75790505b505060408051606081019182905294975086935060039250905082845b8154815260200190600101908083116124355750505050509150935093509350509250925092565b60075461010090046001600160a01b0316331461247957600080fd5b6007805474ffffffffffffffffffffffffffffffffffffffff0019166101006001600160a01b038416908102919091179091556040517f0c2515f25186df02132ad46f01e062c3b8982c8de57fa2b1b0a280d8e810f39b90600090a250565b60075461010090046001600160a01b031633146124f457600080fd5b600581905560405181907f505f3bf1e426c82f14f7c9cfb2d31ef5b7bb76428e16bd90dabec113e3d4a2bc90600090a250565b60075461010090046001600160a01b0316331461254357600080fd5b600381905560405181907f207e19e347becb468ef02d25790188e4d5da0fe37176d3bbb7940168ec5d613690600090a250565b6001600160501b038116600090815260486020526040902080546001600160a01b031633146125f35760405162461bcd60e51b8152602060048201526024808201527f4f6e6c7920617574686f722063616e20776974686472617720616e206172746960448201526331b6329760e11b6064820152608401610ada565b8054600160a01b900463ffffffff16156126755760405162461bcd60e51b815260206004820152603560248201527f5769746864726177616c20616c726561647920696e69746961746564206f722060448201527f74686572652069732061206368616c6c656e67652e00000000000000000000006064820152608401610ada565b6003546126829042613c30565b815463ffffffff91909116600160a01b0263ffffffff60a01b199091161781556040516001600160501b03831681527f416c1ad2b96c356f3bbd35431f86cce449ddbb4f8c3755ea9d2776b04c2e9c8f906020015b60405180910390a15050565b60008281526049602052604081206002810154829061270490600190613bd8565b9050600082600201828154811061271d5761271d613c48565b9060005260206000209060060201905060008560028111156127415761274161385c565b61274a886122db565b600281111561275b5761275b61385c565b600281111561276c5761276c61385c565b14905060008161277e57600554612782565b6004545b905060008360020188600281111561279c5761279c61385c565b600381106127ac576127ac613c48565b015486549091506000907f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b03169063f23f16e6908c90600890600160a81b900460ff166040811061280657612806613c48565b016040518363ffffffff1660e01b8152600401612824929190613d39565b602060405180830381865afa158015612841573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128659190613b85565b905060006104006128768584613bef565b6128809190613c0e565b61288a9083613c30565b90506128968382613bd8565b9b9a5050505050505050505050565b336001600160a01b0316837f000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe280696001600160a01b03167fdccf2f8b2cc26eafcd61905cba744cff4b81d14740725f6376390dc6298a6a3c858560405161290b929190613ed4565b60405180910390a4505050565b6001600160501b038116600090815260486020526040902080546001600160a01b031633146129955760405162461bcd60e51b8152602060048201526024808201527f4f6e6c7920617574686f722063616e20776974686472617720616e206172746960448201526331b6329760e11b6064820152608401610ada565b8054600160a01b900463ffffffff16612a165760405162461bcd60e51b815260206004820152602660248201527f596f75206e65656420746f20696e697469617465207769746864726177616c2060448201527f66697273742e00000000000000000000000000000000000000000000000000006064820152608401610ada565b805442600160a01b90910463ffffffff161115612a9b5760405162461bcd60e51b815260206004820152603f60248201527f596f75206e65656420746f207761697420666f722074696d656c6f636b206f7260448201527f207761697420756e74696c20746865206368616c6c656e676520656e64732e006064820152608401610ada565b80547fff0000000000000000000000ffffffffffffffffffffffffffffffffffffffff81168255604051600160c01b90910460201b6affffffffffffff00000000169033906108fc8315029083906000818181858888f19350505050158015612b08573d6000803e3d6000fd5b506040516001600160501b03841681527f70b41d8cca762ceec66d93f536dbb31f5cabbf1901f862508b9438de54fce4eb9060200160405180910390a1505050565b60075461010090046001600160a01b03163314612b6657600080fd5b600481905560405181907f8df75282265171690a1298cf028f5e3c7d8d42313394a4f25d4aeea6c1ea62cf90600090a250565b6000828152604960205260408120805460609190600160b01b900460ff16612bc5576000925050611cd4565b60028101548154600160a01b900460ff168167ffffffffffffffff811115612bef57612bef6136e1565b604051908082528060200260200182016040528015612c2257816020015b6060815260200190600190039081612c0d5790505b50935060005b82811015612d7857612c3c60026001613c30565b67ffffffffffffffff811115612c5457612c546136e1565b604051908082528060200260200182016040528015612c7d578160200160208202803683370190505b50858281518110612c9057612c90613c48565b60200260200101819052506000846002018281548110612cb257612cb2613c48565b9060005260206000209060060201905060005b60028111612d63576000612cec838b846002811115612ce657612ce661385c565b8861326f565b90508015612d5057612d0b838b846002811115612ce657612ce661385c565b612d15908a613c30565b985080888581518110612d2a57612d2a613c48565b60200260200101518381518110612d4357612d43613c48565b6020026020010181815250505b5080612d5b81613eb9565b915050612cc5565b50508080612d7090613eb9565b915050612c28565b505050509250929050565b60075461010090046001600160a01b03163314612d9f57600080fd5b6000805474ffffffffffffffffffffffffffffffffffffffff0019166101006001600160a01b03841690810291909117825560405190917f8a3509a4057c89a5993a4a3140c2ebf7e829d325d8998eaa6c48adcff98b2cef91a250565b600080836002811115612e1157612e1161385c565b836002811115612e2357612e2361385c565b1490506103e8600082612e3857600554612e3c565b6004545b9050612e4a61040082613c30565b82610400600554600454612e5e9190613c30565b612e689190613c30565b612e729190613bef565b612e7c9190613c0e565b9695505050505050565b60018054600091829055815460405191926101009091046001600160a01b0316916108fc84150291849190818181858888f150506040518493507fb315332b30dc40d1e51def214ce42d93a73bd0c17b08db04b34f10736bb2f06f925060009150a250565b60075461010090046001600160a01b03163314612f0757600080fd5b6000805460ff19811660ff90911615179055565b6001600160501b038116600090815260486020526040902080546001600160a01b03163314612fb25760405162461bcd60e51b815260206004820152602e60248201527f4f6e6c7920617574686f722063616e20696e63726561736520626f756e74792060448201527f6f6620616e2061727469636c652e0000000000000000000000000000000000006064820152608401610ada565b80543460201c908290601890612fd9908490600160c01b900466ffffffffffffff16613ee8565b82546101009290920a66ffffffffffffff818102199093169190921691909102179055508054604080516001600160501b0385168152600160c01b909204602090811b6affffffffffffff0000000016908301527fdf5fc410d3381cc7f0a7fe3af72f4e3cf53ef5787f20554af69035a950e1b2e391016126d7565b6000828152604960205260408120600281015490915b81811015611eb15760005b600281116130a9576130968686848460028111156109925761099261385c565b50806130a181613eb9565b915050613076565b50806130b481613eb9565b91505061306b565b60075461010090046001600160a01b031633146130d857600080fd5b600281905560405181907fbf39faa024d2f97599a0095e84098ee2171b6681738416c0030f442ba956d52b90600090a250565b60008481526049602052604081208054600160b01b900460ff166131715760405162461bcd60e51b815260206004820152601760248201527f5468657265206973206e6f2072756c696e67207965742e0000000000000000006044820152606401610ada565b600081600201858154811061318857613188613c48565b906000526020600020906006020190506131b58187868560000160149054906101000a900460ff1661326f565b92508215613265576001600160a01b03861660009081526020829052604081208560028111156131e7576131e761385c565b600381106131f7576131f7613c48565b01556040516001600160a01b0387169084156108fc029085906000818181858888f1935050505050856001600160a01b031685887fff2b7c936d6023fea901b3455cefc23b124c1ca5997dc5b48c461fd20984289d878760405161325c929190613d5a565b60405180910390a45b5050949350505050565b600082600186018160028111156132885761328861385c565b6003811061329857613298613c48565b602081049091015460ff601f9092166101000a9004166132f5576001600160a01b03851660009081526020879052604090208160028111156132dc576132dc61385c565b600381106132ec576132ec613c48565b01549150613485565b8260028111156133075761330761385c565b8460028111156133195761331961385c565b14156133d9576000866002018260028111156133375761333761385c565b6003811061334757613347613c48565b0154116133555760006133d2565b8560020181600281111561336b5761336b61385c565b6003811061337b5761337b613c48565b015460058701546001600160a01b03871660009081526020899052604090208360028111156133ac576133ac61385c565b600381106133bc576133bc613c48565b01546133c89190613bef565b6133d29190613c0e565b9150613485565b856001018360028111156133ef576133ef61385c565b600381106133ff576133ff613c48565b602081049091015460ff601f9092166101000a900416613485576004860154600387015461342d9190613c30565b60058701546001600160a01b038716600090815260208990526040902083600281111561345c5761345c61385c565b6003811061346c5761346c613c48565b01546134789190613bef565b6134829190613c0e565b91505b50949350505050565b82805461349a90613c5e565b90600052602060002090601f0160209004810192826134bc5760008555613502565b82601f106134d557805160ff1916838001178555613502565b82800160010185558215613502579182015b828111156135025782518255916020019190600101906134e7565b5061350e929150613530565b5090565b60405180606001604052806003906020820280368337509192915050565b5b8082111561350e5760008155600101613531565b80356001600160501b038116811461355c57600080fd5b919050565b80356001600160a01b038116811461355c57600080fd5b6000806040838503121561358b57600080fd5b61359483613545565b91506135a260208401613561565b90509250929050565b80356003811061355c57600080fd5b600080604083850312156135cd57600080fd5b823591506135a2602084016135ab565b6000602082840312156135ef57600080fd5b61145b82613545565b60006020828403121561360a57600080fd5b5035919050565b60008083601f84011261362357600080fd5b50813567ffffffffffffffff81111561363b57600080fd5b602083019150836020828501011115611cd457600080fd5b6000806000806060858703121561366957600080fd5b843567ffffffffffffffff81111561368057600080fd5b61368c87828801613611565b909550935050602085013560ff811681146136a657600080fd5b91506136b460408601613545565b905092959194509250565b600080604083850312156136d257600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613712576137126136e1565b604051601f8501601f19908116603f0116810190828211818310171561373a5761373a6136e1565b8160405280935085815286868601111561375357600080fd5b858560208301376000602087830101525050509392505050565b6000806040838503121561378057600080fd5b823567ffffffffffffffff8082111561379857600080fd5b818501915085601f8301126137ac57600080fd5b6137bb868335602085016136f7565b935060208501359150808211156137d157600080fd5b508301601f810185136137e357600080fd5b6137f2858235602084016136f7565b9150509250929050565b6000815180845260005b8181101561382257602081850181015186830182015201613806565b81811115613834576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061145b60208301846137fc565b634e487b7160e01b600052602160045260246000fd5b6003811061389057634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038616815260a081016138b16020830187613872565b60ff94909416604082015291151560608301526001600160501b031660809091015292915050565b600080600080606085870312156138ef57600080fd5b843593506138ff60208601613561565b9250604085013567ffffffffffffffff8082111561391c57600080fd5b818701915087601f83011261393057600080fd5b81358181111561393f57600080fd5b8860208260051b850101111561395457600080fd5b95989497505060200194505050565b60008060006060848603121561397857600080fd5b8335925061398860208501613561565b9150613996604085016135ab565b90509250925092565b60e08101818560005b60038110156139c957815115158352602092830192909101906001016139a8565b505050606082018460005b60038110156139f35781518352602092830192909101906001016139d4565b5050508260c0830152949350505050565b600060208284031215613a1657600080fd5b61145b82613561565b600080600060408486031215613a3457600080fd5b83359250602084013567ffffffffffffffff811115613a5257600080fd5b613a5e86828701613611565b9497909650939450505050565b60008060408385031215613a7e57600080fd5b823591506135a260208401613561565b600060408201848352602060408185015281855180845260608601915060608160051b87010193508287016000805b83811015613b1157888703605f19018552825180518089529087019087890190845b81811015613afb57835183529289019291890191600101613adf565b5090985050509385019391850191600101613abd565b50949998505050505050505050565b60008060408385031215613b3357600080fd5b613b3c836135ab565b91506135a2602084016135ab565b60008060008060808587031215613b6057600080fd5b84359350613b7060208601613561565b9250604085013591506136b4606086016135ab565b600060208284031215613b9757600080fd5b5051919050565b60008060408385031215613bb157600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b600082821015613bea57613bea613bc2565b500390565b6000816000190483118215151615613c0957613c09613bc2565b500290565b600082613c2b57634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115613c4357613c43613bc2565b500190565b634e487b7160e01b600052603260045260246000fd5b600181811c90821680613c7257607f821691505b60208210811415613c9357634e487b7160e01b600052602260045260246000fd5b50919050565b8054600090600181811c9080831680613cb357607f831692505b6020808410821415613cd557634e487b7160e01b600052602260045260246000fd5b83885260208801828015613cf05760018114613d0157613d2c565b60ff19871682528282019750613d2c565b60008981526020902060005b87811015613d2657815484820152908601908401613d0d565b83019850505b5050505050505092915050565b828152604060208201526000613d526040830184613c99565b949350505050565b60408101613d688285613872565b8260208301529392505050565b60006001600160501b0380831681811415613d9257613d92613bc2565b6001019392505050565b60006001600160501b0383811690831681811015613dbc57613dbc613bc2565b039392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b606081526000613e01606083018688613dc4565b60ff949094166020830152506040015292915050565b600060ff821660ff84168060ff03821115613e3457613e34613bc2565b019392505050565b600060ff821660ff811415613e5357613e53613bc2565b60010192915050565b60208152600061145b6020830184613c99565b6000808335601e19843603018112613e8657600080fd5b83018035915067ffffffffffffffff821115613ea157600080fd5b6020019150600581901b3603821315611cd457600080fd5b6000600019821415613ecd57613ecd613bc2565b5060010190565b602081526000613d52602083018486613dc4565b600066ffffffffffffff808316818516808303821115613f0a57613f0a613bc2565b0194935050505056fea2646970667358221220a906a41ab294bd1772920ea2f89288b3be011f722e02fbdcd5fd7de216c3d2f564736f6c634300080a0033

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

000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe2806900000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000093a8000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000387e8b40e332831b7a8ad629966df3e9f969c6ad00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000462f697066732f516d557179704c366b4a74506d3179666d375377705974614268465a327931736b647148436675337545383333642f6d65746145766964656e63652e6a736f6e0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _arbitrator (address): 0x988b3A538b618C7A603e1c11Ab82Cd16dbE28069
Arg [1] : _arbitratorExtraData (bytes): 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
Arg [2] : _metaevidenceIpfsUri (string): /ipfs/QmUqypL6kJtPm1yfm7SwpYtaBhFZ2y1skdqHCfu3uE833d/metaEvidence.json
Arg [3] : _articleWithdrawalTimelock (uint256): 604800
Arg [4] : _winnerStakeMultiplier (uint256): 256
Arg [5] : _loserStakeMultiplier (uint256): 384
Arg [6] : _treasury (address): 0x387e8B40e332831b7a8ad629966df3E9f969C6ad

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 000000000000000000000000988b3a538b618c7a603e1c11ab82cd16dbe28069
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [6] : 000000000000000000000000387e8b40e332831b7a8ad629966df3e9f969c6ad
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [11] : 2f697066732f516d557179704c366b4a74506d3179666d375377705974614268
Arg [12] : 465a327931736b647148436675337545383333642f6d65746145766964656e63
Arg [13] : 652e6a736f6e0000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

1105:26133:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1364:32;;;;;;;;;;-1:-1:-1;1364:32:5;;;;;;;;;;;186:4:7;174:17;;;156:36;;144:2;129:18;1364:32:5;;;;;;;;19962:347;;;;;;;;;;-1:-1:-1;19962:347:5;;;;;:::i;:::-;;:::i;:::-;;8187:3417;;;;;;:::i;:::-;;:::i;:::-;;;1482:14:7;;1475:22;1457:41;;1445:2;1430:18;8187:3417:5;1317:187:7;21196:301:5;;;;;;;;;;-1:-1:-1;21196:301:5;;;;;:::i;:::-;;:::i;:::-;;;1844:25:7;;;1832:2;1817:18;21196:301:5;1698:177:7;20881:278:5;;;;;;;;;;-1:-1:-1;20881:278:5;;;;;:::i;:::-;;:::i;16347:300::-;;;;;;;;;;-1:-1:-1;16347:300:5;;;;;:::i;:::-;;:::i;3429:963::-;;;;;;:::i;:::-;;:::i;691:31:4:-;;;;;;;;;;-1:-1:-1;691:31:4;;;;;;;-1:-1:-1;;;;;691:31:4;;;;;;-1:-1:-1;;;;;3243:55:7;;;3225:74;;3213:2;3198:18;691:31:4;3063:242:7;11797:1638:5;;;;;;;;;;-1:-1:-1;11797:1638:5;;;;;:::i;:::-;;:::i;728:30:4:-;;;;;;;;;;;;;;;;19567:358:5;;;;;;;;;;-1:-1:-1;19567:358:5;;;;;:::i;:::-;;:::i;2574:46::-;;;;;;;;;;-1:-1:-1;2574:46:5;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2802:47::-;;;;;;;;;;-1:-1:-1;2802:47:5;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2802:47:5;;;;-1:-1:-1;;;2802:47:5;;;;;-1:-1:-1;;;2802:47:5;;;;;-1:-1:-1;;;2802:47:5;;;;;;-1:-1:-1;;;;;2802:47:5;;;;;;;;;;;;;;:::i;25157:624::-;;;;;;;;;;-1:-1:-1;25157:624:5;;;;;:::i;:::-;;:::i;:::-;;;;7333:25:7;;;7389:2;7374:18;;7367:34;;;;7306:18;25157:624:5;7159:248:7;20346:498:5;;;;;;;;;;-1:-1:-1;20346:498:5;;;;;:::i;:::-;;:::i;14569:598::-;;;;;;;;;;-1:-1:-1;14569:598:5;;;;;:::i;:::-;;:::i;14073:459::-;;;;;;;;;;-1:-1:-1;14073:459:5;;;;;:::i;:::-;;:::i;1168:39::-;;;;;;;;;;;;;;;6717:1433;;;;;;:::i;:::-;;:::i;764:52:4:-;;;;;;;;;;;;815:1;764:52;;2627:48:5;;;;;;;;;;-1:-1:-1;2627:48:5;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;2627:48:5;;;-1:-1:-1;;;2627:48:5;;;;;-1:-1:-1;;;2627:48:5;;;;;-1:-1:-1;;;2627:48:5;;;;;;;;;;-1:-1:-1;;;;;9101:55:7;;;9083:74;;9205:10;9193:23;;;9188:2;9173:18;;9166:51;9265:16;9253:29;;;9233:18;;;9226:57;;;;9331:4;9319:17;9314:2;9299:18;;9292:45;9070:3;9055:19;2627:48:5;8844:499:7;24973:147:5;;;;;;;;;;-1:-1:-1;24973:147:5;;;;;:::i;:::-;;:::i;24452:484::-;;;;;;;;;;-1:-1:-1;24452:484:5;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;17641:138::-;;;;;;;;;;-1:-1:-1;17641:138:5;;;;;:::i;:::-;;:::i;18486:231::-;;;;;;;;;;-1:-1:-1;18486:231:5;;;;;:::i;:::-;;:::i;19069:261::-;;;;;;;;;;-1:-1:-1;19069:261:5;;;;;:::i;:::-;;:::i;5227:504::-;;;;;;;;;;-1:-1:-1;5227:504:5;;;;;:::i;:::-;;:::i;26383:852::-;;;;;;;;;;-1:-1:-1;26383:852:5;;;;;:::i;:::-;;:::i;4429:172::-;;;;;;;;;;-1:-1:-1;4429:172:5;;;;;:::i;:::-;;:::i;5768:912::-;;;;;;;;;;-1:-1:-1;5768:912:5;;;;;:::i;:::-;;:::i;18212:237::-;;;;;;;;;;-1:-1:-1;18212:237:5;;;;;:::i;:::-;;:::i;21534:1296::-;;;;;;;;;;-1:-1:-1;21534:1296:5;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;18019:156::-;;;;;;;;;;-1:-1:-1;18019:156:5;;;;;:::i;:::-;;:::i;1418:37:4:-;;;;;;;;;;;;;;;;25818:528:5;;;;;;;;;;-1:-1:-1;25818:528:5;;;;;:::i;:::-;;:::i;17054:197::-;;;;;;;;;;;;;:::i;17288:117::-;;;;;;;;;;;;;:::i;4638:552::-;;;;;;:::i;:::-;;:::i;913:51:4:-;;;;;;;;;;;;;;;;13472:564:5;;;;;;;;;;-1:-1:-1;13472:564:5;;;;;:::i;:::-;;:::i;18754:274::-;;;;;;;;;;-1:-1:-1;18754:274:5;;;;;:::i;:::-;;:::i;1162:42:4:-;;;;;;;;;;;;;;;;1213:71:5;;;;;;;;;;;;1282:2;1213:71;;15204:787;;;;;;;;;;-1:-1:-1;15204:787:5;;;;;:::i;:::-;;:::i;1267:38:4:-;;;;;;;;;;;;;;;;1403:50:5;;;;;;;;;;-1:-1:-1;1403:50:5;;;;;;;-1:-1:-1;;;;;1403:50:5;;;1567:36:4;;;;;;;;;;;;;;;;822:53;;;;;;;;;;;;871:4;822:53;;519:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19962:347:5;-1:-1:-1;;;;;20101:38:5;;20075:23;20101:38;;;:14;:38;;;;;20171:13;;-1:-1:-1;;;;;20171:13:5;20157:10;:27;20149:75;;;;-1:-1:-1;;;20149:75:5;;13867:2:7;20149:75:5;;;13849:21:7;13906:2;13886:18;;;13879:30;13945:34;13925:18;;;13918:62;14016:5;13996:18;;;13989:33;14039:19;;20149:75:5;;;;;;;;;20234:25;;-1:-1:-1;;20234:25:5;-1:-1:-1;;;;;20234:25:5;;;;;;;20274:28;;;;-1:-1:-1;;20274:28:5;20065:244;19962:347;;:::o;8187:3417::-;8326:16;8388:20;;;:8;:20;;;;;;8463:36;;-1:-1:-1;;;8463:36:5;;;;;1844:25:7;;;8326:16:5;;8463:10;-1:-1:-1;;;;;8463:24:5;;;;1817:18:7;;8463:36:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8449:51;;;;;;;;:::i;:::-;8419:81;;8510:17;8537;8579:25;8606:23;8633:10;-1:-1:-1;;;;;8633:23:5;;8657:10;8633:35;;;;;;;;;;;;;1844:25:7;;1832:2;1817:18;;1698:177;8633:35:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8578:90;;;;8683:18;8740:13;8720:33;;;;;;;;:::i;:::-;:16;:33;;;;;;;;:::i;:::-;;8716:663;;;8799:15;8781;:33;8773:92;;;;-1:-1:-1;;;8773:92:5;;14710:2:7;8773:92:5;;;14692:21:7;14749:2;14729:18;;;14722:30;14788:34;14768:18;;;14761:62;14859:16;14839:18;;;14832:44;14893:19;;8773:92:5;14508:410:7;8773:92:5;-1:-1:-1;8897:23:5;;8716:663;;;9121:30;;871:4:4;;9082:35:5;9100:17;9082:15;:35;:::i;:::-;9081:70;;;;:::i;:::-;9080:129;;;;:::i;:::-;9031:179;;:17;:179;:::i;:::-;8988:15;:223;8959:351;;;;-1:-1:-1;;;8959:351:5;;16029:2:7;8959:351:5;;;16011:21:7;16068:2;16048:18;;;16041:30;16107:34;16087:18;;;16080:62;16178:27;16158:18;;;16151:55;16223:19;;8959:351:5;15827:421:7;8959:351:5;-1:-1:-1;9342:22:5;;8716:663;9469:23;;9405:10;-1:-1:-1;;;;;9405:21:5;;;;9427:10;;9439:29;;-1:-1:-1;;;9469:23:5;;;;9439:54;;;;;;;:::i;:::-;;9405:89;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9393:101;-1:-1:-1;871:4:4;9534:24:5;9547:10;9393:101;9534:24;:::i;:::-;9533:51;;;;:::i;:::-;9520:65;;:9;:65;:::i;:::-;9712:14;;;:21;9508:77;;-1:-1:-1;9659:16:5;;-1:-1:-1;9606:36:5;;-1:-1:-1;9712:25:5;;-1:-1:-1;9736:1:5;;9712:25;:::i;:::-;9687:50;;9747:23;9773:7;:14;;9788;9773:30;;;;;;;;:::i;:::-;;;;;;;;;;;9747:56;;9822:9;:17;;9848:22;9840:31;;;;;;;;:::i;:::-;9822:50;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;9821:51;9813:97;;;;-1:-1:-1;;;9813:97:5;;18610:2:7;9813:97:5;;;18592:21:7;18649:2;18629:18;;;18622:30;18688:34;18668:18;;;18661:62;18759:3;18739:18;;;18732:31;18780:19;;9813:97:5;18408:397:7;9813:97:5;9921:20;9965:17;9985:9;:24;;10018:22;10010:31;;;;;;;;:::i;:::-;9985:57;;;;;;;:::i;:::-;;;9965:77;;10074:9;10061;:22;10057:293;;10118:1;10103:16;;10057:293;;;10290:9;10266:21;10278:9;10266;:21;:::i;:::-;:33;:69;;10314:21;10326:9;10314;:21;:::i;:::-;10266:69;;;10302:9;10266:69;10251:84;;10057:293;9951:409;10434:10;-1:-1:-1;;;;;10375:84:5;10400:14;10388:10;10375:84;10416:16;10446:12;10375:84;;;;;;;:::i;:::-;;;;;;;;10494:10;10470:23;:35;;;;;;;;;;10542:12;;10514:22;10506:31;;;;;;;;:::i;:::-;10470:68;;;;;;;:::i;:::-;;;:84;;;;;;;:::i;:::-;;;;;;;;10625:12;10564:9;:24;;10597:22;10589:31;;;;;;;;:::i;:::-;10564:57;;;;;;;:::i;:::-;;;:73;;;;;;;:::i;:::-;;;;;;;;10713:9;10652;:24;;10685:22;10677:31;;;;;;;;:::i;:::-;10652:57;;;;;;;:::i;:::-;;;:70;10648:347;;10779:9;:24;;10812:22;10804:31;;;;;;;;:::i;:::-;10779:57;;;;;;;:::i;:::-;;;10738:9;:37;;;:98;;;;;;;:::i;:::-;;;;-1:-1:-1;10903:4:5;;-1:-1:-1;10850:17:5;;;10876:22;10868:31;;;;;;;;:::i;:::-;10850:50;;;;;;;:::i;:::-;;;;;;;;;;:57;;;;;;;;;;;;;;;;;;10967:16;10926:58;;;;;;;;:::i;:::-;;;10951:14;;10939:10;;10926:58;;;;;10648:347;11022:17;;;:57;;;;;;:123;;;;-1:-1:-1;11095:17:5;;;:50;;;;;;11022:123;11005:378;;;11170:14;;;:21;;;;;;-1:-1:-1;11170:21:5;;;11205:37;;;:50;;11246:9;;-1:-1:-1;11205:50:5;;11246:9;;11205:50;:::i;:::-;;;;-1:-1:-1;;11347:23:5;;11269:10;-1:-1:-1;;;;;11269:17:5;;;;11294:9;;11305:10;;11317:29;;-1:-1:-1;;;11347:23:5;;;;11317:54;;;;;;;:::i;:::-;;11269:103;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11005:378;11476:1;11449:24;11461:12;11449:9;:24;:::i;:::-;:28;11445:84;;;11487:10;11479:50;11504:24;11516:12;11504:9;:24;:::i;:::-;11479:50;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11445:84:5;11547:9;:17;;11573:22;11565:31;;;;;;;;:::i;:::-;11547:50;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;8187:3417:5;;;;:::o;21196:301::-;21282:23;21317;21350:105;21377:14;:32;21392:16;;;;:::i;:::-;-1:-1:-1;;;;;21377:32:5;;;;;;;;;;;;;;;-1:-1:-1;21377:32:5;21428:20;;21377:32;;-1:-1:-1;21377:32:5;-1:-1:-1;;;;21428:20:5;;;;21350:105;;21472:18;21489:1;21472:14;:18;:::i;:::-;-1:-1:-1;;;;;21465:25:5;;21196:301;-1:-1:-1;;;21196:301:5:o;20881:278::-;20952:22;21016:20;;;:8;:20;;;;;;21127:23;;21016:20;;21063:10;-1:-1:-1;;;;;21063:21:5;;;;21016:20;;21097:29;;-1:-1:-1;;;21127:23:5;;;;;;21097:54;;;;;;:::i;:::-;;21063:89;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21046:106;20881:278;-1:-1:-1;;;20881:278:5:o;16347:300::-;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;16470:3:::1;16446:20;:27;;16438:94;;;::::0;-1:-1:-1;;;16438:94:5;;19759:2:7;16438:94:5::1;::::0;::::1;19741:21:7::0;19798:2;19778:18;;;19771:30;19837:34;19817:18;;;19810:62;19908:24;19888:18;;;19881:52;19950:19;;16438:94:5::1;19557:418:7::0;16438:94:5::1;16542:16;:39:::0;;;16596:44:::1;::::0;16561:20;;16596:44:::1;::::0;;;::::1;16347:300:::0;:::o;3429:963::-;3610:15;;;;;;3598:27;;;;3590:68;;;;-1:-1:-1;;;3590:68:5;;20182:2:7;3590:68:5;;;20164:21:7;20221:2;20201:18;;;20194:30;20260;20240:18;;;20233:58;20308:18;;3590:68:5;19980:352:7;3590:68:5;3669:23;3702:105;3729:14;:32;3744:16;;;;:::i;:::-;-1:-1:-1;;;;;3729:32:5;;;;;;;;;;;;;;;-1:-1:-1;3729:32:5;3780:20;;3729:32;;-1:-1:-1;3729:32:5;-1:-1:-1;;;;3780:20:5;;;;3702:105;;3817:35;;3862:86;;3841:10;3862:86;;;-1:-1:-1;;;3892:9:5;1282:2;3892:55;3862:86;;;;;;;;;;3958:28;;-1:-1:-1;;;3958:28:5;;;;;;;;4005:20;;3997:94;;;;-1:-1:-1;;;3997:94:5;;20539:2:7;3997:94:5;;;20521:21:7;20578:2;20558:18;;;20551:30;20617:34;20597:18;;;20590:62;20688:27;20668:18;;;20661:55;20733:19;;3997:94:5;20337:421:7;3997:94:5;4102:29;4134:18;4151:1;4134:14;:18;:::i;:::-;-1:-1:-1;;;;;4102:50:5;;;4167:56;4178:10;;4190:9;4201:21;4167:56;;;;;;;;;:::i;:::-;;;;;;;;4308:20;;4238:147;;;7333:25:7;;;-1:-1:-1;;;4308:20:5;;;1282:2;4300:75;;;;;7374:18:7;;;7367:34;4238:147:5;;7306:18:7;4238:147:5;;;;;;;3580:812;;3429:963;;;;:::o;11797:1638::-;11896:10;-1:-1:-1;;;;;11911:10:5;11884:37;;11876:46;;;;;;11933:27;11963:20;;;:8;:20;;;;;12019:14;;;12034:21;;11963:20;;11933:27;12034:25;;12058:1;;12034:25;:::i;:::-;12019:41;;;;;;;;:::i;:::-;;;;;;;;12278:17;12019:41;;;;;;12278:17;;;:57;12019:41;;-1:-1:-1;12278:57:5;;;;;12274:263;;;-1:-1:-1;12366:29:5;12274:263;;;12416:17;;;:57;;;;;;12412:125;;;-1:-1:-1;12504:22:5;12412:125;12547:26;;12576:12;:34;;;;;;;;:::i;:::-;;;:74;;12642:7;12628:22;;;;;;;;:::i;:::-;12576:74;;;12613:12;12576:74;12660:30;;12547:103;;-1:-1:-1;12547:103:5;;12660:7;;:30;;-1:-1:-1;;;12547:103:5;12660:30;;;;;;;;:::i;:::-;;;;;-1:-1:-1;12732:29:5;;;;-1:-1:-1;;;;;12732:29:5;12701:28;12798:37;;;:14;:37;;;;;12866:22;12850:12;:38;;;;;;;;:::i;:::-;;12846:363;;;12928:20;;13009:24;;;;;13053:31;;-1:-1:-1;;;;;21599:35:7;;21581:54;;-1:-1:-1;;;12928:20:5;;;1282:2;12921:74;;;;;;13053:31;;21554:18:7;13053:31:5;;;;;;;13098:20;;;;:8;:20;;;;;;:31;:44;;-1:-1:-1;;;;;13098:31:5;;;;:44;;;;;13135:6;;13098:44;:20;:44;13135:6;13098:31;:44;;-1:-1:-1;;;;;;12846:363:5;13261:33;;-1:-1:-1;;;;13261:33:5;;;13337:23;;;;-1:-1:-1;;;13337:23:5;;;13376:52;;13408:10;;13395;;13376:52;;;;13420:7;1844:25:7;;1832:2;1817:18;;1698:177;13376:52:5;;;;;;;;11866:1569;;;;;;11797:1638;;:::o;19567:358::-;19684:15;;:19;;:15;;;:19;:::i;:::-;:24;;19676:69;;;;-1:-1:-1;;;19676:69:5;;22057:2:7;19676:69:5;;;22039:21:7;;;22076:18;;;22069:30;22135:34;22115:18;;;22108:62;22187:18;;19676:69:5;21855:356:7;19676:69:5;19773:15;;19760:51;;19773:15;;;;;19760:51;;;;19790:20;;19760:51;:::i;:::-;;;;;;;;19851:15;;19870:20;;19821:29;;19851:15;;19821:46;;;;;;;:::i;:::-;;:69;;;;;;;;;;;;:::i;:::-;-1:-1:-1;19901:15:5;:17;;;;;:15;:17;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;19567:358;;:::o;2574:46::-;;;;;;;;;;;;;;;;;-1:-1:-1;2574:46:5;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;25157:624::-;25289:7;25298;25322:25;25349:23;25376:10;-1:-1:-1;;;;;25376:23:5;;25400:10;25376:35;;;;;;;;;;;;;1844:25:7;;1832:2;1817:18;;1698:177;25376:35:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25321:90;;;;25421:28;871:4:4;25526:30:5;;25505:17;25487:15;:35;;;;:::i;:::-;25486:70;;;;:::i;:::-;25485:97;;;;:::i;:::-;25452:131;;:17;:131;:::i;:::-;25421:162;;25594:13;25659:7;25610:56;;;;;;;;:::i;:::-;25624:30;25643:10;25624:18;:30::i;:::-;25610:45;;;;;;;;:::i;:::-;:56;;;;;;;;:::i;:::-;;25594:72;;25683:8;:91;;25734:17;25753:20;25683:91;;;25695:17;25714:15;25683:91;25676:98;;;;;;;;25157:624;;;;;;:::o;20346:498::-;-1:-1:-1;;;;;20474:38:5;;20429:7;20474:38;;;:14;:38;;;;;;20605:16;;20474:38;;20429:7;;20548:10;-1:-1:-1;;;;;20548:26:5;;;;20575:29;;-1:-1:-1;;;20605:16:5;;;;;;20575:47;;;;;;:::i;:::-;;20548:75;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;20748:16;;20665:20;;20523:100;;-1:-1:-1;20633:20:5;;871:4:4;;20657:107:5;;-1:-1:-1;;;20665:20:5;;1282:2;20658:74;;;20657:107;:::i;:::-;20656:134;;;;:::i;:::-;20633:157;-1:-1:-1;20808:29:5;20633:157;20808:14;:29;:::i;:::-;20801:36;20346:498;-1:-1:-1;;;;;20346:498:5:o;14569:598::-;14763:19;14758:403;14788:30;;;14758:403;;;14854:20;14849:302;14895:9;;14905:11;14895:22;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:29;;14880:12;:44;14849:302;;;15003:1;14964:9;;14974:11;14964:22;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;14987:12;14964:36;;;;;;;:::i;:::-;;;;;;;:40;14960:177;;;15028:90;15051:10;15063:12;15077:11;15104:12;15090:27;;;;;;;;:::i;15028:90::-;;14960:177;14926:14;;;;:::i;:::-;;;;14849:302;;;-1:-1:-1;14820:13:5;;;;:::i;:::-;;;;14758:403;;;;14569:598;;;;:::o;14073:459::-;14248:27;14278:20;;;:8;:20;;;;;14329:14;;;:21;14278:20;;14360:166;14404:10;14390:11;:24;14360:166;;;14445:70;14468:10;14480:12;14494:11;14507:7;14445:22;:70::i;:::-;-1:-1:-1;14416:13:5;;;;:::i;:::-;;;;14360:166;;;;14238:294;;14073:459;;;:::o;6717:1433::-;-1:-1:-1;;;;;6829:38:5;;6803:23;6829:38;;;:14;:38;;;;;6885:20;;-1:-1:-1;;;6885:20:5;;;;6877:58;;;;-1:-1:-1;;;6877:58:5;;23515:2:7;6877:58:5;;;23497:21:7;23554:2;23534:18;;;23527:30;23593:23;23573:18;;;23566:51;23634:18;;6877:58:5;23313:345:7;6877:58:5;6953:29;;-1:-1:-1;;;6953:29:5;;6986:16;6953:29;;;:49;;6945:92;;;;-1:-1:-1;;;6945:92:5;;23865:2:7;6945:92:5;;;23847:21:7;23904:2;23884:18;;;23877:30;23943:32;23923:18;;;23916:60;23993:18;;6945:92:5;23663:354:7;6945:92:5;7047:48;;-1:-1:-1;;;;7047:48:5;;;;;7158:36;7171:22;7158:12;:36::i;:::-;7145:9;:49;;7137:94;;;;-1:-1:-1;;;7137:94:5;;24224:2:7;7137:94:5;;;24206:21:7;;;24243:18;;;24236:30;24302:34;24282:18;;;24275:62;24354:18;;7137:94:5;24022:356:7;7137:94:5;7354:16;;7271:20;;7242:17;;871:4:4;;7263:107:5;;7354:16;-1:-1:-1;;;7271:20:5;;1282:2;7264:74;;;7263:107;:::i;:::-;7262:134;;;;:::i;:::-;7242:154;;7425:9;7406:15;;:28;;;;;;;:::i;:::-;;;;-1:-1:-1;7445:17:5;;-1:-1:-1;;;;;;7465:10:5;:24;;7497:21;7509:9;7497;:21;:::i;:::-;7601:16;;815:1:4;;7571:29:5;;-1:-1:-1;;;7601:16:5;;;;7571:47;;;;;;;:::i;:::-;;7465:163;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7639:19;;;;:8;:19;;;;;;;;;:52;;7680:10;-1:-1:-1;;7639:52:5;;;;;;7701:26;;;:33;;-1:-1:-1;7701:33:5;;;;;;7744:41;;:74;;-1:-1:-1;;7744:74:5;-1:-1:-1;;;;;7744:74:5;;;;;7866:16;;7828:54;;;;;;;;;-1:-1:-1;;;7866:16:5;;;;;;;;-1:-1:-1;;;7828:54:5;;;;;;;;7973:16;;7942:59;;7973:16;;;;;;24555:36:7;;24607:18;;;24600:34;;;7639:19:5;;-1:-1:-1;7639:19:5;;-1:-1:-1;;;;;7950:10:5;7942:59;;;;24528:18:7;7942:59:5;;;;;;;8087:56;;;8121:10;24819:74:7;;24924:2;24909:18;;24902:34;;;-1:-1:-1;;;;;8087:56:5;;;;;24792:18:7;8087:56:5;;;;;;;6793:1357;;;6717:1433;:::o;24973:147::-;25077:36;;-1:-1:-1;;;25077:36:5;;;;;1844:25:7;;;25051:7:5;;25077:10;-1:-1:-1;;;;;25077:24:5;;;;1817:18:7;;25077:36:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25070:43;24973:147;-1:-1:-1;;24973:147:5:o;24452:484::-;24587:49;;:::i;:::-;24650:59;;:::i;:::-;24723:35;24805:20;;;:8;:20;;;;;:27;;:35;;24723;;24805:27;24833:6;;24805:35;;;;;;:::i;:::-;;;;;;;;;;;24783:57;;24858:5;:13;;24873:5;:20;;24895:5;:33;;;24850:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;24850:79:5;;;;;;;;;;;;-1:-1:-1;24850:79:5;;-1:-1:-1;24850:79:5;;-1:-1:-1;24850:79:5;-1:-1:-1;24850:79:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24452:484;;;;;:::o;17641:138::-;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;17718:5:::1;:17:::0;;-1:-1:-1;;17718:17:5::1;;-1:-1:-1::0;;;;;17718:17:5;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;17750:22:::1;::::0;::::1;::::0;-1:-1:-1;;17750:22:5::1;17641:138:::0;:::o;18486:231::-;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;18594:22:::1;:49:::0;;;18658:52:::1;::::0;18619:24;;18658:52:::1;::::0;;;::::1;18486:231:::0;:::o;19069:261::-;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;19187:27:::1;:59:::0;;;19261:62:::1;::::0;19217:29;;19261:62:::1;::::0;;;::::1;19069:261:::0;:::o;5227:504::-;-1:-1:-1;;;;;5340:38:5;;5314:23;5340:38;;;:14;:38;;;;;5410:13;;-1:-1:-1;;;;;5410:13:5;5396:10;:27;5388:76;;;;-1:-1:-1;;;5388:76:5;;25149:2:7;5388:76:5;;;25131:21:7;25188:2;25168:18;;;25161:30;25227:34;25207:18;;;25200:62;-1:-1:-1;;;25278:18:7;;;25271:34;25322:19;;5388:76:5;24947:400:7;5388:76:5;5482:29;;-1:-1:-1;;;5482:29:5;;;;:34;5474:100;;;;-1:-1:-1;;;5474:100:5;;25554:2:7;5474:100:5;;;25536:21:7;25593:2;25573:18;;;25566:30;25632:34;25612:18;;;25605:62;25703:23;25683:18;;;25676:51;25744:19;;5474:100:5;25352:417:7;5474:100:5;5642:27;;5624:45;;:15;:45;:::i;:::-;5585:85;;;;;;;-1:-1:-1;;;5585:85:5;-1:-1:-1;;;;5585:85:5;;;;;;5685:39;;-1:-1:-1;;;;;21599:35:7;;21581:54;;5685:39:5;;21569:2:7;21554:18;5685:39:5;;;;;;;;5304:427;5227:504;:::o;26383:852::-;26526:7;26579:20;;;:8;:20;;;;;26634:14;;;:21;26526:7;;26634:25;;26658:1;;26634:25;:::i;:::-;26609:50;;26669:23;26695:7;:14;;26710;26695:30;;;;;;;;:::i;:::-;;;;;;;;;;;26669:56;;26736:13;26801:7;26752:56;;;;;;;;:::i;:::-;26766:30;26785:10;26766:18;:30::i;:::-;26752:45;;;;;;;;:::i;:::-;:56;;;;;;;;:::i;:::-;;26736:72;;26818:18;26839:8;:59;;26876:22;;26839:59;;;26850:23;;26839:59;26818:80;;26909:19;26931:9;:24;;26964:7;26956:16;;;;;;;;:::i;:::-;26931:42;;;;;;;:::i;:::-;;;27067:23;;26931:42;;-1:-1:-1;26983:17:5;;27003:10;-1:-1:-1;;;;;27003:21:5;;;;27025:10;;27037:29;;-1:-1:-1;;;27067:23:5;;;;27037:54;;;;;;;:::i;:::-;;27003:89;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;26983:109;-1:-1:-1;27102:17:5;871:4:4;27136:24:5;27149:10;26983:109;27136:24;:::i;:::-;27135:51;;;;:::i;:::-;27122:65;;:9;:65;:::i;:::-;27102:85;-1:-1:-1;27205:23:5;27217:11;27102:85;27205:23;:::i;:::-;27198:30;26383:852;-1:-1:-1;;;;;;;;;;;26383:852:5:o;4429:172::-;4569:10;-1:-1:-1;;;;;4536:58:5;4557:10;4545;-1:-1:-1;;;;;4536:58:5;;4581:12;;4536:58;;;;;;;:::i;:::-;;;;;;;;4429:172;;;:::o;5768:912::-;-1:-1:-1;;;;;5871:38:5;;5845:23;5871:38;;;:14;:38;;;;;5942:13;;-1:-1:-1;;;;;5942:13:5;5928:10;:27;5920:76;;;;-1:-1:-1;;;5920:76:5;;25149:2:7;5920:76:5;;;25131:21:7;25188:2;25168:18;;;25161:30;25227:34;25207:18;;;25200:62;-1:-1:-1;;;25278:18:7;;;25271:34;25322:19;;5920:76:5;24947:400:7;5920:76:5;6014:29;;-1:-1:-1;;;6014:29:5;;;;6006:85;;;;-1:-1:-1;;;6006:85:5;;26228:2:7;6006:85:5;;;26210:21:7;26267:2;26247:18;;;26240:30;26306:34;26286:18;;;26279:62;26377:8;26357:18;;;26350:36;26403:19;;6006:85:5;26026:402:7;6006:85:5;6122:29;;6155:15;-1:-1:-1;;;6122:29:5;;;;;:48;;6101:158;;;;-1:-1:-1;;;6101:158:5;;26635:2:7;6101:158:5;;;26617:21:7;26674:2;26654:18;;;26647:30;26713:34;26693:18;;;26686:62;26784:33;26764:18;;;26757:61;26835:19;;6101:158:5;26433:427:7;6101:158:5;6298:20;;6447:33;;;;;6578:40;;-1:-1:-1;;;6298:20:5;;;1282:2;6291:74;;;;6586:10;;6578:40;;;;;6291:74;;-1:-1:-1;6578:40:5;-1:-1:-1;6578:40:5;6291:74;6586:10;6578:40;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6633:40:5;;-1:-1:-1;;;;;21599:35:7;;21581:54;;6633:40:5;;21569:2:7;21554:18;6633:40:5;;;;;;;5835:845;;5768:912;:::o;18212:237::-;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;18322:23:::1;:51:::0;;;18388:54:::1;::::0;18348:25;;18388:54:::1;::::0;;;::::1;18212:237:::0;:::o;21534:1296::-;21684:11;21769:20;;;:8;:20;;;;;21804:16;;21697:26;;21769:20;-1:-1:-1;;;21804:16:5;;;;21799:51;;21838:1;21822:28;;;;;21799:51;21881:14;;;:21;21940:15;;-1:-1:-1;;;21940:15:5;;;;21881:21;21976:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21966:37;;22018:19;22013:811;22057:10;22043:11;:24;22013:811;;;22135:28;815:1:4;22162::5;22135:28;:::i;:::-;22121:43;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22121:43:5;;22098:7;22106:11;22098:20;;;;;;;;:::i;:::-;;;;;;:66;;;;22179:19;22201:7;:14;;22216:11;22201:27;;;;;;;;:::i;:::-;;;;;;;;;;;22179:49;;22247:20;22242:572;815:1:4;22273:12:5;:40;22242:572;;22349:21;22373:182;22416:5;22443:12;22491;22477:27;;;;;;;;:::i;:::-;22526:11;22373:21;:182::i;:::-;22349:206;-1:-1:-1;22577:17:5;;22573:227;;22625:84;22647:5;22654:12;22682;22668:27;;;;;;;;:::i;22625:84::-;22618:91;;;;:::i;:::-;;;22768:13;22731:7;22739:11;22731:20;;;;;;;;:::i;:::-;;;;;;;22752:12;22731:34;;;;;;;;:::i;:::-;;;;;;:50;;;;;22573:227;-1:-1:-1;22315:14:5;;;;:::i;:::-;;;;22242:572;;;;22084:740;22069:13;;;;;:::i;:::-;;;;22013:811;;;;21729:1101;;;21534:1296;;;;;:::o;18019:156::-;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;18102:8:::1;:23:::0;;-1:-1:-1;;18102:23:5::1;;-1:-1:-1::0;;;;;18102:23:5;::::1;::::0;;::::1;::::0;;;::::1;::::0;;18140:28:::1;::::0;18102:23;;18140:28:::1;::::0;::::1;18019:156:::0;:::o;25818:528::-;25973:7;25996:13;26032:7;26012:27;;;;;;;;:::i;:::-;:16;:27;;;;;;;;:::i;:::-;;;-1:-1:-1;26077:4:5;26049:25;26012:27;26112:59;;26149:22;;26112:59;;;26123:23;;26112:59;26091:80;-1:-1:-1;26302:35:5;871:4:4;26091:80:5;26302:35;:::i;:::-;26268:17;871:4:4;26217:22:5;;26191:23;;:48;;;;:::i;:::-;:73;;;;:::i;:::-;26190:95;;;;:::i;:::-;26189:149;;;;:::i;:::-;26181:158;25818:528;-1:-1:-1;;;;;;25818:528:5:o;17054:197::-;17125:15;;;17108:14;17150:19;;;;17179:8;;:21;;17125:15;;17179:8;;;;-1:-1:-1;;;;;17179:8:5;;:21;;;;;17125:15;;17179:21;;17108:14;17179:21;17125:15;17179:8;:21;;-1:-1:-1;;17215:29:5;;17237:6;;-1:-1:-1;17215:29:5;;-1:-1:-1;17215:29:5;;-1:-1:-1;17215:29:5;17098:153;17054:197::o;17288:117::-;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;17379:19:::1;::::0;;-1:-1:-1;;17356:42:5;::::1;17379:19;::::0;;::::1;17378:20;17356:42;::::0;;17288:117::o;4638:552::-;-1:-1:-1;;;;;4755:38:5;;4729:23;4755:38;;;:14;:38;;;;;4825:13;;-1:-1:-1;;;;;4825:13:5;4811:10;:27;4803:86;;;;-1:-1:-1;;;4803:86:5;;27067:2:7;4803:86:5;;;27049:21:7;27106:2;27086:18;;;27079:30;27145:34;27125:18;;;27118:62;27216:16;27196:18;;;27189:44;27250:19;;4803:86:5;26865:410:7;4803:86:5;4932:87;;4963:9;1282:2;4963:55;;4932:87;;:20;;:87;;4963:55;;-1:-1:-1;;;4932:87:5;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5106:20:5;;5035:148;;;-1:-1:-1;;;;;27710:35:7;;27692:54;;-1:-1:-1;;;5106:20:5;;;1282:2;5098:75;;;;;27762:18:7;;;27755:34;5035:148:5;;27665:18:7;5035:148:5;27519:276:7;13472:564:5;13627:27;13657:20;;;:8;:20;;;;;13708:14;;;:21;13657:20;;13739:291;13783:10;13769:11;:24;13739:291;;;13829:20;13824:195;815:1:4;13855:12:5;:40;13824:195;;13929:90;13952:10;13964:12;13978:11;14005:12;13991:27;;;;;;;;:::i;13929:90::-;-1:-1:-1;13897:14:5;;;;:::i;:::-;;;;13824:195;;;-1:-1:-1;13795:13:5;;;;:::i;:::-;;;;13739:291;;18754:274;1513:5;;;;;-1:-1:-1;;;;;1513:5:5;1499:10;:19;1491:28;;;;;;18876:30:::1;:64:::0;;;18955:66:::1;::::0;18909:31;;18955:66:::1;::::0;;;::::1;18754:274:::0;:::o;15204:787::-;15394:14;15450:20;;;:8;:20;;;;;15488:16;;-1:-1:-1;;;15488:16:5;;;;15480:52;;;;-1:-1:-1;;;15480:52:5;;28002:2:7;15480:52:5;;;27984:21:7;28041:2;28021:18;;;28014:30;28080:25;28060:18;;;28053:53;28123:18;;15480:52:5;27800:347:7;15480:52:5;15543:19;15565:7;:14;;15580:12;15565:28;;;;;;;;:::i;:::-;;;;;;;;;;;15543:50;;15613:68;15635:5;15642:12;15656:7;15665;:15;;;;;;;;;;;;15613:21;:68::i;:::-;15604:77;-1:-1:-1;15696:11:5;;15692:293;;-1:-1:-1;;;;;15723:33:5;;15792:1;15723:33;;;;;;;;;;15779:7;15757:31;;;;;;;;:::i;:::-;15723:66;;;;;;;:::i;:::-;;:70;15807:25;;-1:-1:-1;;;;;15807:17:5;;;:25;;;;;15825:6;;15807:25;;;;15825:6;15807:17;:25;;;;;;;;15953:12;-1:-1:-1;;;;;15907:67:5;15930:12;15918:10;15907:67;15944:7;15967:6;15907:67;;;;;;;:::i;:::-;;;;;;;;15692:293;15410:581;;15204:787;;;;;;:::o;22902:1513::-;23089:14;23157:7;23181:14;;;23157:7;23196:20;;;;;;;;:::i;:::-;23181:36;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;23176:1233;;-1:-1:-1;;;;;23328:34:5;;:20;:34;;;;;;;;;;23371:11;23363:20;;;;;;;;:::i;:::-;23328:56;;;;;;;:::i;:::-;;;23319:65;;23176:1233;;;23492:12;23481:23;;;;;;;;:::i;:::-;:7;:23;;;;;;;;:::i;:::-;;23477:922;;;23641:1;23595:6;:21;;23625:11;23617:20;;;;;;;;:::i;:::-;23595:43;;;;;;;:::i;:::-;;;:47;:259;;23853:1;23595:259;;;23787:6;:21;;23817:11;23809:20;;;;;;;;:::i;:::-;23787:43;;;;;;;:::i;:::-;;;23725:34;;;;-1:-1:-1;;;;;23666:34:5;;:20;:34;;;;;;;;;;23709:11;23701:20;;;;;;;;:::i;:::-;23666:56;;;;;;;:::i;:::-;;;:93;;;;:::i;:::-;23665:165;;;;:::i;:::-;23586:268;;23477:922;;;23880:6;:14;;23917:12;23895:36;;;;;;;;:::i;:::-;23880:52;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;23875:524;;24329:54;;;;24241:61;;;;:142;;24329:54;24241:142;:::i;:::-;24182:34;;;;-1:-1:-1;;;;;24123:34:5;;:20;:34;;;;;;;;;;24166:11;24158:20;;;;;;;;:::i;:::-;24123:56;;;;;;;:::i;:::-;;;:93;;;;:::i;:::-;24122:262;;;;:::i;:::-;24093:291;;23875:524;23105:1310;22902:1513;;;;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;203:175:7;270:20;;-1:-1:-1;;;;;319:34:7;;309:45;;299:73;;368:1;365;358:12;299:73;203:175;;;:::o;383:204::-;459:20;;-1:-1:-1;;;;;508:54:7;;498:65;;488:93;;577:1;574;567:12;592:274;667:6;675;728:2;716:9;707:7;703:23;699:32;696:52;;;744:1;741;734:12;696:52;767:28;785:9;767:28;:::i;:::-;757:38;;814:46;856:2;845:9;841:18;814:46;:::i;:::-;804:56;;592:274;;;;;:::o;871:154::-;950:20;;999:1;989:12;;979:40;;1015:1;1012;1005:12;1030:282;1115:6;1123;1176:2;1164:9;1155:7;1151:23;1147:32;1144:52;;;1192:1;1189;1182:12;1144:52;1228:9;1215:23;1205:33;;1257:49;1302:2;1291:9;1287:18;1257:49;:::i;1509:184::-;1567:6;1620:2;1608:9;1599:7;1595:23;1591:32;1588:52;;;1636:1;1633;1626:12;1588:52;1659:28;1677:9;1659:28;:::i;1880:180::-;1939:6;1992:2;1980:9;1971:7;1967:23;1963:32;1960:52;;;2008:1;2005;1998:12;1960:52;-1:-1:-1;2031:23:7;;1880:180;-1:-1:-1;1880:180:7:o;2065:348::-;2117:8;2127:6;2181:3;2174:4;2166:6;2162:17;2158:27;2148:55;;2199:1;2196;2189:12;2148:55;-1:-1:-1;2222:20:7;;2265:18;2254:30;;2251:50;;;2297:1;2294;2287:12;2251:50;2334:4;2326:6;2322:17;2310:29;;2386:3;2379:4;2370:6;2362;2358:19;2354:30;2351:39;2348:59;;;2403:1;2400;2393:12;2418:640;2504:6;2512;2520;2528;2581:2;2569:9;2560:7;2556:23;2552:32;2549:52;;;2597:1;2594;2587:12;2549:52;2637:9;2624:23;2670:18;2662:6;2659:30;2656:50;;;2702:1;2699;2692:12;2656:50;2741:59;2792:7;2783:6;2772:9;2768:22;2741:59;:::i;:::-;2819:8;;-1:-1:-1;2715:85:7;-1:-1:-1;;2904:2:7;2889:18;;2876:32;2948:4;2937:16;;2927:27;;2917:55;;2968:1;2965;2958:12;2917:55;2991:5;-1:-1:-1;3015:37:7;3048:2;3033:18;;3015:37;:::i;:::-;3005:47;;2418:640;;;;;;;:::o;3310:248::-;3378:6;3386;3439:2;3427:9;3418:7;3414:23;3410:32;3407:52;;;3455:1;3452;3445:12;3407:52;-1:-1:-1;;3478:23:7;;;3548:2;3533:18;;;3520:32;;-1:-1:-1;3310:248:7:o;3563:184::-;-1:-1:-1;;;3612:1:7;3605:88;3712:4;3709:1;3702:15;3736:4;3733:1;3726:15;3752:632;3817:5;3847:18;3888:2;3880:6;3877:14;3874:40;;;3894:18;;:::i;:::-;3969:2;3963:9;3937:2;4023:15;;-1:-1:-1;;4019:24:7;;;4045:2;4015:33;4011:42;3999:55;;;4069:18;;;4089:22;;;4066:46;4063:72;;;4115:18;;:::i;:::-;4155:10;4151:2;4144:22;4184:6;4175:15;;4214:6;4206;4199:22;4254:3;4245:6;4240:3;4236:16;4233:25;4230:45;;;4271:1;4268;4261:12;4230:45;4321:6;4316:3;4309:4;4301:6;4297:17;4284:44;4376:1;4369:4;4360:6;4352;4348:19;4344:30;4337:41;;;;3752:632;;;;;:::o;4389:806::-;4476:6;4484;4537:2;4525:9;4516:7;4512:23;4508:32;4505:52;;;4553:1;4550;4543:12;4505:52;4593:9;4580:23;4622:18;4663:2;4655:6;4652:14;4649:34;;;4679:1;4676;4669:12;4649:34;4717:6;4706:9;4702:22;4692:32;;4762:7;4755:4;4751:2;4747:13;4743:27;4733:55;;4784:1;4781;4774:12;4733:55;4807:76;4875:7;4870:2;4857:16;4850:4;4846:2;4842:13;4807:76;:::i;:::-;4797:86;;4936:4;4925:9;4921:20;4908:34;4892:50;;4967:2;4957:8;4954:16;4951:36;;;4983:1;4980;4973:12;4951:36;-1:-1:-1;5006:24:7;;5061:4;5053:13;;5049:27;-1:-1:-1;5039:55:7;;5090:1;5087;5080:12;5039:55;5113:76;5181:7;5176:2;5163:16;5156:4;5152:2;5148:13;5113:76;:::i;:::-;5103:86;;;4389:806;;;;;:::o;5354:471::-;5395:3;5433:5;5427:12;5460:6;5455:3;5448:19;5485:1;5495:162;5509:6;5506:1;5503:13;5495:162;;;5571:4;5627:13;;;5623:22;;5617:29;5599:11;;;5595:20;;5588:59;5524:12;5495:162;;;5675:6;5672:1;5669:13;5666:87;;;5741:1;5734:4;5725:6;5720:3;5716:16;5712:27;5705:38;5666:87;-1:-1:-1;5807:2:7;5786:15;-1:-1:-1;;5782:29:7;5773:39;;;;5814:4;5769:50;;5354:471;-1:-1:-1;;5354:471:7:o;5830:217::-;5977:2;5966:9;5959:21;5940:4;5997:44;6037:2;6026:9;6022:18;6014:6;5997:44;:::i;6052:184::-;-1:-1:-1;;;6101:1:7;6094:88;6201:4;6198:1;6191:15;6225:4;6222:1;6215:15;6241:298;6326:1;6319:5;6316:12;6306:200;;-1:-1:-1;;;6359:1:7;6352:88;6463:4;6460:1;6453:15;6491:4;6488:1;6481:15;6306:200;6515:18;;6241:298::o;6544:610::-;-1:-1:-1;;;;;6840:55:7;;6822:74;;6809:3;6794:19;;6905:57;6958:2;6943:18;;6935:6;6905:57;:::i;:::-;7010:4;6998:17;;;;6993:2;6978:18;;6971:45;7059:14;;7052:22;7047:2;7032:18;;7025:50;-1:-1:-1;;;;;7112:35:7;7106:3;7091:19;;;7084:64;6544:610;;-1:-1:-1;;6544:610:7:o;7412:800::-;7551:6;7559;7567;7575;7628:2;7616:9;7607:7;7603:23;7599:32;7596:52;;;7644:1;7641;7634:12;7596:52;7680:9;7667:23;7657:33;;7709:46;7751:2;7740:9;7736:18;7709:46;:::i;:::-;7699:56;;7806:2;7795:9;7791:18;7778:32;7829:18;7870:2;7862:6;7859:14;7856:34;;;7886:1;7883;7876:12;7856:34;7924:6;7913:9;7909:22;7899:32;;7969:7;7962:4;7958:2;7954:13;7950:27;7940:55;;7991:1;7988;7981:12;7940:55;8031:2;8018:16;8057:2;8049:6;8046:14;8043:34;;;8073:1;8070;8063:12;8043:34;8126:7;8121:2;8111:6;8108:1;8104:14;8100:2;8096:23;8092:32;8089:45;8086:65;;;8147:1;8144;8137:12;8086:65;7412:800;;;;-1:-1:-1;;8178:2:7;8170:11;;-1:-1:-1;;;7412:800:7:o;8217:372::-;8319:6;8327;8335;8388:2;8376:9;8367:7;8363:23;8359:32;8356:52;;;8404:1;8401;8394:12;8356:52;8440:9;8427:23;8417:33;;8469:46;8511:2;8500:9;8496:18;8469:46;:::i;:::-;8459:56;;8534:49;8579:2;8568:9;8564:18;8534:49;:::i;:::-;8524:59;;8217:372;;;;;:::o;9348:987::-;9624:3;9609:19;;9613:9;9705:6;9582:4;9739:210;9753:4;9750:1;9747:11;9739:210;;;9826:13;;9819:21;9812:29;9800:42;;9865:4;9889:12;;;;9924:15;;;;9773:1;9766:9;9739:210;;;9743:3;;;9986:2;9975:9;9971:18;10037:6;10063:1;10073:212;10089:4;10084:3;10081:13;10073:212;;;10154:15;;10140:30;;10193:4;10219:14;;;;10258:17;;;;10113:1;10104:11;10073:212;;;10077:3;;;10322:6;10316:3;10305:9;10301:19;10294:35;9348:987;;;;;;:::o;10340:202::-;10407:6;10460:2;10448:9;10439:7;10435:23;10431:32;10428:52;;;10476:1;10473;10466:12;10428:52;10499:37;10526:9;10499:37;:::i;10547:479::-;10627:6;10635;10643;10696:2;10684:9;10675:7;10671:23;10667:32;10664:52;;;10712:1;10709;10702:12;10664:52;10748:9;10735:23;10725:33;;10809:2;10798:9;10794:18;10781:32;10836:18;10828:6;10825:30;10822:50;;;10868:1;10865;10858:12;10822:50;10907:59;10958:7;10949:6;10938:9;10934:22;10907:59;:::i;:::-;10547:479;;10985:8;;-1:-1:-1;10881:85:7;;-1:-1:-1;;;;10547:479:7:o;11031:270::-;11107:6;11115;11168:2;11156:9;11147:7;11143:23;11139:32;11136:52;;;11184:1;11181;11174:12;11136:52;11220:9;11207:23;11197:33;;11249:46;11291:2;11280:9;11276:18;11249:46;:::i;11306:1363::-;11526:4;11574:2;11563:9;11559:18;11604:6;11593:9;11586:25;11630:2;11668;11663;11652:9;11648:18;11641:30;11691:6;11726;11720:13;11757:6;11749;11742:22;11795:2;11784:9;11780:18;11773:25;;11857:2;11847:6;11844:1;11840:14;11829:9;11825:30;11821:39;11807:53;;11895:2;11887:6;11883:15;11916:1;11937;11947:693;11963:6;11958:3;11955:15;11947:693;;;12032:22;;;-1:-1:-1;;12028:36:7;12016:49;;12088:13;;12162:9;;12184:24;;;12274:11;;;;12230:15;;;;12309:1;12323:209;12339:8;12334:3;12331:17;12323:209;;;12416:15;;12402:30;;12501:17;;;;12458:14;;;;12367:1;12358:11;12323:209;;;-1:-1:-1;12555:5:7;;-1:-1:-1;;;12618:12:7;;;;12583:15;;;;11989:1;11980:11;11947:693;;;-1:-1:-1;12657:6:7;;11306:1363;-1:-1:-1;;;;;;;;;11306:1363:7:o;12674:316::-;12776:6;12784;12837:2;12825:9;12816:7;12812:23;12808:32;12805:52;;;12853:1;12850;12843:12;12805:52;12876:40;12906:9;12876:40;:::i;:::-;12866:50;;12935:49;12980:2;12969:9;12965:18;12935:49;:::i;12995:441::-;13106:6;13114;13122;13130;13183:3;13171:9;13162:7;13158:23;13154:33;13151:53;;;13200:1;13197;13190:12;13151:53;13236:9;13223:23;13213:33;;13265:46;13307:2;13296:9;13292:18;13265:46;:::i;:::-;13255:56;;13358:2;13347:9;13343:18;13330:32;13320:42;;13381:49;13426:2;13415:9;13411:18;13381:49;:::i;14069:184::-;14139:6;14192:2;14180:9;14171:7;14167:23;14163:32;14160:52;;;14208:1;14205;14198:12;14160:52;-1:-1:-1;14231:16:7;;14069:184;-1:-1:-1;14069:184:7:o;14258:245::-;14337:6;14345;14398:2;14386:9;14377:7;14373:23;14369:32;14366:52;;;14414:1;14411;14404:12;14366:52;-1:-1:-1;;14437:16:7;;14493:2;14478:18;;;14472:25;14437:16;;14472:25;;-1:-1:-1;14258:245:7:o;14923:184::-;-1:-1:-1;;;14972:1:7;14965:88;15072:4;15069:1;15062:15;15096:4;15093:1;15086:15;15112:125;15152:4;15180:1;15177;15174:8;15171:34;;;15185:18;;:::i;:::-;-1:-1:-1;15222:9:7;;15112:125::o;15242:168::-;15282:7;15348:1;15344;15340:6;15336:14;15333:1;15330:21;15325:1;15318:9;15311:17;15307:45;15304:71;;;15355:18;;:::i;:::-;-1:-1:-1;15395:9:7;;15242:168::o;15415:274::-;15455:1;15481;15471:189;;-1:-1:-1;;;15513:1:7;15506:88;15617:4;15614:1;15607:15;15645:4;15642:1;15635:15;15471:189;-1:-1:-1;15674:9:7;;15415:274::o;15694:128::-;15734:3;15765:1;15761:6;15758:1;15755:13;15752:39;;;15771:18;;:::i;:::-;-1:-1:-1;15807:9:7;;15694:128::o;16253:184::-;-1:-1:-1;;;16302:1:7;16295:88;16402:4;16399:1;16392:15;16426:4;16423:1;16416:15;16442:437;16521:1;16517:12;;;;16564;;;16585:61;;16639:4;16631:6;16627:17;16617:27;;16585:61;16692:2;16684:6;16681:14;16661:18;16658:38;16655:218;;;-1:-1:-1;;;16726:1:7;16719:88;16830:4;16827:1;16820:15;16858:4;16855:1;16848:15;16655:218;;16442:437;;;:::o;17009:1096::-;17093:12;;17058:3;;17148:1;17168:18;;;;17221;;;;17248:61;;17302:4;17294:6;17290:17;17280:27;;17248:61;17328:2;17376;17368:6;17365:14;17345:18;17342:38;17339:218;;;-1:-1:-1;;;17410:1:7;17403:88;17514:4;17511:1;17504:15;17542:4;17539:1;17532:15;17339:218;5286:19;;;5338:4;5329:14;;17642:18;17669:104;;;;17787:1;17782:317;;;;17635:464;;17669:104;-1:-1:-1;;17704:24:7;;17690:39;;17749:14;;;;-1:-1:-1;17669:104:7;;17782:317;16956:1;16949:14;;;16993:4;16980:18;;17875:1;17889:167;17903:6;17900:1;17897:13;17889:167;;;17983:14;;17968:13;;;17961:37;18026:16;;;;17918:10;;17889:167;;;18076:13;;;-1:-1:-1;;17635:464:7;;;;;;;;17009:1096;;;;:::o;18110:293::-;18282:6;18271:9;18264:25;18325:2;18320;18309:9;18305:18;18298:30;18245:4;18345:52;18393:2;18382:9;18378:18;18370:6;18345:52;:::i;:::-;18337:60;18110:293;-1:-1:-1;;;;18110:293:7:o;18810:286::-;18987:2;18972:18;;18999:48;18976:9;19029:6;18999:48;:::i;:::-;19083:6;19078:2;19067:9;19063:18;19056:34;18810:286;;;;;:::o;19101:213::-;19139:3;-1:-1:-1;;;;;19224:2:7;19217:5;19213:14;19251:2;19242:7;19239:15;19236:41;;;19257:18;;:::i;:::-;19306:1;19293:15;;19101:213;-1:-1:-1;;;19101:213:7:o;19319:233::-;19358:4;-1:-1:-1;;;;;19459:10:7;;;;19429;;19481:12;;;19478:38;;;19496:18;;:::i;:::-;19533:13;;19319:233;-1:-1:-1;;;19319:233:7:o;20763:267::-;20852:6;20847:3;20840:19;20904:6;20897:5;20890:4;20885:3;20881:14;20868:43;-1:-1:-1;20956:1:7;20931:16;;;20949:4;20927:27;;;20920:38;;;;21012:2;20991:15;;;-1:-1:-1;;20987:29:7;20978:39;;;20974:50;;20763:267::o;21035:396::-;21246:2;21235:9;21228:21;21209:4;21266:62;21324:2;21313:9;21309:18;21301:6;21293;21266:62;:::i;:::-;21376:4;21364:17;;;;21359:2;21344:18;;21337:45;-1:-1:-1;21413:2:7;21398:18;21391:34;21258:70;21035:396;-1:-1:-1;;21035:396:7:o;21646:204::-;21684:3;21720:4;21717:1;21713:12;21752:4;21749:1;21745:12;21787:3;21781:4;21777:14;21772:3;21769:23;21766:49;;;21795:18;;:::i;:::-;21831:13;;21646:204;-1:-1:-1;;;21646:204:7:o;22216:175::-;22253:3;22297:4;22290:5;22286:16;22326:4;22317:7;22314:17;22311:43;;;22334:18;;:::i;:::-;22383:1;22370:15;;22216:175;-1:-1:-1;;22216:175:7:o;22396:222::-;22540:2;22529:9;22522:21;22503:4;22560:52;22608:2;22597:9;22593:18;22585:6;22560:52;:::i;22623:545::-;22716:4;22722:6;22782:11;22769:25;22876:2;22872:7;22861:8;22845:14;22841:29;22837:43;22817:18;22813:68;22803:96;;22895:1;22892;22885:12;22803:96;22922:33;;22974:20;;;-1:-1:-1;23017:18:7;23006:30;;23003:50;;;23049:1;23046;23039:12;23003:50;23082:4;23070:17;;-1:-1:-1;23133:1:7;23129:14;;;23113;23109:35;23099:46;;23096:66;;;23158:1;23155;23148:12;23173:135;23212:3;-1:-1:-1;;23233:17:7;;23230:43;;;23253:18;;:::i;:::-;-1:-1:-1;23300:1:7;23289:13;;23173:135::o;25774:247::-;25933:2;25922:9;25915:21;25896:4;25953:62;26011:2;26000:9;25996:18;25988:6;25980;25953:62;:::i;27280:234::-;27319:3;27347:16;27390:2;27387:1;27383:10;27420:2;27417:1;27413:10;27451:3;27447:2;27443:12;27438:3;27435:21;27432:47;;;27459:18;;:::i;:::-;27495:13;;27280:234;-1:-1:-1;;;;27280:234:7:o

Swarm Source

ipfs://a906a41ab294bd1772920ea2f89288b3be011f722e02fbdcd5fd7de216c3d2f5

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.