Contract 0x1aBd0067f60513F152ff14E9cD26a62c820d022C 2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd216725593fcbc4292b08ab2a49ba0ea516272a4626e7eccaaeeb533ace43291Stake120271252021-10-23 17:22:061 min ago0x14cc5507bf3e1edcb0d0d41274a9c70d95f1a3e4 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.000933255
0x06714290dad7f4cc035b25defef57d892a02b7aa429cc656f5d378f7959c2696Stake120270672021-10-23 17:19:124 mins ago0xa8a93b0b4ed46d38b8cb1ef5e751b53d574d6440 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00093795
0x18e16ffa99def5af330297942eb1a9b80faf12345b650e575f82fa9e24e1416bUnstake120270612021-10-23 17:18:544 mins ago0xa8a93b0b4ed46d38b8cb1ef5e751b53d574d6440 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00092823
0xaa6b9ce5bbcf20a6efbc23033e66fbda84cef0fdde6a3b0106d5afa29a89054cUnstake120270542021-10-23 17:18:335 mins ago0xf22b240dd536a32459dd719a47cf6a45aee92946 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00100311
0xd32b1644bb7be91e5267419abea12cfbb8a9031f1732f6b1d24b8bf56ec5a07cStake120270092021-10-23 17:16:187 mins ago0x9cecbc8b2e826cbf9602493532ad5e97219449f3 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00073548
0x30c4414a754ae3a7f7dae702b64a813291dd89026790dce04a92e3190fda8eecStake120269672021-10-23 17:14:129 mins ago0x1c34d8acac16d9fbe95f17a0630bc9a2337ba612 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00093795
0x4af9ca93d37a57a9f0a03d6a80f82f2db7a49e7f08c3516aac9baf3af42a7dd1Stake120269132021-10-23 17:11:3012 mins ago0xadfbd44adde81caa1d8617f1f59e8147997b8f3e IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00081054
0x559cacd15026ab11a5fd3a8cdf97aa34a18fa9e6d9c5e57cdfe916c05d488b24Stake120269002021-10-23 17:10:5112 mins ago0x1cd6ffa49fc70e03a62a95df52b7d7c19fecfcf1 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00081054
0x082fada54278e5abf227127245f10bd1a6dd3cb2810e0e33776a8336b6085293Unstake120268992021-10-23 17:10:4812 mins ago0xadfbd44adde81caa1d8617f1f59e8147997b8f3e IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00092823
0x065383a2f1a21717cf04e12e48f5b4b3dc4ba7e2d2cb7dcdd6a01d2594d1a310Stake120268812021-10-23 17:09:5413 mins ago0x620efbe871e75c275234e8c7cc3c65d37c6d8eac IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00093795
0x82dc6b5641dc59fb4976cce7019e4b72a3d9ac638b7e920216908886175f5309Unstake120268672021-10-23 17:09:1214 mins ago0x620efbe871e75c275234e8c7cc3c65d37c6d8eac IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00092823
0x4dbb5b74e4b62b461f7f6a42fc310dba14cb1fb161054cb5e9cc2943ab9ada13Stake120268352021-10-23 17:07:3616 mins ago0x8f35e0e0d1c92480f7120e23be5d215be8c9577b IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00081054
0xb82b610b64c220063e6f5c5d319a5e7795e2553bfa78f03a1a8993b7801401d6Unstake120268282021-10-23 17:07:1516 mins ago0x8f35e0e0d1c92480f7120e23be5d215be8c9577b IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00092823
0x57b0834dfa13061a20e323805a0d2815800655550080f6255bcaa589f3c0fb6bUnstake120268162021-10-23 17:06:3916 mins ago0x9447fe7a8538c594be05d4274c307769d9d0c89d IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.000932805
0xfe8e86dc99fa5c5e165789520841fc28c5b506e87b2939cd25c801e63129cf88Stake120267932021-10-23 17:05:3018 mins ago0x1c34d8acac16d9fbe95f17a0630bc9a2337ba612 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00073554
0x8e9c5c5c6b9da9fd0d5f3cca5676cae399de6b14456a87ab144664430d38b359Unstake120267752021-10-23 17:04:3619 mins ago0x1c34d8acac16d9fbe95f17a0630bc9a2337ba612 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00100323
0x82c6ef3ce18604195099ab7bb07022c29dc4cb0972387e0c9a1666f884e2b502Stake120267462021-10-23 17:03:0920 mins ago0xec680260eaeb7bc5b55f9de2705aa28d43b2efc0 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00081054
0xb8292feb44114cd12937308a6874fac1c91aa13a87307eaa89482929c9abf9dcStake120266372021-10-23 16:57:1726 mins ago0xcf0a8b95c57b4a0778d5162c3ab01aae9bd16147 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00073554
0x91439d48ce6dcfa09c76c1ad7022afc7e3edc12005f5ce180a5a2b4b03653fa1Unstake120266242021-10-23 16:56:3627 mins ago0xcf0a8b95c57b4a0778d5162c3ab01aae9bd16147 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00100323
0xad5aa92af24d10474b9775147a200e68b2052fc9bc070cbd5067d6b0acac2d26Unstake120264562021-10-23 16:48:1235 mins ago0x2eb7028d83f496cd9a9cfaeac843b6938f271ae3 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.001007745
0x5206f6dc0433dec96db101125facb0834851c8edbdf266288eaa48e86858dcc8Unstake120264162021-10-23 16:46:1237 mins ago0xe121bd1ae65971c7372915623ec31be98175d063 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.000932805
0x0548a3e9d87e34f421bbf58ee87711bcbbf67eaa72f6f3e1c266eaf7393d6696Stake120264042021-10-23 16:45:3538 mins ago0xf591da380c911c7be9ba48bd14c451bf784886f7 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00086289
0x91702ca6c18cca16a73bab28143cbbb0447996b89e93911853576a6462e8632eStake120263682021-10-23 16:43:4739 mins ago0x69341daea3615976ba19f0f11f74818f59f59345 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00073548
0xd233932c7b16703a3d3724ca92cef5849525dd254fc65674b11d0b4acb31a5eaUnstake120263602021-10-23 16:43:2340 mins ago0xdf99f63bc8f1ce2fd7aa0c0140a0340f91fb4680 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00100317
0x05072ad7f74ec0a5fa52c9d8c391cadc168182152d82e959e47989d8c7412b15Unstake120263112021-10-23 16:40:5642 mins ago0xb046e9e703f07384bbec98d41e15e341cd4a5a36 IN  0x1abd0067f60513f152ff14e9cd26a62c820d022c0 BNB0.00092823
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IFAllocationMaster

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 24 : IFAllocationMaster.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';

// IFAllocationMaster is responsible for persisting all launchpad state between project token sales
// in order for the sales to have clean, self-enclosed, one-time-use states.

// IFAllocationMaster is the master of allocations. He can remember everything and he is a smart guy.
contract IFAllocationMaster is Ownable, ReentrancyGuard {
    using SafeERC20 for ERC20;

    // CONSTANTS

    // number of decimals of rollover factors
    uint64 constant ROLLOVER_FACTOR_DECIMALS = 10**18;

    // STRUCTS

    // A checkpoint for marking stake info at a given block
    struct UserCheckpoint {
        // block number of checkpoint
        uint80 blockNumber;
        // amount staked at checkpoint
        uint104 staked;
        // amount of stake weight at checkpoint
        uint192 stakeWeight;
        // number of finished sales at time of checkpoint
        uint24 numFinishedSales;
    }

    // A checkpoint for marking stake info at a given block
    struct TrackCheckpoint {
        // block number of checkpoint
        uint80 blockNumber;
        // amount staked at checkpoint
        uint104 totalStaked;
        // amount of stake weight at checkpoint
        uint192 totalStakeWeight;
        // number of finished sales at time of checkpoint
        uint24 numFinishedSales;
        // whether track is disabled (once disabled, cannot undo)
        bool disabled;
    }

    // Info of each track. These parameters cannot be changed.
    struct TrackInfo {
        // name of track
        string name;
        // token to stake (e.g., IDIA)
        ERC20 stakeToken;
        // weight accrual rate for this track (stake weight increase per block per stake token)
        uint24 weightAccrualRate;
        // amount rolled over when finished sale counter increases (with decimals == ROLLOVER_FACTOR_DECIMALS)
        // e.g., if rolling over 20% when sale finishes, then this is 0.2 * ROLLOVER_FACTOR_DECIMALS, or
        // 200_000_000_000_000_000
        uint64 passiveRolloverRate;
        // amount rolled over when finished sale counter increases, and user actively elected to roll over
        uint64 activeRolloverRate;
        // maximum total stake for a user in this track
        uint104 maxTotalStake;
    }

    // INFO FOR FACTORING IN ROLLOVERS

    // the number of checkpoints of a track -- (track, finished sale count) => block number
    mapping(uint24 => mapping(uint24 => uint80)) public trackFinishedSaleBlocks;

    // stake weight each user actively rolls over for a given track and a finished sale count
    // (track, user, finished sale count) => amount of stake weight
    mapping(uint24 => mapping(address => mapping(uint24 => uint192)))
        public trackActiveRollOvers;

    // total stake weight actively rolled over for a given track and a finished sale count
    // (track, finished sale count) => total amount of stake weight
    mapping(uint24 => mapping(uint24 => uint192))
        public trackTotalActiveRollOvers;

    // TRACK INFO

    // array of track information
    TrackInfo[] public tracks;

    // the number of checkpoints of a track -- (track) => checkpoint count
    mapping(uint24 => uint32) public trackCheckpointCounts;

    // track checkpoint mapping -- (track, checkpoint number) => TrackCheckpoint
    mapping(uint24 => mapping(uint32 => TrackCheckpoint))
        public trackCheckpoints;

    // USER INFO

    // the number of checkpoints of a user for a track -- (track, user address) => checkpoint count
    mapping(uint24 => mapping(address => uint32)) public userCheckpointCounts;

    // user checkpoint mapping -- (track, user address, checkpoint number) => UserCheckpoint
    mapping(uint24 => mapping(address => mapping(uint32 => UserCheckpoint)))
        public userCheckpoints;

    // EVENTS

    event AddTrack(string indexed name, address indexed token);
    event DisableTrack(uint24 indexed trackId);
    event ActiveRollOver(uint24 indexed trackId, address indexed user);
    event BumpSaleCounter(uint24 indexed trackId, uint32 newCount);
    event AddUserCheckpoint(uint24 indexed trackId, uint80 blockNumber);
    event AddTrackCheckpoint(uint24 indexed trackId, uint80 blockNumber);
    event Stake(uint24 indexed trackId, address indexed user, uint104 amount);
    event Unstake(uint24 indexed trackId, address indexed user, uint104 amount);
    event EmergencyTokenRetrieve(address indexed sender, uint256 amount);

    // CONSTRUCTOR

    constructor() {}

    // FUNCTIONS

    // number of tracks
    function trackCount() external view returns (uint24) {
        return uint24(tracks.length);
    }

    // adds a new track
    function addTrack(
        string calldata name,
        ERC20 stakeToken,
        uint24 _weightAccrualRate,
        uint64 _passiveRolloverRate,
        uint64 _activeRolloverRate,
        uint104 _maxTotalStake
    ) external onlyOwner {
        require(_weightAccrualRate != 0, 'accrual rate is 0');

        // add track
        tracks.push(
            TrackInfo({
                name: name, // name of track
                stakeToken: stakeToken, // token to stake (e.g., IDIA)
                weightAccrualRate: _weightAccrualRate, // rate of stake weight accrual
                passiveRolloverRate: _passiveRolloverRate, // passive rollover
                activeRolloverRate: _activeRolloverRate, // active rollover
                maxTotalStake: _maxTotalStake // max total stake
            })
        );

        // add first track checkpoint
        addTrackCheckpoint(
            uint24(tracks.length - 1), // latest track
            0, // initialize with 0 stake
            false, // add or sub does not matter
            false, // initialize as not disabled
            false // do not bump finished sale counter
        );

        // emit
        emit AddTrack(name, address(stakeToken));
    }

    // bumps a track's finished sale counter
    function bumpSaleCounter(uint24 trackId) external onlyOwner {
        // get number of finished sales of this track
        uint24 nFinishedSales =
            trackCheckpoints[trackId][trackCheckpointCounts[trackId] - 1]
                .numFinishedSales;

        // update map that tracks block numbers of finished sales
        trackFinishedSaleBlocks[trackId][nFinishedSales] = uint80(block.number);

        // add a new checkpoint with counter incremented by 1
        addTrackCheckpoint(trackId, 0, false, false, true);

        // `BumpSaleCounter` event emitted in function call above
    }

    // disables a track
    function disableTrack(uint24 trackId) external onlyOwner {
        // add a new checkpoint with `disabled` set to true
        addTrackCheckpoint(trackId, 0, false, true, false);

        // `DisableTrack` event emitted in function call above
    }

    // perform active rollover
    function activeRollOver(uint24 trackId) external {
        // add new user checkpoint
        addUserCheckpoint(trackId, 0, false);

        // get new user checkpoint
        UserCheckpoint memory userCp =
            userCheckpoints[trackId][_msgSender()][
                userCheckpointCounts[trackId][_msgSender()] - 1
            ];

        // current sale count
        uint24 saleCount = userCp.numFinishedSales;

        // subtract old user rollover amount from total
        trackTotalActiveRollOvers[trackId][saleCount] -= trackActiveRollOvers[
            trackId
        ][_msgSender()][saleCount];

        // update user rollover amount
        trackActiveRollOvers[trackId][_msgSender()][saleCount] = userCp
            .stakeWeight;

        // add new user rollover amount to total
        trackTotalActiveRollOvers[trackId][saleCount] += userCp.stakeWeight;

        // emit
        emit ActiveRollOver(trackId, _msgSender());
    }

    // get closest PRECEDING user checkpoint
    function getClosestUserCheckpoint(
        uint24 trackId,
        address user,
        uint80 blockNumber
    ) private view returns (UserCheckpoint memory cp) {
        // get total checkpoint count for user
        uint32 nCheckpoints = userCheckpointCounts[trackId][user];

        if (
            userCheckpoints[trackId][user][nCheckpoints - 1].blockNumber <=
            blockNumber
        ) {
            // First check most recent checkpoint

            // return closest checkpoint
            return userCheckpoints[trackId][user][nCheckpoints - 1];
        } else if (
            userCheckpoints[trackId][user][0].blockNumber > blockNumber
        ) {
            // Next check earliest checkpoint

            // If specified block number is earlier than user's first checkpoint,
            // return null checkpoint
            return
                UserCheckpoint({
                    blockNumber: 0,
                    staked: 0,
                    stakeWeight: 0,
                    numFinishedSales: 0
                });
        } else {
            // binary search on checkpoints
            uint32 lower = 0;
            uint32 upper = nCheckpoints - 1;
            while (upper > lower) {
                uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
                UserCheckpoint memory tempCp =
                    userCheckpoints[trackId][user][center];
                if (tempCp.blockNumber == blockNumber) {
                    return tempCp;
                } else if (tempCp.blockNumber < blockNumber) {
                    lower = center;
                } else {
                    upper = center - 1;
                }
            }

            // return closest checkpoint
            return userCheckpoints[trackId][user][lower];
        }
    }

    // gets a user's stake weight within a track at a particular block number
    // logic extended from Compound COMP token `getPriorVotes` function
    function getUserStakeWeight(
        uint24 trackId,
        address user,
        uint80 blockNumber
    ) public view returns (uint192) {
        require(blockNumber <= block.number, 'block # too high');

        // check number of user checkpoints
        uint32 nUserCheckpoints = userCheckpointCounts[trackId][user];
        if (nUserCheckpoints == 0) {
            return 0;
        }

        // get closest preceding user checkpoint
        UserCheckpoint memory closestUserCheckpoint =
            getClosestUserCheckpoint(trackId, user, blockNumber);

        // check if closest preceding checkpoint was null checkpoint
        if (closestUserCheckpoint.blockNumber == 0) {
            return 0;
        }

        // get closest preceding track checkpoint
        TrackCheckpoint memory closestTrackCheckpoint =
            getClosestTrackCheckpoint(trackId, blockNumber);

        // get number of finished sales between user's last checkpoint blockNumber and provided blockNumber
        uint24 numFinishedSalesDelta =
            closestTrackCheckpoint.numFinishedSales -
                closestUserCheckpoint.numFinishedSales;

        // get track info
        TrackInfo memory track = tracks[trackId];

        // calculate stake weight given above delta
        uint192 stakeWeight;
        if (numFinishedSalesDelta == 0) {
            // calculate normally without rollover decay

            uint80 elapsedBlocks =
                blockNumber - closestUserCheckpoint.blockNumber;

            stakeWeight =
                closestUserCheckpoint.stakeWeight +
                (uint192(elapsedBlocks) *
                    track.weightAccrualRate *
                    closestUserCheckpoint.staked) /
                10**18;

            return stakeWeight;
        } else {
            // calculate with rollover decay

            // starting stakeweight
            stakeWeight = closestUserCheckpoint.stakeWeight;
            // current block for iteration
            uint80 currBlock = closestUserCheckpoint.blockNumber;

            // for each finished sale in between, get stake weight of that period
            // and perform weighted sum
            for (uint24 i = 0; i < numFinishedSalesDelta; i++) {
                // get number of blocks passed at the current sale number
                uint80 elapsedBlocks =
                    trackFinishedSaleBlocks[trackId][
                        closestUserCheckpoint.numFinishedSales + i
                    ] - currBlock;

                // update stake weight
                stakeWeight =
                    stakeWeight +
                    (uint192(elapsedBlocks) *
                        track.weightAccrualRate *
                        closestUserCheckpoint.staked) /
                    10**18;

                // get amount of stake weight actively rolled over for this sale number
                uint192 activeRolloverWeight =
                    trackActiveRollOvers[trackId][user][
                        closestUserCheckpoint.numFinishedSales + i
                    ];

                // factor in passive and active rollover decay
                stakeWeight =
                    // decay active weight
                    (activeRolloverWeight * track.activeRolloverRate) /
                    ROLLOVER_FACTOR_DECIMALS +
                    // decay passive weight
                    ((stakeWeight - activeRolloverWeight) *
                        track.passiveRolloverRate) /
                    ROLLOVER_FACTOR_DECIMALS;

                // update currBlock for next round
                currBlock = trackFinishedSaleBlocks[trackId][
                    closestUserCheckpoint.numFinishedSales + i
                ];
            }

            // add any remaining accrued stake weight at current finished sale count
            uint80 remainingElapsed =
                blockNumber -
                    trackFinishedSaleBlocks[trackId][
                        closestTrackCheckpoint.numFinishedSales - 1
                    ];
            stakeWeight +=
                (uint192(remainingElapsed) *
                    track.weightAccrualRate *
                    closestUserCheckpoint.staked) /
                10**18;
        }

        // return
        return stakeWeight;
    }

    // get closest PRECEDING track checkpoint
    function getClosestTrackCheckpoint(uint24 trackId, uint80 blockNumber)
        private
        view
        returns (TrackCheckpoint memory cp)
    {
        // get total checkpoint count for track
        uint32 nCheckpoints = trackCheckpointCounts[trackId];

        if (
            trackCheckpoints[trackId][nCheckpoints - 1].blockNumber <=
            blockNumber
        ) {
            // First check most recent checkpoint

            // return closest checkpoint
            return trackCheckpoints[trackId][nCheckpoints - 1];
        } else if (trackCheckpoints[trackId][0].blockNumber > blockNumber) {
            // Next check earliest checkpoint

            // If specified block number is earlier than track's first checkpoint,
            // return null checkpoint
            return
                TrackCheckpoint({
                    blockNumber: 0,
                    totalStaked: 0,
                    totalStakeWeight: 0,
                    disabled: false,
                    numFinishedSales: 0
                });
        } else {
            // binary search on checkpoints
            uint32 lower = 0;
            uint32 upper = nCheckpoints - 1;
            while (upper > lower) {
                uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
                TrackCheckpoint memory tempCp =
                    trackCheckpoints[trackId][center];
                if (tempCp.blockNumber == blockNumber) {
                    return tempCp;
                } else if (tempCp.blockNumber < blockNumber) {
                    lower = center;
                } else {
                    upper = center - 1;
                }
            }

            // return closest checkpoint
            return trackCheckpoints[trackId][lower];
        }
    }

    // gets total stake weight within a track at a particular block number
    // logic extended from Compound COMP token `getPriorVotes` function
    function getTotalStakeWeight(uint24 trackId, uint80 blockNumber)
        external
        view
        returns (uint192)
    {
        require(blockNumber <= block.number, 'block # too high');

        // get closest track checkpoint
        TrackCheckpoint memory closestCheckpoint =
            getClosestTrackCheckpoint(trackId, blockNumber);

        // check if closest preceding checkpoint was null checkpoint
        if (closestCheckpoint.blockNumber == 0) {
            return 0;
        }

        // calculate blocks elapsed since checkpoint
        uint80 additionalBlocks = (blockNumber - closestCheckpoint.blockNumber);

        // get track info
        TrackInfo storage trackInfo = tracks[trackId];

        // calculate marginal accrued stake weight
        uint192 marginalAccruedStakeWeight =
            (uint192(additionalBlocks) *
                trackInfo.weightAccrualRate *
                closestCheckpoint.totalStaked) / 10**18;

        // return
        return closestCheckpoint.totalStakeWeight + marginalAccruedStakeWeight;
    }

    function addUserCheckpoint(
        uint24 trackId,
        uint104 amount,
        bool addElseSub
    ) internal {
        // get track info
        TrackInfo storage track = tracks[trackId];

        // get user checkpoint count
        uint32 nCheckpointsUser = userCheckpointCounts[trackId][_msgSender()];

        // get track checkpoint count
        uint32 nCheckpointsTrack = trackCheckpointCounts[trackId];

        // get latest track checkpoint
        TrackCheckpoint memory trackCp =
            trackCheckpoints[trackId][nCheckpointsTrack - 1];

        // if this is first checkpoint
        if (nCheckpointsUser == 0) {
            // check if amount exceeds maximum
            require(amount <= track.maxTotalStake, 'exceeds staking cap');

            // add a first checkpoint for this user on this track
            userCheckpoints[trackId][_msgSender()][0] = UserCheckpoint({
                blockNumber: uint80(block.number),
                staked: amount,
                stakeWeight: 0,
                numFinishedSales: trackCp.numFinishedSales
            });

            // increment user's checkpoint count
            userCheckpointCounts[trackId][_msgSender()] = nCheckpointsUser + 1;
        } else {
            // get previous checkpoint
            UserCheckpoint storage prev =
                userCheckpoints[trackId][_msgSender()][nCheckpointsUser - 1];

            // check if amount exceeds maximum
            require(
                (addElseSub ? prev.staked + amount : prev.staked - amount) <=
                    track.maxTotalStake,
                'exceeds staking cap'
            );

            // ensure block number downcast to uint80 is monotonically increasing (prevent overflow)
            // this should never happen within the lifetime of the universe, but if it does, this prevents a catastrophe
            require(
                prev.blockNumber <= uint80(block.number),
                'block # overflow'
            );

            // add a new checkpoint for user within this track
            // if no blocks elapsed, just update prev checkpoint (so checkpoints can be uniquely identified by block number)
            if (prev.blockNumber == uint80(block.number)) {
                prev.staked = addElseSub
                    ? prev.staked + amount
                    : prev.staked - amount;
                prev.numFinishedSales = trackCp.numFinishedSales;
            } else {
                userCheckpoints[trackId][_msgSender()][
                    nCheckpointsUser
                ] = UserCheckpoint({
                    blockNumber: uint80(block.number),
                    staked: addElseSub
                        ? prev.staked + amount
                        : prev.staked - amount,
                    stakeWeight: getUserStakeWeight(
                        trackId,
                        _msgSender(),
                        uint80(block.number)
                    ),
                    numFinishedSales: trackCp.numFinishedSales
                });

                // increment user's checkpoint count
                userCheckpointCounts[trackId][_msgSender()] =
                    nCheckpointsUser +
                    1;
            }
        }

        // emit
        emit AddUserCheckpoint(trackId, uint80(block.number));
    }

    function addTrackCheckpoint(
        uint24 trackId, // track number
        uint104 amount, // delta on staked amount
        bool addElseSub, // true = adding; false = subtracting
        bool disabled, // whether track is disabled; cannot undo a disable
        bool _bumpSaleCounter // whether to increase sale counter by 1
    ) internal {
        // get track info
        TrackInfo storage track = tracks[trackId];

        // get track checkpoint count
        uint32 nCheckpoints = trackCheckpointCounts[trackId];

        // if this is first checkpoint
        if (nCheckpoints == 0) {
            // add a first checkpoint for this track
            trackCheckpoints[trackId][0] = TrackCheckpoint({
                blockNumber: uint80(block.number),
                totalStaked: amount,
                totalStakeWeight: 0,
                disabled: disabled,
                numFinishedSales: _bumpSaleCounter ? 1 : 0
            });

            // increase new track's checkpoint count by 1
            trackCheckpointCounts[trackId]++;
        } else {
            // get previous checkpoint
            TrackCheckpoint storage prev =
                trackCheckpoints[trackId][nCheckpoints - 1];

            if (prev.disabled) {
                // if previous checkpoint was disabled, then disabled cannot be false going forward
                require(disabled, 'disabled: cannot undo disable');
                // if previous checkpoint was disabled, then cannot increase stake going forward
                require(!addElseSub, 'disabled: cannot add stake');
            }

            // ensure block number downcast to uint80 is monotonically increasing (prevent overflow)
            // this should never happen within the lifetime of the universe, but if it does, this prevents a catastrophe
            require(
                prev.blockNumber <= uint80(block.number),
                'block # overflow'
            );

            // calculate blocks elapsed since checkpoint
            uint80 additionalBlocks = (uint80(block.number) - prev.blockNumber);

            // calculate marginal accrued stake weight
            uint192 marginalAccruedStakeWeight =
                (uint192(additionalBlocks) *
                    track.weightAccrualRate *
                    prev.totalStaked) / 10**18;

            // calculate new stake weight
            uint192 newStakeWeight =
                prev.totalStakeWeight + marginalAccruedStakeWeight;

            // factor in passive and active rollover decay
            if (_bumpSaleCounter) {
                // get total active rollover amount
                uint192 activeRolloverWeight =
                    trackTotalActiveRollOvers[trackId][prev.numFinishedSales];

                newStakeWeight =
                    // decay active weight
                    (activeRolloverWeight * track.activeRolloverRate) /
                    ROLLOVER_FACTOR_DECIMALS +
                    // decay passive weight
                    ((newStakeWeight - activeRolloverWeight) *
                        track.passiveRolloverRate) /
                    ROLLOVER_FACTOR_DECIMALS;
            }

            // add a new checkpoint for this track
            // if no blocks elapsed, just update prev checkpoint (so checkpoints can be uniquely identified by block number)
            if (additionalBlocks == 0) {
                prev.totalStaked = addElseSub
                    ? prev.totalStaked + amount
                    : prev.totalStaked - amount;
                prev.totalStakeWeight = prev.disabled
                    ? (
                        prev.totalStakeWeight < newStakeWeight
                            ? prev.totalStakeWeight
                            : newStakeWeight
                    )
                    : newStakeWeight;
                prev.disabled = disabled;
                prev.numFinishedSales = _bumpSaleCounter
                    ? prev.numFinishedSales + 1
                    : prev.numFinishedSales;
            } else {
                trackCheckpoints[trackId][nCheckpoints] = TrackCheckpoint({
                    blockNumber: uint80(block.number),
                    totalStaked: addElseSub
                        ? prev.totalStaked + amount
                        : prev.totalStaked - amount,
                    totalStakeWeight: prev.disabled
                        ? (
                            prev.totalStakeWeight < newStakeWeight
                                ? prev.totalStakeWeight
                                : newStakeWeight
                        )
                        : newStakeWeight,
                    disabled: disabled,
                    numFinishedSales: _bumpSaleCounter
                        ? prev.numFinishedSales + 1
                        : prev.numFinishedSales
                });

                // increase new track's checkpoint count by 1
                trackCheckpointCounts[trackId]++;
            }

            // emit
            if (_bumpSaleCounter) {
                emit BumpSaleCounter(trackId, prev.numFinishedSales + 1);
            }

            if (!prev.disabled && disabled) {
                emit DisableTrack(trackId);
            }
        }

        // emit
        emit AddTrackCheckpoint(trackId, uint80(block.number));
    }

    // stake
    function stake(uint24 trackId, uint104 amount) external nonReentrant {
        // stake amount must be greater than 0
        require(amount > 0, 'amount is 0');

        // get track info
        TrackInfo storage track = tracks[trackId];

        // get latest track checkpoint
        TrackCheckpoint storage checkpoint =
            trackCheckpoints[trackId][trackCheckpointCounts[trackId] - 1];

        // cannot stake into disabled track
        require(!checkpoint.disabled, 'track is disabled');

        // transfer the specified amount of stake token from user to this contract
        track.stakeToken.safeTransferFrom(_msgSender(), address(this), amount);

        // add user checkpoint
        addUserCheckpoint(trackId, amount, true);

        // add track checkpoint
        addTrackCheckpoint(trackId, amount, true, false, false);

        // emit
        emit Stake(trackId, _msgSender(), amount);
    }

    // unstake
    function unstake(uint24 trackId, uint104 amount) external nonReentrant {
        // amount must be greater than 0
        require(amount > 0, 'amount is 0');

        // get track info
        TrackInfo storage track = tracks[trackId];

        // get number of user's checkpoints within this track
        uint32 userCheckpointCount =
            userCheckpointCounts[trackId][_msgSender()];

        // get user's latest checkpoint
        UserCheckpoint storage checkpoint =
            userCheckpoints[trackId][_msgSender()][userCheckpointCount - 1];

        // ensure amount <= user's current stake
        require(amount <= checkpoint.staked, 'amount > staked');

        // add user checkpoint
        addUserCheckpoint(trackId, amount, false);

        // add track checkpoint
        addTrackCheckpoint(trackId, amount, false, false, false);

        // transfer the specified amount of stake token from this contract to user
        track.stakeToken.safeTransfer(_msgSender(), amount);

        // emit
        emit Unstake(trackId, _msgSender(), amount);
    }
}

File 2 of 24 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 3 of 24 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 24 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 24 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 8 of 24 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 24 : IFAllocationSale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import './IFAllocationMaster.sol';

contract IFAllocationSale is Ownable, ReentrancyGuard {
    using SafeERC20 for ERC20;

    // CONSTANTS

    // number of decimals of sale price
    uint64 constant SALE_PRICE_DECIMALS = 10**18;

    // SALE STATE

    // whitelist merkle root; if not set, then sale is open to everyone that has allocation
    bytes32 whitelistRootHash;
    // amount of sale token to sell
    uint256 public saleAmount;
    // tracks amount purchased by each address
    mapping(address => uint256) public paymentReceived;
    // tracks whether user has already successfully withdrawn
    mapping(address => bool) public hasWithdrawn;

    // summary stats
    // counter of unique purchasers
    uint32 public purchaserCount;
    // counter of unique withdrawers (doesn't count "cash"ing)
    uint32 public withdrawerCount;
    // total payment received for sale
    uint256 public totalPaymentReceived;

    // SALE CONSTRUCTOR PARAMS

    // Sale price in units of paymentToken/saleToken with SALE_PRICE_DECIMALS decimals
    // For example, if selling ABC token for 10 IFUSD each, then
    // sale price will be 10 * SALE_PRICE_DECIMALS = 10_000_000_000_000_000_000
    // NOTE: sale price must accomodate any differences in decimals between sale and payment tokens. If payment token has A decimals and sale token has B decimals, then the price must be adjusted by multiplying by 10**(A-B).
    // If A was 18 but B was only 12, then the salePrice should be adjusted by multiplying by 1,000,000. If A was 12 and B was 18, then salePrice should be adjusted by dividing by 1,000,000.
    uint256 public salePrice;
    // funder
    address public funder;
    // optional casher (settable by owner)
    address public casher;
    // optional whitelist setter (settable by owner)
    address public whitelistSetter;
    // payment token
    ERC20 public paymentToken;
    // sale token
    ERC20 public saleToken;
    // allocation master
    IFAllocationMaster public allocationMaster;
    // track id
    uint24 public trackId;
    // allocation snapshot block
    uint80 public allocSnapshotBlock;
    // start block when sale is active (inclusive)
    uint256 public startBlock;
    // end block when sale is active (inclusive)
    uint256 public endBlock;
    // withdraw/cash delay in blocks (inclusive)
    uint24 public withdrawDelay;
    // optional min for payment token amount
    uint256 public minTotalPayment;
    // max for payment token amount
    uint256 public maxTotalPayment;
    // optional flat allocation override
    uint256 public saleTokenAllocationOverride;

    // EVENTS

    event Fund(address indexed sender, uint256 amount);
    event SetMinTotalPayment(uint256 indexed minTotalPayment);
    event SetSaleTokenAllocationOverride(
        uint256 indexed saleTokenAllocationOverride
    );
    event SetCasher(address indexed casher);
    event SetWhitelistSetter(address indexed whitelistSetter);
    event SetWhitelist(bytes32 indexed whitelistRootHash);
    event SetWithdrawDelay(uint24 indexed withdrawDelay);
    event Purchase(address indexed sender, uint256 indexed paymentAmount);
    event Withdraw(address indexed sender, uint256 indexed amount);
    event Cash(
        address indexed sender,
        uint256 paymentTokenBalance,
        uint256 saleTokenBalance
    );
    event EmergencyTokenRetrieve(address indexed sender, uint256 amount);

    // CONSTRUCTOR

    constructor(
        uint256 _salePrice,
        address _funder,
        ERC20 _paymentToken,
        ERC20 _saleToken,
        IFAllocationMaster _allocationMaster,
        uint24 _trackId,
        uint80 _allocSnapshotBlock,
        uint256 _startBlock,
        uint256 _endBlock,
        uint256 _maxTotalPayment
    ) {
        // funder cannot be 0
        require(_funder != address(0), '0x0 funder');
        // sale token cannot be 0
        require(address(_saleToken) != address(0), '0x0 saleToken');
        // start block must be in future
        require(block.number < _startBlock, 'start block too early');
        // end block must be after start block
        require(_startBlock < _endBlock, 'end block before start');

        salePrice = _salePrice; // can be 0 (for giveaway)
        funder = _funder;
        paymentToken = _paymentToken; // can be 0 (for giveaway)
        saleToken = _saleToken;
        allocationMaster = _allocationMaster; // can be 0 (with allocation override)
        trackId = _trackId; // can be 0 (with allocation override)
        allocSnapshotBlock = _allocSnapshotBlock; // can be 0 (with allocation override)
        startBlock = _startBlock;
        endBlock = _endBlock;
        maxTotalPayment = _maxTotalPayment; // can be 0 (for giveaway)
    }

    // MODIFIERS

    // Throws if called by any account other than the funder.
    modifier onlyFunder() {
        require(_msgSender() == funder, 'caller not funder');
        _;
    }

    // Throws if called by any account other than the casher.
    modifier onlyCasherOrOwner() {
        require(
            _msgSender() == casher || _msgSender() == owner(),
            'caller not casher or owner'
        );
        _;
    }

    // Throws if called by any account other than the whitelist setter.
    modifier onlyWhitelistSetterOrOwner() {
        require(
            _msgSender() == whitelistSetter || _msgSender() == owner(),
            'caller not whitelist setter or owner'
        );
        _;
    }

    // FUNCTIONS

    // Function for funding sale with sale token (called by project team)
    function fund(uint256 amount) external onlyFunder {
        // sale must not have started
        require(block.number < startBlock, 'sale already started');

        // transfer specified amount from funder to this contract
        saleToken.safeTransferFrom(_msgSender(), address(this), amount);

        // increase tracked sale amount
        saleAmount += amount;

        // emit
        emit Fund(_msgSender(), amount);
    }

    // Function for owner to set an optional, minTotalPayment
    function setMinTotalPayment(uint256 _minTotalPayment) external onlyOwner {
        // sale must not have started
        require(block.number < startBlock, 'sale already started');

        minTotalPayment = _minTotalPayment;

        // emit
        emit SetMinTotalPayment(_minTotalPayment);
    }

    // Function for owner to set an optional, flat allocation override
    function setSaleTokenAllocationOverride(
        uint256 _saleTokenAllocationOverride
    ) external onlyOwner {
        // sale must not have started
        require(block.number < startBlock, 'sale already started');

        saleTokenAllocationOverride = _saleTokenAllocationOverride;

        // emit
        emit SetSaleTokenAllocationOverride(_saleTokenAllocationOverride);
    }

    // Function for owner to set an optional, separate casher
    function setCasher(address _casher) external onlyOwner {
        // sale must not have started
        require(block.number < startBlock, 'sale already started');

        casher = _casher;

        // emit
        emit SetCasher(_casher);
    }

    // Function for owner to set an optional, separate whitelist setter
    function setWhitelistSetter(address _whitelistSetter) external onlyOwner {
        // sale must not have started
        require(block.number < startBlock, 'sale already started');

        whitelistSetter = _whitelistSetter;

        // emit
        emit SetWhitelistSetter(_whitelistSetter);
    }

    // Function for owner or whitelist setter to set a whitelist; if not set, then everyone allowed
    function setWhitelist(bytes32 _whitelistRootHash)
        external
        onlyWhitelistSetterOrOwner
    {
        whitelistRootHash = _whitelistRootHash;

        // emit
        emit SetWhitelist(_whitelistRootHash);
    }

    // Function for owner to set a withdraw delay
    function setWithdrawDelay(uint24 _withdrawDelay) external onlyOwner {
        withdrawDelay = _withdrawDelay;

        // emit
        emit SetWithdrawDelay(_withdrawDelay);
    }

    // Returns true if user is on whitelist, otherwise false
    function checkWhitelist(address user, bytes32[] calldata merkleProof)
        public
        view
        returns (bool)
    {
        // compute merkle leaf from input
        bytes32 leaf = keccak256(abi.encodePacked(user));

        // verify merkle proof
        return MerkleProof.verify(merkleProof, whitelistRootHash, leaf);
    }

    // Function to get the total allocation of a user in allocation sale
    // Allocation is calculated via the override if set, and otherwise
    // allocation is calculated by the allocation master data.
    function getTotalPaymentAllocation(address user)
        public
        view
        returns (uint256)
    {
        // get user allocation as ratio (multiply by 10**18, aka E18, for precision)
        uint256 userWeight = allocationMaster.getUserStakeWeight(
            trackId,
            user,
            allocSnapshotBlock
        );
        uint256 totalWeight = allocationMaster.getTotalStakeWeight(
            trackId,
            allocSnapshotBlock
        );

        // total weight must be greater than 0
        require(totalWeight > 0, 'total weight is 0');

        // determine TOTAL allocation (in payment token)
        uint256 paymentTokenAllocation;

        // different calculation for whether override is set
        if (saleTokenAllocationOverride == 0) {
            // calculate allocation (times 10**18)
            uint256 allocationE18 = (userWeight * 10**18) / totalWeight;

            // calculate max amount of obtainable sale token
            uint256 saleTokenAllocationE18 = (saleAmount * allocationE18);

            // calculate equivalent value in payment token
            paymentTokenAllocation =
                (saleTokenAllocationE18 * salePrice) /
                SALE_PRICE_DECIMALS /
                10**18;
        } else {
            // override payment token allocation
            paymentTokenAllocation =
                (salePrice * saleTokenAllocationOverride) /
                SALE_PRICE_DECIMALS;
        }

        return paymentTokenAllocation;
    }

    // Function to get the MAX REMAINING amount of allocation for a user (in terms of payment token)
    // it is whichever is smaller:
    //      1. user's payment allocation, which is determined by
    //          a. the allocation master
    //          b. the allocation override
    //      2. maxTotalPayment
    function getMaxPayment(address user) public view returns (uint256) {
        // get the maximum total payment for a user
        uint256 max = getTotalPaymentAllocation(user);
        if (maxTotalPayment < max) {
            max = maxTotalPayment;
        }

        // calculate and return remaining
        return max - paymentReceived[user];
    }

    // Internal function for making purchase in allocation sale
    // Used by external functions `purchase` and `whitelistedPurchase`
    function _purchase(uint256 paymentAmount) internal nonReentrant {
        // sale must be active
        require(startBlock <= block.number, 'sale has not begun');
        require(block.number <= endBlock, 'sale over');

        // sale price must not be 0, which is a giveaway sale
        require(salePrice != 0, 'cannot purchase - giveaway sale');

        // amount must be greater than minTotalPayment
        // by default, minTotalPayment is 0 unless otherwise set
        require(paymentAmount > minTotalPayment, 'amount below min');

        // get max payment of user
        uint256 remaining = getMaxPayment(_msgSender());

        // payment must not exceed remaining
        require(paymentAmount <= remaining, 'exceeds max payment');

        // transfer specified amount from user to this contract
        paymentToken.safeTransferFrom(
            address(_msgSender()),
            address(this),
            paymentAmount
        );

        // if user is paying for the first time to this contract, increase counter
        if (paymentReceived[_msgSender()] == 0) purchaserCount += 1;

        // increase payment received amount
        paymentReceived[_msgSender()] += paymentAmount;

        // increase total payment received amount
        totalPaymentReceived += paymentAmount;

        // emit
        emit Purchase(_msgSender(), paymentAmount);
    }

    // purchase function when there is no whitelist
    function purchase(uint256 paymentAmount) external {
        // there must not be a whitelist set (sales that use whitelist must be used with whitelistedPurchase)
        require(whitelistRootHash == 0, 'use whitelistedPurchase');

        _purchase(paymentAmount);
    }

    // purchase function when there is a whitelist
    function whitelistedPurchase(
        uint256 paymentAmount,
        bytes32[] calldata merkleProof
    ) external {
        // require that user is whitelisted by checking proof
        require(checkWhitelist(_msgSender(), merkleProof), 'proof invalid');

        _purchase(paymentAmount);
    }

    // Function for withdrawing purchased sale token after sale end
    function withdraw() external nonReentrant {
        // if there is a whitelist, an un-whitelisted user will
        // not have any sale tokens to withdraw
        // so we do not check whitelist here

        // must be past end block plus withdraw delay
        require(endBlock + withdrawDelay < block.number, 'cannot withdraw yet');
        // prevent repeat withdraw
        require(hasWithdrawn[_msgSender()] == false, 'already withdrawn');
        // must not be a zero price sale
        require(salePrice != 0, 'use withdrawGiveaway');

        // get payment received
        uint256 payment = paymentReceived[_msgSender()];

        // calculate amount of sale token owed to buyer
        uint256 saleTokenOwed = (payment * SALE_PRICE_DECIMALS) / salePrice;

        // set withdrawn to true
        hasWithdrawn[_msgSender()] = true;

        // increment withdrawer count
        withdrawerCount += 1;

        // transfer owed sale token to buyer
        saleToken.safeTransfer(_msgSender(), saleTokenOwed);

        // emit
        emit Withdraw(_msgSender(), saleTokenOwed);
    }

    // Function to withdraw (redeem) tokens from a zero cost "giveaway" sale
    function withdrawGiveaway(bytes32[] calldata merkleProof)
        external
        nonReentrant
    {
        // must be past end block plus withdraw delay
        require(endBlock + withdrawDelay < block.number, 'cannot withdraw yet');
        // prevent repeat withdraw
        require(hasWithdrawn[_msgSender()] == false, 'already withdrawn');
        // must be a zero price sale
        require(salePrice == 0, 'not a giveaway');
        // if there is whitelist, require that user is whitelisted by checking proof
        require(
            whitelistRootHash == 0 || checkWhitelist(_msgSender(), merkleProof),
            'proof invalid'
        );

        // each participant in the zero cost "giveaway" gets a flat amount of sale token, as set by the override
        uint256 saleTokenOwed = saleTokenAllocationOverride;

        // set withdrawn to true
        hasWithdrawn[_msgSender()] = true;

        // increment withdrawer count
        withdrawerCount += 1;

        // transfer giveaway sale token to participant
        saleToken.safeTransfer(_msgSender(), saleTokenOwed);

        // emit
        emit Withdraw(_msgSender(), saleTokenOwed);
    }

    // Function for funder to cash in payment token and unsold sale token
    function cash() external onlyCasherOrOwner {
        // must be past end block plus withdraw delay
        require(endBlock + withdrawDelay < block.number, 'cannot withdraw yet');

        // get amount of payment token received
        uint256 paymentTokenBal = paymentToken.balanceOf(address(this));

        // transfer all
        paymentToken.safeTransfer(address(_msgSender()), paymentTokenBal);

        // get amount of unsold sale token
        uint256 saleTokenBal = saleToken.balanceOf(address(this));

        // transfer all
        saleToken.safeTransfer(address(_msgSender()), saleTokenBal);

        // emit
        emit Cash(_msgSender(), paymentTokenBal, saleTokenBal);
    }

    // retrieve tokens erroneously sent in to this address
    function emergencyTokenRetrieve(address token) external onlyOwner {
        // cannot be payment or sale tokens
        require(token != address(paymentToken));
        require(token != address(saleToken));

        uint256 tokenBalance = ERC20(token).balanceOf(address(this));

        // transfer all
        ERC20(token).safeTransfer(_msgSender(), tokenBalance);

        // emit
        emit EmergencyTokenRetrieve(_msgSender(), tokenBalance);
    }
}

File 11 of 24 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 12 of 24 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 24 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 16 of 24 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}

File 17 of 24 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 18 of 24 : ERC20PresetMinterPauser.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../extensions/ERC20Burnable.sol";
import "../extensions/ERC20Pausable.sol";
import "../../../access/AccessControlEnumerable.sol";
import "../../../utils/Context.sol";

/**
 * @dev {ERC20} token, including:
 *
 *  - ability for holders to burn (destroy) their tokens
 *  - a minter role that allows for token minting (creation)
 *  - a pauser role that allows to stop all token transfers
 *
 * This contract uses {AccessControl} to lock permissioned functions using the
 * different roles - head to its documentation for details.
 *
 * The account that deploys the contract will be granted the minter and pauser
 * roles, as well as the default admin role, which will let it grant both minter
 * and pauser roles to other accounts.
 */
contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the
     * account that deploys the contract.
     *
     * See {ERC20-constructor}.
     */
    constructor(string memory name, string memory symbol) ERC20(name, symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Creates `amount` new tokens for `to`.
     *
     * See {ERC20-_mint}.
     *
     * Requirements:
     *
     * - the caller must have the `MINTER_ROLE`.
     */
    function mint(address to, uint256 amount) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint");
        _mint(to, amount);
    }

    /**
     * @dev Pauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_pause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function pause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause");
        _pause();
    }

    /**
     * @dev Unpauses all token transfers.
     *
     * See {ERC20Pausable} and {Pausable-_unpause}.
     *
     * Requirements:
     *
     * - the caller must have the `PAUSER_ROLE`.
     */
    function unpause() public virtual {
        require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause");
        _unpause();
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override(ERC20, ERC20Pausable) {
        super._beforeTokenTransfer(from, to, amount);
    }
}

File 19 of 24 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 20 of 24 : ERC20Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC20 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC20Pausable is ERC20, Pausable {
    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        require(!paused(), "ERC20Pausable: token transfer while paused");
    }
}

File 21 of 24 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 22 of 24 : TestToken.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol';
import 'hardhat/console.sol';

contract TestToken is ERC20PresetMinterPauser {
    constructor(
        string memory _name,
        string memory _symbol,
        uint256 startingSupply
    ) ERC20PresetMinterPauser(_name, _symbol) {
        _mint(msg.sender, startingSupply);
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}

File 24 of 24 : TestMerkleVerifier.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import 'hardhat/console.sol';

// from the file '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'

contract MerkleVerifier {
    constructor() {}

    // merkleProof, whitelistRootHash, leaf
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) public pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(
                    abi.encodePacked(computedHash, proofElement)
                );
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(
                    abi.encodePacked(proofElement, computedHash)
                );
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"trackId","type":"uint24"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"ActiveRollOver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"AddTrack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"trackId","type":"uint24"},{"indexed":false,"internalType":"uint80","name":"blockNumber","type":"uint80"}],"name":"AddTrackCheckpoint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"trackId","type":"uint24"},{"indexed":false,"internalType":"uint80","name":"blockNumber","type":"uint80"}],"name":"AddUserCheckpoint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"trackId","type":"uint24"},{"indexed":false,"internalType":"uint32","name":"newCount","type":"uint32"}],"name":"BumpSaleCounter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"trackId","type":"uint24"}],"name":"DisableTrack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyTokenRetrieve","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"trackId","type":"uint24"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint104","name":"amount","type":"uint104"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint24","name":"trackId","type":"uint24"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint104","name":"amount","type":"uint104"}],"name":"Unstake","type":"event"},{"inputs":[{"internalType":"uint24","name":"trackId","type":"uint24"}],"name":"activeRollOver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"contract ERC20","name":"stakeToken","type":"address"},{"internalType":"uint24","name":"_weightAccrualRate","type":"uint24"},{"internalType":"uint64","name":"_passiveRolloverRate","type":"uint64"},{"internalType":"uint64","name":"_activeRolloverRate","type":"uint64"},{"internalType":"uint104","name":"_maxTotalStake","type":"uint104"}],"name":"addTrack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"trackId","type":"uint24"}],"name":"bumpSaleCounter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"trackId","type":"uint24"}],"name":"disableTrack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"trackId","type":"uint24"},{"internalType":"uint80","name":"blockNumber","type":"uint80"}],"name":"getTotalStakeWeight","outputs":[{"internalType":"uint192","name":"","type":"uint192"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"trackId","type":"uint24"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint80","name":"blockNumber","type":"uint80"}],"name":"getUserStakeWeight","outputs":[{"internalType":"uint192","name":"","type":"uint192"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"trackId","type":"uint24"},{"internalType":"uint104","name":"amount","type":"uint104"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint24","name":"","type":"uint24"}],"name":"trackActiveRollOvers","outputs":[{"internalType":"uint192","name":"","type":"uint192"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"","type":"uint24"}],"name":"trackCheckpointCounts","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"trackCheckpoints","outputs":[{"internalType":"uint80","name":"blockNumber","type":"uint80"},{"internalType":"uint104","name":"totalStaked","type":"uint104"},{"internalType":"uint192","name":"totalStakeWeight","type":"uint192"},{"internalType":"uint24","name":"numFinishedSales","type":"uint24"},{"internalType":"bool","name":"disabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trackCount","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"name":"trackFinishedSaleBlocks","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"name":"trackTotalActiveRollOvers","outputs":[{"internalType":"uint192","name":"","type":"uint192"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tracks","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"contract ERC20","name":"stakeToken","type":"address"},{"internalType":"uint24","name":"weightAccrualRate","type":"uint24"},{"internalType":"uint64","name":"passiveRolloverRate","type":"uint64"},{"internalType":"uint64","name":"activeRolloverRate","type":"uint64"},{"internalType":"uint104","name":"maxTotalStake","type":"uint104"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"trackId","type":"uint24"},{"internalType":"uint104","name":"amount","type":"uint104"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"address","name":"","type":"address"}],"name":"userCheckpointCounts","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"userCheckpoints","outputs":[{"internalType":"uint80","name":"blockNumber","type":"uint80"},{"internalType":"uint104","name":"staked","type":"uint104"},{"internalType":"uint192","name":"stakeWeight","type":"uint192"},{"internalType":"uint24","name":"numFinishedSales","type":"uint24"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506200001d3362000027565b6001805562000077565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61379180620000876000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806383e64d94116100ad578063b33f517a11610071578063b33f517a146103c3578063cbc50245146103f7578063ec331ee81461040a578063f2fde38b1461041d578063fe9d47471461043057600080fd5b806383e64d941461031f57806385e94209146103595780638da5cb5b1461036c578063a2e3458614610387578063ab35678c146103ac57600080fd5b8063715018a6116100f4578063715018a61461027f578063770c5c121461028757806377dcc2fa1461029a5780637db85246146102e65780637e14a790146102f957600080fd5b80630a29ffd91461013157806325cab7f91461014657806326df01e4146101fb5780632f385bcb1461020e5780635301f3ad14610254575b600080fd5b61014461013f3660046131ff565b6104ee565b005b6101b1610154366004613293565b6009602090815260009384526040808520825292845282842090528252902080546001909101546001600160501b03821691600160501b90046001600160681b0316906001600160c01b03811690600160c01b900462ffffff1684565b604080516001600160501b0390951685526001600160681b0390931660208501526001600160c01b039091169183019190915262ffffff1660608201526080015b60405180910390f35b610144610209366004613140565b610534565b61023f61021c366004613219565b600860209081526000928352604080842090915290825290205463ffffffff1681565b60405163ffffffff90911681526020016101f2565b61026761026236600461338d565b610768565b6040516001600160c01b0390911681526020016101f2565b6101446108a0565b610144610295366004613309565b6108d6565b6102ce6102a836600461333b565b60026020908152600092835260408084209091529082529020546001600160501b031681565b6040516001600160501b0390911681526020016101f2565b6102676102f43660046132ce565b610ad0565b61023f6103073660046131ff565b60066020526000908152604090205463ffffffff1681565b61026761032d36600461324f565b60036020908152600093845260408085208252928452828420905282529020546001600160c01b031681565b6101446103673660046131ff565b611027565b6000546040516001600160a01b0390911681526020016101f2565b61039a6103953660046133b6565b611263565b6040516101f296959493929190613439565b60055460405162ffffff90911681526020016101f2565b6102676103d136600461333b565b60046020908152600092835260408084209091529082529020546001600160c01b031681565b610144610405366004613309565b611365565b6101446104183660046131ff565b61159f565b61014461042b366004613104565b611670565b6104a061043e366004613364565b6007602090815260009283526040808420909152908252902080546001909101546001600160501b03821691600160501b90046001600160681b0316906001600160c01b03811690600160c01b810462ffffff1690600160d81b900460ff1685565b604080516001600160501b0390961686526001600160681b0390941660208601526001600160c01b039092169284019290925262ffffff90911660608301521515608082015260a0016101f2565b6000546001600160a01b031633146105215760405162461bcd60e51b815260040161051890613497565b60405180910390fd5b6105318160008060016000611708565b50565b6000546001600160a01b0316331461055e5760405162461bcd60e51b815260040161051890613497565b62ffffff84166105a45760405162461bcd60e51b815260206004820152601160248201527006163637275616c2072617465206973203607c1b6044820152606401610518565b6040805160e06020601f8a01819004028201810190925260c081018881526005928291908b908b908190850183828082843760009201829052509385525050506001600160a01b03891660208084019190915262ffffff8916604084015267ffffffffffffffff8089166060850152871660808401526001600160681b03861660a0909301929092528354600181018555938152819020825180519394600302909101926106559284920190612fee565b506020820151600180830180546040860151606087015167ffffffffffffffff908116600160b81b0267ffffffffffffffff60b81b1962ffffff909316600160a01b026001600160b81b03199094166001600160a01b0390971696909617929092171693909317905560808401516002909301805460a0909501516001600160681b0316600160401b026001600160a81b03199095169390921692909217929092179091556005546107159161070a91613626565b600080600080611708565b846001600160a01b0316878760405161072f929190613416565b604051908190038120907f1e50e9757b681e9008a480e25488ddd40b47b5295b68ae5f6d9c7204377e5b3b90600090a350505050505050565b600043826001600160501b031611156107b65760405162461bcd60e51b815260206004820152601060248201526f0c4d8dec6d6404640e8dede40d0d2ced60831b6044820152606401610518565b60006107c28484611f70565b80519091506001600160501b03166107de57600091505061089a565b80516000906107ed908561365a565b9050600060058662ffffff168154811061081757634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020190506000670de0b6b3a764000084602001516001600160681b03168360010160149054906101000a900462ffffff1662ffffff16856001600160501b031661086d9190613593565b6108779190613593565b6108819190613556565b905080846040015161089391906134f7565b9450505050505b92915050565b6000546001600160a01b031633146108ca5760405162461bcd60e51b815260040161051890613497565b6108d460006122ba565b565b600260015414156109295760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610518565b60026001556001600160681b0381166109725760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e7420697320360ac1b6044820152606401610518565b600060058362ffffff168154811061099a57634e487b7160e01b600052603260045260246000fd5b6000918252602080832062ffffff87168452600782526040808520600690935284205460039093020193509082906109da9060019063ffffffff1661363d565b63ffffffff16815260208101919091526040016000206001810154909150600160d81b900460ff1615610a435760405162461bcd60e51b81526020600482015260116024820152701d1c9858dac81a5cc8191a5cd8589b1959607a1b6044820152606401610518565b610a663360018401546001600160a01b031690306001600160681b03871661230a565b610a728484600161237b565b610a8184846001600080611708565b6040516001600160681b0384168152339062ffffff8616907fc7de557a4862000809abc99c50fd0b30c35beb37a010dae4335462b336827fd39060200160405180910390a35050600180555050565b600043826001600160501b03161115610b1e5760405162461bcd60e51b815260206004820152601060248201526f0c4d8dec6d6404640e8dede40d0d2ced60831b6044820152606401610518565b62ffffff841660009081526008602090815260408083206001600160a01b038716845290915290205463ffffffff1680610b5c576000915050611020565b6000610b69868686612a03565b80519091506001600160501b0316610b8657600092505050611020565b6000610b928786611f70565b9050600082606001518260600151610baa919061360a565b9050600060058962ffffff1681548110610bd457634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016040518060c0016040529081600082018054610bfd906136a6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c29906136a6565b8015610c765780601f10610c4b57610100808354040283529160200191610c76565b820191906000526020600020905b815481529060010190602001808311610c5957829003601f168201915b505050918352505060018201546001600160a01b038116602083015262ffffff600160a01b82048116604084015267ffffffffffffffff600160b81b9092048216606084015260029093015490811660808301526001600160681b03600160401b9091041660a0909101529091506000908316610d65578451600090610cfc908a61365a565b9050670de0b6b3a764000086602001516001600160681b0316846040015162ffffff16836001600160501b0316610d339190613593565b610d3d9190613593565b610d479190613556565b8660400151610d5691906134f7565b97506110209650505050505050565b506040840151845160005b8462ffffff168162ffffff161015610f6f5762ffffff8c16600090815260026020526040812060608901518491908390610dab908690613519565b62ffffff168152602081019190915260400160002054610dd491906001600160501b031661365a565b9050670de0b6b3a764000088602001516001600160681b0316866040015162ffffff16836001600160501b0316610e0b9190613593565b610e159190613593565b610e1f9190613556565b610e2990856134f7565b93506000600360008f62ffffff1662ffffff16815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000206000848b60600151610e7f9190613519565b62ffffff16815260208101919091526040016000205460608701516001600160c01b039091169150670de0b6b3a76400009067ffffffffffffffff16610ec583886135ea565b610ecf9190613593565b610ed99190613556565b6080870151670de0b6b3a764000090610efc9067ffffffffffffffff1684613593565b610f069190613556565b610f1091906134f7565b62ffffff8f16600090815260026020526040812060608c015192975091610f38908690613519565b62ffffff1681526020810191909152604001600020546001600160501b03169350829150610f679050816136e1565b915050610d70565b5062ffffff8b16600090815260026020526040812060608701518290610f979060019061360a565b62ffffff168152602081019190915260400160002054610fc0906001600160501b03168b61365a565b9050670de0b6b3a764000087602001516001600160681b0316856040015162ffffff16836001600160501b0316610ff79190613593565b6110019190613593565b61100b9190613556565b61101590846134f7565b985050505050505050505b9392505050565b6110338160008061237b565b62ffffff811660008181526009602090815260408083203380855290835281842094845260088352818420908452909152812054909190829061107e9060019063ffffffff1661363d565b63ffffffff16815260208082019290925260409081016000908120825160808101845281546001600160501b0381168252600160501b90046001600160681b0316818601526001909101546001600160c01b0380821683860152600160c01b90910462ffffff9081166060840181905290881680855260038752858520338652875285852082865287528585205490855260048752858520828652909652938320805492965093948116939291611137918591166135ea565b92506101000a8154816001600160c01b0302191690836001600160c01b031602179055508160400151600360008562ffffff1662ffffff16815260200190815260200160002060006111863390565b6001600160a01b031681526020808201929092526040908101600090812062ffffff86811680845291855283832080546001600160c01b0319166001600160c01b039788161790558784015190891683526004855283832091835293529081208054929390926111f8918591166134f7565b92506101000a8154816001600160c01b0302191690836001600160c01b031602179055506112233390565b6001600160a01b03168362ffffff167f2ad99c2ef3fb067831abd0a8620f3b2ddda1e7be89576a286edea06e048cf3dc60405160405180910390a3505050565b6005818154811061127357600080fd5b9060005260206000209060030201600091509050806000018054611296906136a6565b80601f01602080910402602001604051908101604052809291908181526020018280546112c2906136a6565b801561130f5780601f106112e45761010080835404028352916020019161130f565b820191906000526020600020905b8154815290600101906020018083116112f257829003601f168201915b505050600184015460029094015492936001600160a01b0381169362ffffff600160a01b830416935067ffffffffffffffff600160b81b90920482169250908116906001600160681b03600160401b9091041686565b600260015414156113b85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610518565b60026001556001600160681b0381166114015760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e7420697320360ac1b6044820152606401610518565b600060058362ffffff168154811061142957634e487b7160e01b600052603260045260246000fd5b6000918252602080832062ffffff871684526008909152604083206003909202019250816114543390565b6001600160a01b03168152602080820192909252604090810160009081205462ffffff881682526009845282822033835290935290812063ffffffff909216925090816114a260018561363d565b63ffffffff168152602081019190915260400160002080549091506001600160681b03600160501b909104811690851611156115125760405162461bcd60e51b815260206004820152600f60248201526e185b5bdd5b9d080f881cdd185ad959608a1b6044820152606401610518565b61151e8585600061237b565b61152d85856000806000611708565b61154f3360018501546001600160a01b0316906001600160681b038716612d6f565b6040516001600160681b0385168152339062ffffff8716907fbd1cd43f77539b6f0bc66ed76923ac8eb8cb34f9d6ff0c16b6b8b1d43cf94f089060200160405180910390a3505060018055505050565b6000546001600160a01b031633146115c95760405162461bcd60e51b815260040161051890613497565b62ffffff81166000908152600760209081526040808320600690925282205482906115fc9060019063ffffffff1661363d565b63ffffffff1681526020808201929092526040908101600090812060019081015462ffffff878116845260028652848420600160c01b909204168084529452918120805469ffffffffffffffffffff1916436001600160501b031617905591925061166c91849181908190611708565b5050565b6000546001600160a01b0316331461169a5760405162461bcd60e51b815260040161051890613497565b6001600160a01b0381166116ff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610518565b610531816122ba565b600060058662ffffff168154811061173057634e487b7160e01b600052603260045260246000fd5b6000918252602080832062ffffff8a16845260069091526040909220546003909102909101915063ffffffff16806118a1576040518060a00160405280436001600160501b03168152602001876001600160681b0316815260200160006001600160c01b03168152602001846117a75760006117aa565b60015b60ff16815285151560209182015262ffffff8981166000818152600784526040808220828052855280822086518154888801516001600160681b0316600160501b026001600160b81b03199091166001600160501b0390921691909117178155868201516001909101805460608901516080909901511515600160d81b0260ff60d81b1999909716600160c01b026001600160d81b03199091166001600160c01b0390931692909217919091179690961693909317909455835260069091528120805463ffffffff169161187d83613704565b91906101000a81548163ffffffff021916908363ffffffff16021790555050611f23565b62ffffff87166000908152600760205260408120816118c160018561363d565b63ffffffff16815260208101919091526040016000206001810154909150600160d81b900460ff1615611989578461193b5760405162461bcd60e51b815260206004820152601d60248201527f64697361626c65643a2063616e6e6f7420756e646f2064697361626c650000006044820152606401610518565b85156119895760405162461bcd60e51b815260206004820152601a60248201527f64697361626c65643a2063616e6e6f7420616464207374616b650000000000006044820152606401610518565b80546001600160501b03438116911611156119d95760405162461bcd60e51b815260206004820152601060248201526f626c6f636b2023206f766572666c6f7760801b6044820152606401610518565b80546000906119f1906001600160501b03164361365a565b82546001860154919250600091670de0b6b3a764000091600160501b90046001600160681b031690611a3890600160a01b900462ffffff166001600160501b038616613593565b611a429190613593565b611a4c9190613556565b6001840154909150600090611a6b9083906001600160c01b03166134f7565b90508615611b275762ffffff808c1660009081526004602090815260408083206001808a0154600160c01b90049095168452909152902054908701546001600160c01b0390911690670de0b6b3a764000090600160b81b900467ffffffffffffffff16611ad883856135ea565b611ae29190613593565b611aec9190613556565b6002880154670de0b6b3a764000090611b0f9067ffffffffffffffff1684613593565b611b199190613556565b611b2391906134f7565b9150505b6001600160501b038316611c765788611b5c578354611b57908b90600160501b90046001600160681b03166135c2565b611b79565b8354611b79908b90600160501b90046001600160681b03166134cc565b84546001600160681b0391909116600160501b02600160501b600160b81b0319909116178455600184015460ff600160d81b90910416611bb95780611be5565b60018401546001600160c01b03808316911610611bd65780611be5565b60018401546001600160c01b03165b6001850180546001600160c01b0392909216600163ff00000160c01b031990921691909117600160d81b8a15150217905586611c31576001840154600160c01b900462ffffff16611c51565b8360010160189054906101000a900462ffffff166001611c519190613519565b8460010160186101000a81548162ffffff021916908362ffffff160217905550611e6e565b6040518060a00160405280436001600160501b031681526020018a611cb7578554611cb2908d90600160501b90046001600160681b03166135c2565b611cd4565b8554611cd4908d90600160501b90046001600160681b03166134cc565b6001600160681b0316815260200185600101601b9054906101000a900460ff16611cfe5782611d2a565b60018601546001600160c01b03808516911610611d1b5782611d2a565b60018601546001600160c01b03165b6001600160c01b0316815260200188611d53576001860154600160c01b900462ffffff16611d73565b8560010160189054906101000a900462ffffff166001611d739190613519565b62ffffff90811682528a15156020928301528d8116600081815260078452604080822063ffffffff808d16845290865281832087518154898901516001600160681b0316600160501b026001600160b81b03199091166001600160501b0390921691909117178155878301516001909101805460608a01516080909a01511515600160d81b0260ff60d81b199a909816600160c01b026001600160d81b03199091166001600160c01b0390931692909217919091179790971694909417909555908152600690925291812080549092169190611e4e83613704565b91906101000a81548163ffffffff021916908363ffffffff160217905550505b8615611ecf5760018085015462ffffff808e16927fcd058f3f37dac45b4ea419da18091e06ea38756c9996298ca517599007e777c492611eb792600160c01b9091041690613519565b60405162ffffff909116815260200160405180910390a25b6001840154600160d81b900460ff16158015611ee85750875b15611f1e5760405162ffffff8c16907fcb27b9acd764424cf6cdaa672c3a35243af86cbf4ecb53ad48a9212610e5781b90600090a25b505050505b6040516001600160501b034316815262ffffff8816907fbae21b9ce1f492a8affaa603b56fe9c921dceb290c3a3c11815c26b6e6e67fc3906020015b60405180910390a250505050505050565b6040805160a08101825260008082526020808301829052828401829052606083018290526080830182905262ffffff8616825260068152838220546007909152928120919263ffffffff16916001600160501b03851691611fd260018561363d565b63ffffffff1681526020810191909152604001600020546001600160501b03161161209d5762ffffff841660009081526007602052604081209061201760018461363d565b63ffffffff1681526020808201929092526040908101600020815160a08101835281546001600160501b0381168252600160501b90046001600160681b031693810193909352600101546001600160c01b03811691830191909152600160c01b810462ffffff166060830152600160d81b900460ff1615156080820152915061089a9050565b62ffffff841660009081526007602090815260408083208380529091529020546001600160501b03808516911611156121025750506040805160a08101825260008082526020820181905291810182905260608101829052608081019190915261089a565b60008061211060018461363d565b90505b8163ffffffff168163ffffffff1611156122235760006002612135848461363d565b61213f919061357c565b612149908361363d565b62ffffff888116600090815260076020908152604080832063ffffffff86168452825291829020825160a08101845281546001600160501b03808216808452600160501b9092046001600160681b0316948301949094526001909201546001600160c01b03811694820194909452600160c01b84049094166060850152600160d81b90920460ff16151560808401529293509091881614156121f157945061089a9350505050565b80516001600160501b038089169116101561220e5781935061221c565b61221960018361363d565b92505b5050612113565b5062ffffff858116600090815260076020908152604080832063ffffffff95909516835293815290839020835160a08101855281546001600160501b0381168252600160501b90046001600160681b031692810192909252600101546001600160c01b03811693820193909352600160c01b83049091166060820152600160d81b90910460ff1615156080820152915061089a9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526123759085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612da4565b50505050565b600060058462ffffff16815481106123a357634e487b7160e01b600052603260045260246000fd5b6000918252602080832062ffffff881684526008909152604083206003909202019250816123ce3390565b6001600160a01b03168152602080820192909252604090810160009081205462ffffff891682526006845282822054600790945291812063ffffffff928316945092909116918161242060018561363d565b63ffffffff90811682526020808301939093526040918201600020825160a08101845281546001600160501b0381168252600160501b90046001600160681b031694810194909452600101546001600160c01b03811692840192909252600160c01b820462ffffff166060840152600160d81b90910460ff161515608083015290915083166126525760028401546001600160681b03600160401b909104811690871611156125075760405162461bcd60e51b8152602060048201526013602482015272065786365656473207374616b696e672063617606c1b6044820152606401610518565b6040518060800160405280436001600160501b03168152602001876001600160681b0316815260200160006001600160c01b03168152602001826060015162ffffff16815250600960008962ffffff1662ffffff16815260200190815260200160002060006125733390565b6001600160a01b0316815260208082019290925260409081016000908120818052835281902083518154938501516001600160681b0316600160501b026001600160b81b03199094166001600160501b03909116179290921782558201516001918201805460609094015162ffffff16600160c01b026001600160d81b03199094166001600160c01b039092169190911792909217909155612616908490613537565b62ffffff881660009081526008602090815260408083203384529091529020805463ffffffff191663ffffffff929092169190911790556129c3565b62ffffff8716600090815260096020908152604080832033845290915281208161267d60018761363d565b63ffffffff16815260208101919091526040016000206002860154909150600160401b90046001600160681b0316866126d25781546126cd908990600160501b90046001600160681b03166135c2565b6126ef565b81546126ef908990600160501b90046001600160681b03166134cc565b6001600160681b0316111561273c5760405162461bcd60e51b8152602060048201526013602482015272065786365656473207374616b696e672063617606c1b6044820152606401610518565b80546001600160501b034381169116111561278c5760405162461bcd60e51b815260206004820152601060248201526f626c6f636b2023206f766572666c6f7760801b6044820152606401610518565b8054436001600160501b039081169116141561283a57856127c95780546127c4908890600160501b90046001600160681b03166135c2565b6127e6565b80546127e6908890600160501b90046001600160681b03166134cc565b81546001600160681b0391909116600160501b02600160501b600160b81b0319909116178155606082015160018201805462ffffff909216600160c01b0262ffffff60c01b199092169190911790556129c1565b6040518060800160405280436001600160501b031681526020018761287b578254612876908a90600160501b90046001600160681b03166135c2565b612898565b8254612898908a90600160501b90046001600160681b03166134cc565b6001600160681b031681526020016128b18a3343610ad0565b6001600160c01b03168152606084015162ffffff9081166020928301528a16600090815260099091526040812090336001600160a01b031681526020808201929092526040908101600090812063ffffffff89168252835281902083518154938501516001600160681b0316600160501b026001600160b81b03199094166001600160501b03909116179290921782558201516001918201805460609094015162ffffff16600160c01b026001600160d81b03199094166001600160c01b039092169190911792909217909155612989908590613537565b62ffffff891660009081526008602090815260408083203384529091529020805463ffffffff191663ffffffff929092169190911790555b505b6040516001600160501b034316815262ffffff8816907f452e6119384e406a318edbd63efae9316d44abef87b7b0d4a557e935b0d7f2e590602001611f5f565b60408051608081018252600080825260208083018290528284018290526060830182905262ffffff8716808352600882528483206001600160a01b0388168085529083528584205491845260098352858420908452909152928120919263ffffffff16916001600160501b03851691612a7d60018561363d565b63ffffffff1681526020810191909152604001600020546001600160501b031611612b4b5762ffffff851660009081526009602090815260408083206001600160a01b0388168452909152812090612ad660018461363d565b63ffffffff1681526020808201929092526040908101600020815160808101835281546001600160501b0381168252600160501b90046001600160681b031693810193909352600101546001600160c01b03811691830191909152600160c01b900462ffffff16606082015291506110209050565b62ffffff851660009081526009602090815260408083206001600160a01b038816845282528083208380529091529020546001600160501b0380851691161115612bba575050604080516080810182526000808252602082018190529181018290526060810191909152611020565b600080612bc860018461363d565b90505b8163ffffffff168163ffffffff161115612cda5760006002612bed848461363d565b612bf7919061357c565b612c01908361363d565b62ffffff89811660009081526009602090815260408083206001600160a01b038d168452825280832063ffffffff86168452825291829020825160808101845281546001600160501b03808216808452600160501b9092046001600160681b0316948301949094526001909201546001600160c01b03811694820194909452600160c01b90930490931660608301529293509188161415612ca85794506110209350505050565b80516001600160501b0380891691161015612cc557819350612cd3565b612cd060018361363d565b92505b5050612bcb565b5062ffffff80871660009081526009602090815260408083206001600160a01b038a168452825280832063ffffffff909516835293815290839020835160808101855281546001600160501b03811682526001600160681b03600160501b9091041692810192909252600101546001600160c01b03811693820193909352600160c01b90920416606082015291506110209050565b6040516001600160a01b038316602482015260448101829052612d9f90849063a9059cbb60e01b9060640161233e565b505050565b6000612df9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612e769092919063ffffffff16565b805190915015612d9f5780806020019051810190612e179190613120565b612d9f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610518565b6060612e858484600085612e8d565b949350505050565b606082471015612eee5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610518565b843b612f3c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610518565b600080866001600160a01b03168587604051612f5891906133fa565b60006040518083038185875af1925050503d8060008114612f95576040519150601f19603f3d011682016040523d82523d6000602084013e612f9a565b606091505b5091509150612faa828286612fb5565b979650505050505050565b60608315612fc4575081611020565b825115612fd45782518084602001fd5b8160405162461bcd60e51b81526004016105189190613426565b828054612ffa906136a6565b90600052602060002090601f01602090048101928261301c5760008555613062565b82601f1061303557805160ff1916838001178555613062565b82800160010185558215613062579182015b82811115613062578251825591602001919060010190613047565b5061306e929150613072565b5090565b5b8082111561306e5760008155600101613073565b803561309281613746565b919050565b80356001600160681b038116811461309257600080fd5b803562ffffff8116811461309257600080fd5b803563ffffffff8116811461309257600080fd5b803567ffffffffffffffff8116811461309257600080fd5b80356001600160501b038116811461309257600080fd5b600060208284031215613115578081fd5b813561102081613746565b600060208284031215613131578081fd5b81518015158114611020578182fd5b600080600080600080600060c0888a03121561315a578283fd5b873567ffffffffffffffff80821115613171578485fd5b818a0191508a601f830112613184578485fd5b813581811115613192578586fd5b8b60208285010111156131a3578586fd5b6020928301995097506131b9918a019050613087565b94506131c7604089016130ae565b93506131d5606089016130d5565b92506131e3608089016130d5565b91506131f160a08901613097565b905092959891949750929550565b600060208284031215613210578081fd5b611020826130ae565b6000806040838503121561322b578182fd5b613234836130ae565b9150602083013561324481613746565b809150509250929050565b600080600060608486031215613263578283fd5b61326c846130ae565b9250602084013561327c81613746565b915061328a604085016130ae565b90509250925092565b6000806000606084860312156132a7578283fd5b6132b0846130ae565b925060208401356132c081613746565b915061328a604085016130c1565b6000806000606084860312156132e2578283fd5b6132eb846130ae565b925060208401356132fb81613746565b915061328a604085016130ed565b6000806040838503121561331b578182fd5b613324836130ae565b915061333260208401613097565b90509250929050565b6000806040838503121561334d578182fd5b613356836130ae565b9150613332602084016130ae565b60008060408385031215613376578182fd5b61337f836130ae565b9150613332602084016130c1565b6000806040838503121561339f578182fd5b6133a8836130ae565b9150613332602084016130ed565b6000602082840312156133c7578081fd5b5035919050565b600081518084526133e681602086016020860161367a565b601f01601f19169290920160200192915050565b6000825161340c81846020870161367a565b9190910192915050565b8183823760009101908152919050565b60208152600061102060208301846133ce565b60c08152600061344c60c08301896133ce565b6001600160a01b039790971660208301525062ffffff94909416604085015267ffffffffffffffff9283166060850152911660808301526001600160681b031660a090910152919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160681b038083168185168083038211156134ee576134ee61371a565b01949350505050565b60006001600160c01b038281168482168083038211156134ee576134ee61371a565b600062ffffff8083168185168083038211156134ee576134ee61371a565b600063ffffffff8083168185168083038211156134ee576134ee61371a565b60006001600160c01b038381168061357057613570613730565b92169190910492915050565b600063ffffffff8084168061357057613570613730565b60006001600160c01b03828116848216811515828404821116156135b9576135b961371a565b02949350505050565b60006001600160681b03838116908316818110156135e2576135e261371a565b039392505050565b60006001600160c01b03838116908316818110156135e2576135e261371a565b600062ffffff838116908316818110156135e2576135e261371a565b6000828210156136385761363861371a565b500390565b600063ffffffff838116908316818110156135e2576135e261371a565b60006001600160501b03838116908316818110156135e2576135e261371a565b60005b8381101561369557818101518382015260200161367d565b838111156123755750506000910152565b600181811c908216806136ba57607f821691505b602082108114156136db57634e487b7160e01b600052602260045260246000fd5b50919050565b600062ffffff808316818114156136fa576136fa61371a565b6001019392505050565b600063ffffffff808316818114156136fa576136fa5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6001600160a01b038116811461053157600080fdfea26469706673582212209d297c8bf2b86784eb03cb69e3fee3fca484e6fc19c4053da99739abfb67f17164736f6c63430008040033

Deployed ByteCode Sourcemap

575:27594:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6832:248;;;;;;:::i;:::-;;:::i;:::-;;3960:103;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3960:103:19;;;-1:-1:-1;;;3960:103:19;;-1:-1:-1;;;;;3960:103:19;;-1:-1:-1;;;;;3960:103:19;;;-1:-1:-1;;;3960:103:19;;;;;;;;;;-1:-1:-1;;;;;15208:35:24;;;15190:54;;-1:-1:-1;;;;;15280:41:24;;;15275:2;15260:18;;15253:69;-1:-1:-1;;;;;15358:32:24;;;15338:18;;;15331:60;;;;15439:8;15427:21;15422:2;15407:18;;15400:49;15177:3;15162:19;3960:103:19;;;;;;;;4931:1220;;;;;;:::i;:::-;;:::i;3787:73::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14731:10:24;14719:23;;;14701:42;;14689:2;14674:18;3787:73:19;14656:93:24;16403:1060:19;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;14123:32:24;;;14105:51;;14093:2;14078:18;16403:1060:19;14060:102:24;1605:92:2;;;:::i;26152:922:19:-;;;;;;:::i;:::-;;:::i;2671:75::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2671:75:19;;;;;;-1:-1:-1;;;;;14916:35:24;;;14898:54;;14886:2;14871:18;2671:75:19;14853:105:24;10097:4295:19;;;;;;:::i;:::-;;:::i;3435:54::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2915:101;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2915:101:19;;;7117:952;;;;;;:::i;:::-;;:::i;973:85:2:-;1019:7;1045:6;973:85;;-1:-1:-1;;;;;1045:6:2;;;6642:51:24;;6630:2;6615:18;973:85:2;6597:102:24;3328:25:19;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;:::i;4803:98::-;4880:6;:13;4803:98;;14341:8:24;14329:21;;;14311:40;;14299:2;14284:18;4803:98:19;14266:91:24;3182:86:19;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3182:86:19;;;27095:1072;;;;;;:::i;:::-;;:::i;6202:600::-;;;;;;:::i;:::-;;:::i;1846:189:2:-;;;;;;:::i;:::-;;:::i;3577:85:19:-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3577:85:19;;;-1:-1:-1;;;3577:85:19;;-1:-1:-1;;;;;3577:85:19;;-1:-1:-1;;;;;3577:85:19;;;-1:-1:-1;;;3577:85:19;;;;;-1:-1:-1;;;3577:85:19;;;;;;;;;;-1:-1:-1;;;;;15727:35:24;;;15709:54;;-1:-1:-1;;;;;15799:41:24;;;15794:2;15779:18;;15772:69;-1:-1:-1;;;;;15877:32:24;;;15857:18;;;15850:60;;;;15958:8;15946:21;;;15941:2;15926:18;;15919:49;16012:14;16005:22;15999:3;15984:19;;15977:51;15696:3;15681:19;3577:85:19;15663:371:24;6832:248:19;1019:7:2;1045:6;-1:-1:-1;;;;;1045:6:2;665:10:13;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;;;;;;;;;6959:50:19::1;6978:7;6987:1;6990:5:::0;6997:4:::1;7003:5;6959:18;:50::i;:::-;6832:248:::0;:::o;4931:1220::-;1019:7:2;1045:6;-1:-1:-1;;;;;1045:6:2;665:10:13;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;5188:23:19::1;::::0;::::1;5180:53;;;::::0;-1:-1:-1;;;5180:53:19;;11416:2:24;5180:53:19::1;::::0;::::1;11398:21:24::0;11455:2;11435:18;;;11428:30;-1:-1:-1;;;11474:18:24;;;11467:47;11531:18;;5180:53:19::1;11388:167:24::0;5180:53:19::1;5290:449;::::0;;;::::1;;::::0;::::1;::::0;;::::1;;::::0;;;;;;;::::1;::::0;::::1;::::0;;;5265:6:::1;::::0;5290:449;;;5324:4;;;;;;5290:449;;5324:4;;;;5290:449;::::1;;::::0;::::1;::::0;;;-1:-1:-1;5290:449:19;;;-1:-1:-1;;;;;;;;5290:449:19;::::1;;::::0;;::::1;::::0;;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;;-1:-1:-1;;;;;5290:449:19;::::1;::::0;;;;;;;;5265:484;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;::::1;;::::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;5265:484:19::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;-1:-1:-1::0;;;5265:484:19::1;-1:-1:-1::0;;;;5265:484:19::1;::::0;;::::1;-1:-1:-1::0;;;5265:484:19::1;-1:-1:-1::0;;;;;;5265:484:19;;;-1:-1:-1;;;;;5265:484:19;;::::1;::::0;;;;;;;::::1;;::::0;;;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;;;;;5265:484:19::1;-1:-1:-1::0;;;5265:484:19::1;-1:-1:-1::0;;;;;;5265:484:19;;;;;;::::1;::::0;;;;;;;::::1;::::0;;;5837:6:::1;:13:::0;5798:279:::1;::::0;5837:17:::1;::::0;::::1;:::i;:::-;5885:1;5927:5:::0;5976::::1;6025::::0;5798:18:::1;:279::i;:::-;6132:10;-1:-1:-1::0;;;;;6109:35:19::1;6118:4;;6109:35;;;;;;;:::i;:::-;;::::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;4931:1220:::0;;;;;;;:::o;16403:1060::-;16515:7;16561:12;16546:11;-1:-1:-1;;;;;16546:27:19;;;16538:56;;;;-1:-1:-1;;;16538:56:19;;10710:2:24;16538:56:19;;;10692:21:24;10749:2;10729:18;;;10722:30;-1:-1:-1;;;10768:18:24;;;10761:46;10824:18;;16538:56:19;10682:166:24;16538:56:19;16645:40;16700:47;16726:7;16735:11;16700:25;:47::i;:::-;16831:29;;16645:102;;-1:-1:-1;;;;;;16831:34:19;16827:73;;16888:1;16881:8;;;;;16827:73;17004:29;;16963:23;;16990:43;;:11;:43;:::i;:::-;16963:71;;17071:27;17101:6;17108:7;17101:15;;;;;;;;-1:-1:-1;;;17101:15:19;;;;;;;;;;;;;;;;;;;17071:45;;17178:34;17351:6;17318:17;:29;;;-1:-1:-1;;;;;17228:119:19;17272:9;:27;;;;;;;;;;;;17228:71;;17236:16;-1:-1:-1;;;;;17228:25:19;:71;;;;:::i;:::-;:119;;;;:::i;:::-;17227:130;;;;:::i;:::-;17178:179;;17430:26;17393:17;:34;;;:63;;;;:::i;:::-;17386:70;;;;;;16403:1060;;;;;:::o;1605:92:2:-;1019:7;1045:6;-1:-1:-1;;;;;1045:6:2;665:10:13;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;1669:21:::1;1687:1;1669:9;:21::i;:::-;1605:92::o:0;26152:922:19:-;1680:1:4;2259:7;;:19;;2251:63;;;;-1:-1:-1;;;2251:63:4;;12889:2:24;2251:63:4;;;12871:21:24;12928:2;12908:18;;;12901:30;12967:33;12947:18;;;12940:61;13018:18;;2251:63:4;12861:181:24;2251:63:4;1680:1;2389:7;:18;-1:-1:-1;;;;;26286:10:19;::::1;26278:34;;;::::0;-1:-1:-1;;;26278:34:19;;13604:2:24;26278:34:19::1;::::0;::::1;13586:21:24::0;13643:2;13623:18;;;13616:30;-1:-1:-1;;;13662:18:24;;;13655:41;13713:18;;26278:34:19::1;13576:161:24::0;26278:34:19::1;26349:23;26375:6;26382:7;26375:15;;;;;;;;-1:-1:-1::0;;;26375:15:19::1;;;;;;;;;;::::0;;;::::1;::::0;;;26489:25:::1;::::0;::::1;::::0;;:16:::1;:25:::0;;;;;;26515:21:::1;:30:::0;;;;;;26375:15:::1;::::0;;::::1;;::::0;-1:-1:-1;26489:25:19;26375:15;;26515:34:::1;::::0;26548:1:::1;::::0;26515:30:::1;;:34;:::i;:::-;26489:61;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;26489:61:19;26614:19:::1;::::0;::::1;::::0;26489:61;;-1:-1:-1;;;;26614:19:19;::::1;;;26613:20;26605:50;;;::::0;-1:-1:-1;;;26605:50:19;;10364:2:24;26605:50:19::1;::::0;::::1;10346:21:24::0;10403:2;10383:18;;;10376:30;-1:-1:-1;;;10422:18:24;;;10415:47;10479:18;;26605:50:19::1;10336:167:24::0;26605:50:19::1;26749:70;665:10:13::0;26749:16:19::1;::::0;::::1;::::0;-1:-1:-1;;;;;26749:16:19::1;::::0;26805:4:::1;-1:-1:-1::0;;;;;26749:70:19;::::1;:33;:70::i;:::-;26861:40;26879:7;26888:6;26896:4;26861:17;:40::i;:::-;26944:55;26963:7;26972:6;26980:4;26986:5;26993::::0;26944:18:::1;:55::i;:::-;27031:36;::::0;-1:-1:-1;;;;;13906:41:24;;13888:60;;665:10:13;;27031:36:19::1;::::0;::::1;::::0;::::1;::::0;13876:2:24;13861:18;27031:36:19::1;;;;;;;-1:-1:-1::0;;1637:1:4;2562:22;;-1:-1:-1;;26152:922:19:o;10097:4295::-;10226:7;10268:12;10253:11;-1:-1:-1;;;;;10253:27:19;;;10245:56;;;;-1:-1:-1;;;10245:56:19;;10710:2:24;10245:56:19;;;10692:21:24;10749:2;10729:18;;;10722:30;-1:-1:-1;;;10768:18:24;;;10761:46;10824:18;;10245:56:19;10682:166:24;10245:56:19;10382:29;;;10356:23;10382:29;;;:20;:29;;;;;;;;-1:-1:-1;;;;;10382:35:19;;;;;;;;;;;;10431:21;10427:60;;10475:1;10468:8;;;;;10427:60;10546:43;10604:52;10629:7;10638:4;10644:11;10604:24;:52::i;:::-;10740:33;;10546:110;;-1:-1:-1;;;;;;10740:38:19;10736:77;;10801:1;10794:8;;;;;;10736:77;10873:45;10933:47;10959:7;10968:11;10933:25;:47::i;:::-;10873:107;;11099:28;11200:21;:38;;;11142:22;:39;;;:96;;;;:::i;:::-;11099:139;;11275:22;11300:6;11307:7;11300:15;;;;;;;;-1:-1:-1;;;11300:15:19;;;;;;;;;;;;;;;;;;;11275:40;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11275:40:19;;;-1:-1:-1;;11275:40:19;;;;-1:-1:-1;;;;;11275:40:19;;;;;;;-1:-1:-1;;;11275:40:19;;;;;;;;;-1:-1:-1;;;11275:40:19;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;11275:40:19;;;;;;;;;;;-1:-1:-1;11275:40:19;;11411:26;;11407:2932;;11564:33;;11511:20;;11550:47;;:11;:47;:::i;:::-;11511:86;;11834:6;11786:21;:28;;;-1:-1:-1;;;;;11695:119:19;11740:5;:23;;;11695:68;;11703:13;-1:-1:-1;;;;;11695:22:19;:68;;;;:::i;:::-;:119;;;;:::i;:::-;11694:146;;;;:::i;:::-;11642:21;:33;;;:198;;;;:::i;:::-;11612:228;-1:-1:-1;11855:18:19;;-1:-1:-1;;;;;;;11855:18:19;11407:2932;-1:-1:-1;12000:33:19;;;;12109;;12090:16;12279:1557;12302:21;12298:25;;:1;:25;;;12279:1557;;;12465:32;;;12422:20;12465:32;;;:23;:32;;;;;12523:38;;;;12590:9;;12465:32;12422:20;;12523:42;;12564:1;;12523:42;:::i;:::-;12465:122;;;;;;;;;;;;;-1:-1:-1;12465:122:19;;:134;;;-1:-1:-1;;;;;12465:122:19;:134;:::i;:::-;12422:177;;12877:6;12825:21;:28;;;-1:-1:-1;;;;;12726:127:19;12775:5;:23;;;12726:72;;12734:13;-1:-1:-1;;;;;12726:22:19;:72;;;;:::i;:::-;:127;;;;:::i;:::-;12725:158;;;;:::i;:::-;12691:192;;:11;:192;:::i;:::-;12657:226;;12990:28;13041:20;:29;13062:7;13041:29;;;;;;;;;;;;;;;:35;13071:4;-1:-1:-1;;;;;13041:35:19;-1:-1:-1;;;;;13041:35:19;;;;;;;;;;;;:125;13143:1;13102:21;:38;;;:42;;;;:::i;:::-;13041:125;;;;;;;;;;;;;-1:-1:-1;13041:125:19;;13552:25;;;;-1:-1:-1;;;;;13041:125:19;;;;-1:-1:-1;776:6:19;;13488:137;13489:88;13490:34;13041:125;13490:11;:34;:::i;:::-;13489:88;;;;:::i;:::-;13488:137;;;;:::i;:::-;13349:24;;;;776:6;;13326:47;;13325:96;13326:47;:20;:47;:::i;:::-;13325:96;;;;:::i;:::-;:300;;;;:::i;:::-;13707:32;;;;;;;:23;:32;;;;;13761:38;;;;13248:377;;-1:-1:-1;13707:32:19;13761:42;;13802:1;;13761:42;:::i;:::-;13707:114;;;;;;;;;;;;;-1:-1:-1;13707:114:19;;-1:-1:-1;;;;;13707:114:19;;-1:-1:-1;12325:3:19;;-1:-1:-1;12325:3:19;;-1:-1:-1;12325:3:19;;:::i;:::-;;;;12279:1557;;;-1:-1:-1;14011:32:19;;;13935:23;14011:32;;;:23;:32;;;;;14069:39;;;;13935:23;;14069:43;;14111:1;;14069:43;:::i;:::-;14011:123;;;;;;;;;;;;;-1:-1:-1;14011:123:19;;13977:157;;-1:-1:-1;;;;;14011:123:19;13977:11;:157;:::i;:::-;13935:199;;14322:6;14274:21;:28;;;-1:-1:-1;;;;;14180:122:19;14228:5;:23;;;14180:71;;14188:16;-1:-1:-1;;;;;14180:25:19;:71;;;;:::i;:::-;:122;;;;:::i;:::-;14179:149;;;;:::i;:::-;14148:180;;;;:::i;:::-;;-1:-1:-1;;;;;;;;;10097:4295:19;;;;;;:::o;7117:952::-;7211:36;7229:7;7238:1;7241:5;7211:17;:36::i;:::-;7336:24;;;7293:28;7336:24;;;:15;:24;;;;;;;;665:10:13;7336:38:19;;;;;;;;;7392:29;;;:20;:29;;;;;:43;;;;;;;;;7293:28;;7336:38;7293:28;;7392:47;;7438:1;;7392:43;;:47;:::i;:::-;7336:117;;;;;;;;;;;;;;;;-1:-1:-1;7336:117:19;;;7293:160;;;;;;;;;-1:-1:-1;;;;;7293:160:19;;;;-1:-1:-1;;;7293:160:19;;-1:-1:-1;;;;;7293:160:19;;;;;;;;;;-1:-1:-1;;;;;7293:160:19;;;;;;;-1:-1:-1;;;7293:160:19;;;;;;;;;;;;;7652:51;;;;;;:20;:51;;;;;665:10:13;7652:65:19;;;;;;;:76;;;;;;;;;7603:34;;;:25;:34;;;;;:45;;;;;;;;;:125;;7293:160;;-1:-1:-1;7293:160:19;;7652:76;;;7603:45;-1:-1:-1;7603:125:19;;7652:76;;7603:125;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;7603:125:19;;;;;-1:-1:-1;;;;;7603:125:19;;;;;;7835:6;:31;;;7778:20;:29;7799:7;7778:29;;;;;;;;;;;;;;;:43;7808:12;665:10:13;;586:96;7808:12:19;-1:-1:-1;;;;;7778:43:19;;;;;;;;;;;;;;;-1:-1:-1;7778:43:19;;;:54;;;;;;;;;;;;;:88;;-1:-1:-1;;;;;;7778:88:19;-1:-1:-1;;;;;7778:88:19;;;;;;7975:18;;;;7926:34;;;;;:25;:34;;;;;:45;;;;;;;;:67;;7975:18;;7926:45;;:67;;7975:18;;7926:67;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;7926:67:19;;;;;-1:-1:-1;;;;;7926:67:19;;;;;;8049:12;665:10:13;;586:96;8049:12:19;-1:-1:-1;;;;;8025:37:19;8040:7;8025:37;;;;;;;;;;;;7117:952;;;:::o;3328:25::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;3328:25:19;;;;;;;;;;;-1:-1:-1;;;;;3328:25:19;;;;-1:-1:-1;;;3328:25:19;;;;-1:-1:-1;3328:25:19;-1:-1:-1;;;3328:25:19;;;;;;-1:-1:-1;3328:25:19;;;;-1:-1:-1;;;;;;;;3328:25:19;;;;;:::o;27095:1072::-;1680:1:4;2259:7;;:19;;2251:63;;;;-1:-1:-1;;;2251:63:4;;12889:2:24;2251:63:4;;;12871:21:24;12928:2;12908:18;;;12901:30;12967:33;12947:18;;;12940:61;13018:18;;2251:63:4;12861:181:24;2251:63:4;1680:1;2389:7;:18;-1:-1:-1;;;;;27225:10:19;::::1;27217:34;;;::::0;-1:-1:-1;;;27217:34:19;;13604:2:24;27217:34:19::1;::::0;::::1;13586:21:24::0;13643:2;13623:18;;;13616:30;-1:-1:-1;;;13662:18:24;;;13655:41;13713:18;;27217:34:19::1;13576:161:24::0;27217:34:19::1;27288:23;27314:6;27321:7;27314:15;;;;;;;;-1:-1:-1::0;;;27314:15:19::1;;;;;;;;;;::::0;;;::::1;::::0;;;27443:29:::1;::::0;::::1;::::0;;:20:::1;:29:::0;;;;;;27314:15:::1;::::0;;::::1;;::::0;-1:-1:-1;27314:15:19;27473:12:::1;665:10:13::0;;586:96;27473:12:19::1;-1:-1:-1::0;;;;;27443:43:19::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;27443:43:19;;;;27585:24:::1;::::0;::::1;::::0;;:15:::1;:24:::0;;;;;665:10:13;27585:38:19;;;;;;;;27443:43:::1;::::0;;::::1;::::0;-1:-1:-1;;;27624:23:19::1;27646:1;27443:43:::0;27624:23:::1;:::i;:::-;27585:63;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;27585:63:19;27726:17;;27585:63;;-1:-1:-1;;;;;;;;;27726:17:19;;::::1;::::0;::::1;27716:27:::0;;::::1;;;27708:55;;;::::0;-1:-1:-1;;;27708:55:19;;8513:2:24;27708:55:19::1;::::0;::::1;8495:21:24::0;8552:2;8532:18;;;8525:30;-1:-1:-1;;;8571:18:24;;;8564:45;8626:18;;27708:55:19::1;8485:165:24::0;27708:55:19::1;27805:41;27823:7;27832:6;27840:5;27805:17;:41::i;:::-;27889:56;27908:7;27917:6;27925:5;27932::::0;27939::::1;27889:18;:56::i;:::-;28039:51;665:10:13::0;28039:16:19::1;::::0;::::1;::::0;-1:-1:-1;;;;;28039:16:19::1;::::0;-1:-1:-1;;;;;28039:51:19;::::1;:29;:51::i;:::-;28122:38;::::0;-1:-1:-1;;;;;13906:41:24;;13888:60;;665:10:13;;28122:38:19::1;::::0;::::1;::::0;::::1;::::0;13876:2:24;13861:18;28122:38:19::1;;;;;;;-1:-1:-1::0;;1637:1:4;2562:22;;-1:-1:-1;;;27095:1072:19:o;6202:600::-;1019:7:2;1045:6;-1:-1:-1;;;;;1045:6:2;665:10:13;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;6362:25:19::1;::::0;::::1;6326:21;6362:25:::0;;;:16:::1;:25;::::0;;;;;;;6388:21:::1;:30:::0;;;;;;6326:21;;6388:34:::1;::::0;6421:1:::1;::::0;6388:30:::1;;:34;:::i;:::-;6362:61;;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;6362:61:19;;;:95:::1;::::0;;::::1;::::0;::::1;6534:32:::0;;::::1;::::0;;:23:::1;:32:::0;;;;;-1:-1:-1;;;6362:95:19;;::::1;;6534:48:::0;;;;;;;;:71;;-1:-1:-1;;6534:71:19::1;6592:12;-1:-1:-1::0;;;;;6534:71:19::1;;::::0;;6362:95;;-1:-1:-1;6678:50:19::1;::::0;6534:32;;-1:-1:-1;;;;6678:18:19::1;:50::i;:::-;1255:1:2;6202:600:19::0;:::o;1846:189:2:-;1019:7;1045:6;-1:-1:-1;;;;;1045:6:2;665:10:13;1185:23:2;1177:68;;;;-1:-1:-1;;;1177:68:2;;;;;;;:::i;:::-;-1:-1:-1;;;;;1934:22:2;::::1;1926:73;;;::::0;-1:-1:-1;;;1926:73:2;;8857:2:24;1926:73:2::1;::::0;::::1;8839:21:24::0;8896:2;8876:18;;;8869:30;8935:34;8915:18;;;8908:62;-1:-1:-1;;;8986:18:24;;;8979:36;9032:19;;1926:73:2::1;8829:228:24::0;1926:73:2::1;2009:19;2019:8;2009:9;:19::i;20808:5325:19:-:0;21187:23;21213:6;21220:7;21213:15;;;;;;;;-1:-1:-1;;;21213:15:19;;;;;;;;;;;;;;;;;21299:30;;;;;:21;:30;;;;;;;;21213:15;;;;;;;;-1:-1:-1;21299:30:19;;21383:17;21379:4667;;21500:252;;;;;;;;21554:12;-1:-1:-1;;;;;21500:252:19;;;;;21598:6;-1:-1:-1;;;;;21500:252:19;;;;;21640:1;-1:-1:-1;;;;;21500:252:19;;;;;21713:16;:24;;21736:1;21713:24;;;21732:1;21713:24;21500:252;;;;;;;;;;;;;21469:25;;;-1:-1:-1;21469:25:19;;;:16;:25;;;;;;:28;;;;;;;;:283;;;;;;;;-1:-1:-1;;;;;21469:283:19;-1:-1:-1;;;21469:283:19;-1:-1:-1;;;;;;21469:283:19;;;-1:-1:-1;;;;;21469:283:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;21469:283:19;-1:-1:-1;;;;21469:283:19;;;;-1:-1:-1;;;21469:283:19;-1:-1:-1;;;;;;21469:283:19;;;-1:-1:-1;;;;;21469:283:19;;;;;;;;;;;;;;;;;;;;;;21825:30;;:21;:30;;;;;:32;;21469:28;21825:32;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;21379:4667;;;21974:25;;;21927:28;21974:25;;;:16;:25;;;;;21927:28;22000:16;22015:1;22000:12;:16;:::i;:::-;21974:43;;;;;;;;;;;;;-1:-1:-1;21974:43:19;22036:13;;;;21974:43;;-1:-1:-1;;;;22036:13:19;;;;22032:367;;;22177:8;22169:50;;;;-1:-1:-1;;;22169:50:19;;11762:2:24;22169:50:19;;;11744:21:24;11801:2;11781:18;;;11774:30;11840:31;11820:18;;;11813:59;11889:18;;22169:50:19;11734:179:24;22169:50:19;22343:10;22342:11;22334:50;;;;-1:-1:-1;;;22334:50:19;;13249:2:24;22334:50:19;;;13231:21:24;13288:2;13268:18;;;13261:30;13327:28;13307:18;;;13300:56;13373:18;;22334:50:19;13221:176:24;22334:50:19;22660:16;;-1:-1:-1;;;;;22687:12:19;22660:40;;:16;;:40;;22635:115;;;;-1:-1:-1;;;22635:115:19;;9612:2:24;22635:115:19;;;9594:21:24;9651:2;9631:18;;;9624:30;-1:-1:-1;;;9670:18:24;;;9663:46;9726:18;;22635:115:19;9584:166:24;22635:115:19;22872:16;;22822:23;;22849:39;;-1:-1:-1;;;;;22872:16:19;22856:12;22849:39;:::i;:::-;23107:16;;23061:23;;;;22822:67;;-1:-1:-1;22959:34:19;;23127:6;;-1:-1:-1;;;23107:16:19;;-1:-1:-1;;;;;23107:16:19;;23013:71;;-1:-1:-1;;;23061:23:19;;;;-1:-1:-1;;;;;23013:25:19;;:71;:::i;:::-;:110;;;;:::i;:::-;23012:121;;;;:::i;:::-;23231:21;;;;22959:174;;-1:-1:-1;23190:22:19;;23231:50;;22959:174;;-1:-1:-1;;;;;23231:21:19;:50;:::i;:::-;23190:91;;23359:16;23355:617;;;23498:34;;;;23447:28;23498:34;;;:25;:34;;;;;;;;23533:21;;;;;-1:-1:-1;;;23533:21:19;;;;;23498:57;;;;;;;;23884:25;;;;-1:-1:-1;;;;;23498:57:19;;;;776:6;;-1:-1:-1;;;23884:25:19;;23817:140;23884:25;23819:37;23498:57;23819:14;:37;:::i;:::-;23818:91;;;;:::i;:::-;23817:140;;;;:::i;:::-;23678:24;;;;776:6;;23655:47;;23654:96;23678:24;23655:20;:47;:::i;:::-;23654:96;;;;:::i;:::-;:303;;;;:::i;:::-;23574:383;;23355:617;;-1:-1:-1;;;;;24166:21:19;;24162:1624;;24226:10;:106;;24307:16;;:25;;24326:6;;-1:-1:-1;;;24307:16:19;;-1:-1:-1;;;;;24307:16:19;:25;:::i;:::-;24226:106;;;24259:16;;:25;;24278:6;;-1:-1:-1;;;24259:16:19;;-1:-1:-1;;;;;24259:16:19;:25;:::i;:::-;24207:125;;-1:-1:-1;;;;;24207:125:19;;;;-1:-1:-1;;;24207:125:19;-1:-1:-1;;;;;;;;24207:125:19;;;;;;-1:-1:-1;24374:13:19;;;;-1:-1:-1;;;24374:13:19;;;;:256;;24616:14;24374:256;;;24436:21;;;;-1:-1:-1;;;;;24436:38:19;;;:21;;:38;:135;;24557:14;24436:135;;;24505:21;;;;-1:-1:-1;;;;;24505:21:19;24436:135;24350:21;;;:280;;-1:-1:-1;;;;;24350:280:19;;;;-1:-1:-1;;;;;;24648:24:19;;;;;;;-1:-1:-1;;;24648:24:19;;;;;;;24714:16;:108;;24801:21;;;;-1:-1:-1;;;24801:21:19;;;;24714:108;;;24753:4;:21;;;;;;;;;;;;24777:1;24753:25;;;;:::i;:::-;24690:4;:21;;;:132;;;;;;;;;;;;;;;;;;24162:1624;;;24903:755;;;;;;;;24961:12;-1:-1:-1;;;;;24903:755:19;;;;;25009:10;:114;;25098:16;;:25;;25117:6;;-1:-1:-1;;;25098:16:19;;-1:-1:-1;;;;;25098:16:19;:25;:::i;:::-;25009:114;;;25046:16;;:25;;25065:6;;-1:-1:-1;;;25046:16:19;;-1:-1:-1;;;;;25046:16:19;:25;:::i;:::-;-1:-1:-1;;;;;24903:755:19;;;;;25163:4;:13;;;;;;;;;;;;:280;;25429:14;25163:280;;;25233:21;;;;-1:-1:-1;;;;;25233:38:19;;;:21;;:38;:143;;25362:14;25233:143;;;25306:21;;;;-1:-1:-1;;;;;25306:21:19;25233:143;-1:-1:-1;;;;;24903:755:19;;;;;25523:16;:116;;25618:21;;;;-1:-1:-1;;;25618:21:19;;;;25523:116;;;25566:4;:21;;;;;;;;;;;;25590:1;25566:25;;;;:::i;:::-;24903:755;;;;;;;;;;;;;;24861:25;;;-1:-1:-1;24861:25:19;;;:16;:25;;;;;;:39;;;;;;;;;;;;:797;;;;;;;;-1:-1:-1;;;;;24861:797:19;-1:-1:-1;;;24861:797:19;-1:-1:-1;;;;;;24861:797:19;;;-1:-1:-1;;;;;24861:797:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;24861:797:19;-1:-1:-1;;;;24861:797:19;;;;-1:-1:-1;;;24861:797:19;-1:-1:-1;;;;;;24861:797:19;;;-1:-1:-1;;;;;24861:797:19;;;;;;;;;;;;;;;;;;;;;;25739:30;;;:21;:30;;;;;;:32;;;;;;:30;:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;24162:1624;25824:16;25820:111;;;25890:21;;;;;25865:51;;;;;;;25890:25;;-1:-1:-1;;;25890:21:19;;;;;:25;:::i;:::-;25865:51;;14341:8:24;14329:21;;;14311:40;;14299:2;14284:18;25865:51:19;;;;;;;25820:111;25950:13;;;;-1:-1:-1;;;25950:13:19;;;;25949:14;:26;;;;;25967:8;25949:26;25945:91;;;26000:21;;;;;;;;;;;25945:91;21379:4667;;;;;26077:49;;-1:-1:-1;;;;;26112:12:19;14916:35:24;14898:54;;26077:49:19;;;;;;14886:2:24;14871:18;26077:49:19;;;;;;;;20808:5325;;;;;;;:::o;14444:1806::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14672:30:19;;;;;:21;:30;;;;;;14730:16;:25;;;;;;-1:-1:-1;;14672:30:19;;;-1:-1:-1;;;;;14730:82:19;;;14756:16;14672:30;;14756:16;:::i;:::-;14730:43;;;;;;;;;;;;;-1:-1:-1;14730:43:19;:55;-1:-1:-1;;;;;14730:55:19;:82;14713:1531;;14936:25;;;;;;;:16;:25;;;;;;14962:16;14977:1;14962:12;:16;:::i;:::-;14936:43;;;;;;;;;;;;;;;;-1:-1:-1;14936:43:19;14929:50;;;;;;;;;-1:-1:-1;;;;;14929:50:19;;;;-1:-1:-1;;;14929:50:19;;-1:-1:-1;;;;;14929:50:19;;;;;;;;;;;-1:-1:-1;;;;;14929:50:19;;;;;;;;;-1:-1:-1;;;14929:50:19;;;;;;;;-1:-1:-1;;;14929:50:19;;;;;;;;;;;-1:-1:-1;14929:50:19;;-1:-1:-1;14929:50:19;14713:1531;15000:25;;;;;;;:16;:25;;;;;;;;:28;;;;;;;;:40;-1:-1:-1;;;;;15000:54:19;;;:40;;:54;14996:1248;;;-1:-1:-1;;15261:226:19;;;;;;;;-1:-1:-1;15261:226:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;15238:249;;14996:1248;15562:12;;15607:16;15622:1;15607:12;:16;:::i;:::-;15592:31;;15637:502;15652:5;15644:13;;:5;:13;;;15637:502;;;15677:13;15719:1;15702:13;15710:5;15702;:13;:::i;:::-;15701:19;;;;:::i;:::-;15693:27;;:5;:27;:::i;:::-;15817:25;;;;15765:29;15817:25;;;:16;:25;;;;;;;;:33;;;;;;;;;;;15765:85;;;;;;;;;-1:-1:-1;;;;;15765:85:19;;;;;;-1:-1:-1;;;15765:85:19;;;-1:-1:-1;;;;;15765:85:19;;;;;;;;;;;;;-1:-1:-1;;;;;15765:85:19;;;;;;;;;-1:-1:-1;;;15765:85:19;;;;;;;;;-1:-1:-1;;;15765:85:19;;;;;;;;;;;15817:33;;-1:-1:-1;15765:85:19;;15872:33;;;15868:257;;;15936:6;-1:-1:-1;15929:13:19;;-1:-1:-1;;;;15929:13:19;15868:257;15971:18;;-1:-1:-1;;;;;15971:32:19;;;;;;15967:158;;;16035:6;16027:14;;15967:158;;;16096:10;16105:1;16096:6;:10;:::i;:::-;16088:18;;15967:158;15637:502;;;;;-1:-1:-1;16201:25:19;;;;;;;;:16;:25;;;;;;;;:32;;;;;;;;;;;;;;16194:39;;;;;;;;;-1:-1:-1;;;;;16194:39:19;;;;-1:-1:-1;;;16194:39:19;;-1:-1:-1;;;;;16194:39:19;;;;;;;;;;;-1:-1:-1;;;;;16194:39:19;;;;;;;;;-1:-1:-1;;;16194:39:19;;;;;;;;;-1:-1:-1;;;16194:39:19;;;;;;;;;;;;-1:-1:-1;16194:39:19;;-1:-1:-1;16194:39:19;2041:169:2;2096:16;2115:6;;-1:-1:-1;;;;;2131:17:2;;;-1:-1:-1;;;;;;2131:17:2;;;;;;2163:40;;2115:6;;;;;;;2163:40;;2096:16;2163:40;2041:169;;:::o;845:241:11:-;1010:68;;-1:-1:-1;;;;;6962:15:24;;;1010:68:11;;;6944:34:24;7014:15;;6994:18;;;6987:43;7046:18;;;7039:34;;;983:96:11;;1003:5;;-1:-1:-1;;;1033:27:11;6879:18:24;;1010:68:11;;;;-1:-1:-1;;1010:68:11;;;;;;;;;;;;;;-1:-1:-1;;;;;1010:68:11;-1:-1:-1;;;;;;1010:68:11;;;;;;;;;;983:19;:96::i;:::-;845:241;;;;:::o;17469:3333:19:-;17620:23;17646:6;17653:7;17646:15;;;;;;;;-1:-1:-1;;;17646:15:19;;;;;;;;;;;;;;;;;17735:29;;;;;:20;:29;;;;;;17646:15;;;;;;-1:-1:-1;17646:15:19;17765:12;665:10:13;;586:96;17765:12:19;-1:-1:-1;;;;;17735:43:19;;;;;;;;;;;;;;;-1:-1:-1;17735:43:19;;;;17854:30;;;;;:21;:30;;;;;;17979:16;:25;;;;;;17735:43;;;;;-1:-1:-1;17854:30:19;;;;;-1:-1:-1;18005:21:19;17735:43;17854:30;18005:21;:::i;:::-;17979:48;;;;;;;;;;;;;;;;;;-1:-1:-1;17979:48:19;17934:93;;;;;;;;;-1:-1:-1;;;;;17934:93:19;;;;-1:-1:-1;;;17934:93:19;;-1:-1:-1;;;;;17934:93:19;;;;;;;;;;;-1:-1:-1;;;;;17934:93:19;;;;;;;;;-1:-1:-1;;;17934:93:19;;;;;;;;-1:-1:-1;;;17934:93:19;;;;;;;;;;;;;-1:-1:-1;18081:21:19;;18077:2639;;18183:19;;;;-1:-1:-1;;;;;;;;18183:19:19;;;;;18173:29;;;;;18165:61;;;;-1:-1:-1;;;18165:61:19;;9264:2:24;18165:61:19;;;9246:21:24;9303:2;9283:18;;;9276:30;-1:-1:-1;;;9322:18:24;;;9315:49;9381:18;;18165:61:19;9236:169:24;18165:61:19;18351:205;;;;;;;;18404:12;-1:-1:-1;;;;;18351:205:19;;;;;18443:6;-1:-1:-1;;;;;18351:205:19;;;;;18480:1;-1:-1:-1;;;;;18351:205:19;;;;;18517:7;:24;;;18351:205;;;;;18307:15;:24;18323:7;18307:24;;;;;;;;;;;;;;;:38;18332:12;665:10:13;;586:96;18332:12:19;-1:-1:-1;;;;;18307:38:19;;;;;;;;;;;;;;;-1:-1:-1;18307:38:19;;;:41;;;;;;;;:249;;;;;;;;-1:-1:-1;;;;;18307:249:19;-1:-1:-1;;;18307:249:19;-1:-1:-1;;;;;;18307:249:19;;;-1:-1:-1;;;;;18307:249:19;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;18307:249:19;-1:-1:-1;;;;;;18307:249:19;;;-1:-1:-1;;;;;18307:249:19;;;;;;;;;;;;;;18666:20;;:16;;:20;:::i;:::-;18620:29;;;;;;;:20;:29;;;;;;;;665:10:13;18620:43:19;;;;;;;:66;;-1:-1:-1;;18620:66:19;;;;;;;;;;;;18077:2639;;;18802:24;;;18756:27;18802:24;;;:15;:24;;;;;;;;665:10:13;18802:38:19;;;;;;;18756:27;18841:20;18860:1;18841:16;:20;:::i;:::-;18802:60;;;;;;;;;;;;;-1:-1:-1;18802:60:19;19031:19;;;;18802:60;;-1:-1:-1;;;;19031:19:19;;-1:-1:-1;;;;;19031:19:19;18950:10;:56;;18986:11;;:20;;19000:6;;-1:-1:-1;;;18986:11:19;;-1:-1:-1;;;;;18986:11:19;:20;:::i;:::-;18950:56;;;18963:11;;:20;;18977:6;;-1:-1:-1;;;18963:11:19;;-1:-1:-1;;;;;18963:11:19;:20;:::i;:::-;-1:-1:-1;;;;;18949:101:19;;;18924:179;;;;-1:-1:-1;;;18924:179:19;;9264:2:24;18924:179:19;;;9246:21:24;9303:2;9283:18;;;9276:30;-1:-1:-1;;;9322:18:24;;;9315:49;9381:18;;18924:179:19;9236:169:24;18924:179:19;19365:16;;-1:-1:-1;;;;;19392:12:19;19365:40;;:16;;:40;;19340:115;;;;-1:-1:-1;;;19340:115:19;;9612:2:24;19340:115:19;;;9594:21:24;9651:2;9631:18;;;9624:30;-1:-1:-1;;;9670:18:24;;;9663:46;9726:18;;19340:115:19;9584:166:24;19340:115:19;19662:16;;19689:12;-1:-1:-1;;;;;19662:40:19;;;:16;;:40;19658:1048;;;19736:10;:96;;19812:11;;:20;;19826:6;;-1:-1:-1;;;19812:11:19;;-1:-1:-1;;;;;19812:11:19;:20;:::i;:::-;19736:96;;;19769:11;;:20;;19783:6;;-1:-1:-1;;;19769:11:19;;-1:-1:-1;;;;;19769:11:19;:20;:::i;:::-;19722:110;;-1:-1:-1;;;;;19722:110:19;;;;-1:-1:-1;;;19722:110:19;-1:-1:-1;;;;;;;;19722:110:19;;;;;;19874:24;;;;-1:-1:-1;19850:21:19;;:48;;;;;;-1:-1:-1;;;19850:48:19;-1:-1:-1;;;;19850:48:19;;;;;;;;;19658:1048;;;20034:479;;;;;;;;20091:12;-1:-1:-1;;;;;20034:479:19;;;;;20134:10;:104;;20218:11;;:20;;20232:6;;-1:-1:-1;;;20218:11:19;;-1:-1:-1;;;;;20218:11:19;:20;:::i;:::-;20134:104;;;20171:11;;:20;;20185:6;;-1:-1:-1;;;20171:11:19;;-1:-1:-1;;;;;20171:11:19;:20;:::i;:::-;-1:-1:-1;;;;;20034:479:19;;;;;20273:157;20317:7;665:10:13;20395:12:19;20273:18;:157::i;:::-;-1:-1:-1;;;;;20034:479:19;;;20470:24;;;;20034:479;;;;;;;;;19937:24;;-1:-1:-1;19937:24:19;;;:15;:24;;;-1:-1:-1;19937:24:19;;;665:10:13;-1:-1:-1;;;;;19937:38:19;;;;;;;;;;;;;;;-1:-1:-1;19937:38:19;;;:94;;;;;;;;;;:576;;;;;;;;-1:-1:-1;;;;;19937:576:19;-1:-1:-1;;;19937:576:19;-1:-1:-1;;;;;;19937:576:19;;;-1:-1:-1;;;;;19937:576:19;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;19937:576:19;-1:-1:-1;;;;;;19937:576:19;;;-1:-1:-1;;;;;19937:576:19;;;;;;;;;;;;;;20651:40;;19997:16;;20651:40;:::i;:::-;20585:29;;;;;;;:20;:29;;;;;;;;665:10:13;20585:43:19;;;;;;;:106;;-1:-1:-1;;20585:106:19;;;;;;;;;;;;19658:1048;18077:2639;;20747:48;;-1:-1:-1;;;;;20781:12:19;14916:35:24;14898:54;;20747:48:19;;;;;;14886:2:24;14871:18;20747:48:19;14853:105:24;8120:1821:19;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8361:29:19;;;;;;:20;:29;;;;;-1:-1:-1;;;;;8361:35:19;;;;;;;;;;;;8424:24;;;:15;:24;;;;;:30;;;;;;;;;-1:-1:-1;;8361:35:19;;;-1:-1:-1;;;;;8424:87:19;;;8455:16;8361:35;;8455:16;:::i;:::-;8424:48;;;;;;;;;;;;;-1:-1:-1;8424:48:19;:60;-1:-1:-1;;;;;8424:60:19;:87;8407:1528;;8635:24;;;;;;;:15;:24;;;;;;;;-1:-1:-1;;;;;8635:30:19;;;;;;;;;;8666:16;8681:1;8666:12;:16;:::i;:::-;8635:48;;;;;;;;;;;;;;;;-1:-1:-1;8635:48:19;8628:55;;;;;;;;;-1:-1:-1;;;;;8628:55:19;;;;-1:-1:-1;;;8628:55:19;;-1:-1:-1;;;;;8628:55:19;;;;;;;;;;;-1:-1:-1;;;;;8628:55:19;;;;;;;;;-1:-1:-1;;;8628:55:19;;;;;;;;;-1:-1:-1;8628:55:19;;-1:-1:-1;8628:55:19;8407:1528;8717:24;;;;;;;:15;:24;;;;;;;;-1:-1:-1;;;;;8717:30:19;;;;;;;;;:33;;;;;;;;:45;-1:-1:-1;;;;;8717:59:19;;;:45;;:59;8700:1235;;;-1:-1:-1;;8991:178:19;;;;;;;;-1:-1:-1;8991:178:19;;;;;;;;;;;;;;;;;;;;;;8968:201;;8700:1235;9244:12;;9289:16;9304:1;9289:12;:16;:::i;:::-;9274:31;;9319:506;9334:5;9326:13;;:5;:13;;;9319:506;;;9359:13;9401:1;9384:13;9392:5;9384;:13;:::i;:::-;9383:19;;;;:::i;:::-;9375:27;;:5;:27;:::i;:::-;9498:24;;;;9447:28;9498:24;;;:15;:24;;;;;;;;-1:-1:-1;;;;;9498:30:19;;;;;;;;;:38;;;;;;;;;;;9447:89;;;;;;;;;-1:-1:-1;;;;;9447:89:19;;;;;;-1:-1:-1;;;9447:89:19;;;-1:-1:-1;;;;;9447:89:19;;;;;;;;;;;;;-1:-1:-1;;;;;9447:89:19;;;;;;;;;-1:-1:-1;;;9447:89:19;;;;;;;;;;9498:38;;-1:-1:-1;9447:89:19;9558:33;;;9554:257;;;9622:6;-1:-1:-1;9615:13:19;;-1:-1:-1;;;;9615:13:19;9554:257;9657:18;;-1:-1:-1;;;;;9657:32:19;;;;;;9653:158;;;9721:6;9713:14;;9653:158;;;9782:10;9791:1;9782:6;:10;:::i;:::-;9774:18;;9653:158;9319:506;;;;;-1:-1:-1;9887:24:19;;;;;;;;:15;:24;;;;;;;;-1:-1:-1;;;;;9887:30:19;;;;;;;;;:37;;;;;;;;;;;;;9880:44;;;;;;;;;-1:-1:-1;;;;;9880:44:19;;;;-1:-1:-1;;;;;;;;9880:44:19;;;;;;;;;;;;;;-1:-1:-1;;;;;9880:44:19;;;;;;;;;-1:-1:-1;;;9880:44:19;;;;;;;;;-1:-1:-1;9880:44:19;;-1:-1:-1;9880:44:19;634:205:11;773:58;;-1:-1:-1;;;;;7276:32:24;;773:58:11;;;7258:51:24;7325:18;;;7318:34;;;746:86:11;;766:5;;-1:-1:-1;;;796:23:11;7231:18:24;;773:58:11;7213:145:24;746:86:11;634:205;;;:::o;3140:706::-;3559:23;3585:69;3613:4;3585:69;;;;;;;;;;;;;;;;;3593:5;-1:-1:-1;;;;;3585:27:11;;;:69;;;;;:::i;:::-;3668:17;;3559:95;;-1:-1:-1;3668:21:11;3664:176;;3763:10;3752:30;;;;;;;;;;;;:::i;:::-;3744:85;;;;-1:-1:-1;;;3744:85:11;;12478:2:24;3744:85:11;;;12460:21:24;12517:2;12497:18;;;12490:30;12556:34;12536:18;;;12529:62;-1:-1:-1;;;12607:18:24;;;12600:40;12657:19;;3744:85:11;12450:232:24;3461:223:12;3594:12;3625:52;3647:6;3655:4;3661:1;3664:12;3625:21;:52::i;:::-;3618:59;3461:223;-1:-1:-1;;;;3461:223:12:o;4548:500::-;4713:12;4770:5;4745:21;:30;;4737:81;;;;-1:-1:-1;;;4737:81:12;;9957:2:24;4737:81:12;;;9939:21:24;9996:2;9976:18;;;9969:30;10035:34;10015:18;;;10008:62;-1:-1:-1;;;10086:18:24;;;10079:36;10132:19;;4737:81:12;9929:228:24;4737:81:12;1034:20;;4828:60;;;;-1:-1:-1;;;4828:60:12;;12120:2:24;4828:60:12;;;12102:21:24;12159:2;12139:18;;;12132:30;12198:31;12178:18;;;12171:59;12247:18;;4828:60:12;12092:179:24;4828:60:12;4900:12;4914:23;4941:6;-1:-1:-1;;;;;4941:11:12;4960:5;4967:4;4941:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4899:73;;;;4989:52;5007:7;5016:10;5028:12;4989:17;:52::i;:::-;4982:59;4548:500;-1:-1:-1;;;;;;;4548:500:12:o;6950:692::-;7096:12;7124:7;7120:516;;;-1:-1:-1;7154:10:12;7147:17;;7120:516;7265:17;;:21;7261:365;;7459:10;7453:17;7519:15;7506:10;7502:2;7498:19;7491:44;7408:145;7598:12;7591:20;;-1:-1:-1;;;7591:20:12;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:141:24;89:20;;118:31;89:20;118:31;:::i;:::-;70:85;;;:::o;160:182::-;228:20;;-1:-1:-1;;;;;277:40:24;;267:51;;257:2;;332:1;329;322:12;347:161;414:20;;474:8;463:20;;453:31;;443:2;;498:1;495;488:12;513:163;580:20;;640:10;629:22;;619:33;;609:2;;666:1;663;656:12;681:171;748:20;;808:18;797:30;;787:41;;777:2;;842:1;839;832:12;857:175;924:20;;-1:-1:-1;;;;;973:34:24;;963:45;;953:2;;1022:1;1019;1012:12;1037:257;1096:6;1149:2;1137:9;1128:7;1124:23;1120:32;1117:2;;;1170:6;1162;1155:22;1117:2;1214:9;1201:23;1233:31;1258:5;1233:31;:::i;1299:297::-;1366:6;1419:2;1407:9;1398:7;1394:23;1390:32;1387:2;;;1440:6;1432;1425:22;1387:2;1477:9;1471:16;1530:5;1523:13;1516:21;1509:5;1506:32;1496:2;;1557:6;1549;1542:22;1601:1036;1728:6;1736;1744;1752;1760;1768;1776;1829:3;1817:9;1808:7;1804:23;1800:33;1797:2;;;1851:6;1843;1836:22;1797:2;1896:9;1883:23;1925:18;1966:2;1958:6;1955:14;1952:2;;;1987:6;1979;1972:22;1952:2;2030:6;2019:9;2015:22;2005:32;;2075:7;2068:4;2064:2;2060:13;2056:27;2046:2;;2102:6;2094;2087:22;2046:2;2147;2134:16;2173:2;2165:6;2162:14;2159:2;;;2194:6;2186;2179:22;2159:2;2246:7;2239:4;2230:6;2226:2;2222:15;2218:26;2215:39;2212:2;;;2272:6;2264;2257:22;2212:2;2308:4;2300:13;;;;-1:-1:-1;2332:6:24;-1:-1:-1;2357:47:24;;2383:20;;;-1:-1:-1;2357:47:24;:::i;:::-;2347:57;;2423:37;2456:2;2445:9;2441:18;2423:37;:::i;:::-;2413:47;;2479:37;2512:2;2501:9;2497:18;2479:37;:::i;:::-;2469:47;;2535:38;2568:3;2557:9;2553:19;2535:38;:::i;:::-;2525:48;;2592:39;2626:3;2615:9;2611:19;2592:39;:::i;:::-;2582:49;;1787:850;;;;;;;;;;:::o;2642:194::-;2700:6;2753:2;2741:9;2732:7;2728:23;2724:32;2721:2;;;2774:6;2766;2759:22;2721:2;2802:28;2820:9;2802:28;:::i;2841:329::-;2908:6;2916;2969:2;2957:9;2948:7;2944:23;2940:32;2937:2;;;2990:6;2982;2975:22;2937:2;3018:28;3036:9;3018:28;:::i;:::-;3008:38;;3096:2;3085:9;3081:18;3068:32;3109:31;3134:5;3109:31;:::i;:::-;3159:5;3149:15;;;2927:243;;;;;:::o;3175:401::-;3250:6;3258;3266;3319:2;3307:9;3298:7;3294:23;3290:32;3287:2;;;3340:6;3332;3325:22;3287:2;3368:28;3386:9;3368:28;:::i;:::-;3358:38;;3446:2;3435:9;3431:18;3418:32;3459:31;3484:5;3459:31;:::i;:::-;3509:5;-1:-1:-1;3533:37:24;3566:2;3551:18;;3533:37;:::i;:::-;3523:47;;3277:299;;;;;:::o;3581:401::-;3656:6;3664;3672;3725:2;3713:9;3704:7;3700:23;3696:32;3693:2;;;3746:6;3738;3731:22;3693:2;3774:28;3792:9;3774:28;:::i;:::-;3764:38;;3852:2;3841:9;3837:18;3824:32;3865:31;3890:5;3865:31;:::i;:::-;3915:5;-1:-1:-1;3939:37:24;3972:2;3957:18;;3939:37;:::i;3987:401::-;4062:6;4070;4078;4131:2;4119:9;4110:7;4106:23;4102:32;4099:2;;;4152:6;4144;4137:22;4099:2;4180:28;4198:9;4180:28;:::i;:::-;4170:38;;4258:2;4247:9;4243:18;4230:32;4271:31;4296:5;4271:31;:::i;:::-;4321:5;-1:-1:-1;4345:37:24;4378:2;4363:18;;4345:37;:::i;4393:268::-;4460:6;4468;4521:2;4509:9;4500:7;4496:23;4492:32;4489:2;;;4542:6;4534;4527:22;4489:2;4570:28;4588:9;4570:28;:::i;:::-;4560:38;;4617;4651:2;4640:9;4636:18;4617:38;:::i;:::-;4607:48;;4479:182;;;;;:::o;4666:266::-;4732:6;4740;4793:2;4781:9;4772:7;4768:23;4764:32;4761:2;;;4814:6;4806;4799:22;4761:2;4842:28;4860:9;4842:28;:::i;:::-;4832:38;;4889:37;4922:2;4911:9;4907:18;4889:37;:::i;4937:266::-;5003:6;5011;5064:2;5052:9;5043:7;5039:23;5035:32;5032:2;;;5085:6;5077;5070:22;5032:2;5113:28;5131:9;5113:28;:::i;:::-;5103:38;;5160:37;5193:2;5182:9;5178:18;5160:37;:::i;5208:266::-;5274:6;5282;5335:2;5323:9;5314:7;5310:23;5306:32;5303:2;;;5356:6;5348;5341:22;5303:2;5384:28;5402:9;5384:28;:::i;:::-;5374:38;;5431:37;5464:2;5453:9;5449:18;5431:37;:::i;5479:190::-;5538:6;5591:2;5579:9;5570:7;5566:23;5562:32;5559:2;;;5612:6;5604;5597:22;5559:2;-1:-1:-1;5640:23:24;;5549:120;-1:-1:-1;5549:120:24:o;5674:258::-;5716:3;5754:5;5748:12;5781:6;5776:3;5769:19;5797:63;5853:6;5846:4;5841:3;5837:14;5830:4;5823:5;5819:16;5797:63;:::i;:::-;5914:2;5893:15;-1:-1:-1;;5889:29:24;5880:39;;;;5921:4;5876:50;;5724:208;-1:-1:-1;;5724:208:24:o;5937:274::-;6066:3;6104:6;6098:13;6120:53;6166:6;6161:3;6154:4;6146:6;6142:17;6120:53;:::i;:::-;6189:16;;;;;6074:137;-1:-1:-1;;6074:137:24:o;6216:275::-;6401:6;6393;6388:3;6375:33;6357:3;6427:16;;6452:15;;;6427:16;6365:126;-1:-1:-1;6365:126:24:o;7363:220::-;7512:2;7501:9;7494:21;7475:4;7532:45;7573:2;7562:9;7558:18;7550:6;7532:45;:::i;7588:718::-;7885:3;7874:9;7867:22;7848:4;7906:46;7947:3;7936:9;7932:19;7924:6;7906:46;:::i;:::-;-1:-1:-1;;;;;7988:32:24;;;;7983:2;7968:18;;7961:60;-1:-1:-1;8069:8:24;8057:21;;;;8052:2;8037:18;;8030:49;8098:18;8152:15;;;8147:2;8132:18;;8125:43;8205:15;;8199:3;8184:19;;8177:44;-1:-1:-1;;;;;8258:41:24;8008:3;8237:19;;;8230:70;7988:32;7898:54;-1:-1:-1;7857:449:24:o;10853:356::-;11055:2;11037:21;;;11074:18;;;11067:30;11133:34;11128:2;11113:18;;11106:62;11200:2;11185:18;;11027:182::o;16039:247::-;16079:3;-1:-1:-1;;;;;16162:2:24;16159:1;16155:10;16192:2;16189:1;16185:10;16223:3;16219:2;16215:12;16210:3;16207:21;16204:2;;;16231:18;;:::i;:::-;16267:13;;16087:199;-1:-1:-1;;;;16087:199:24:o;16291:238::-;16331:3;-1:-1:-1;;;;;16398:10:24;;;16428;;;16458:12;;;16450:21;;16447:2;;;16474:18;;:::i;16534:226::-;16573:3;16601:8;16636:2;16633:1;16629:10;16666:2;16663:1;16659:10;16697:3;16693:2;16689:12;16684:3;16681:21;16678:2;;;16705:18;;:::i;16765:228::-;16804:3;16832:10;16869:2;16866:1;16862:10;16899:2;16896:1;16892:10;16930:3;16926:2;16922:12;16917:3;16914:21;16911:2;;;16938:18;;:::i;16998:201::-;17038:1;-1:-1:-1;;;;;17103:10:24;;;;17122:2;;17139:18;;:::i;:::-;17177:10;;17173:20;;;;;17044:155;-1:-1:-1;;17044:155:24:o;17204:191::-;17243:1;17269:10;17306:2;17303:1;17299:10;17328:3;17318:2;;17335:18;;:::i;17400:272::-;17440:7;-1:-1:-1;;;;;17511:10:24;;;17541;;;17574:11;;17567:19;17596:12;;;17588:21;;17563:47;17560:2;;;17613:18;;:::i;:::-;17653:13;;17452:220;-1:-1:-1;;;;17452:220:24:o;17677:240::-;17717:4;-1:-1:-1;;;;;17824:10:24;;;;17794;;17846:12;;;17843:2;;;17861:18;;:::i;:::-;17898:13;;17726:191;-1:-1:-1;;;17726:191:24:o;17922:231::-;17962:4;-1:-1:-1;;;;;18060:10:24;;;;18030;;18082:12;;;18079:2;;;18097:18;;:::i;18158:219::-;18197:4;18226:8;18284:10;;;;18254;;18306:12;;;18303:2;;;18321:18;;:::i;18382:125::-;18422:4;18450:1;18447;18444:8;18441:2;;;18455:18;;:::i;:::-;-1:-1:-1;18492:9:24;;18431:76::o;18512:221::-;18551:4;18580:10;18640;;;;18610;;18662:12;;;18659:2;;;18677:18;;:::i;18738:233::-;18777:4;-1:-1:-1;;;;;18878:10:24;;;;18848;;18900:12;;;18897:2;;;18915:18;;:::i;18976:258::-;19048:1;19058:113;19072:6;19069:1;19066:13;19058:113;;;19148:11;;;19142:18;19129:11;;;19122:39;19094:2;19087:10;19058:113;;;19189:6;19186:1;19183:13;19180:2;;;-1:-1:-1;;19224:1:24;19206:16;;19199:27;19029:205::o;19239:380::-;19318:1;19314:12;;;;19361;;;19382:2;;19436:4;19428:6;19424:17;19414:27;;19382:2;19489;19481:6;19478:14;19458:18;19455:38;19452:2;;;19535:10;19530:3;19526:20;19523:1;19516:31;19570:4;19567:1;19560:15;19598:4;19595:1;19588:15;19452:2;;19294:325;;;:::o;19624:199::-;19662:3;19690:8;19733:2;19726:5;19722:14;19760:2;19751:7;19748:15;19745:2;;;19766:18;;:::i;:::-;19815:1;19802:15;;19670:153;-1:-1:-1;;;19670:153:24:o;19828:201::-;19866:3;19894:10;19939:2;19932:5;19928:14;19966:2;19957:7;19954:15;19951:2;;;19972:18;20034:127;20095:10;20090:3;20086:20;20083:1;20076:31;20126:4;20123:1;20116:15;20150:4;20147:1;20140:15;20166:127;20227:10;20222:3;20218:20;20215:1;20208:31;20258:4;20255:1;20248:15;20282:4;20279:1;20272:15;20298:131;-1:-1:-1;;;;;20373:31:24;;20363:42;;20353:2;;20419:1;20416;20409:12

Swarm Source

ipfs://9d297c8bf2b86784eb03cb69e3fee3fca484e6fc19c4053da99739abfb67f171
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.