Contract 0x65e74f1a7e2d305c7944b01f57ff1541784ecd54

Contract Overview

Balance:
0 AVAX
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6e661de858b405c69cc61d5bd18575ba8964873149b19658569b49cbc0f1ec180x60806040109464762022-06-24 6:21:4253 days 10 hrs ago0xdff8732c1f84c25c484cf6c21a709881235a204b IN  Create: WBGameV50 AVAX0.‍6760971225
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1ffc4d26d7f25d4979f0baacf971e4e3429ca0eeee24dcbdea10de0cc5e00f6b125451632022-08-15 2:52:551 day 14 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xd4e61802620da8b38b2ce5e25d24fa1b56f4ca475911b05f147d1ec5284e2567125451572022-08-15 2:52:381 day 14 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x5ed90c91835bd0bbf573d5f45d97c49b5c89eb4b890072532dd9f6db24cec825123591152022-08-09 14:30:477 days 2 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x50c685b892627f3fc29cbf87bd4c4bd6b9ff11667a0eee48dc0929a3b15af110123590322022-08-09 14:28:017 days 2 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xa727fc40b2474737a3d90d9366a047416809d890a6b22a57ff29d9103a72b5fb123099012022-08-08 3:21:178 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x6a11deb3886a4f981ef717f79ffbedb4739f5bc1163c6b3a7f6fdb6d84530ce9123098752022-08-08 3:20:228 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x0edfa0362d51c717981e66fdd1da4ab4d868f182ce2e531189644f9374008b81122942762022-08-07 6:39:389 days 10 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x3ae4a5a9dbf9b246cf7ff008108072fe61eda3497914f586df2dc06b4882f9a5121239022022-08-01 3:49:3515 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xab53f53903b9b71a316d36df9a8212dc442832e99b80c0ef1f30c610804ec9a7121238962022-08-01 3:48:5415 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x7799e1044060713e43b547c863671637eeae76ce5beb92eb388050c933b76251121238372022-08-01 3:44:1915 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x22e610ef879c82b3d50773dec3545fe884dc8751f651052b214abc5d44ac899b121238342022-08-01 3:44:1215 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x5b22161877c26b158b9a0417242d395cb6dc419623f948fd13156c28e3755feb121238302022-08-01 3:44:0415 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xf09c432d250317058df85e5270af7291b19fb99f8bc9bebe7096dceb66da5c50121238282022-08-01 3:44:0015 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xc1e63553ddf1111e18883055ee239ecdf0d1686cba033a4be504c3e3284cdd0b121238252022-08-01 3:43:5315 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x505a3f0911986746e9df349d82609abda99150c297f6dabd9841eb65e51f69b0121238232022-08-01 3:43:4715 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xca55dd9d2ad1fa42a75975b8a6de0561ee854088140067782dd469a31b2c5424121238212022-08-01 3:43:4215 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x9df1d5d83ec1bf3583673303fd141ff5acf3bff9ac9a4b68aa2209d847d3223b121238192022-08-01 3:43:3715 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xd2e4d7785f9c3f889c8a33b3a65e1cb2648f2a5a5a8511dde559e99be4f395ab121238172022-08-01 3:43:3115 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xf05a94711cc8448e0c537bef4330217c1e6dcfa4124ec8ffffd236ecc34c393f121233742022-08-01 3:15:3815 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xbf3dbaa9ad23e1f06230751375e6a581cc79afad2cd70ca9e47a0707086126d4121233282022-08-01 3:11:5915 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0xf9db3d82c2ddf7d82a557ed99ffea59bd1c2682dc0db2cbced5fd4d35b2affa1121233262022-08-01 3:11:5215 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x1db603250c1085c3347a832ede3f7730621617d1de3ffa59b1bb95a7a74528f5121233242022-08-01 3:11:4815 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x11795b983376482ae2952fabdcea9d3a835522d93804034a9994150214baeead121233212022-08-01 3:11:4215 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x8f2fa16556a9eaba8ccca9ea4d181239eb9f55ca2ad9a93983c5fc27e8419265121233162022-08-01 3:11:3215 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
0x5f4bac532f95877cd95d797448ac0fe8739d87800a05db6092a38c2e8fdd6f41121233142022-08-01 3:11:2715 days 13 hrs ago 0xd815ef0f3612f18bc78ef0db8a08d986a022ab450x65e74f1a7e2d305c7944b01f57ff1541784ecd540 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WBGameV5

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 14 : WBGameV5.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "hardhat/console.sol";

interface IERC721b is IERC721 {
    enum TokenType {
        Wynd,
        Rider,
        Equipment
    }

    function mint(
        address _to,
        TokenType _tokenType,
        string memory _tokenURI
    ) external returns (uint256);
}

contract WBGameV5 is
    OwnableUpgradeable,
    ERC721Holder,
    ReentrancyGuardUpgradeable
{
    using Strings for uint256;

    enum HolderPlace {
        Unheld,
        DailyActivity,
        Breeding,
        Training,
        Forging,
        PVP,
        PVE
    }

    event TokenMoved(
        address user,
        string productId,
        HolderPlace from,
        HolderPlace to
    );

    event TicketBought(
        address user,
        string productId,
        uint256 price,
        string activity
    );

    event BreedItemCreated(uint256 aParent, uint256 bParent, uint256 child);

    event GameItemTransfer(
        address from,
        address to,
        address collection,
        uint256 tokenId,
        HolderPlace holderPlace
    );

    event GameItemDispatch(
        address from,
        address to,
        address collection,
        uint256 tokenId,
        HolderPlace holderPlace
    );

    event RewardClaimed(address user, uint256 amount, uint256 timestamp);
    event RewardSet(address user, uint256 amount, uint256 timestamp);

    using Counters for Counters.Counter;
    Counters.Counter private breedId;

    struct BreedItem {
        uint256 aParent;
        uint256 bParent;
        uint256 child;
    }

    mapping(uint256 => BreedItem) private _breedItems;
    mapping(uint256 => uint256) private _breedCounts;
    mapping(address => mapping(HolderPlace => uint256[])) private _tokenHolder;
    mapping(address => uint256) private _addressCHROReward;
    mapping(address => uint256) private _addressClaimedTime;

    address private _nftAddress;
    address private _caller;
    uint256 private _breedingCost;
    uint256 private _trainingCost;
    uint256 private _forgingCost;
    uint256 private _totalReward;

    /// first generation or genesis contract
    IERC721 private _aCollection;
    /// next generation (NextGen) contract
    IERC721b private _bCollection;
    /// CHRO contract
    IERC20 private _tokenContract;

    mapping(uint256 => HolderPlace) private _heldTokens;
    mapping(uint256 => address) private _tokenOwners;

    address private _treasury;

    event NestBought(address user, uint256 price);
    mapping(address => int8) private _addressToNestAmount;

    address private jobExecutor;

    event EmergencyTransferCHRO(
        address caller,
        address receiver,
        uint256 amount
    );

    event BreedItemMinted(
        bytes32 childId,
        uint256 childTokenId,
        string tokenURI,
        address user
    );

    event BreedItemPaid(
        address user,
        uint256 cost,
        uint256 parent1,
        uint256 parent2,
        bytes32 data
    );

    event BreedMinted(
        string childId,
        uint256 childTokenId,
        string tokenURI,
        address user
    );

    event BreedPaid(
        address user,
        uint256 cost,
        uint256 parent1,
        uint256 parent2,
        string nestId,
        string elementalStone
    );

    address public aCollection;
    address public bCollection;

    function initialize() public initializer {}

    function setACollection(address aCollection_) external onlyOwner {
        _aCollection = IERC721(aCollection_);
        aCollection = address(aCollection_);
    }

    function setBCollection(address bCollection_) external onlyOwner {
        _bCollection = IERC721b(bCollection_);
        bCollection = bCollection_;
    }

    /**
     * @dev Only executor
     */
    modifier onlyExecutor() {
        require(
            jobExecutor == _msgSender() || owner() == _msgSender(),
            "Caller is not job executor"
        );
        _;
    }

    function buyTicket(
        uint256 _tokenId,
        uint256 _price,
        string memory _activity
    ) public {
        address _collection = address(0);

        if (_tokenId < 20000) {
            _collection = address(_aCollection);
        } else {
            _collection = address(_bCollection);
        }

        require(
            _heldTokens[_tokenId] == HolderPlace.DailyActivity &&
                _tokenOwners[_tokenId] == _msgSender(),
            "Invalid place of token"
        );
        require(
            _tokenContract.balanceOf(_msgSender()) >= _price,
            "Not enough tokens"
        );
        require(
            _tokenContract.allowance(_msgSender(), address(this)) >= _price,
            "Not enough allowance"
        );

        _tokenContract.transferFrom(_msgSender(), address(this), _price);

        emit TicketBought(
            _msgSender(),
            string(
                abi.encodePacked(
                    Strings.toHexString(uint160(_collection), 20),
                    ":",
                    _tokenId.toString()
                )
            ),
            _price,
            _activity
        );
    }

    /**
     * @notice Submit token to this contract and specify the {HolderPlace}
     * @param _holderPlace Holder place
     * @param _tokenId Token ID
     */
    function _submit(HolderPlace _holderPlace, uint256 _tokenId) internal {
        address _collection = address(0);

        if (_tokenId < 20000) {
            require(
                _aCollection.ownerOf(_tokenId) == _msgSender(),
                "Invalid ownership"
            );
            _aCollection.transferFrom(_msgSender(), address(this), _tokenId);
            _collection = address(_aCollection);
        } else {
            require(
                _bCollection.ownerOf(_tokenId) == _msgSender(),
                "Invalid ownership"
            );
            _bCollection.transferFrom(_msgSender(), address(this), _tokenId);
            _collection = address(_bCollection);
        }

        _heldTokens[_tokenId] = _holderPlace;
        _tokenOwners[_tokenId] = _msgSender();

        // SAVE TO TOKEN HOLDER
        _save(_holderPlace, _tokenId);
        // _tokenHolder[_msgSender()][_holderPlace].push(_tokenId);

        emit GameItemTransfer(
            _msgSender(),
            address(this),
            _collection,
            _tokenId,
            _holderPlace
        );
    }

    /**
     * @notice Batch submit tokens to this contract and specify the {HolderPlace}
     * @param _holderPlace Holder place
     * @param _tokenIds Array of token ids
     */
    function batchSubmit(HolderPlace _holderPlace, uint256[] memory _tokenIds)
        public
    {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            _submit(_holderPlace, _tokenIds[i]);
        }
    }

    /**
     * @notice Dispatch token from this contract
     * @param _holderPlace Holder place
     * @param _tokenId Token ID
     */
    function _dispatch(HolderPlace _holderPlace, uint256 _tokenId) internal {
        require(_tokenOwners[_tokenId] == _msgSender(), "Requires own token");
        address _collection = address(0);

        if (_tokenId < 20000) {
            require(
                _aCollection.ownerOf(_tokenId) == address(this),
                "Invalid ownership"
            );
            _aCollection.transferFrom(address(this), _msgSender(), _tokenId);
            _collection = address(_aCollection);
        } else {
            require(
                _bCollection.ownerOf(_tokenId) == address(this),
                "Invalid ownership"
            );
            _bCollection.transferFrom(address(this), _msgSender(), _tokenId);
            _collection = address(_bCollection);
        }

        _remove(_holderPlace, _tokenId);

        emit GameItemDispatch(
            address(this),
            _msgSender(),
            _collection,
            _tokenId,
            _holderPlace
        );
    }

    /**
     * @notice Batch dispatch tokens from this contract and specify the {HolderPlace}
     * @param _holderPlace Holder place
     * @param _tokenIds Array of token ids
     */
    function batchDispatch(HolderPlace _holderPlace, uint256[] memory _tokenIds)
        public
    {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            _dispatch(_holderPlace, _tokenIds[i]);
        }
    }

    /**
     * @notice Library function to remove array element by its value
     * @param _array Array to be manipulated
     * @param _element Element to be removed
     */
    function _removeElement(uint256[] memory _array, uint256 _element)
        internal
        pure
        returns (uint256[] memory)
    {
        for (uint256 i; i < _array.length; i++) {
            if (_array[i] == _element) {
                // TODO FIX:
                delete _array[i];
                break;
            }
        }

        // ERR Member "pop" is not available in uint256[] memory outside of storage.
        return _array;
    }

    /**
     * @notice remove token from tokenHolder
     * @param _holderPlace Holder place
     * @param _tokenId Token id to be removed
     */
    function _remove(HolderPlace _holderPlace, uint256 _tokenId) internal {
        uint256[] memory newArray = _removeElement(
            _tokenHolder[msg.sender][_holderPlace],
            _tokenId
        );
        _tokenHolder[msg.sender][_holderPlace] = newArray;
    }

    /**
     * @notice remove token from tokenHolder
     * @param _holderPlace Holder place
     * @param _tokenId Token id to be removed
     * @param _address Holder address
     */
    function _safeRemove(
        HolderPlace _holderPlace,
        uint256 _tokenId,
        address _address
    ) internal {
        uint256[] memory newArray = _removeElement(
            _tokenHolder[_address][_holderPlace],
            _tokenId
        );
        _tokenHolder[_address][_holderPlace] = newArray;
    }

    /**
     * @notice Save token to tokenHolder
     * @param _holderPlace Holder place
     * @param _tokenId Token id to be saved
     */
    function _save(HolderPlace _holderPlace, uint256 _tokenId) internal {
        _tokenHolder[msg.sender][_holderPlace].push(_tokenId);
    }

    /**
     * @notice View held tokens
     * @param _holderPlace Holder place
     * @param _address Wallet address si user
     * @return array of token_ids
     */
    function idsOf(HolderPlace _holderPlace, address _address)
        public
        view
        returns (uint256[] memory)
    {
        return _tokenHolder[_address][_holderPlace];
    }

    /**
     * @notice Set address mapping to Rewards
     * @param _address Address
     * @param _reward CHRO Reward for address
     */
    function setReward(address _address, uint256 _reward) public onlyExecutor {
        _addressCHROReward[_address] = _reward;
        _totalReward += _reward;

        emit RewardSet(_address, _reward, block.timestamp);
    }

    /**
     * @notice Set address mapping to Rewards
     * @param _addresses Addresses
     * @param _rewards CHRO Rewards for address
     */
    function batchSetReward(
        address[] memory _addresses,
        uint256[] memory _rewards
    ) public onlyExecutor {
        uint256 totalRewards = 0;
        for (uint256 i = 0; i < _addresses.length; i++) {
            totalRewards += _rewards[i];
        }

        require(
            totalRewards <= _tokenContract.balanceOf(address(this)),
            "Insufficent Treasury Balance"
        );

        for (uint256 i = 0; i < _addresses.length; i++) {
            setReward(_addresses[i], _rewards[i]);
        }
    }

    /**
     * @notice Claim reward
     */
    function claimReward() public nonReentrant {
        uint256 amount = _addressCHROReward[_msgSender()];

        require(
            amount > 0 && amount <= _totalReward,
            "Insufficent reward balance"
        );
        require(
            amount <= _tokenContract.balanceOf(address(this)),
            "Insufficent SC Balance"
        );

        _tokenContract.transfer(_msgSender(), amount);
        _totalReward -= amount;

        _addressClaimedTime[_msgSender()] = block.timestamp;
        _addressCHROReward[_msgSender()] = 0;

        emit RewardClaimed(_msgSender(), amount, block.timestamp);
    }

    /**
     * @notice Claimable Status
     * @param _address address to be looked
     * @return array [amount, last claimed time]
     */
    function claimableStatus(address _address)
        public
        view
        returns (uint256[2] memory)
    {
        return [_addressCHROReward[_address], _addressClaimedTime[_address]];
    }

    /**
     ***************************************************************************************
     *************************************** ADMIN FUNCTIONS *******************************
     ***************************************************************************************
     */

    /**
     * @dev Set job executor
     * @param _jobExecutor Job executor address
     */
    function setJobExecutor(address _jobExecutor) public onlyOwner {
        jobExecutor = _jobExecutor;
    }

    /**
     * @notice Force Dispatch token from this contract
     * @param _address Address of token owner
     * @param _holderPlace Holder place
     * @param _tokenId Token ID
     */
    function safeDispatch(
        address _address,
        HolderPlace _holderPlace,
        uint256 _tokenId
    ) public onlyExecutor {
        require(_tokenOwners[_tokenId] == _address, "Requires own token");
        address _collection = address(0);

        if (_tokenId < 20000) {
            require(
                _aCollection.ownerOf(_tokenId) == address(this),
                "Invalid ownership"
            );
            _aCollection.transferFrom(address(this), _address, _tokenId);
            _collection = address(_aCollection);
        } else {
            require(
                _bCollection.ownerOf(_tokenId) == address(this),
                "Invalid ownership"
            );
            _bCollection.transferFrom(address(this), _address, _tokenId);
            _collection = address(_bCollection);
        }

        _safeRemove(_holderPlace, _tokenId, _address);

        emit GameItemDispatch(
            address(this),
            _address,
            _collection,
            _tokenId,
            _holderPlace
        );
    }

    /**
     * @notice Safe Transfer from
     * @param _address Address to transfer
     * @param _amount Amount to transfer (in wei)
     */
    function safeTransferCHRO(address _address, uint256 _amount)
        public
        onlyExecutor
    {
        _tokenContract.transfer(_address, _amount);

        emit EmergencyTransferCHRO(_msgSender(), _address, _amount);
    }

    /**
     ***************************************************************************************
     *************************************** BREEDING **************************************
     ***************************************************************************************
     */

    /**
     * @notice Breed and Train
     * @param _cost uint256 cost of breeding
     * @param _parent1 uint256 parent 1 token id
     * @param _parent2 uint256 parent 2 token id
     * @param _nestId string string of Nest ID
     * @param _elementalStone string Elemental Stone used
     */
    function payBreed(
        uint256 _cost,
        uint256 _parent1,
        uint256 _parent2,
        string memory _nestId,
        string memory _elementalStone
    ) public {
        //  check balance
        require(
            _tokenContract.balanceOf(_msgSender()) >= _cost,
            "Not enough tokens"
        );
        require(
            _tokenContract.allowance(_msgSender(), address(this)) >= _cost,
            "Not enough allowance"
        );

        validateBreed(_parent1, _parent2);

        // transfer CHRO to this contract as P2E wallet
        _tokenContract.transferFrom(_msgSender(), address(this), _cost);

        emit BreedPaid(
            _msgSender(),
            _cost,
            _parent1,
            _parent2,
            _nestId,
            _elementalStone
        );
    }

    function validateBreed(uint256 parent1, uint256 parent2) public view {
        require(
            _breedCounts[parent1] < 3 && _breedCounts[parent2] < 3,
            "Max breed count of parent"
        );
        require(
            _tokenOwners[parent1] == _msgSender() &&
                _tokenOwners[parent2] == _msgSender(),
            "Not token owner"
        );
    }

    /**
     * @notice Breed and Train
     * @param _parents uint256 array of parent ids
     * @param _tokenURI string token uri for child
     * @param _childId string childId
     * @param _holdEnum uint256 either 2 or 3
     * @dev TESTING PURPOSE, token URI shouldnt be set as params
     */
    function breed(
        uint256[] memory _parents,
        string memory _tokenURI,
        string memory _childId,
        uint256 _holdEnum
    ) public {
        require(_parents.length == 2, "Requires 2 nft");
        require(_parents[0] != _parents[1], "Identical tokens");

        for (uint256 i = 0; i < 2; i++) {
            /// both sould be held correctly and owned by sender
            if (_holdEnum == 2) {
                require(
                    _heldTokens[_parents[i]] == HolderPlace.Breeding,
                    "Invalid place of token"
                );
            } else if (_holdEnum == 3) {
                require(
                    _heldTokens[_parents[i]] == HolderPlace.Training,
                    "Invalid place of token"
                );
            } else {
                revert("Incorrect type");
            }
        }

        validateBreed(_parents[0], _parents[1]);

        /// mint to NextGen collection
        uint256 childTokenId;
        if (_holdEnum == 2) {
            childTokenId = _bCollection.mint(
                _msgSender(),
                IERC721b.TokenType.Wynd,
                _tokenURI
            );
        } else if (_holdEnum == 3) {
            childTokenId = _bCollection.mint(
                _msgSender(),
                IERC721b.TokenType.Rider,
                _tokenURI
            );
        }

        breedId.increment();
        uint256 id = breedId.current();

        _breedItems[id] = BreedItem({
            aParent: _parents[0],
            bParent: _parents[1],
            child: childTokenId
        });

        _breedCounts[_parents[0]] += 1;
        _breedCounts[_parents[1]] += 1;

        emit BreedItemCreated(_parents[0], _parents[1], childTokenId);
        emit BreedMinted(_childId, childTokenId, _tokenURI, _msgSender());
    }

    /**
     * @notice Get breed count of the given token id
     * @param _tokenId Token id
     */
    function breedCountOf(uint256 _tokenId) public view returns (uint256) {
        return _breedCounts[_tokenId];
    }

    function move(
        uint256 _tokenId,
        HolderPlace _from,
        HolderPlace _to
    ) public {
        require(
            _heldTokens[_tokenId] == _from &&
                _tokenOwners[_tokenId] == _msgSender(),
            "Invalid source of token"
        );

        address _collection = address(0);

        if (_tokenId < 20000) {
            _collection = address(_aCollection);
        } else {
            _collection = address(_bCollection);
        }

        _heldTokens[_tokenId] = _to;

        // TRANSFER TOKEN HOLDS
        _save(_to, _tokenId);
        _remove(_from, _tokenId);

        emit TokenMoved(
            _msgSender(),
            string(
                abi.encodePacked(
                    Strings.toHexString(uint160(_collection), 20),
                    ":",
                    _tokenId.toString()
                )
            ),
            _from,
            _to
        );
    }

    function batchMove(
        uint256[] memory _tokenIds,
        HolderPlace _from,
        HolderPlace _to
    ) public {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            move(_tokenIds[i], _from, _to);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 14 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 8 of 14 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 9 of 14 : 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 10 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

File 12 of 14 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 13 of 14 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 14 of 14 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"aParent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bParent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"child","type":"uint256"}],"name":"BreedItemCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"childId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"childTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"BreedItemMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"parent1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"parent2","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"data","type":"bytes32"}],"name":"BreedItemPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"childId","type":"string"},{"indexed":false,"internalType":"uint256","name":"childTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"BreedMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"parent1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"parent2","type":"uint256"},{"indexed":false,"internalType":"string","name":"nestId","type":"string"},{"indexed":false,"internalType":"string","name":"elementalStone","type":"string"}],"name":"BreedPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyTransferCHRO","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"enum WBGameV5.HolderPlace","name":"holderPlace","type":"uint8"}],"name":"GameItemDispatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"enum WBGameV5.HolderPlace","name":"holderPlace","type":"uint8"}],"name":"GameItemTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"NestBought","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":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RewardSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"string","name":"productId","type":"string"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"string","name":"activity","type":"string"}],"name":"TicketBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"string","name":"productId","type":"string"},{"indexed":false,"internalType":"enum WBGameV5.HolderPlace","name":"from","type":"uint8"},{"indexed":false,"internalType":"enum WBGameV5.HolderPlace","name":"to","type":"uint8"}],"name":"TokenMoved","type":"event"},{"inputs":[],"name":"aCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum WBGameV5.HolderPlace","name":"_holderPlace","type":"uint8"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchDispatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"enum WBGameV5.HolderPlace","name":"_from","type":"uint8"},{"internalType":"enum WBGameV5.HolderPlace","name":"_to","type":"uint8"}],"name":"batchMove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_rewards","type":"uint256[]"}],"name":"batchSetReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum WBGameV5.HolderPlace","name":"_holderPlace","type":"uint8"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchSubmit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_parents","type":"uint256[]"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"string","name":"_childId","type":"string"},{"internalType":"uint256","name":"_holdEnum","type":"uint256"}],"name":"breed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"breedCountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"string","name":"_activity","type":"string"}],"name":"buyTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"claimableStatus","outputs":[{"internalType":"uint256[2]","name":"","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum WBGameV5.HolderPlace","name":"_holderPlace","type":"uint8"},{"internalType":"address","name":"_address","type":"address"}],"name":"idsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"enum WBGameV5.HolderPlace","name":"_from","type":"uint8"},{"internalType":"enum WBGameV5.HolderPlace","name":"_to","type":"uint8"}],"name":"move","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_parent1","type":"uint256"},{"internalType":"uint256","name":"_parent2","type":"uint256"},{"internalType":"string","name":"_nestId","type":"string"},{"internalType":"string","name":"_elementalStone","type":"string"}],"name":"payBreed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"enum WBGameV5.HolderPlace","name":"_holderPlace","type":"uint8"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"safeDispatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"safeTransferCHRO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"aCollection_","type":"address"}],"name":"setACollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bCollection_","type":"address"}],"name":"setBCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_jobExecutor","type":"address"}],"name":"setJobExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"setReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"parent1","type":"uint256"},{"internalType":"uint256","name":"parent2","type":"uint256"}],"name":"validateBreed","outputs":[],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50613565806100206000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c8063ac8d05c8116100de578063de9800c311610097578063ee03944b11610071578063ee03944b1461038a578063f0dd00fc1461039d578063f2574a0a146103b0578063f2fde38b146103c357600080fd5b8063de9800c314610329578063e429614514610357578063eacccaf01461037757600080fd5b8063ac8d05c8146102b5578063b88a802f146102d5578063bdc4d508146102dd578063cc2d9701146102f0578063d2de1b0d14610303578063d538fd7d1461031657600080fd5b806331b135ff1161014b578063715018a611610125578063715018a6146102695780638129fc1c146102715780638cab3a33146102795780638da5cb5b146102a457600080fd5b806331b135ff1461023057806353bae3b5146102435780636df3da2e1461025657600080fd5b8063150b7a02146101935780631c928069146101cf5780631d6916ab146101e45780631dce8751146101f75780631f32ff5d1461020a5780632ceb9e341461021d575b600080fd5b6101b16101a1366004612bb2565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020015b60405180910390f35b6101e26101dd366004612fb9565b6103d6565b005b6101e26101f2366004612f69565b610655565b6101e2610205366004612c9c565b6109b3565b6101e2610218366004612eac565b610b63565b6101e261022b366004612b78565b610ba9565b6101e261023e366004612dc3565b610bff565b6101e2610251366004612f47565b611105565b6101e2610264366004612c70565b6111fb565b6101e2611300565b6101e2611336565b60ab5461028c906001600160a01b031681565b6040516001600160a01b0390911681526020016101c6565b6033546001600160a01b031661028c565b6102c86102c3366004612b78565b6113ef565b6040516101c69190613232565b6101e2611431565b6101e26102eb366004612f22565b6116ca565b6101e26102fe366004612eac565b61184d565b6101e2610311366004612d65565b61188e565b60ac5461028c906001600160a01b031681565b610349610337366004612ef0565b60009081526099602052604090205490565b6040519081526020016101c6565b61036a610365366004612e75565b6118d0565b6040516101c69190613263565b6101e2610385366004612c70565b611973565b6101e2610398366004612b78565b611a2d565b6101e26103ab366004612c32565b611a83565b6101e26103be366004612b78565b611da1565b6101e26103d1366004612b78565b611ded565b60a55485906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561042957600080fd5b505afa15801561043d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104619190612f09565b10156104a85760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064015b60405180910390fd5b60a55485906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561050157600080fd5b505afa158015610515573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105399190612f09565b101561057e5760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820616c6c6f77616e636560601b604482015260640161049f565b6105888484611105565b60a5546001600160a01b03166323b872dd3330886040518463ffffffff1660e01b81526004016105ba939291906130f4565b602060405180830381600087803b1580156105d457600080fd5b505af11580156105e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060c9190612e53565b507fffb602248dc285976b7e2916a3c995bfa9033d71c21e53423c5d1ff6c43df828338686868686604051610646969594939291906131e0565b60405180910390a15050505050565b6000614e20841015610673575060a3546001600160a01b0316610681565b5060a4546001600160a01b03165b6001600085815260a6602052604090205460ff1660068111156106a6576106a66134d8565b1480156106c95750600084815260a760205260409020546001600160a01b031633145b61070e5760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b210383630b1b29037b3103a37b5b2b760511b604482015260640161049f565b60a55483906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561076157600080fd5b505afa158015610775573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107999190612f09565b10156107db5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b604482015260640161049f565b60a55483906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561083457600080fd5b505afa158015610848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086c9190612f09565b10156108b15760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820616c6c6f77616e636560601b604482015260640161049f565b60a5546001600160a01b03166323b872dd3330866040518463ffffffff1660e01b81526004016108e3939291906130f4565b602060405180830381600087803b1580156108fd57600080fd5b505af1158015610911573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109359190612e53565b507fc7e76b88b68966e73e35c680275c89528c4484b2d464df47682fdbee21bb59393361096c836001600160a01b03166014611e85565b61097587612028565b60405160200161098692919061307a565b60408051601f19818403018152908290526109a5929187908790613199565b60405180910390a150505050565b60aa546001600160a01b03163314806109d657506033546001600160a01b031633145b6109f25760405162461bcd60e51b815260040161049f9061334c565b6000805b8351811015610a3857828181518110610a1157610a116134ee565b602002602001015182610a2491906133d8565b915080610a308161347d565b9150506109f6565b5060a5546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610a7c57600080fd5b505afa158015610a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab49190612f09565b811115610b035760405162461bcd60e51b815260206004820152601c60248201527f496e737566666963656e742054726561737572792042616c616e636500000000604482015260640161049f565b60005b8351811015610b5d57610b4b848281518110610b2457610b246134ee565b6020026020010151848381518110610b3e57610b3e6134ee565b6020026020010151611973565b80610b558161347d565b915050610b06565b50505050565b60005b8151811015610ba457610b9283838381518110610b8557610b856134ee565b602002602001015161212e565b80610b9c8161347d565b915050610b66565b505050565b6033546001600160a01b03163314610bd35760405162461bcd60e51b815260040161049f90613317565b60a480546001600160a01b039092166001600160a01b0319928316811790915560ac8054909216179055565b8351600214610c415760405162461bcd60e51b815260206004820152600e60248201526d14995c5d5a5c995cc80c881b999d60921b604482015260640161049f565b83600181518110610c5457610c546134ee565b602002602001015184600081518110610c6f57610c6f6134ee565b60200260200101511415610cb85760405162461bcd60e51b815260206004820152601060248201526f4964656e746963616c20746f6b656e7360801b604482015260640161049f565b60005b6002811015610dbb578160021415610d605760025b60a66000878481518110610ce657610ce66134ee565b60209081029190910181015182528101919091526040016000205460ff166006811115610d1557610d156134d8565b14610d5b5760405162461bcd60e51b815260206004820152601660248201527524b73b30b634b210383630b1b29037b3103a37b5b2b760511b604482015260640161049f565b610da9565b8160031415610d70576003610cd0565b60405162461bcd60e51b815260206004820152600e60248201526d496e636f7272656374207479706560901b604482015260640161049f565b80610db38161347d565b915050610cbb565b50610dfa84600081518110610dd257610dd26134ee565b602002602001015185600181518110610ded57610ded6134ee565b6020026020010151611105565b60008160021415610e915760a4546001600160a01b031663fc1cc1d1336000876040518463ffffffff1660e01b8152600401610e3893929190613118565b602060405180830381600087803b158015610e5257600080fd5b505af1158015610e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8a9190612f09565b9050610f22565b8160031415610f225760a4546001600160a01b031663fc1cc1d1336001876040518463ffffffff1660e01b8152600401610ecd93929190613118565b602060405180830381600087803b158015610ee757600080fd5b505af1158015610efb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1f9190612f09565b90505b610f30609780546001019055565b6000610f3b60975490565b9050604051806060016040528087600081518110610f5b57610f5b6134ee565b6020026020010151815260200187600181518110610f7b57610f7b6134ee565b60200260200101518152602001838152506098600083815260200190815260200160002060008201518160000155602082015181600101556040820151816002015590505060016099600088600081518110610fd957610fd96134ee565b602002602001015181526020019081526020016000206000828254610ffe91906133d8565b925050819055506001609960008860018151811061101e5761101e6134ee565b60200260200101518152602001908152602001600020600082825461104391906133d8565b925050819055507f9fcdf6d5ad4c5258fff802f442d5dde66134a72eb731328a17a2489b2e1f97f38660008151811061107e5761107e6134ee565b602002602001015187600181518110611099576110996134ee565b6020908102919091018101516040805193845291830152810184905260600160405180910390a17fcf0adf8d2968fe498575ddee559bd7280f8b0e47adb6326d410004503583d97b848387336040516110f594939291906132a7565b60405180910390a1505050505050565b600082815260996020526040902054600311801561113157506000818152609960205260409020546003115b61117d5760405162461bcd60e51b815260206004820152601960248201527f4d617820627265656420636f756e74206f6620706172656e7400000000000000604482015260640161049f565b600082815260a760205260409020546001600160a01b0316331480156111b95750600081815260a760205260409020546001600160a01b031633145b6111f75760405162461bcd60e51b815260206004820152600f60248201526e2737ba103a37b5b2b71037bbb732b960891b604482015260640161049f565b5050565b60aa546001600160a01b031633148061121e57506033546001600160a01b031633145b61123a5760405162461bcd60e51b815260040161049f9061334c565b60a55460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561128857600080fd5b505af115801561129c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c09190612e53565b507f1eafa06e291a912c7a1d32624933bd3091e8f1645463ef38c502465af32763ec3383836040516112f4939291906130f4565b60405180910390a15050565b6033546001600160a01b0316331461132a5760405162461bcd60e51b815260040161049f90613317565b611334600061240f565b565b600054610100900460ff166113515760005460ff1615611355565b303b155b6113b85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161049f565b600054610100900460ff161580156113da576000805461ffff19166101011790555b80156113ec576000805461ff00191690555b50565b6113f76129fc565b506040805180820182526001600160a01b039092166000818152609b6020908152838220548552918152609c825291909120549082015290565b600260655414156114845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161049f565b6002606555336000908152609b602052604090205480158015906114aa575060a2548111155b6114f65760405162461bcd60e51b815260206004820152601a60248201527f496e737566666963656e74207265776172642062616c616e6365000000000000604482015260640161049f565b60a5546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561153957600080fd5b505afa15801561154d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115719190612f09565b8111156115b95760405162461bcd60e51b8152602060048201526016602482015275496e737566666963656e742053432042616c616e636560501b604482015260640161049f565b60a5546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561161357600080fd5b505af1158015611627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164b9190612e53565b508060a2600082825461165e9190613423565b9091555050336000818152609c602090815260408083204290819055609b835281842093909355805193845290830184905282810191909152517ff01da32686223933d8a18a391060918c7f11a3648639edd87ae013e2e27317439181900360600190a1506001606555565b8160068111156116dc576116dc6134d8565b600084815260a6602052604090205460ff1660068111156116ff576116ff6134d8565b1480156117225750600083815260a760205260409020546001600160a01b031633145b61176e5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420736f75726365206f6620746f6b656e000000000000000000604482015260640161049f565b6000614e2084101561178c575060a3546001600160a01b031661179a565b5060a4546001600160a01b03165b600084815260a660205260409020805483919060ff191660018360068111156117c5576117c56134d8565b02179055506117d48285612461565b6117de83856124ba565b7fcc87456526ac56ed52af3443640bff4a72fc0d861e9a5fa9500dd760c939f63c33611814836001600160a01b03166014611e85565b61181d87612028565b60405160200161182e92919061307a565b60408051601f19818403018152908290526109a5929187908790613159565b60005b8151811015610ba45761187c8383838151811061186f5761186f6134ee565b60200260200101516125ad565b806118868161347d565b915050611850565b60005b8351811015610b5d576118be8482815181106118af576118af6134ee565b602002602001015184846116ca565b806118c88161347d565b915050611891565b6001600160a01b0381166000908152609a602052604081206060918460068111156118fd576118fd6134d8565b600681111561190e5761190e6134d8565b815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561196657602002820191906000526020600020905b815481526020019060010190808311611952575b5050505050905092915050565b60aa546001600160a01b031633148061199657506033546001600160a01b031633145b6119b25760405162461bcd60e51b815260040161049f9061334c565b6001600160a01b0382166000908152609b6020526040812082905560a280548392906119df9084906133d8565b9091555050604080516001600160a01b03841681526020810183905242918101919091527fbd0682fae90263f394bf341cc4c207fc356246f627963b5fdf3580867cb4a74e906060016112f4565b6033546001600160a01b03163314611a575760405162461bcd60e51b815260040161049f90613317565b60a380546001600160a01b039092166001600160a01b0319928316811790915560ab8054909216179055565b60aa546001600160a01b0316331480611aa657506033546001600160a01b031633145b611ac25760405162461bcd60e51b815260040161049f9061334c565b600081815260a760205260409020546001600160a01b03848116911614611b205760405162461bcd60e51b81526020600482015260126024820152712932b8bab4b932b99037bbb7103a37b5b2b760711b604482015260640161049f565b6000614e20821015611c485760a3546040516331a9108f60e11b81526004810184905230916001600160a01b031690636352211e9060240160206040518083038186803b158015611b7057600080fd5b505afa158015611b84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba89190612b95565b6001600160a01b031614611bce5760405162461bcd60e51b815260040161049f906132ec565b60a3546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90611c02903090889087906004016130f4565b600060405180830381600087803b158015611c1c57600080fd5b505af1158015611c30573d6000803e3d6000fd5b505060a3546001600160a01b03169250611d5f915050565b60a4546040516331a9108f60e11b81526004810184905230916001600160a01b031690636352211e9060240160206040518083038186803b158015611c8c57600080fd5b505afa158015611ca0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc49190612b95565b6001600160a01b031614611cea5760405162461bcd60e51b815260040161049f906132ec565b60a4546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90611d1e903090889087906004016130f4565b600060405180830381600087803b158015611d3857600080fd5b505af1158015611d4c573d6000803e3d6000fd5b505060a4546001600160a01b0316925050505b611d6a838386612884565b7f825493959fe570b7a44f61e7465286ebcb22922cdaac6d59788e25b925c4e9c630858385876040516109a59594939291906130b6565b6033546001600160a01b03163314611dcb5760405162461bcd60e51b815260040161049f90613317565b60aa80546001600160a01b0319166001600160a01b0392909216919091179055565b6033546001600160a01b03163314611e175760405162461bcd60e51b815260040161049f90613317565b6001600160a01b038116611e7c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049f565b6113ec8161240f565b60606000611e94836002613404565b611e9f9060026133d8565b67ffffffffffffffff811115611eb757611eb7613504565b6040519080825280601f01601f191660200182016040528015611ee1576020820181803683370190505b509050600360fc1b81600081518110611efc57611efc6134ee565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611f2b57611f2b6134ee565b60200101906001600160f81b031916908160001a9053506000611f4f846002613404565b611f5a9060016133d8565b90505b6001811115611fd2576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611f8e57611f8e6134ee565b1a60f81b828281518110611fa457611fa46134ee565b60200101906001600160f81b031916908160001a90535060049490941c93611fcb81613466565b9050611f5d565b5083156120215760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161049f565b9392505050565b60608161204c5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561207657806120608161347d565b915061206f9050600a836133f0565b9150612050565b60008167ffffffffffffffff81111561209157612091613504565b6040519080825280601f01601f1916602001820160405280156120bb576020820181803683370190505b5090505b8415612126576120d0600183613423565b91506120dd600a86613498565b6120e89060306133d8565b60f81b8183815181106120fd576120fd6134ee565b60200101906001600160f81b031916908160001a90535061211f600a866133f0565b94506120bf565b949350505050565b6000614e20821015612259573360a3546040516331a9108f60e11b8152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b15801561218357600080fd5b505afa158015612197573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bb9190612b95565b6001600160a01b0316146121e15760405162461bcd60e51b815260040161049f906132ec565b60a3546001600160a01b03166323b872dd3330856040518463ffffffff1660e01b8152600401612213939291906130f4565b600060405180830381600087803b15801561222d57600080fd5b505af1158015612241573d6000803e3d6000fd5b505060a3546001600160a01b03169250612373915050565b3360a4546040516331a9108f60e11b8152600481018590526001600160a01b039283169290911690636352211e9060240160206040518083038186803b1580156122a257600080fd5b505afa1580156122b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122da9190612b95565b6001600160a01b0316146123005760405162461bcd60e51b815260040161049f906132ec565b60a4546001600160a01b03166323b872dd3330856040518463ffffffff1660e01b8152600401612332939291906130f4565b600060405180830381600087803b15801561234c57600080fd5b505af1158015612360573d6000803e3d6000fd5b505060a4546001600160a01b0316925050505b600082815260a660205260409020805484919060ff1916600183600681111561239e5761239e6134d8565b0217905550600082815260a76020526040902080546001600160a01b031916331790556123cb8383612461565b7f776a67e20a1b92cab91e079266f95272800eebac4d269705891894ba0060b33f33308385876040516124029594939291906130b6565b60405180910390a1505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336000908152609a6020526040812090836006811115612483576124836134d8565b6006811115612494576124946134d8565b815260208082019290925260400160009081208054600181018255908252919020015550565b336000908152609a6020526040812061255490828560068111156124e0576124e06134d8565b60068111156124f1576124f16134d8565b815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561254957602002820191906000526020600020905b815481526020019060010190808311612535575b505050505083612990565b336000908152609a6020526040812091925082919085600681111561257b5761257b6134d8565b600681111561258c5761258c6134d8565b81526020019081526020016000209080519060200190610b5d929190612a1a565b600081815260a760205260409020546001600160a01b031633146126085760405162461bcd60e51b81526020600482015260126024820152712932b8bab4b932b99037bbb7103a37b5b2b760711b604482015260640161049f565b6000614e2082101561272e5760a3546040516331a9108f60e11b81526004810184905230916001600160a01b031690636352211e9060240160206040518083038186803b15801561265857600080fd5b505afa15801561266c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126909190612b95565b6001600160a01b0316146126b65760405162461bcd60e51b815260040161049f906132ec565b60a3546001600160a01b03166323b872dd3033856040518463ffffffff1660e01b81526004016126e8939291906130f4565b600060405180830381600087803b15801561270257600080fd5b505af1158015612716573d6000803e3d6000fd5b505060a3546001600160a01b03169250612843915050565b60a4546040516331a9108f60e11b81526004810184905230916001600160a01b031690636352211e9060240160206040518083038186803b15801561277257600080fd5b505afa158015612786573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127aa9190612b95565b6001600160a01b0316146127d05760405162461bcd60e51b815260040161049f906132ec565b60a4546001600160a01b03166323b872dd3033856040518463ffffffff1660e01b8152600401612802939291906130f4565b600060405180830381600087803b15801561281c57600080fd5b505af1158015612830573d6000803e3d6000fd5b505060a4546001600160a01b0316925050505b61284d83836124ba565b7f825493959fe570b7a44f61e7465286ebcb22922cdaac6d59788e25b925c4e9c630338385876040516124029594939291906130b6565b6001600160a01b0381166000908152609a6020526040812061292790828660068111156128b3576128b36134d8565b60068111156128c4576128c46134d8565b815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561291c57602002820191906000526020600020905b815481526020019060010190808311612908575b505050505084612990565b6001600160a01b0383166000908152609a60205260408120919250829190866006811115612957576129576134d8565b6006811115612968576129686134d8565b81526020019081526020016000209080519060200190612989929190612a1a565b5050505050565b606060005b83518110156129f457828482815181106129b1576129b16134ee565b602002602001015114156129e2578381815181106129d1576129d16134ee565b6020026020010160008152506129f4565b806129ec8161347d565b915050612995565b509192915050565b60405180604001604052806002906020820280368337509192915050565b828054828255906000526020600020908101928215612a55579160200282015b82811115612a55578251825591602001919060010190612a3a565b50612a61929150612a65565b5090565b5b80821115612a615760008155600101612a66565b600067ffffffffffffffff831115612a9457612a94613504565b612aa7601f8401601f1916602001613383565b9050828152838383011115612abb57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612ae357600080fd5b81356020612af8612af3836133b4565b613383565b80838252828201915082860187848660051b8901011115612b1857600080fd5b60005b85811015612b3757813584529284019290840190600101612b1b565b5090979650505050505050565b803560078110612b5357600080fd5b919050565b600082601f830112612b6957600080fd5b61202183833560208501612a7a565b600060208284031215612b8a57600080fd5b81356120218161351a565b600060208284031215612ba757600080fd5b81516120218161351a565b60008060008060808587031215612bc857600080fd5b8435612bd38161351a565b93506020850135612be38161351a565b925060408501359150606085013567ffffffffffffffff811115612c0657600080fd5b8501601f81018713612c1757600080fd5b612c2687823560208401612a7a565b91505092959194509250565b600080600060608486031215612c4757600080fd5b8335612c528161351a565b9250612c6060208501612b44565b9150604084013590509250925092565b60008060408385031215612c8357600080fd5b8235612c8e8161351a565b946020939093013593505050565b60008060408385031215612caf57600080fd5b823567ffffffffffffffff80821115612cc757600080fd5b818501915085601f830112612cdb57600080fd5b81356020612ceb612af3836133b4565b8083825282820191508286018a848660051b8901011115612d0b57600080fd5b600096505b84871015612d37578035612d238161351a565b835260019690960195918301918301612d10565b5096505086013592505080821115612d4e57600080fd5b50612d5b85828601612ad2565b9150509250929050565b600080600060608486031215612d7a57600080fd5b833567ffffffffffffffff811115612d9157600080fd5b612d9d86828701612ad2565b935050612dac60208501612b44565b9150612dba60408501612b44565b90509250925092565b60008060008060808587031215612dd957600080fd5b843567ffffffffffffffff80821115612df157600080fd5b612dfd88838901612ad2565b95506020870135915080821115612e1357600080fd5b612e1f88838901612b58565b94506040870135915080821115612e3557600080fd5b50612e4287828801612b58565b949793965093946060013593505050565b600060208284031215612e6557600080fd5b8151801515811461202157600080fd5b60008060408385031215612e8857600080fd5b612e9183612b44565b91506020830135612ea18161351a565b809150509250929050565b60008060408385031215612ebf57600080fd5b612ec883612b44565b9150602083013567ffffffffffffffff811115612ee457600080fd5b612d5b85828601612ad2565b600060208284031215612f0257600080fd5b5035919050565b600060208284031215612f1b57600080fd5b5051919050565b600080600060608486031215612f3757600080fd5b83359250612dac60208501612b44565b60008060408385031215612f5a57600080fd5b50508035926020909101359150565b600080600060608486031215612f7e57600080fd5b8335925060208401359150604084013567ffffffffffffffff811115612fa357600080fd5b612faf86828701612b58565b9150509250925092565b600080600080600060a08688031215612fd157600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115612ffe57600080fd5b61300a89838a01612b58565b9350608088013591508082111561302057600080fd5b5061302d88828901612b58565b9150509295509295909350565b6007811061304a5761304a6134d8565b9052565b6000815180845261306681602086016020860161343a565b601f01601f19169290920160200192915050565b6000835161308c81846020880161343a565b601d60f91b90830190815283516130aa81600184016020880161343a565b01600101949350505050565b6001600160a01b0386811682528581166020830152841660408201526060810183905260a081016130ea608083018461303a565b9695505050505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0384168152600060038410613136576131366134d8565b83602083015260606040830152613150606083018461304e565b95945050505050565b6001600160a01b038516815260806020820181905260009061317d9083018661304e565b905061318c604083018561303a565b613150606083018461303a565b6001600160a01b03851681526080602082018190526000906131bd9083018661304e565b84604084015282810360608401526131d5818561304e565b979650505050505050565b60018060a01b038716815285602082015284604082015283606082015260c06080820152600061321360c083018561304e565b82810360a0840152613225818561304e565b9998505050505050505050565b60408101818360005b600281101561325a57815183526020928301929091019060010161323b565b50505092915050565b6020808252825182820181905260009190848201906040850190845b8181101561329b5783518352928401929184019160010161327f565b50909695505050505050565b6080815260006132ba608083018761304e565b85602084015282810360408401526132d2818661304e565b91505060018060a01b038316606083015295945050505050565b6020808252601190820152700496e76616c6964206f776e65727368697607c1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a908201527f43616c6c6572206973206e6f74206a6f62206578656375746f72000000000000604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156133ac576133ac613504565b604052919050565b600067ffffffffffffffff8211156133ce576133ce613504565b5060051b60200190565b600082198211156133eb576133eb6134ac565b500190565b6000826133ff576133ff6134c2565b500490565b600081600019048311821515161561341e5761341e6134ac565b500290565b600082821015613435576134356134ac565b500390565b60005b8381101561345557818101518382015260200161343d565b83811115610b5d5750506000910152565b600081613475576134756134ac565b506000190190565b6000600019821415613491576134916134ac565b5060010190565b6000826134a7576134a76134c2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113ec57600080fdfea2646970667358221220f9ab53d092ba499425f44f9fe2ac903b9b2f1b6fc526465c48a97127c737d4e764736f6c63430008060033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading