ETH Price: $3,287.51 (+1.23%)
Gas: 1 Gwei

Token

The Mighty Gorillas (TMG)
 

Overview

Max Total Supply

8,888 TMG

Holders

257

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TMG
0x854a5e96e927af48f3ddd794d17d1417a242964e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MightyGorillas

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

File 4 of 14 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 7 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // Mapping from token ID to approved address.
    mapping(uint256 => TokenApprovalRef) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

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

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 9 of 14 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 10 of 14 : MightyGorillas.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract MightyGorillas is ERC721A, DefaultOperatorFilterer, Ownable {
    //  Contracts
    ERC20Burnable public jungleToken;

    // Jungle Bank
    address public jungleBank;

    //  Accounts
    address private constant creator0Address =
        0x73e3187ebF63C9E8a1539772678272781BC2838f;
    address private constant creator1Address =
        0x68615b557073262FA0ab9eD41533a5c4Dd81e2BE;
    address private constant creator2Address =
        0x0C36922266e6cE0f92a357E20399F295c2b9ff10;
    address private constant creator3Address =
        0x73001491D58400F6c29fd9E6D6FfF8A46dB86eE7;
    address private constant creator4Address =
        0xBF9fE3aE379FF32a4aC2fB1196D271c557f42513;

    // Minting Variables
    uint256 public maxSupply = 8888;
    uint256 public reserveSupply = 1500;
    uint256 public publicMintPrice = 0.03 ether;
    uint256 public privateMintPrice = 0.02 ether;
    uint256 public mintJungleCoinPrice = 1000 ether;
    uint256 public maxPurchase = 5;

    // Metadata lock
    bool public locked;

    // Sale Status
    bool public presaleActive;
    bool public publicSaleActive;
    bool public jungleSaleActive;

    // Merkle Roots
    bytes32 private allowlistRoot;
    bytes32 private claimableRoot;
    bytes32 private jungleRoot;

    mapping(address => bool) public hasClaimed;
    mapping(address => uint256) public mintCounts;
    mapping(address => uint256) public jungleMintCounts;

    // Metadata
    string _baseTokenURI;

    // Events
    event PublicSaleActivation(bool isActive);
    event PresaleActivation(bool isActive);
    event JungleSaleActivation(bool isActive);

    // Contract
    constructor(
        address jungleTokenAddress,
        address jungleBankAddress
    ) ERC721A("The Mighty Gorillas", "TMG") {
        jungleToken = ERC20Burnable(jungleTokenAddress);
        jungleBank = jungleBankAddress;
    }

    // Merkle Proofs
    function setAllowlistRoot(bytes32 _root) external onlyOwner {
        allowlistRoot = _root;
    }

    function setClaimableRoot(bytes32 _root) external onlyOwner {
        claimableRoot = _root;
    }

    function setJungleRoot(bytes32 _root) external onlyOwner {
        jungleRoot = _root;
    }

    function setReserveSupply(uint256 _reserveSupply) external onlyOwner {
        reserveSupply = _reserveSupply;
    }

    // Minting
    function ownerMint(address _to, uint256 _count) external onlyOwner {
        require(
            totalSupply() + _count <= (maxSupply - reserveSupply),
            "exceeds max supply"
        );

        _safeMint(_to, _count);
    }

    function presaleMint(
        uint256 _count,
        bytes32[] calldata _proof
    ) external payable {
        require(presaleActive, "Presale must be active");
        require(
            isInTree(msg.sender, _proof, allowlistRoot),
            "not whitelisted for presale"
        );
        require(
            mintCounts[msg.sender] + _count <= maxPurchase,
            "exceeds the account's quota"
        );
        require(
            totalSupply() + _count <= (maxSupply - reserveSupply),
            "exceeds max supply"
        );
        require(
            privateMintPrice * _count <= msg.value,
            "Ether value sent is not correct"
        );

        mintCounts[msg.sender] = mintCounts[msg.sender] + _count;
        require(
            mintCounts[msg.sender] <= maxPurchase,
            "exceeds the account's quota"
        );

        _safeMint(msg.sender, _count);
    }

    function mint(uint256 _count) external payable {
        require(publicSaleActive, "Sale must be active");
        require(_count <= maxPurchase, "exceeds maximum purchase amount");
        require(
            mintCounts[msg.sender] + _count <= maxPurchase,
            "exceeds the account's quota"
        );

        require(
            totalSupply() + _count <= (maxSupply - reserveSupply),
            "exceeds max supply"
        );
        require(
            publicMintPrice * _count <= msg.value,
            "Ether value sent is not correct"
        );

        mintCounts[msg.sender] = mintCounts[msg.sender] + _count;
        require(
            mintCounts[msg.sender] <= maxPurchase,
            "exceeds the account's quota"
        );

        _safeMint(msg.sender, _count);
    }

    /**
     * @dev Mints a token with Jungle Coin
     * @param _count The number of NFTs to mint
     * @param _maxClaim The maximum number of NFTs that can be claimed. This must match what is in the Merkle Tree
     * @param _proof The Merkle proof
     */
    function mintWithJungle(
        uint256 _count,
        uint256 _maxClaim,
        bytes32[] calldata _proof
    ) external payable {
        require(jungleSaleActive, "Sale must be active");
        require(canClaim(msg.sender, _maxClaim, _proof, jungleRoot), "proof");
        require(
            totalSupply() + _count <= (maxSupply - reserveSupply),
            "exceeds max supply"
        );

        jungleMintCounts[msg.sender] = jungleMintCounts[msg.sender] + _count;
        require(
            jungleMintCounts[msg.sender] <= _maxClaim,
            "exceeds the account's quota"
        );

        jungleToken.transferFrom(
            _msgSender(),
            jungleBank,
            _count * mintJungleCoinPrice
        );

        _safeMint(msg.sender, _count);
    }

    /**
     * @dev Claims a token with Jungle Coin
     * @param _count The number of NFTs to claim
     * @param _proof The Merkle proof
     */
    function claim(uint _count, bytes32[] calldata _proof) external {
        require(totalSupply() + _count <= maxSupply, "exceeds max supply");
        require(!hasClaimed[msg.sender], "claimed");
        require(canClaim(msg.sender, _count, _proof, claimableRoot), "proof");
        hasClaimed[msg.sender] = true;
        _safeMint(msg.sender, _count);
    }

    // Configurations
    function lockMetadata() external onlyOwner {
        locked = true;
    }

    function togglePresaleStatus() external onlyOwner {
        presaleActive = !presaleActive;
        emit PresaleActivation(presaleActive);
    }

    function toggleSaleStatus() external onlyOwner {
        publicSaleActive = !publicSaleActive;
        emit PublicSaleActivation(publicSaleActive);
    }

    function toggleJungleSaleStatus() external onlyOwner {
        jungleSaleActive = !jungleSaleActive;
        emit JungleSaleActivation(jungleSaleActive);
    }

    function setPrivateMintPrice(uint256 _mintPrice) external onlyOwner {
        privateMintPrice = _mintPrice;
    }

    function setPublicMintPrice(uint256 _mintPrice) external onlyOwner {
        publicMintPrice = _mintPrice;
    }

    function setMintJungleCoinPrice(
        uint256 _mintJungleCoinPrice
    ) external onlyOwner {
        mintJungleCoinPrice = _mintJungleCoinPrice;
    }

    function setMaxPurchase(uint256 _maxPurchase) external onlyOwner {
        maxPurchase = _maxPurchase;
    }

    function setJungleBank(address _jungleBank) external onlyOwner {
        jungleBank = _jungleBank;
    }

    function withdrawAll() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Balance can't be zero");

        uint256 creator1Dividend = (balance / 100) * 18;
        uint256 creator2Dividend = (balance / 100) * 2;
        uint256 creator3Dividend = (balance / 100) * 3;
        uint256 creator4Dividend = (balance / 100) * 4;

        payable(creator1Address).transfer(creator1Dividend);
        payable(creator2Address).transfer(creator2Dividend);
        payable(creator3Address).transfer(creator3Dividend);
        payable(creator4Address).transfer(creator4Dividend);
        payable(creator0Address).transfer(address(this).balance);
    }

    function getTotalSupply() external view returns (uint256) {
        return totalSupply();
    }

    function setBaseURI(string memory baseURI) external onlyOwner {
        require(!locked, "Contract metadata methods are locked");
        _baseTokenURI = baseURI;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function _leaf(address _account) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(_account));
    }

    function _leaf(
        address _account,
        uint _amount
    ) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(_account, _amount));
    }

    function isInTree(
        address _account,
        bytes32[] calldata _proof,
        bytes32 _root
    ) internal pure returns (bool) {
        return MerkleProof.verify(_proof, _root, _leaf(_account));
    }

    function canClaim(
        address _account,
        uint _amount,
        bytes32[] calldata _proof,
        bytes32 _root
    ) internal pure returns (bool) {
        return MerkleProof.verify(_proof, _root, _leaf(_account, _amount));
    }

    // =============
    // for DefaultOperatorFilterer
    // =============
    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(
        address operator,
        uint256 tokenId
    ) public payable override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 11 of 14 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 12 of 14 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 13 of 14 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 14 of 14 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"jungleTokenAddress","type":"address"},{"internalType":"address","name":"jungleBankAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"JungleSaleActivation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"PresaleActivation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"PublicSaleActivation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jungleBank","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"jungleMintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jungleSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jungleToken","outputs":[{"internalType":"contract ERC20Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintJungleCoinPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"_maxClaim","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintWithJungle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setAllowlistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setClaimableRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_jungleBank","type":"address"}],"name":"setJungleBank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setJungleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPurchase","type":"uint256"}],"name":"setMaxPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintJungleCoinPrice","type":"uint256"}],"name":"setMintJungleCoinPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setPrivateMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reserveSupply","type":"uint256"}],"name":"setReserveSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleJungleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526122b8600b556105dc600c55666a94d74f430000600d5566470de4df820000600e55683635c9adc5dea00000600f5560056010553480156200004557600080fd5b50604051620053bd380380620053bd83398181016040528101906200006b919062000508565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601381526020017f546865204d696768747920476f72696c6c6173000000000000000000000000008152506040518060400160405280600381526020017f544d4700000000000000000000000000000000000000000000000000000000008152508160029081620000ff9190620007c9565b508060039081620001119190620007c9565b5062000122620003cb60201b60201c565b600081905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200031f578015620001e5576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001ab929190620008c1565b600060405180830381600087803b158015620001c657600080fd5b505af1158015620001db573d6000803e3d6000fd5b505050506200031e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200029f576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b815260040162000265929190620008c1565b600060405180830381600087803b1580156200028057600080fd5b505af115801562000295573d6000803e3d6000fd5b505050506200031d565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002e89190620008ee565b600060405180830381600087803b1580156200030357600080fd5b505af115801562000318573d6000803e3d6000fd5b505050505b5b5b50506200034162000335620003d060201b60201c565b620003d860201b60201c565b81600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200090b565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004d082620004a3565b9050919050565b620004e281620004c3565b8114620004ee57600080fd5b50565b6000815190506200050281620004d7565b92915050565b600080604083850312156200052257620005216200049e565b5b60006200053285828601620004f1565b92505060206200054585828601620004f1565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005d157607f821691505b602082108103620005e757620005e662000589565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000612565b6200065d868362000612565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006aa620006a46200069e8462000675565b6200067f565b62000675565b9050919050565b6000819050919050565b620006c68362000689565b620006de620006d582620006b1565b8484546200061f565b825550505050565b600090565b620006f5620006e6565b62000702818484620006bb565b505050565b5b818110156200072a576200071e600082620006eb565b60018101905062000708565b5050565b601f82111562000779576200074381620005ed565b6200074e8462000602565b810160208510156200075e578190505b620007766200076d8562000602565b83018262000707565b50505b505050565b600082821c905092915050565b60006200079e600019846008026200077e565b1980831691505092915050565b6000620007b983836200078b565b9150826002028217905092915050565b620007d4826200054f565b67ffffffffffffffff811115620007f057620007ef6200055a565b5b620007fc8254620005b8565b620008098282856200072e565b600060209050601f8311600181146200084157600084156200082c578287015190505b620008388582620007ab565b865550620008a8565b601f1984166200085186620005ed565b60005b828110156200087b5784890151825560018201915060208501945060208101905062000854565b868310156200089b578489015162000897601f8916826200078b565b8355505b6001600288020188555050505b505050505050565b620008bb81620004c3565b82525050565b6000604082019050620008d86000830185620008b0565b620008e76020830184620008b0565b9392505050565b6000602082019050620009056000830184620008b0565b92915050565b614aa2806200091b6000396000f3fe6080604052600436106103345760003560e01c8063715018a6116101ab578063a0a59484116100f7578063c87b56dd11610095578063dc53fd921161006f578063dc53fd9214610b43578063e3e1e8ef14610b6e578063e985e9c514610b8a578063f2fde38b14610bc757610334565b8063c87b56dd14610ab0578063cf30901214610aed578063d5abeb0114610b1857610334565b8063a76c3b57116100d1578063a76c3b5714610a13578063b88d4fde14610a3e578063bc8893b414610a5a578063c4e41b2214610a8557610334565b8063a0a5948414610996578063a22cb465146109c1578063a5acc9a9146109ea57610334565b80638e0acd1211610164578063961d12661161013e578063961d1266146108fb578063977b055b14610938578063989bdbb614610963578063a0712d681461097a57610334565b80638e0acd121461087e5780638fdf83e0146108a757806395d89b41146108d057610334565b8063715018a6146107a857806373b2e80e146107bf5780637bffb4ce146107fc5780637f837f7314610813578063853828b61461083c5780638da5cb5b1461085357610334565b80632f52ebb71161028557806353135ca0116102235780635d82cf6e116101fd5780635d82cf6e146106dc5780636352211e1461070557806370a0823114610742578063711897421461077f57610334565b806353135ca01461064b578063532778791461067657806355f804b3146106b357610334565b806341f434341161025f57806341f43434146105b257806342842e0e146105dd578063484b973c146105f9578063505cee491461062257610334565b80632f52ebb714610542578063383b588b1461056b5780633d51f9bd1461059657610334565b8063095ea7b3116102f257806318160ddd116102cc57806318160ddd146104bb57806318aae185146104e65780631970d1fb146104fd57806323b872dd1461052657610334565b8063095ea7b31461044b5780630aaf593f146104675780630eda46df1461049057610334565b806204348e1461033957806301ffc9a71461036457806303d41eb6146103a1578063049c5c49146103cc57806306fdde03146103e3578063081812fc1461040e575b600080fd5b34801561034557600080fd5b5061034e610bf0565b60405161035b91906134b3565b60405180910390f35b34801561037057600080fd5b5061038b6004803603810190610386919061353a565b610bf6565b6040516103989190613582565b60405180910390f35b3480156103ad57600080fd5b506103b6610c88565b6040516103c391906134b3565b60405180910390f35b3480156103d857600080fd5b506103e1610c8e565b005b3480156103ef57600080fd5b506103f8610d08565b604051610405919061362d565b60405180910390f35b34801561041a57600080fd5b506104356004803603810190610430919061367b565b610d9a565b60405161044291906136e9565b60405180910390f35b61046560048036038101906104609190613730565b610e19565b005b34801561047357600080fd5b5061048e600480360381019061048991906137a6565b610e32565b005b34801561049c57600080fd5b506104a5610e44565b6040516104b29190613582565b60405180910390f35b3480156104c757600080fd5b506104d0610e57565b6040516104dd91906134b3565b60405180910390f35b3480156104f257600080fd5b506104fb610e6e565b005b34801561050957600080fd5b50610524600480360381019061051f919061367b565b610ee8565b005b610540600480360381019061053b91906137d3565b610efa565b005b34801561054e57600080fd5b506105696004803603810190610564919061388b565b610f49565b005b34801561057757600080fd5b506105806110e2565b60405161058d91906136e9565b60405180910390f35b6105b060048036038101906105ab91906138eb565b611108565b005b3480156105be57600080fd5b506105c7611402565b6040516105d491906139be565b60405180910390f35b6105f760048036038101906105f291906137d3565b611414565b005b34801561060557600080fd5b50610620600480360381019061061b9190613730565b611463565b005b34801561062e57600080fd5b506106496004803603810190610644919061367b565b6114dd565b005b34801561065757600080fd5b506106606114ef565b60405161066d9190613582565b60405180910390f35b34801561068257600080fd5b5061069d600480360381019061069891906139d9565b611502565b6040516106aa91906134b3565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d59190613b36565b61151a565b005b3480156106e857600080fd5b5061070360048036038101906106fe919061367b565b611585565b005b34801561071157600080fd5b5061072c6004803603810190610727919061367b565b611597565b60405161073991906136e9565b60405180910390f35b34801561074e57600080fd5b50610769600480360381019061076491906139d9565b6115a9565b60405161077691906134b3565b60405180910390f35b34801561078b57600080fd5b506107a660048036038101906107a1919061367b565b611661565b005b3480156107b457600080fd5b506107bd611673565b005b3480156107cb57600080fd5b506107e660048036038101906107e191906139d9565b611687565b6040516107f39190613582565b60405180910390f35b34801561080857600080fd5b506108116116a7565b005b34801561081f57600080fd5b5061083a600480360381019061083591906137a6565b611721565b005b34801561084857600080fd5b50610851611733565b005b34801561085f57600080fd5b506108686119c5565b60405161087591906136e9565b60405180910390f35b34801561088a57600080fd5b506108a560048036038101906108a091906137a6565b6119ef565b005b3480156108b357600080fd5b506108ce60048036038101906108c991906139d9565b611a01565b005b3480156108dc57600080fd5b506108e5611a4d565b6040516108f2919061362d565b60405180910390f35b34801561090757600080fd5b50610922600480360381019061091d91906139d9565b611adf565b60405161092f91906134b3565b60405180910390f35b34801561094457600080fd5b5061094d611af7565b60405161095a91906134b3565b60405180910390f35b34801561096f57600080fd5b50610978611afd565b005b610994600480360381019061098f919061367b565b611b22565b005b3480156109a257600080fd5b506109ab611e18565b6040516109b89190613ba0565b60405180910390f35b3480156109cd57600080fd5b506109e860048036038101906109e39190613be7565b611e3e565b005b3480156109f657600080fd5b50610a116004803603810190610a0c919061367b565b611e57565b005b348015610a1f57600080fd5b50610a28611e69565b604051610a3591906134b3565b60405180910390f35b610a586004803603810190610a539190613cc8565b611e6f565b005b348015610a6657600080fd5b50610a6f611ec0565b604051610a7c9190613582565b60405180910390f35b348015610a9157600080fd5b50610a9a611ed3565b604051610aa791906134b3565b60405180910390f35b348015610abc57600080fd5b50610ad76004803603810190610ad2919061367b565b611ee2565b604051610ae4919061362d565b60405180910390f35b348015610af957600080fd5b50610b02611f80565b604051610b0f9190613582565b60405180910390f35b348015610b2457600080fd5b50610b2d611f93565b604051610b3a91906134b3565b60405180910390f35b348015610b4f57600080fd5b50610b58611f99565b604051610b6591906134b3565b60405180910390f35b610b886004803603810190610b83919061388b565b611f9f565b005b348015610b9657600080fd5b50610bb16004803603810190610bac9190613d4b565b61229f565b604051610bbe9190613582565b60405180910390f35b348015610bd357600080fd5b50610bee6004803603810190610be991906139d9565b612333565b005b600e5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c815750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600c5481565b610c966123b6565b601160029054906101000a900460ff1615601160026101000a81548160ff0219169083151502179055507f1c27adbe19c2f592844c4b67508b6e5dce275dc961a69a647af7c4d768de0f8e601160029054906101000a900460ff16604051610cfe9190613582565b60405180910390a1565b606060028054610d1790613dba565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4390613dba565b8015610d905780601f10610d6557610100808354040283529160200191610d90565b820191906000526020600020905b815481529060010190602001808311610d7357829003601f168201915b5050505050905090565b6000610da582612434565b610ddb576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610e2381612493565b610e2d8383612590565b505050565b610e3a6123b6565b8060138190555050565b601160039054906101000a900460ff1681565b6000610e616126d4565b6001546000540303905090565b610e766123b6565b601160039054906101000a900460ff1615601160036101000a81548160ff0219169083151502179055507faa5106810f1156380a1f88664c87d7ef819d9968f71d8c8bef5a2f833925a521601160039054906101000a900460ff16604051610ede9190613582565b60405180910390a1565b610ef06123b6565b80600e8190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f3857610f3733612493565b5b610f438484846126d9565b50505050565b600b5483610f55610e57565b610f5f9190613e1a565b1115610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790613e9a565b60405180910390fd5b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561102d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102490613f06565b60405180910390fd5b61103c338484846013546129fb565b61107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107290613f72565b60405180910390fd5b6001601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506110dd3384612a5d565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601160039054906101000a900460ff16611157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114e90613fde565b60405180910390fd5b611166338484846014546129fb565b6111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90613f72565b60405180910390fd5b600c54600b546111b59190613ffe565b846111be610e57565b6111c89190613e1a565b1115611209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120090613e9a565b60405180910390fd5b83601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112549190613e1a565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611319576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113109061407e565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61135f612a7b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600f5488611390919061409e565b6040518463ffffffff1660e01b81526004016113ae939291906140e0565b6020604051808303816000875af11580156113cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f1919061412c565b506113fc3385612a5d565b50505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146114525761145133612493565b5b61145d848484612a83565b50505050565b61146b6123b6565b600c54600b5461147b9190613ffe565b81611484610e57565b61148e9190613e1a565b11156114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690613e9a565b60405180910390fd5b6114d98282612a5d565b5050565b6114e56123b6565b80600c8190555050565b601160019054906101000a900460ff1681565b60166020528060005260406000206000915090505481565b6115226123b6565b601160009054906101000a900460ff1615611572576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611569906141cb565b60405180910390fd5b8060189081611581919061438d565b5050565b61158d6123b6565b80600d8190555050565b60006115a282612aa3565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611610576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6116696123b6565b8060108190555050565b61167b6123b6565b6116856000612b6f565b565b60156020528060005260406000206000915054906101000a900460ff1681565b6116af6123b6565b601160019054906101000a900460ff1615601160016101000a81548160ff0219169083151502179055507f42133c3a5199a92c96a540af6aee25899ebc1da7cc9ac9e3536653b61c3c60d7601160019054906101000a900460ff166040516117179190613582565b60405180910390a1565b6117296123b6565b8060148190555050565b61173b6123b6565b600047905060008111611783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177a906144ab565b60405180910390fd5b6000601260648361179491906144fa565b61179e919061409e565b9050600060026064846117b191906144fa565b6117bb919061409e565b9050600060036064856117ce91906144fa565b6117d8919061409e565b9050600060046064866117eb91906144fa565b6117f5919061409e565b90507368615b557073262fa0ab9ed41533a5c4dd81e2be73ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f19350505050158015611851573d6000803e3d6000fd5b50730c36922266e6ce0f92a357e20399f295c2b9ff1073ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156118ac573d6000803e3d6000fd5b507373001491d58400f6c29fd9e6d6fff8a46db86ee773ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611907573d6000803e3d6000fd5b5073bf9fe3ae379ff32a4ac2fb1196d271c557f4251373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611962573d6000803e3d6000fd5b507373e3187ebf63c9e8a1539772678272781bc2838f73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156119bd573d6000803e3d6000fd5b505050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119f76123b6565b8060128190555050565b611a096123b6565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060038054611a5c90613dba565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8890613dba565b8015611ad55780601f10611aaa57610100808354040283529160200191611ad5565b820191906000526020600020905b815481529060010190602001808311611ab857829003601f168201915b5050505050905090565b60176020528060005260406000206000915090505481565b60105481565b611b056123b6565b6001601160006101000a81548160ff021916908315150217905550565b601160029054906101000a900460ff16611b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6890613fde565b60405180910390fd5b601054811115611bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad90614577565b60405180910390fd5b60105481601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c049190613e1a565b1115611c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3c9061407e565b60405180910390fd5b600c54600b54611c559190613ffe565b81611c5e610e57565b611c689190613e1a565b1115611ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca090613e9a565b60405180910390fd5b3481600d54611cb8919061409e565b1115611cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf0906145e3565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d449190613e1a565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601054601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e029061407e565b60405180910390fd5b611e153382612a5d565b50565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b81611e4881612493565b611e528383612c35565b505050565b611e5f6123b6565b80600f8190555050565b600f5481565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ead57611eac33612493565b5b611eb985858585612d40565b5050505050565b601160029054906101000a900460ff1681565b6000611edd610e57565b905090565b6060611eed82612434565b611f23576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f2d612db3565b90506000815103611f4d5760405180602001604052806000815250611f78565b80611f5784612e45565b604051602001611f6892919061463f565b6040516020818303038152906040525b915050919050565b601160009054906101000a900460ff1681565b600b5481565b600d5481565b601160019054906101000a900460ff16611fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe5906146af565b60405180910390fd5b611ffc338383601254612e95565b61203b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120329061471b565b60405180910390fd5b60105483601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120899190613e1a565b11156120ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c19061407e565b60405180910390fd5b600c54600b546120da9190613ffe565b836120e3610e57565b6120ed9190613e1a565b111561212e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212590613e9a565b60405180910390fd5b3483600e5461213d919061409e565b111561217e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612175906145e3565b60405180910390fd5b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121c99190613e1a565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601054601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612290576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122879061407e565b60405180910390fd5b61229a3384612a5d565b505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61233b6123b6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a1906147ad565b60405180910390fd5b6123b381612b6f565b50565b6123be612a7b565b73ffffffffffffffffffffffffffffffffffffffff166123dc6119c5565b73ffffffffffffffffffffffffffffffffffffffff1614612432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242990614819565b60405180910390fd5b565b60008161243f6126d4565b1115801561244e575060005482105b801561248c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561258d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161250a929190614839565b602060405180830381865afa158015612527573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254b919061412c565b61258c57806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161258391906136e9565b60405180910390fd5b5b50565b600061259b82611597565b90508073ffffffffffffffffffffffffffffffffffffffff166125bc612ef5565b73ffffffffffffffffffffffffffffffffffffffff161461261f576125e8816125e3612ef5565b61229f565b61261e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60006126e482612aa3565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461274b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061275784612efd565b9150915061276d8187612768612ef5565b612f24565b6127b9576127828661277d612ef5565b61229f565b6127b8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361281f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61282c8686866001612f68565b801561283757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612905856128e1888887612f6e565b7c020000000000000000000000000000000000000000000000000000000017612f96565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361298b5760006001850190506000600460008381526020019081526020016000205403612989576000548114612988578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129f38686866001612fc1565b505050505050565b6000612a52848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505083612a4d8989612fc7565b612ffa565b905095945050505050565b612a77828260405180602001604052806000815250613011565b5050565b600033905090565b612a9e83838360405180602001604052806000815250611e6f565b505050565b60008082905080612ab26126d4565b11612b3857600054811015612b375760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612b35575b60008103612b2b576004600083600190039350838152602001908152602001600020549050612b01565b8092505050612b6a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060076000612c42612ef5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612cef612ef5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d349190613582565b60405180910390a35050565b612d4b848484610efa565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612dad57612d76848484846130ae565b612dac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060188054612dc290613dba565b80601f0160208091040260200160405190810160405280929190818152602001828054612dee90613dba565b8015612e3b5780601f10612e1057610100808354040283529160200191612e3b565b820191906000526020600020905b815481529060010190602001808311612e1e57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612e8057600184039350600a81066030018453600a8104905080612e5e575b50828103602084039350808452505050919050565b6000612eeb848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505083612ee6886131fe565b612ffa565b9050949350505050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f8586868461322e565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008282604051602001612fdc9291906148cb565b60405160208183030381529060405280519060200120905092915050565b6000826130078584613237565b1490509392505050565b61301b838361328d565b60008373ffffffffffffffffffffffffffffffffffffffff163b146130a957600080549050600083820390505b61305b60008683806001019450866130ae565b613091576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106130485781600054146130a657600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d4612ef5565b8786866040518563ffffffff1660e01b81526004016130f6949392919061494c565b6020604051808303816000875af192505050801561313257506040513d601f19601f8201168201806040525081019061312f91906149ad565b60015b6131ab573d8060008114613162576040519150601f19603f3d011682016040523d82523d6000602084013e613167565b606091505b5060008151036131a3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008160405160200161321191906149da565b604051602081830303815290604052805190602001209050919050565b60009392505050565b60008082905060005b84518110156132825761326d828683815181106132605761325f6149f5565b5b6020026020010151613448565b9150808061327a90614a24565b915050613240565b508091505092915050565b600080549050600082036132cd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132da6000848385612f68565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613351836133426000866000612f6e565b61334b85613473565b17612f96565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146133f257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506133b7565b506000820361342d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506134436000848385612fc1565b505050565b60008183106134605761345b8284613483565b61346b565b61346a8383613483565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000819050919050565b6134ad8161349a565b82525050565b60006020820190506134c860008301846134a4565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613517816134e2565b811461352257600080fd5b50565b6000813590506135348161350e565b92915050565b6000602082840312156135505761354f6134d8565b5b600061355e84828501613525565b91505092915050565b60008115159050919050565b61357c81613567565b82525050565b60006020820190506135976000830184613573565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135d75780820151818401526020810190506135bc565b60008484015250505050565b6000601f19601f8301169050919050565b60006135ff8261359d565b61360981856135a8565b93506136198185602086016135b9565b613622816135e3565b840191505092915050565b6000602082019050818103600083015261364781846135f4565b905092915050565b6136588161349a565b811461366357600080fd5b50565b6000813590506136758161364f565b92915050565b600060208284031215613691576136906134d8565b5b600061369f84828501613666565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136d3826136a8565b9050919050565b6136e3816136c8565b82525050565b60006020820190506136fe60008301846136da565b92915050565b61370d816136c8565b811461371857600080fd5b50565b60008135905061372a81613704565b92915050565b60008060408385031215613747576137466134d8565b5b60006137558582860161371b565b925050602061376685828601613666565b9150509250929050565b6000819050919050565b61378381613770565b811461378e57600080fd5b50565b6000813590506137a08161377a565b92915050565b6000602082840312156137bc576137bb6134d8565b5b60006137ca84828501613791565b91505092915050565b6000806000606084860312156137ec576137eb6134d8565b5b60006137fa8682870161371b565b935050602061380b8682870161371b565b925050604061381c86828701613666565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261384b5761384a613826565b5b8235905067ffffffffffffffff8111156138685761386761382b565b5b60208301915083602082028301111561388457613883613830565b5b9250929050565b6000806000604084860312156138a4576138a36134d8565b5b60006138b286828701613666565b935050602084013567ffffffffffffffff8111156138d3576138d26134dd565b5b6138df86828701613835565b92509250509250925092565b60008060008060608587031215613905576139046134d8565b5b600061391387828801613666565b945050602061392487828801613666565b935050604085013567ffffffffffffffff811115613945576139446134dd565b5b61395187828801613835565b925092505092959194509250565b6000819050919050565b600061398461397f61397a846136a8565b61395f565b6136a8565b9050919050565b600061399682613969565b9050919050565b60006139a88261398b565b9050919050565b6139b88161399d565b82525050565b60006020820190506139d360008301846139af565b92915050565b6000602082840312156139ef576139ee6134d8565b5b60006139fd8482850161371b565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a43826135e3565b810181811067ffffffffffffffff82111715613a6257613a61613a0b565b5b80604052505050565b6000613a756134ce565b9050613a818282613a3a565b919050565b600067ffffffffffffffff821115613aa157613aa0613a0b565b5b613aaa826135e3565b9050602081019050919050565b82818337600083830152505050565b6000613ad9613ad484613a86565b613a6b565b905082815260208101848484011115613af557613af4613a06565b5b613b00848285613ab7565b509392505050565b600082601f830112613b1d57613b1c613826565b5b8135613b2d848260208601613ac6565b91505092915050565b600060208284031215613b4c57613b4b6134d8565b5b600082013567ffffffffffffffff811115613b6a57613b696134dd565b5b613b7684828501613b08565b91505092915050565b6000613b8a8261398b565b9050919050565b613b9a81613b7f565b82525050565b6000602082019050613bb56000830184613b91565b92915050565b613bc481613567565b8114613bcf57600080fd5b50565b600081359050613be181613bbb565b92915050565b60008060408385031215613bfe57613bfd6134d8565b5b6000613c0c8582860161371b565b9250506020613c1d85828601613bd2565b9150509250929050565b600067ffffffffffffffff821115613c4257613c41613a0b565b5b613c4b826135e3565b9050602081019050919050565b6000613c6b613c6684613c27565b613a6b565b905082815260208101848484011115613c8757613c86613a06565b5b613c92848285613ab7565b509392505050565b600082601f830112613caf57613cae613826565b5b8135613cbf848260208601613c58565b91505092915050565b60008060008060808587031215613ce257613ce16134d8565b5b6000613cf08782880161371b565b9450506020613d018782880161371b565b9350506040613d1287828801613666565b925050606085013567ffffffffffffffff811115613d3357613d326134dd565b5b613d3f87828801613c9a565b91505092959194509250565b60008060408385031215613d6257613d616134d8565b5b6000613d708582860161371b565b9250506020613d818582860161371b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613dd257607f821691505b602082108103613de557613de4613d8b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e258261349a565b9150613e308361349a565b9250828201905080821115613e4857613e47613deb565b5b92915050565b7f65786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000613e846012836135a8565b9150613e8f82613e4e565b602082019050919050565b60006020820190508181036000830152613eb381613e77565b9050919050565b7f636c61696d656400000000000000000000000000000000000000000000000000600082015250565b6000613ef06007836135a8565b9150613efb82613eba565b602082019050919050565b60006020820190508181036000830152613f1f81613ee3565b9050919050565b7f70726f6f66000000000000000000000000000000000000000000000000000000600082015250565b6000613f5c6005836135a8565b9150613f6782613f26565b602082019050919050565b60006020820190508181036000830152613f8b81613f4f565b9050919050565b7f53616c65206d7573742062652061637469766500000000000000000000000000600082015250565b6000613fc86013836135a8565b9150613fd382613f92565b602082019050919050565b60006020820190508181036000830152613ff781613fbb565b9050919050565b60006140098261349a565b91506140148361349a565b925082820390508181111561402c5761402b613deb565b5b92915050565b7f6578636565647320746865206163636f756e7427732071756f74610000000000600082015250565b6000614068601b836135a8565b915061407382614032565b602082019050919050565b600060208201905081810360008301526140978161405b565b9050919050565b60006140a98261349a565b91506140b48361349a565b92508282026140c28161349a565b915082820484148315176140d9576140d8613deb565b5b5092915050565b60006060820190506140f560008301866136da565b61410260208301856136da565b61410f60408301846134a4565b949350505050565b60008151905061412681613bbb565b92915050565b600060208284031215614142576141416134d8565b5b600061415084828501614117565b91505092915050565b7f436f6e7472616374206d65746164617461206d6574686f647320617265206c6f60008201527f636b656400000000000000000000000000000000000000000000000000000000602082015250565b60006141b56024836135a8565b91506141c082614159565b604082019050919050565b600060208201905081810360008301526141e4816141a8565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261424d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614210565b6142578683614210565b95508019841693508086168417925050509392505050565b600061428a6142856142808461349a565b61395f565b61349a565b9050919050565b6000819050919050565b6142a48361426f565b6142b86142b082614291565b84845461421d565b825550505050565b600090565b6142cd6142c0565b6142d881848461429b565b505050565b5b818110156142fc576142f16000826142c5565b6001810190506142de565b5050565b601f82111561434157614312816141eb565b61431b84614200565b8101602085101561432a578190505b61433e61433685614200565b8301826142dd565b50505b505050565b600082821c905092915050565b600061436460001984600802614346565b1980831691505092915050565b600061437d8383614353565b9150826002028217905092915050565b6143968261359d565b67ffffffffffffffff8111156143af576143ae613a0b565b5b6143b98254613dba565b6143c4828285614300565b600060209050601f8311600181146143f757600084156143e5578287015190505b6143ef8582614371565b865550614457565b601f198416614405866141eb565b60005b8281101561442d57848901518255600182019150602085019450602081019050614408565b8683101561444a5784890151614446601f891682614353565b8355505b6001600288020188555050505b505050505050565b7f42616c616e63652063616e2774206265207a65726f0000000000000000000000600082015250565b60006144956015836135a8565b91506144a08261445f565b602082019050919050565b600060208201905081810360008301526144c481614488565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145058261349a565b91506145108361349a565b9250826145205761451f6144cb565b5b828204905092915050565b7f65786365656473206d6178696d756d20707572636861736520616d6f756e7400600082015250565b6000614561601f836135a8565b915061456c8261452b565b602082019050919050565b6000602082019050818103600083015261459081614554565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b60006145cd601f836135a8565b91506145d882614597565b602082019050919050565b600060208201905081810360008301526145fc816145c0565b9050919050565b600081905092915050565b60006146198261359d565b6146238185614603565b93506146338185602086016135b9565b80840191505092915050565b600061464b828561460e565b9150614657828461460e565b91508190509392505050565b7f50726573616c65206d7573742062652061637469766500000000000000000000600082015250565b60006146996016836135a8565b91506146a482614663565b602082019050919050565b600060208201905081810360008301526146c88161468c565b9050919050565b7f6e6f742077686974656c697374656420666f722070726573616c650000000000600082015250565b6000614705601b836135a8565b9150614710826146cf565b602082019050919050565b60006020820190508181036000830152614734816146f8565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147976026836135a8565b91506147a28261473b565b604082019050919050565b600060208201905081810360008301526147c68161478a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148036020836135a8565b915061480e826147cd565b602082019050919050565b60006020820190508181036000830152614832816147f6565b9050919050565b600060408201905061484e60008301856136da565b61485b60208301846136da565b9392505050565b60008160601b9050919050565b600061487a82614862565b9050919050565b600061488c8261486f565b9050919050565b6148a461489f826136c8565b614881565b82525050565b6000819050919050565b6148c56148c08261349a565b6148aa565b82525050565b60006148d78285614893565b6014820191506148e782846148b4565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b600061491e826148f7565b6149288185614902565b93506149388185602086016135b9565b614941816135e3565b840191505092915050565b600060808201905061496160008301876136da565b61496e60208301866136da565b61497b60408301856134a4565b818103606083015261498d8184614913565b905095945050505050565b6000815190506149a78161350e565b92915050565b6000602082840312156149c3576149c26134d8565b5b60006149d184828501614998565b91505092915050565b60006149e68284614893565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614a2f8261349a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a6157614a60613deb565b5b60018201905091905056fea26469706673582212201467bafa2c31a9b264de693f7fcaa31ef28c6640ae63f3a232c1a71f8036e0a164736f6c63430008120033000000000000000000000000c5a848233ff7a2a1a17e329cf7829047d3503e1e0000000000000000000000007431d0691d7927aa516d9c1e41b6b377c63ec8be

Deployed Bytecode

0x6080604052600436106103345760003560e01c8063715018a6116101ab578063a0a59484116100f7578063c87b56dd11610095578063dc53fd921161006f578063dc53fd9214610b43578063e3e1e8ef14610b6e578063e985e9c514610b8a578063f2fde38b14610bc757610334565b8063c87b56dd14610ab0578063cf30901214610aed578063d5abeb0114610b1857610334565b8063a76c3b57116100d1578063a76c3b5714610a13578063b88d4fde14610a3e578063bc8893b414610a5a578063c4e41b2214610a8557610334565b8063a0a5948414610996578063a22cb465146109c1578063a5acc9a9146109ea57610334565b80638e0acd1211610164578063961d12661161013e578063961d1266146108fb578063977b055b14610938578063989bdbb614610963578063a0712d681461097a57610334565b80638e0acd121461087e5780638fdf83e0146108a757806395d89b41146108d057610334565b8063715018a6146107a857806373b2e80e146107bf5780637bffb4ce146107fc5780637f837f7314610813578063853828b61461083c5780638da5cb5b1461085357610334565b80632f52ebb71161028557806353135ca0116102235780635d82cf6e116101fd5780635d82cf6e146106dc5780636352211e1461070557806370a0823114610742578063711897421461077f57610334565b806353135ca01461064b578063532778791461067657806355f804b3146106b357610334565b806341f434341161025f57806341f43434146105b257806342842e0e146105dd578063484b973c146105f9578063505cee491461062257610334565b80632f52ebb714610542578063383b588b1461056b5780633d51f9bd1461059657610334565b8063095ea7b3116102f257806318160ddd116102cc57806318160ddd146104bb57806318aae185146104e65780631970d1fb146104fd57806323b872dd1461052657610334565b8063095ea7b31461044b5780630aaf593f146104675780630eda46df1461049057610334565b806204348e1461033957806301ffc9a71461036457806303d41eb6146103a1578063049c5c49146103cc57806306fdde03146103e3578063081812fc1461040e575b600080fd5b34801561034557600080fd5b5061034e610bf0565b60405161035b91906134b3565b60405180910390f35b34801561037057600080fd5b5061038b6004803603810190610386919061353a565b610bf6565b6040516103989190613582565b60405180910390f35b3480156103ad57600080fd5b506103b6610c88565b6040516103c391906134b3565b60405180910390f35b3480156103d857600080fd5b506103e1610c8e565b005b3480156103ef57600080fd5b506103f8610d08565b604051610405919061362d565b60405180910390f35b34801561041a57600080fd5b506104356004803603810190610430919061367b565b610d9a565b60405161044291906136e9565b60405180910390f35b61046560048036038101906104609190613730565b610e19565b005b34801561047357600080fd5b5061048e600480360381019061048991906137a6565b610e32565b005b34801561049c57600080fd5b506104a5610e44565b6040516104b29190613582565b60405180910390f35b3480156104c757600080fd5b506104d0610e57565b6040516104dd91906134b3565b60405180910390f35b3480156104f257600080fd5b506104fb610e6e565b005b34801561050957600080fd5b50610524600480360381019061051f919061367b565b610ee8565b005b610540600480360381019061053b91906137d3565b610efa565b005b34801561054e57600080fd5b506105696004803603810190610564919061388b565b610f49565b005b34801561057757600080fd5b506105806110e2565b60405161058d91906136e9565b60405180910390f35b6105b060048036038101906105ab91906138eb565b611108565b005b3480156105be57600080fd5b506105c7611402565b6040516105d491906139be565b60405180910390f35b6105f760048036038101906105f291906137d3565b611414565b005b34801561060557600080fd5b50610620600480360381019061061b9190613730565b611463565b005b34801561062e57600080fd5b506106496004803603810190610644919061367b565b6114dd565b005b34801561065757600080fd5b506106606114ef565b60405161066d9190613582565b60405180910390f35b34801561068257600080fd5b5061069d600480360381019061069891906139d9565b611502565b6040516106aa91906134b3565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d59190613b36565b61151a565b005b3480156106e857600080fd5b5061070360048036038101906106fe919061367b565b611585565b005b34801561071157600080fd5b5061072c6004803603810190610727919061367b565b611597565b60405161073991906136e9565b60405180910390f35b34801561074e57600080fd5b50610769600480360381019061076491906139d9565b6115a9565b60405161077691906134b3565b60405180910390f35b34801561078b57600080fd5b506107a660048036038101906107a1919061367b565b611661565b005b3480156107b457600080fd5b506107bd611673565b005b3480156107cb57600080fd5b506107e660048036038101906107e191906139d9565b611687565b6040516107f39190613582565b60405180910390f35b34801561080857600080fd5b506108116116a7565b005b34801561081f57600080fd5b5061083a600480360381019061083591906137a6565b611721565b005b34801561084857600080fd5b50610851611733565b005b34801561085f57600080fd5b506108686119c5565b60405161087591906136e9565b60405180910390f35b34801561088a57600080fd5b506108a560048036038101906108a091906137a6565b6119ef565b005b3480156108b357600080fd5b506108ce60048036038101906108c991906139d9565b611a01565b005b3480156108dc57600080fd5b506108e5611a4d565b6040516108f2919061362d565b60405180910390f35b34801561090757600080fd5b50610922600480360381019061091d91906139d9565b611adf565b60405161092f91906134b3565b60405180910390f35b34801561094457600080fd5b5061094d611af7565b60405161095a91906134b3565b60405180910390f35b34801561096f57600080fd5b50610978611afd565b005b610994600480360381019061098f919061367b565b611b22565b005b3480156109a257600080fd5b506109ab611e18565b6040516109b89190613ba0565b60405180910390f35b3480156109cd57600080fd5b506109e860048036038101906109e39190613be7565b611e3e565b005b3480156109f657600080fd5b50610a116004803603810190610a0c919061367b565b611e57565b005b348015610a1f57600080fd5b50610a28611e69565b604051610a3591906134b3565b60405180910390f35b610a586004803603810190610a539190613cc8565b611e6f565b005b348015610a6657600080fd5b50610a6f611ec0565b604051610a7c9190613582565b60405180910390f35b348015610a9157600080fd5b50610a9a611ed3565b604051610aa791906134b3565b60405180910390f35b348015610abc57600080fd5b50610ad76004803603810190610ad2919061367b565b611ee2565b604051610ae4919061362d565b60405180910390f35b348015610af957600080fd5b50610b02611f80565b604051610b0f9190613582565b60405180910390f35b348015610b2457600080fd5b50610b2d611f93565b604051610b3a91906134b3565b60405180910390f35b348015610b4f57600080fd5b50610b58611f99565b604051610b6591906134b3565b60405180910390f35b610b886004803603810190610b83919061388b565b611f9f565b005b348015610b9657600080fd5b50610bb16004803603810190610bac9190613d4b565b61229f565b604051610bbe9190613582565b60405180910390f35b348015610bd357600080fd5b50610bee6004803603810190610be991906139d9565b612333565b005b600e5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c5157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c815750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600c5481565b610c966123b6565b601160029054906101000a900460ff1615601160026101000a81548160ff0219169083151502179055507f1c27adbe19c2f592844c4b67508b6e5dce275dc961a69a647af7c4d768de0f8e601160029054906101000a900460ff16604051610cfe9190613582565b60405180910390a1565b606060028054610d1790613dba565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4390613dba565b8015610d905780601f10610d6557610100808354040283529160200191610d90565b820191906000526020600020905b815481529060010190602001808311610d7357829003601f168201915b5050505050905090565b6000610da582612434565b610ddb576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610e2381612493565b610e2d8383612590565b505050565b610e3a6123b6565b8060138190555050565b601160039054906101000a900460ff1681565b6000610e616126d4565b6001546000540303905090565b610e766123b6565b601160039054906101000a900460ff1615601160036101000a81548160ff0219169083151502179055507faa5106810f1156380a1f88664c87d7ef819d9968f71d8c8bef5a2f833925a521601160039054906101000a900460ff16604051610ede9190613582565b60405180910390a1565b610ef06123b6565b80600e8190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f3857610f3733612493565b5b610f438484846126d9565b50505050565b600b5483610f55610e57565b610f5f9190613e1a565b1115610fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9790613e9a565b60405180910390fd5b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561102d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102490613f06565b60405180910390fd5b61103c338484846013546129fb565b61107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107290613f72565b60405180910390fd5b6001601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506110dd3384612a5d565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601160039054906101000a900460ff16611157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114e90613fde565b60405180910390fd5b611166338484846014546129fb565b6111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90613f72565b60405180910390fd5b600c54600b546111b59190613ffe565b846111be610e57565b6111c89190613e1a565b1115611209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120090613e9a565b60405180910390fd5b83601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112549190613e1a565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611319576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113109061407e565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61135f612a7b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600f5488611390919061409e565b6040518463ffffffff1660e01b81526004016113ae939291906140e0565b6020604051808303816000875af11580156113cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f1919061412c565b506113fc3385612a5d565b50505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146114525761145133612493565b5b61145d848484612a83565b50505050565b61146b6123b6565b600c54600b5461147b9190613ffe565b81611484610e57565b61148e9190613e1a565b11156114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690613e9a565b60405180910390fd5b6114d98282612a5d565b5050565b6114e56123b6565b80600c8190555050565b601160019054906101000a900460ff1681565b60166020528060005260406000206000915090505481565b6115226123b6565b601160009054906101000a900460ff1615611572576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611569906141cb565b60405180910390fd5b8060189081611581919061438d565b5050565b61158d6123b6565b80600d8190555050565b60006115a282612aa3565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611610576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6116696123b6565b8060108190555050565b61167b6123b6565b6116856000612b6f565b565b60156020528060005260406000206000915054906101000a900460ff1681565b6116af6123b6565b601160019054906101000a900460ff1615601160016101000a81548160ff0219169083151502179055507f42133c3a5199a92c96a540af6aee25899ebc1da7cc9ac9e3536653b61c3c60d7601160019054906101000a900460ff166040516117179190613582565b60405180910390a1565b6117296123b6565b8060148190555050565b61173b6123b6565b600047905060008111611783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177a906144ab565b60405180910390fd5b6000601260648361179491906144fa565b61179e919061409e565b9050600060026064846117b191906144fa565b6117bb919061409e565b9050600060036064856117ce91906144fa565b6117d8919061409e565b9050600060046064866117eb91906144fa565b6117f5919061409e565b90507368615b557073262fa0ab9ed41533a5c4dd81e2be73ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f19350505050158015611851573d6000803e3d6000fd5b50730c36922266e6ce0f92a357e20399f295c2b9ff1073ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156118ac573d6000803e3d6000fd5b507373001491d58400f6c29fd9e6d6fff8a46db86ee773ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611907573d6000803e3d6000fd5b5073bf9fe3ae379ff32a4ac2fb1196d271c557f4251373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611962573d6000803e3d6000fd5b507373e3187ebf63c9e8a1539772678272781bc2838f73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156119bd573d6000803e3d6000fd5b505050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119f76123b6565b8060128190555050565b611a096123b6565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060038054611a5c90613dba565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8890613dba565b8015611ad55780601f10611aaa57610100808354040283529160200191611ad5565b820191906000526020600020905b815481529060010190602001808311611ab857829003601f168201915b5050505050905090565b60176020528060005260406000206000915090505481565b60105481565b611b056123b6565b6001601160006101000a81548160ff021916908315150217905550565b601160029054906101000a900460ff16611b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6890613fde565b60405180910390fd5b601054811115611bb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bad90614577565b60405180910390fd5b60105481601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c049190613e1a565b1115611c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3c9061407e565b60405180910390fd5b600c54600b54611c559190613ffe565b81611c5e610e57565b611c689190613e1a565b1115611ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca090613e9a565b60405180910390fd5b3481600d54611cb8919061409e565b1115611cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf0906145e3565b60405180910390fd5b80601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d449190613e1a565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601054601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e029061407e565b60405180910390fd5b611e153382612a5d565b50565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b81611e4881612493565b611e528383612c35565b505050565b611e5f6123b6565b80600f8190555050565b600f5481565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ead57611eac33612493565b5b611eb985858585612d40565b5050505050565b601160029054906101000a900460ff1681565b6000611edd610e57565b905090565b6060611eed82612434565b611f23576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f2d612db3565b90506000815103611f4d5760405180602001604052806000815250611f78565b80611f5784612e45565b604051602001611f6892919061463f565b6040516020818303038152906040525b915050919050565b601160009054906101000a900460ff1681565b600b5481565b600d5481565b601160019054906101000a900460ff16611fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe5906146af565b60405180910390fd5b611ffc338383601254612e95565b61203b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120329061471b565b60405180910390fd5b60105483601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120899190613e1a565b11156120ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c19061407e565b60405180910390fd5b600c54600b546120da9190613ffe565b836120e3610e57565b6120ed9190613e1a565b111561212e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212590613e9a565b60405180910390fd5b3483600e5461213d919061409e565b111561217e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612175906145e3565b60405180910390fd5b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121c99190613e1a565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601054601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612290576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122879061407e565b60405180910390fd5b61229a3384612a5d565b505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61233b6123b6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a1906147ad565b60405180910390fd5b6123b381612b6f565b50565b6123be612a7b565b73ffffffffffffffffffffffffffffffffffffffff166123dc6119c5565b73ffffffffffffffffffffffffffffffffffffffff1614612432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242990614819565b60405180910390fd5b565b60008161243f6126d4565b1115801561244e575060005482105b801561248c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561258d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161250a929190614839565b602060405180830381865afa158015612527573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061254b919061412c565b61258c57806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161258391906136e9565b60405180910390fd5b5b50565b600061259b82611597565b90508073ffffffffffffffffffffffffffffffffffffffff166125bc612ef5565b73ffffffffffffffffffffffffffffffffffffffff161461261f576125e8816125e3612ef5565b61229f565b61261e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60006126e482612aa3565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461274b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061275784612efd565b9150915061276d8187612768612ef5565b612f24565b6127b9576127828661277d612ef5565b61229f565b6127b8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361281f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61282c8686866001612f68565b801561283757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612905856128e1888887612f6e565b7c020000000000000000000000000000000000000000000000000000000017612f96565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361298b5760006001850190506000600460008381526020019081526020016000205403612989576000548114612988578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129f38686866001612fc1565b505050505050565b6000612a52848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505083612a4d8989612fc7565b612ffa565b905095945050505050565b612a77828260405180602001604052806000815250613011565b5050565b600033905090565b612a9e83838360405180602001604052806000815250611e6f565b505050565b60008082905080612ab26126d4565b11612b3857600054811015612b375760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612b35575b60008103612b2b576004600083600190039350838152602001908152602001600020549050612b01565b8092505050612b6a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060076000612c42612ef5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612cef612ef5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612d349190613582565b60405180910390a35050565b612d4b848484610efa565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612dad57612d76848484846130ae565b612dac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060188054612dc290613dba565b80601f0160208091040260200160405190810160405280929190818152602001828054612dee90613dba565b8015612e3b5780601f10612e1057610100808354040283529160200191612e3b565b820191906000526020600020905b815481529060010190602001808311612e1e57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612e8057600184039350600a81066030018453600a8104905080612e5e575b50828103602084039350808452505050919050565b6000612eeb848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505083612ee6886131fe565b612ffa565b9050949350505050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f8586868461322e565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008282604051602001612fdc9291906148cb565b60405160208183030381529060405280519060200120905092915050565b6000826130078584613237565b1490509392505050565b61301b838361328d565b60008373ffffffffffffffffffffffffffffffffffffffff163b146130a957600080549050600083820390505b61305b60008683806001019450866130ae565b613091576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106130485781600054146130a657600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d4612ef5565b8786866040518563ffffffff1660e01b81526004016130f6949392919061494c565b6020604051808303816000875af192505050801561313257506040513d601f19601f8201168201806040525081019061312f91906149ad565b60015b6131ab573d8060008114613162576040519150601f19603f3d011682016040523d82523d6000602084013e613167565b606091505b5060008151036131a3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008160405160200161321191906149da565b604051602081830303815290604052805190602001209050919050565b60009392505050565b60008082905060005b84518110156132825761326d828683815181106132605761325f6149f5565b5b6020026020010151613448565b9150808061327a90614a24565b915050613240565b508091505092915050565b600080549050600082036132cd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132da6000848385612f68565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613351836133426000866000612f6e565b61334b85613473565b17612f96565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146133f257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506133b7565b506000820361342d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506134436000848385612fc1565b505050565b60008183106134605761345b8284613483565b61346b565b61346a8383613483565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000819050919050565b6134ad8161349a565b82525050565b60006020820190506134c860008301846134a4565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613517816134e2565b811461352257600080fd5b50565b6000813590506135348161350e565b92915050565b6000602082840312156135505761354f6134d8565b5b600061355e84828501613525565b91505092915050565b60008115159050919050565b61357c81613567565b82525050565b60006020820190506135976000830184613573565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135d75780820151818401526020810190506135bc565b60008484015250505050565b6000601f19601f8301169050919050565b60006135ff8261359d565b61360981856135a8565b93506136198185602086016135b9565b613622816135e3565b840191505092915050565b6000602082019050818103600083015261364781846135f4565b905092915050565b6136588161349a565b811461366357600080fd5b50565b6000813590506136758161364f565b92915050565b600060208284031215613691576136906134d8565b5b600061369f84828501613666565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136d3826136a8565b9050919050565b6136e3816136c8565b82525050565b60006020820190506136fe60008301846136da565b92915050565b61370d816136c8565b811461371857600080fd5b50565b60008135905061372a81613704565b92915050565b60008060408385031215613747576137466134d8565b5b60006137558582860161371b565b925050602061376685828601613666565b9150509250929050565b6000819050919050565b61378381613770565b811461378e57600080fd5b50565b6000813590506137a08161377a565b92915050565b6000602082840312156137bc576137bb6134d8565b5b60006137ca84828501613791565b91505092915050565b6000806000606084860312156137ec576137eb6134d8565b5b60006137fa8682870161371b565b935050602061380b8682870161371b565b925050604061381c86828701613666565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261384b5761384a613826565b5b8235905067ffffffffffffffff8111156138685761386761382b565b5b60208301915083602082028301111561388457613883613830565b5b9250929050565b6000806000604084860312156138a4576138a36134d8565b5b60006138b286828701613666565b935050602084013567ffffffffffffffff8111156138d3576138d26134dd565b5b6138df86828701613835565b92509250509250925092565b60008060008060608587031215613905576139046134d8565b5b600061391387828801613666565b945050602061392487828801613666565b935050604085013567ffffffffffffffff811115613945576139446134dd565b5b61395187828801613835565b925092505092959194509250565b6000819050919050565b600061398461397f61397a846136a8565b61395f565b6136a8565b9050919050565b600061399682613969565b9050919050565b60006139a88261398b565b9050919050565b6139b88161399d565b82525050565b60006020820190506139d360008301846139af565b92915050565b6000602082840312156139ef576139ee6134d8565b5b60006139fd8482850161371b565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a43826135e3565b810181811067ffffffffffffffff82111715613a6257613a61613a0b565b5b80604052505050565b6000613a756134ce565b9050613a818282613a3a565b919050565b600067ffffffffffffffff821115613aa157613aa0613a0b565b5b613aaa826135e3565b9050602081019050919050565b82818337600083830152505050565b6000613ad9613ad484613a86565b613a6b565b905082815260208101848484011115613af557613af4613a06565b5b613b00848285613ab7565b509392505050565b600082601f830112613b1d57613b1c613826565b5b8135613b2d848260208601613ac6565b91505092915050565b600060208284031215613b4c57613b4b6134d8565b5b600082013567ffffffffffffffff811115613b6a57613b696134dd565b5b613b7684828501613b08565b91505092915050565b6000613b8a8261398b565b9050919050565b613b9a81613b7f565b82525050565b6000602082019050613bb56000830184613b91565b92915050565b613bc481613567565b8114613bcf57600080fd5b50565b600081359050613be181613bbb565b92915050565b60008060408385031215613bfe57613bfd6134d8565b5b6000613c0c8582860161371b565b9250506020613c1d85828601613bd2565b9150509250929050565b600067ffffffffffffffff821115613c4257613c41613a0b565b5b613c4b826135e3565b9050602081019050919050565b6000613c6b613c6684613c27565b613a6b565b905082815260208101848484011115613c8757613c86613a06565b5b613c92848285613ab7565b509392505050565b600082601f830112613caf57613cae613826565b5b8135613cbf848260208601613c58565b91505092915050565b60008060008060808587031215613ce257613ce16134d8565b5b6000613cf08782880161371b565b9450506020613d018782880161371b565b9350506040613d1287828801613666565b925050606085013567ffffffffffffffff811115613d3357613d326134dd565b5b613d3f87828801613c9a565b91505092959194509250565b60008060408385031215613d6257613d616134d8565b5b6000613d708582860161371b565b9250506020613d818582860161371b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613dd257607f821691505b602082108103613de557613de4613d8b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e258261349a565b9150613e308361349a565b9250828201905080821115613e4857613e47613deb565b5b92915050565b7f65786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000613e846012836135a8565b9150613e8f82613e4e565b602082019050919050565b60006020820190508181036000830152613eb381613e77565b9050919050565b7f636c61696d656400000000000000000000000000000000000000000000000000600082015250565b6000613ef06007836135a8565b9150613efb82613eba565b602082019050919050565b60006020820190508181036000830152613f1f81613ee3565b9050919050565b7f70726f6f66000000000000000000000000000000000000000000000000000000600082015250565b6000613f5c6005836135a8565b9150613f6782613f26565b602082019050919050565b60006020820190508181036000830152613f8b81613f4f565b9050919050565b7f53616c65206d7573742062652061637469766500000000000000000000000000600082015250565b6000613fc86013836135a8565b9150613fd382613f92565b602082019050919050565b60006020820190508181036000830152613ff781613fbb565b9050919050565b60006140098261349a565b91506140148361349a565b925082820390508181111561402c5761402b613deb565b5b92915050565b7f6578636565647320746865206163636f756e7427732071756f74610000000000600082015250565b6000614068601b836135a8565b915061407382614032565b602082019050919050565b600060208201905081810360008301526140978161405b565b9050919050565b60006140a98261349a565b91506140b48361349a565b92508282026140c28161349a565b915082820484148315176140d9576140d8613deb565b5b5092915050565b60006060820190506140f560008301866136da565b61410260208301856136da565b61410f60408301846134a4565b949350505050565b60008151905061412681613bbb565b92915050565b600060208284031215614142576141416134d8565b5b600061415084828501614117565b91505092915050565b7f436f6e7472616374206d65746164617461206d6574686f647320617265206c6f60008201527f636b656400000000000000000000000000000000000000000000000000000000602082015250565b60006141b56024836135a8565b91506141c082614159565b604082019050919050565b600060208201905081810360008301526141e4816141a8565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261424d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614210565b6142578683614210565b95508019841693508086168417925050509392505050565b600061428a6142856142808461349a565b61395f565b61349a565b9050919050565b6000819050919050565b6142a48361426f565b6142b86142b082614291565b84845461421d565b825550505050565b600090565b6142cd6142c0565b6142d881848461429b565b505050565b5b818110156142fc576142f16000826142c5565b6001810190506142de565b5050565b601f82111561434157614312816141eb565b61431b84614200565b8101602085101561432a578190505b61433e61433685614200565b8301826142dd565b50505b505050565b600082821c905092915050565b600061436460001984600802614346565b1980831691505092915050565b600061437d8383614353565b9150826002028217905092915050565b6143968261359d565b67ffffffffffffffff8111156143af576143ae613a0b565b5b6143b98254613dba565b6143c4828285614300565b600060209050601f8311600181146143f757600084156143e5578287015190505b6143ef8582614371565b865550614457565b601f198416614405866141eb565b60005b8281101561442d57848901518255600182019150602085019450602081019050614408565b8683101561444a5784890151614446601f891682614353565b8355505b6001600288020188555050505b505050505050565b7f42616c616e63652063616e2774206265207a65726f0000000000000000000000600082015250565b60006144956015836135a8565b91506144a08261445f565b602082019050919050565b600060208201905081810360008301526144c481614488565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145058261349a565b91506145108361349a565b9250826145205761451f6144cb565b5b828204905092915050565b7f65786365656473206d6178696d756d20707572636861736520616d6f756e7400600082015250565b6000614561601f836135a8565b915061456c8261452b565b602082019050919050565b6000602082019050818103600083015261459081614554565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b60006145cd601f836135a8565b91506145d882614597565b602082019050919050565b600060208201905081810360008301526145fc816145c0565b9050919050565b600081905092915050565b60006146198261359d565b6146238185614603565b93506146338185602086016135b9565b80840191505092915050565b600061464b828561460e565b9150614657828461460e565b91508190509392505050565b7f50726573616c65206d7573742062652061637469766500000000000000000000600082015250565b60006146996016836135a8565b91506146a482614663565b602082019050919050565b600060208201905081810360008301526146c88161468c565b9050919050565b7f6e6f742077686974656c697374656420666f722070726573616c650000000000600082015250565b6000614705601b836135a8565b9150614710826146cf565b602082019050919050565b60006020820190508181036000830152614734816146f8565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006147976026836135a8565b91506147a28261473b565b604082019050919050565b600060208201905081810360008301526147c68161478a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148036020836135a8565b915061480e826147cd565b602082019050919050565b60006020820190508181036000830152614832816147f6565b9050919050565b600060408201905061484e60008301856136da565b61485b60208301846136da565b9392505050565b60008160601b9050919050565b600061487a82614862565b9050919050565b600061488c8261486f565b9050919050565b6148a461489f826136c8565b614881565b82525050565b6000819050919050565b6148c56148c08261349a565b6148aa565b82525050565b60006148d78285614893565b6014820191506148e782846148b4565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b600061491e826148f7565b6149288185614902565b93506149388185602086016135b9565b614941816135e3565b840191505092915050565b600060808201905061496160008301876136da565b61496e60208301866136da565b61497b60408301856134a4565b818103606083015261498d8184614913565b905095945050505050565b6000815190506149a78161350e565b92915050565b6000602082840312156149c3576149c26134d8565b5b60006149d184828501614998565b91505092915050565b60006149e68284614893565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614a2f8261349a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a6157614a60613deb565b5b60018201905091905056fea26469706673582212201467bafa2c31a9b264de693f7fcaa31ef28c6640ae63f3a232c1a71f8036e0a164736f6c63430008120033

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

000000000000000000000000c5a848233ff7a2a1a17e329cf7829047d3503e1e0000000000000000000000007431d0691d7927aa516d9c1e41b6b377c63ec8be

-----Decoded View---------------
Arg [0] : jungleTokenAddress (address): 0xC5A848233Ff7A2A1a17E329CF7829047D3503e1E
Arg [1] : jungleBankAddress (address): 0x7431d0691d7927AA516D9c1e41B6B377c63eC8bE

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c5a848233ff7a2a1a17e329cf7829047d3503e1e
Arg [1] : 0000000000000000000000007431d0691d7927aa516d9c1e41b6b377c63ec8be


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.