ETH Price: $2,750.61 (+6.89%)

Transaction Decoder

Block:
13264836 at Sep-20-2021 08:35:02 PM +UTC
Transaction Fee:
0.004374829548787155 ETH $12.03
Gas Used:
74,355 Gas / 58.837059361 Gwei

Emitted Events:

456 BrightToken.Transfer( from=[Receiver] MerkleDistributor, to=0x295B422AA112623c8b8Cc7d9b59cC69936b1dC6A, value=515000000000000000000 )
457 MerkleDistributor.Claimed( claimIndex=467, account=0x295B422AA112623c8b8Cc7d9b59cC69936b1dC6A, amount=515000000000000000000 )

Account State Difference:

  Address   Before After State Difference Code
0x209b9eEB...553E812bD
0.157598951663916929 Eth
Nonce: 56
0.153224122115129774 Eth
Nonce: 57
0.004374829548787155
(Spark Pool)
13.566364525850165258 Eth13.566476058350165258 Eth0.0001115325
0x5dD57Da4...1BA740DfE
0xE939b6Cb...70282F49c

Execution Trace

MerkleDistributor.claim( )
  • BrightToken.transfer( recipient=0x295B422AA112623c8b8Cc7d9b59cC69936b1dC6A, amount=515000000000000000000 ) => ( True )
    File 1 of 2: MerkleDistributor
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    import "../utils/Context.sol";
    /**
     * @dev Contract module which provides a basic access control mechanism, where
     * there is an account (an owner) that can be granted exclusive access to
     * specific functions.
     *
     * By default, the owner account will be the one that deploys the contract. This
     * can later be changed with {transferOwnership}.
     *
     * This module is used through inheritance. It will make available the modifier
     * `onlyOwner`, which can be applied to your functions to restrict their use to
     * the owner.
     */
    abstract contract Ownable is Context {
        address private _owner;
        event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
        /**
         * @dev Initializes the contract setting the deployer as the initial owner.
         */
        constructor () {
            address msgSender = _msgSender();
            _owner = msgSender;
            emit OwnershipTransferred(address(0), 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 {
            emit OwnershipTransferred(_owner, address(0));
            _owner = 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");
            emit OwnershipTransferred(_owner, newOwner);
            _owner = newOwner;
        }
    }
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    /**
     * @dev Interface of the ERC20 standard as defined in the EIP.
     */
    interface IERC20 {
        /**
         * @dev Returns the amount of tokens in existence.
         */
        function totalSupply() external view returns (uint256);
        /**
         * @dev Returns the amount of tokens owned by `account`.
         */
        function balanceOf(address account) external view returns (uint256);
        /**
         * @dev Moves `amount` tokens from the caller's account to `recipient`.
         *
         * Returns a boolean value indicating whether the operation succeeded.
         *
         * Emits a {Transfer} event.
         */
        function transfer(address recipient, uint256 amount) external returns (bool);
        /**
         * @dev Returns the remaining number of tokens that `spender` will be
         * allowed to spend on behalf of `owner` through {transferFrom}. This is
         * zero by default.
         *
         * This value changes when {approve} or {transferFrom} are called.
         */
        function allowance(address owner, address spender) external view returns (uint256);
        /**
         * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
         *
         * Returns a boolean value indicating whether the operation succeeded.
         *
         * IMPORTANT: Beware that changing an allowance with this method brings the risk
         * that someone may use both the old and the new allowance by unfortunate
         * transaction ordering. One possible solution to mitigate this race
         * condition is to first reduce the spender's allowance to 0 and set the
         * desired value afterwards:
         * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
         *
         * Emits an {Approval} event.
         */
        function approve(address spender, uint256 amount) external returns (bool);
        /**
         * @dev Moves `amount` tokens from `sender` to `recipient` using the
         * allowance mechanism. `amount` is then deducted from the caller's
         * allowance.
         *
         * Returns a boolean value indicating whether the operation succeeded.
         *
         * Emits a {Transfer} event.
         */
        function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
        /**
         * @dev Emitted when `value` tokens are moved from one account (`from`) to
         * another (`to`).
         *
         * Note that `value` may be zero.
         */
        event Transfer(address indexed from, address indexed to, uint256 value);
        /**
         * @dev Emitted when the allowance of a `spender` for an `owner` is set by
         * a call to {approve}. `value` is the new allowance.
         */
        event Approval(address indexed owner, address indexed spender, uint256 value);
    }
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    /*
     * @dev Provides information about the current execution context, including the
     * sender of the transaction and its data. While these are generally available
     * via msg.sender and msg.data, they should not be accessed in such a direct
     * manner, since when dealing with meta-transactions the account sending and
     * paying for execution may not be the actual sender (as far as an application
     * is concerned).
     *
     * This contract is only required for intermediate, library-like contracts.
     */
    abstract contract Context {
        function _msgSender() internal view virtual returns (address) {
            return msg.sender;
        }
        function _msgData() internal view virtual returns (bytes calldata) {
            this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
            return msg.data;
        }
    }
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    /**
     * @dev These functions deal with verification of Merkle trees (hash trees),
     */
    library MerkleProof {
        /**
         * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
         * defined by `root`. For this, a `proof` must be provided, containing
         * sibling hashes on the branch from the leaf to the root of the tree. Each
         * pair of leaves and each pair of pre-images are assumed to be sorted.
         */
        function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
            bytes32 computedHash = leaf;
            for (uint256 i = 0; i < proof.length; i++) {
                bytes32 proofElement = proof[i];
                if (computedHash <= proofElement) {
                    // Hash(current computed hash + current element of the proof)
                    computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
                } else {
                    // Hash(current element of the proof + current computed hash)
                    computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
                }
            }
            // Check if the computed hash (root) is equal to the provided root
            return computedHash == root;
        }
    }
    // SPDX-License-Identifier: UNLICENSED
    pragma solidity ^0.8.0;
    import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
    import "@openzeppelin/contracts/access/Ownable.sol";
    import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
    import "./interfaces/IMerkleDistributor.sol";
    import "hardhat/console.sol";
    /**
     * @title Sweepable Airdrop contract based on merkle tree
     *
     * The airdrop has an expiration time. Once this expiration time
     * is reached the contract owner can sweep all unclaimed funds.
     * As long as the contract has funds, claiming will continue to
     * work after expiration time.
     *
     * @author Michael Bauer <[email protected]>
     */
    contract MerkleDistributor is IMerkleDistributor, Ownable {
        address public immutable override token;
        bytes32 public immutable override merkleRoot;
        uint256 public immutable override expireTimestamp;
        // Packed array of booleans.
        mapping(uint256 => uint256) private claimedBitMap;
        /**
         * @dev sets values for associated token (ERC20), merkleRoot and expiration time
         *
         * @param token_ Contract address of the ERC20 token that is being dropped
         * @param merkleRoot_ Root of the token distribution merkle tree
         * @param expireTimestamp_ Timestamp when sweeping gets enabled (seconds since unix epoch)
         *
         * All three of these values are immutable: they can only be set once during
         * construction.
         */
        constructor(address token_, bytes32 merkleRoot_, uint256 expireTimestamp_) {
            token = token_;
            merkleRoot = merkleRoot_;
            expireTimestamp = expireTimestamp_;
        }
        function isClaimed(uint256 index) public view override returns (bool) {
            uint256 claimedWordIndex = index / 256;
            uint256 claimedBitIndex = index % 256;
            uint256 claimedWord = claimedBitMap[claimedWordIndex];
            uint256 mask = (1 << claimedBitIndex);
            return claimedWord & mask == mask;
        }
        function _setClaimed(uint256 index) private {
            uint256 claimedWordIndex = index / 256;
            uint256 claimedBitIndex = index % 256;
            claimedBitMap[claimedWordIndex] =
            claimedBitMap[claimedWordIndex] |
            (1 << claimedBitIndex);
        }
        function claim(
            uint256 index,
            address account,
            uint256 amount,
            bytes32[] calldata merkleProof
        ) external override {
            require(!isClaimed(index), "MerkleDistributor: Drop already claimed.");
            // Verify the merkle proof.
            bytes32 leaf = keccak256(abi.encodePacked(index, account, amount));
            require(MerkleProof.verify(merkleProof, merkleRoot, leaf),
                    "MerkleDistributor: Invalid proof.");
            // Mark it claimed.
            _setClaimed(index);
            // Transfer token
            require(IERC20(token).transfer(account, amount), 'MerkleDistributor: Failed token transfer');
            emit Claimed(index, account, amount);
        }
        /**
         * @dev Sweep any unclaimed funds to arbitrary destination. Can only be called by owner.
         */
        function sweep(address target) external override onlyOwner {
            require(block.timestamp >= expireTimestamp, "MerkleDistributor: Drop not expired");
            IERC20 tokenContract = IERC20(token);
            uint256 balance = tokenContract.balanceOf(address(this));
            tokenContract.transfer(target, balance);
        }
        /**
         * @dev Sweep any unclaimed funds to contract owner. Can be called by anyone.
         */
        function sweepToOwner() external override {
            require(block.timestamp >= expireTimestamp, "MerkleDistributor: Drop not expired");
            IERC20 tokenContract = IERC20(token);
            uint256 balance = tokenContract.balanceOf(address(this));
            tokenContract.transfer(owner(), balance);
        }
    }
    // SPDX-License-Identifier: UNLICENSED
    pragma solidity ^0.8.0;
    /**
     * @title Interface for a sweepable airdrop contract based on merkle tree
     *
     * The airdrop has an expiration time. Once this expiration time
     * is reached the contract owner can sweep all unclaimed funds.
     * As long as the contract has funds, claiming will continue to
     * work after expiration time.
     *
     * @author Michael Bauer <[email protected]>
     */
    interface IMerkleDistributor {
        /**
         * Returns the address of the token distributed by this contract.
         */
        function token() external view returns (address);
        /**
         * Returns the expiration time of the airdrop as unix timestamp
         * (Seconds since unix epoch)
         */
        function expireTimestamp() external view returns (uint256);
        /**
         * Returns the merkle root of the merkle tree containing
         * account balances available to claim.
         */
        function merkleRoot() external view returns (bytes32);
        /**
         * Returns true if the index has been marked as claimed.
         */
        function isClaimed(uint256 index) external view returns (bool);
        /**
         * @notice Claim and transfer tokens
         *
         * Verifies the provided proof and params
         * and transfers 'amount' of tokens to 'account'.
         *
         * @param index Index of claim
         * @param account Address of claim
         * @param amount Amount of claim
         * @param proof Merkle proof for (index, account, amount)
         *
         * Emits a {Claimed} event on success.
         */
        function claim(
            uint256 index,
            address account,
            uint256 amount,
            bytes32[] calldata proof
        ) external;
        /**
         * @notice Sweep any unclaimed funds
         *
         * Transfers the full tokenbalance from the distributor contract to `target` address.
         *
         * @param target Address that should receive the unclaimed funds
         */
        function sweep(address target) external;
        /**
         * @notice Sweep any unclaimed funds to owner address
         *
         * Transfers the full tokenbalance from the distributor contract to owner of contract.
         */
        function sweepToOwner() external;
        /**
         * @dev Emitted when an airdrop is claimed for an `account`. `index` is the index
         * in the merkle tree, `value` is the amount of tokens claimed and transferred.
         */
        event Claimed(uint256 indexed claimIndex, address indexed account, uint256 amount);
    }
    // SPDX-License-Identifier: MIT
    pragma solidity >= 0.4.22 <0.9.0;
    library console {
    \taddress constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
    \tfunction _sendLogPayload(bytes memory payload) private view {
    \t\tuint256 payloadLength = payload.length;
    \t\taddress consoleAddress = CONSOLE_ADDRESS;
    \t\tassembly {
    \t\t\tlet payloadStart := add(payload, 32)
    \t\t\tlet r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
    \t\t}
    \t}
    \tfunction log() internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log()"));
    \t}
    \tfunction logInt(int p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
    \t}
    \tfunction logUint(uint p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
    \t}
    \tfunction logString(string memory p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
    \t}
    \tfunction logBool(bool p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
    \t}
    \tfunction logAddress(address p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
    \t}
    \tfunction logBytes(bytes memory p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
    \t}
    \tfunction logBytes1(bytes1 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
    \t}
    \tfunction logBytes2(bytes2 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
    \t}
    \tfunction logBytes3(bytes3 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
    \t}
    \tfunction logBytes4(bytes4 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
    \t}
    \tfunction logBytes5(bytes5 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
    \t}
    \tfunction logBytes6(bytes6 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
    \t}
    \tfunction logBytes7(bytes7 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
    \t}
    \tfunction logBytes8(bytes8 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
    \t}
    \tfunction logBytes9(bytes9 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
    \t}
    \tfunction logBytes10(bytes10 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
    \t}
    \tfunction logBytes11(bytes11 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
    \t}
    \tfunction logBytes12(bytes12 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
    \t}
    \tfunction logBytes13(bytes13 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
    \t}
    \tfunction logBytes14(bytes14 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
    \t}
    \tfunction logBytes15(bytes15 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
    \t}
    \tfunction logBytes16(bytes16 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
    \t}
    \tfunction logBytes17(bytes17 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
    \t}
    \tfunction logBytes18(bytes18 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
    \t}
    \tfunction logBytes19(bytes19 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
    \t}
    \tfunction logBytes20(bytes20 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
    \t}
    \tfunction logBytes21(bytes21 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
    \t}
    \tfunction logBytes22(bytes22 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
    \t}
    \tfunction logBytes23(bytes23 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
    \t}
    \tfunction logBytes24(bytes24 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
    \t}
    \tfunction logBytes25(bytes25 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
    \t}
    \tfunction logBytes26(bytes26 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
    \t}
    \tfunction logBytes27(bytes27 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
    \t}
    \tfunction logBytes28(bytes28 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
    \t}
    \tfunction logBytes29(bytes29 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
    \t}
    \tfunction logBytes30(bytes30 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
    \t}
    \tfunction logBytes31(bytes31 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
    \t}
    \tfunction logBytes32(bytes32 p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
    \t}
    \tfunction log(uint p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
    \t}
    \tfunction log(string memory p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
    \t}
    \tfunction log(bool p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
    \t}
    \tfunction log(address p0) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
    \t}
    \tfunction log(uint p0, uint p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
    \t}
    \tfunction log(uint p0, string memory p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
    \t}
    \tfunction log(uint p0, bool p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
    \t}
    \tfunction log(uint p0, address p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
    \t}
    \tfunction log(string memory p0, uint p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
    \t}
    \tfunction log(string memory p0, string memory p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
    \t}
    \tfunction log(string memory p0, bool p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
    \t}
    \tfunction log(string memory p0, address p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
    \t}
    \tfunction log(bool p0, uint p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
    \t}
    \tfunction log(bool p0, string memory p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
    \t}
    \tfunction log(bool p0, bool p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
    \t}
    \tfunction log(bool p0, address p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
    \t}
    \tfunction log(address p0, uint p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
    \t}
    \tfunction log(address p0, string memory p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
    \t}
    \tfunction log(address p0, bool p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
    \t}
    \tfunction log(address p0, address p1) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
    \t}
    \tfunction log(uint p0, uint p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, uint p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, uint p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, uint p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, string memory p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, string memory p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, string memory p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, string memory p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, bool p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, bool p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, bool p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, bool p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, address p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, address p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, address p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, address p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, uint p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, uint p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, uint p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, uint p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, string memory p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, string memory p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, string memory p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, string memory p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, bool p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, bool p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, bool p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, bool p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, address p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, address p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, address p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
    \t}
    \tfunction log(string memory p0, address p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, uint p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, uint p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, uint p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, uint p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, string memory p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, string memory p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, string memory p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, string memory p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, bool p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, bool p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, bool p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, bool p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, address p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, address p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, address p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
    \t}
    \tfunction log(bool p0, address p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
    \t}
    \tfunction log(address p0, uint p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
    \t}
    \tfunction log(address p0, uint p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
    \t}
    \tfunction log(address p0, uint p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
    \t}
    \tfunction log(address p0, uint p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
    \t}
    \tfunction log(address p0, string memory p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
    \t}
    \tfunction log(address p0, string memory p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
    \t}
    \tfunction log(address p0, string memory p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
    \t}
    \tfunction log(address p0, string memory p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
    \t}
    \tfunction log(address p0, bool p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
    \t}
    \tfunction log(address p0, bool p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
    \t}
    \tfunction log(address p0, bool p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
    \t}
    \tfunction log(address p0, bool p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
    \t}
    \tfunction log(address p0, address p1, uint p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
    \t}
    \tfunction log(address p0, address p1, string memory p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
    \t}
    \tfunction log(address p0, address p1, bool p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
    \t}
    \tfunction log(address p0, address p1, address p2) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
    \t}
    \tfunction log(uint p0, uint p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, uint p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, string memory p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, bool p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(uint p0, address p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, uint p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, string memory p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, bool p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(string memory p0, address p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, uint p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, string memory p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, bool p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(bool p0, address p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, uint p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, string memory p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, bool p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, uint p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, uint p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, uint p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, uint p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, string memory p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, string memory p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, string memory p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, string memory p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, bool p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, bool p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, bool p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, bool p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, address p2, uint p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, address p2, string memory p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, address p2, bool p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
    \t}
    \tfunction log(address p0, address p1, address p2, address p3) internal view {
    \t\t_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
    \t}
    }
    

    File 2 of 2: BrightToken
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    import "../utils/Context.sol";
    /**
     * @dev Contract module which provides a basic access control mechanism, where
     * there is an account (an owner) that can be granted exclusive access to
     * specific functions.
     *
     * By default, the owner account will be the one that deploys the contract. This
     * can later be changed with {transferOwnership}.
     *
     * This module is used through inheritance. It will make available the modifier
     * `onlyOwner`, which can be applied to your functions to restrict their use to
     * the owner.
     */
    abstract contract Ownable is Context {
        address private _owner;
        event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
        /**
         * @dev Initializes the contract setting the deployer as the initial owner.
         */
        constructor () {
            address msgSender = _msgSender();
            _owner = msgSender;
            emit OwnershipTransferred(address(0), 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 {
            emit OwnershipTransferred(_owner, address(0));
            _owner = 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");
            emit OwnershipTransferred(_owner, newOwner);
            _owner = newOwner;
        }
    }
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    import "./IERC20.sol";
    import "../../utils/Context.sol";
    /**
     * @dev Implementation of the {IERC20} interface.
     *
     * This implementation is agnostic to the way tokens are created. This means
     * that a supply mechanism has to be added in a derived contract using {_mint}.
     * For a generic mechanism see {ERC20PresetMinterPauser}.
     *
     * TIP: For a detailed writeup see our guide
     * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
     * to implement supply mechanisms].
     *
     * We have followed general OpenZeppelin guidelines: functions revert instead
     * of returning `false` on failure. This behavior is nonetheless conventional
     * and does not conflict with the expectations of ERC20 applications.
     *
     * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
     * This allows applications to reconstruct the allowance for all accounts just
     * by listening to said events. Other implementations of the EIP may not emit
     * these events, as it isn't required by the specification.
     *
     * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
     * functions have been added to mitigate the well-known issues around setting
     * allowances. See {IERC20-approve}.
     */
    contract ERC20 is Context, IERC20 {
        mapping (address => uint256) private _balances;
        mapping (address => mapping (address => uint256)) private _allowances;
        uint256 private _totalSupply;
        string private _name;
        string private _symbol;
        /**
         * @dev Sets the values for {name} and {symbol}.
         *
         * The defaut value of {decimals} is 18. To select a different value for
         * {decimals} you should overload it.
         *
         * All three of these values are immutable: they can only be set once during
         * construction.
         */
        constructor (string memory name_, string memory symbol_) {
            _name = name_;
            _symbol = symbol_;
        }
        /**
         * @dev Returns the name of the token.
         */
        function name() public view virtual returns (string memory) {
            return _name;
        }
        /**
         * @dev Returns the symbol of the token, usually a shorter version of the
         * name.
         */
        function symbol() public view virtual returns (string memory) {
            return _symbol;
        }
        /**
         * @dev Returns the number of decimals used to get its user representation.
         * For example, if `decimals` equals `2`, a balance of `505` tokens should
         * be displayed to a user as `5,05` (`505 / 10 ** 2`).
         *
         * Tokens usually opt for a value of 18, imitating the relationship between
         * Ether and Wei. This is the value {ERC20} uses, unless this function is
         * overloaded;
         *
         * NOTE: This information is only used for _display_ purposes: it in
         * no way affects any of the arithmetic of the contract, including
         * {IERC20-balanceOf} and {IERC20-transfer}.
         */
        function decimals() public view virtual returns (uint8) {
            return 18;
        }
        /**
         * @dev See {IERC20-totalSupply}.
         */
        function totalSupply() public view virtual override returns (uint256) {
            return _totalSupply;
        }
        /**
         * @dev See {IERC20-balanceOf}.
         */
        function balanceOf(address account) public view virtual override returns (uint256) {
            return _balances[account];
        }
        /**
         * @dev See {IERC20-transfer}.
         *
         * Requirements:
         *
         * - `recipient` cannot be the zero address.
         * - the caller must have a balance of at least `amount`.
         */
        function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
            _transfer(_msgSender(), recipient, amount);
            return true;
        }
        /**
         * @dev See {IERC20-allowance}.
         */
        function allowance(address owner, address spender) public view virtual override returns (uint256) {
            return _allowances[owner][spender];
        }
        /**
         * @dev See {IERC20-approve}.
         *
         * Requirements:
         *
         * - `spender` cannot be the zero address.
         */
        function approve(address spender, uint256 amount) public virtual override returns (bool) {
            _approve(_msgSender(), spender, amount);
            return true;
        }
        /**
         * @dev See {IERC20-transferFrom}.
         *
         * Emits an {Approval} event indicating the updated allowance. This is not
         * required by the EIP. See the note at the beginning of {ERC20}.
         *
         * Requirements:
         *
         * - `sender` and `recipient` cannot be the zero address.
         * - `sender` must have a balance of at least `amount`.
         * - the caller must have allowance for ``sender``'s tokens of at least
         * `amount`.
         */
        function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
            _transfer(sender, recipient, amount);
            uint256 currentAllowance = _allowances[sender][_msgSender()];
            require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
            _approve(sender, _msgSender(), currentAllowance - amount);
            return true;
        }
        /**
         * @dev Atomically increases the allowance granted to `spender` by the caller.
         *
         * This is an alternative to {approve} that can be used as a mitigation for
         * problems described in {IERC20-approve}.
         *
         * Emits an {Approval} event indicating the updated allowance.
         *
         * Requirements:
         *
         * - `spender` cannot be the zero address.
         */
        function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
            _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
            return true;
        }
        /**
         * @dev Atomically decreases the allowance granted to `spender` by the caller.
         *
         * This is an alternative to {approve} that can be used as a mitigation for
         * problems described in {IERC20-approve}.
         *
         * Emits an {Approval} event indicating the updated allowance.
         *
         * Requirements:
         *
         * - `spender` cannot be the zero address.
         * - `spender` must have allowance for the caller of at least
         * `subtractedValue`.
         */
        function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
            uint256 currentAllowance = _allowances[_msgSender()][spender];
            require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
            return true;
        }
        /**
         * @dev Moves tokens `amount` from `sender` to `recipient`.
         *
         * This is internal function is equivalent to {transfer}, and can be used to
         * e.g. implement automatic token fees, slashing mechanisms, etc.
         *
         * Emits a {Transfer} event.
         *
         * Requirements:
         *
         * - `sender` cannot be the zero address.
         * - `recipient` cannot be the zero address.
         * - `sender` must have a balance of at least `amount`.
         */
        function _transfer(address sender, address recipient, uint256 amount) internal virtual {
            require(sender != address(0), "ERC20: transfer from the zero address");
            require(recipient != address(0), "ERC20: transfer to the zero address");
            _beforeTokenTransfer(sender, recipient, amount);
            uint256 senderBalance = _balances[sender];
            require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
            _balances[sender] = senderBalance - amount;
            _balances[recipient] += amount;
            emit Transfer(sender, recipient, amount);
        }
        /** @dev Creates `amount` tokens and assigns them to `account`, increasing
         * the total supply.
         *
         * Emits a {Transfer} event with `from` set to the zero address.
         *
         * Requirements:
         *
         * - `to` cannot be the zero address.
         */
        function _mint(address account, uint256 amount) internal virtual {
            require(account != address(0), "ERC20: mint to the zero address");
            _beforeTokenTransfer(address(0), account, amount);
            _totalSupply += amount;
            _balances[account] += amount;
            emit Transfer(address(0), account, amount);
        }
        /**
         * @dev Destroys `amount` tokens from `account`, reducing the
         * total supply.
         *
         * Emits a {Transfer} event with `to` set to the zero address.
         *
         * Requirements:
         *
         * - `account` cannot be the zero address.
         * - `account` must have at least `amount` tokens.
         */
        function _burn(address account, uint256 amount) internal virtual {
            require(account != address(0), "ERC20: burn from the zero address");
            _beforeTokenTransfer(account, address(0), amount);
            uint256 accountBalance = _balances[account];
            require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
            _balances[account] = accountBalance - amount;
            _totalSupply -= amount;
            emit Transfer(account, address(0), amount);
        }
        /**
         * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
         *
         * This internal function is equivalent to `approve`, and can be used to
         * e.g. set automatic allowances for certain subsystems, etc.
         *
         * Emits an {Approval} event.
         *
         * Requirements:
         *
         * - `owner` cannot be the zero address.
         * - `spender` cannot be the zero address.
         */
        function _approve(address owner, address spender, uint256 amount) internal virtual {
            require(owner != address(0), "ERC20: approve from the zero address");
            require(spender != address(0), "ERC20: approve to the zero address");
            _allowances[owner][spender] = amount;
            emit Approval(owner, spender, amount);
        }
        /**
         * @dev Hook that is called before any transfer of tokens. This includes
         * minting and burning.
         *
         * Calling conditions:
         *
         * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
         * will be to transferred to `to`.
         * - when `from` is zero, `amount` tokens will be minted for `to`.
         * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
         * - `from` and `to` are never both zero.
         *
         * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
         */
        function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
    }
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    /**
     * @dev Interface of the ERC20 standard as defined in the EIP.
     */
    interface IERC20 {
        /**
         * @dev Returns the amount of tokens in existence.
         */
        function totalSupply() external view returns (uint256);
        /**
         * @dev Returns the amount of tokens owned by `account`.
         */
        function balanceOf(address account) external view returns (uint256);
        /**
         * @dev Moves `amount` tokens from the caller's account to `recipient`.
         *
         * Returns a boolean value indicating whether the operation succeeded.
         *
         * Emits a {Transfer} event.
         */
        function transfer(address recipient, uint256 amount) external returns (bool);
        /**
         * @dev Returns the remaining number of tokens that `spender` will be
         * allowed to spend on behalf of `owner` through {transferFrom}. This is
         * zero by default.
         *
         * This value changes when {approve} or {transferFrom} are called.
         */
        function allowance(address owner, address spender) external view returns (uint256);
        /**
         * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
         *
         * Returns a boolean value indicating whether the operation succeeded.
         *
         * IMPORTANT: Beware that changing an allowance with this method brings the risk
         * that someone may use both the old and the new allowance by unfortunate
         * transaction ordering. One possible solution to mitigate this race
         * condition is to first reduce the spender's allowance to 0 and set the
         * desired value afterwards:
         * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
         *
         * Emits an {Approval} event.
         */
        function approve(address spender, uint256 amount) external returns (bool);
        /**
         * @dev Moves `amount` tokens from `sender` to `recipient` using the
         * allowance mechanism. `amount` is then deducted from the caller's
         * allowance.
         *
         * Returns a boolean value indicating whether the operation succeeded.
         *
         * Emits a {Transfer} event.
         */
        function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
        /**
         * @dev Emitted when `value` tokens are moved from one account (`from`) to
         * another (`to`).
         *
         * Note that `value` may be zero.
         */
        event Transfer(address indexed from, address indexed to, uint256 value);
        /**
         * @dev Emitted when the allowance of a `spender` for an `owner` is set by
         * a call to {approve}. `value` is the new allowance.
         */
        event Approval(address indexed owner, address indexed spender, uint256 value);
    }
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    /*
     * @dev Provides information about the current execution context, including the
     * sender of the transaction and its data. While these are generally available
     * via msg.sender and msg.data, they should not be accessed in such a direct
     * manner, since when dealing with meta-transactions the account sending and
     * paying for execution may not be the actual sender (as far as an application
     * is concerned).
     *
     * This contract is only required for intermediate, library-like contracts.
     */
    abstract contract Context {
        function _msgSender() internal view virtual returns (address) {
            return msg.sender;
        }
        function _msgData() internal view virtual returns (bytes calldata) {
            this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
            return msg.data;
        }
    }
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
    import "@openzeppelin/contracts/access/Ownable.sol";
    // Dynamic cap starts at 25.000.000
    uint constant MIN_DYNAMIC_CAP = 25000000e18;
    // mint restriction: 10.000.000 (precisely 10000000000000000030176000) per year broken down to seconds. Assuming a year is exactly 365 days or 31536000 seconds.
    uint constant UNITS_PER_SECOND = 317097919837645866;
    // seconds until dynamic cap will equal hard cap
    // Calculated as: (CAP - MIN_DYNAMIC_CAP) / UNITS_PER_SECOND
    // Equals ~7.5 years
    uint constant DYNAMIC_CAP_DURATION = 236520000;
    contract BrightToken is ERC20, Ownable {
        // 100.000.000 hard cap
        uint256 public constant cap = 100000000e18;
        // deployment timestamp
        uint256 public created = block.timestamp;
        // minting can be locked until this timestamp is reached
        uint256 public mintingLockedUntil = 0;
        constructor()
            ERC20("Bright", "BRIGHT")
        {}
        /**
         * @dev Returns the dynamic cap based on time. Will never exceed hardcap.
         */
        function dynamicCap() public view returns (uint256) {
            // How much time passed since deployment
            uint age_seconds = block.timestamp - created;
            assert(age_seconds >= 0);
            // shortcut in case dynamic cap would exceed hardcap.
            if (age_seconds >= DYNAMIC_CAP_DURATION) {
                return cap;
            }
            return MIN_DYNAMIC_CAP + (age_seconds * UNITS_PER_SECOND);
        }
        function mint(address to, uint256 amount) public onlyOwner {
            // Are we allowed to mint at all?
            require(block.timestamp > mintingLockedUntil, "Minting locked");
            // prevent minting more than dynamic cap
            require(ERC20.totalSupply() + amount <= dynamicCap(), "cap exceeded");
            _mint(to, amount);
        }
        function setMintingLock(uint256 timestamp) public onlyOwner {
            require(timestamp > mintingLockedUntil, "locktime can not be decreased");
            require(timestamp > block.timestamp, "locktime can not be in the past");
            mintingLockedUntil = timestamp;
        }
    }