ETH Price: $1,980.52 (+6.76%)
Gas: 0.03 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Restricted Mint153473012022-08-15 17:24:421293 days ago1660584282IN
0xee8899C3...AF82250F1
0 ETH0.0008777827.06107619
Change Target Ow...143943962022-03-16 0:32:081446 days ago1647390728IN
0xee8899C3...AF82250F1
0 ETH0.0014984841.30211212
Change Target Ow...143943602022-03-16 0:22:491446 days ago1647390169IN
0xee8899C3...AF82250F1
0 ETH0.001663932.16588195
Change Target Ow...143943402022-03-16 0:18:561446 days ago1647389936IN
0xee8899C3...AF82250F1
0 ETH0.0015263929.5074759
Restricted Mint143760932022-03-13 3:56:351449 days ago1647143795IN
0xee8899C3...AF82250F1
0 ETH0.0074559121.48783619
Restricted Mint143537192022-03-09 16:41:571452 days ago1646844117IN
0xee8899C3...AF82250F1
0 ETH0.0052320537.96654231
Restricted Mint143162432022-03-03 20:42:571458 days ago1646340177IN
0xee8899C3...AF82250F1
0 ETH0.0072091852.31361815
Restricted Mint143094002022-03-02 19:03:221459 days ago1646247802IN
0xee8899C3...AF82250F1
0 ETH0.0079100857.3997207
Restricted Mint143062892022-03-02 7:44:351460 days ago1646207075IN
0xee8899C3...AF82250F1
0 ETH0.0053748139.00810872
Restricted Mint142942792022-02-28 11:08:281461 days ago1646046508IN
0xee8899C3...AF82250F1
0 ETH0.0033370224.21520998
Restricted Mint142865972022-02-27 6:27:201463 days ago1645943240IN
0xee8899C3...AF82250F1
0 ETH0.003009621.84245799
Restricted Mint142831002022-02-26 17:31:081463 days ago1645896668IN
0xee8899C3...AF82250F1
0 ETH0.007091637.30835429
Restricted Mint142782952022-02-25 23:39:391464 days ago1645832379IN
0xee8899C3...AF82250F1
0 ETH0.0105079376.25113305
Restricted Mint142782722022-02-25 23:33:141464 days ago1645831994IN
0xee8899C3...AF82250F1
0 ETH0.008224859.68349095
Restricted Mint142782552022-02-25 23:30:181464 days ago1645831818IN
0xee8899C3...AF82250F1
0 ETH0.0111722281.08330105
Restricted Mint142720892022-02-25 0:27:191465 days ago1645748839IN
0xee8899C3...AF82250F1
0 ETH0.0134534455.50492247
Restricted Mint142712002022-02-24 21:16:261465 days ago1645737386IN
0xee8899C3...AF82250F1
0 ETH0.0037460558.04231693
Restricted Mint142702632022-02-24 17:55:071465 days ago1645725307IN
0xee8899C3...AF82250F1
0 ETH0.1045017755.03786556
Restricted Mint142686902022-02-24 12:04:311465 days ago1645704271IN
0xee8899C3...AF82250F1
0 ETH0.0114098460.01990111
Restricted Mint142678892022-02-24 9:00:291466 days ago1645693229IN
0xee8899C3...AF82250F1
0 ETH0.0080222842.20275893
Restricted Mint142655362022-02-24 0:14:431466 days ago1645661683IN
0xee8899C3...AF82250F1
0 ETH0.016148266.6193761
Restricted Mint142606532022-02-23 6:11:541467 days ago1645596714IN
0xee8899C3...AF82250F1
0 ETH0.0147234577.46372469
Restricted Mint142596112022-02-23 2:15:161467 days ago1645582516IN
0xee8899C3...AF82250F1
0 ETH0.0092903167.41540427
Restricted Mint142593632022-02-23 1:24:371467 days ago1645579477IN
0xee8899C3...AF82250F1
0 ETH0.0147298777.48448433
Restricted Mint142574202022-02-22 18:16:161467 days ago1645553776IN
0xee8899C3...AF82250F1
0 ETH0.0180879295.15500646
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MintProxy

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract MintProxy is AccessControl
{
    /**
     * Signer.
     * @dev this is the address used to verify restricted mint addresses.
     */
    address private _signer;

    /**
     * Target.
     * @dev address of the contract with the real mint function.
     */
    address public target = 0xb853Ad67032738ffbcAc61a856CA7c44AE36d10f;

    /**
     * Minted.
     * @dev store quantity minted for each address using keccak256 on mint version + address.
     */
    mapping(bytes32 => uint256) public minted;

    /**
     * MintVersion.
     * @dev by versioning the mint, we can effectively clear minted data to resue the contract.
     */
    uint256 public mintVersion = 1;

    /**
     * MintTypes.
     * @dev struct for storing mint types... public or restricted.
     */
    enum mintTypes { publicMint , restrictedMint }

    /**
     * MintTypes.
     * @dev public variable to store the current mint type.
     */
    mintTypes public mintType;

    /**
     * MintPrice.
     * @dev price of the mint in wei.
     */
    uint256 public mintPrice;

    /**
     * MaxMint.
     * @dev maximum amount someone can mint in the current version. Does not affect
     * restricted mint or admin mint.
     */
    uint256 public mintMax;

    /**
     * MintActive.
     * @dev whether or not the mint is currently active. Does not affect admin mint.
     */
    bool public mintActive = false;

    /**
     * Constructor.
     */
    constructor()
    {
        // assign contract creator to _signer.
        _signer = _msgSender();
        // give contract creator admin role.
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /**
     * Minted event
     */
    event Minted(
        address minter,
        uint256 quantity
    );

    /**
     * Mint updated event
     */
    event MintUpdated(
        address target,
        uint256 mintVersion,
        mintTypes mintType,
        uint256 mintPrice,
        uint256 mintMax,
        bool mintActive
    );

    /**
     * Contract withdrawn
     */
    event ContractWithdrawn(
        address to,
        uint256 amount
    );

    /**
     * Public mint.
     * check that mintType = publicMint
     * check that mintActive = true
     * check that minted + quantity <= maxMint
     *
     * @param quantity uint256
     */
    function publicMint(uint256 quantity)
    external
    payable
    correctMintType(mintTypes.publicMint)
    mintIsActive
    belowMax(quantity)
    {
        _mint(_msgSender(), quantity, mintPrice);
    }

    /**
     * Restricted mint.
     * check that mintType = restrictedMint
     * check that mintActive = true
     * check that quantity <= assignedQuantity
     * check that signature is valid
     *
     * @param signature bytes memory
     * @param assignedQuantity uint256
     * @param quantity uint256
     */
    function restrictedMint(bytes memory signature, uint256 assignedQuantity, uint256 quantity)
    external
    payable
    correctMintType(mintTypes.restrictedMint)
    mintIsActive
    belowAssigned(assignedQuantity, quantity)
    validSignature(signature, assignedQuantity)
    {
        _mint(_msgSender(), quantity, mintPrice);
    }

    /**
     * Admin mint.
     * allow admins to mint unrestricted
     *
     * @param to address
     * @param quantity uint256
     */
    function adminMint(address to, uint256 quantity) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _mint(to, quantity, 0);
    }

    /**
     * Mint.
     * internal mint function
     * check that msg.value == quantity * mintPrice
     *
     * @param to address
     * @param quantity uint256
     * @param price uint256
     */
    function _mint(address to, uint256 quantity, uint256 price)
    internal
    correctPrice(quantity, price)
    {
        adminMintable(target).adminMint(to, quantity);
        minted[_getMintedKey(to)] += quantity;
        emit Minted(to, quantity);
    }

    /**
     * Get minted by address.
     * return mint quantity for address in current mint version
     *
     * @param _address address
     * @return uint256
     */
    function mintedByAddress(address _address) public view returns(uint256)
    {
        return minted[_getMintedKey(_address)];
    }

    /**
    * New mint version.
    * This increments the mint version so that we can effectively
    * remove all previous mints. This will allow us to use this
    * contract to handle different self minting events such as
    * whitelist minting, presale minting, airdrops, etc.
    */
    function newMintVersion() external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        mintVersion++;
        _fireMintUpdatedEvent();
    }

    /**
     * Set mint type.
     *
     * @param _mintType uint
     */
    function setMintType(uint _mintType) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        mintType = mintTypes(_mintType);
        _fireMintUpdatedEvent();
    }

    /**
     * Set mint price.
     *
     * @param _mintPrice uint256
     */
    function setMintPrice(uint256 _mintPrice) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        mintPrice = _mintPrice;
        _fireMintUpdatedEvent();
    }

    /**
     * Set max mint.
     *
     * @param _mintMax uint256
     */
    function setMintMax(uint256 _mintMax) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        mintMax = _mintMax;
        _fireMintUpdatedEvent();
    }

    /**
     * Activate mint.
     */
    function activateMint() external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        mintActive = true;
        _fireMintUpdatedEvent();
    }

    /**
     * Deactivate mint.
     */
    function deactivateMint() external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        mintActive = false;
        _fireMintUpdatedEvent();
    }

    /**
     * Set target.
     *
     * @param _target address
     */
    function setTarget(address _target) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        target = _target;
        _fireMintUpdatedEvent();
    }

    /**
     * Fire MintUpdated event
     */
    function _fireMintUpdatedEvent() internal
    {
        emit MintUpdated(target, mintVersion, mintType, mintPrice, mintMax, mintActive);
    }

    /**
     * Get key for mint mapping.
     * return keccak256 on mintVersion and _address
     *
     * @param _address address
     */
    function _getMintedKey(address _address) internal view returns(bytes32)
    {
        return keccak256(abi.encodePacked(mintVersion, _address));
    }

    /**
     * Update signer.
     *
     * @param signer address
     */
    function updateSigner(address signer) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _signer = signer;
    }

    /**
     * Withdraw.
     *
     * @param to address
     */
    function withdraw(address to) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        uint256 amount = address(this).balance;
        payable(to).transfer(amount);
        emit ContractWithdrawn(to, amount);
    }

    /**
     * Change target owner.
     *
     * @param newOwner address
     */
    function changeTargetOwner(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE)
    {
        adminMintable(target).transferOwnership(newOwner);
    }

    /**
     * correctMintType modifier.
     *
     * @param _mintType mintTypes
     */
    modifier correctMintType(mintTypes _mintType)
    {
        require(mintType == _mintType, 'INCORRECT MINT TYPE');
        _;
    }

    /**
     * mintIsActive modifier.
     */
    modifier mintIsActive()
    {
        require(mintActive, 'MINT IS NOT ACTIVE');
        _;
    }

    /**
     * belowMax modifier.
     *
     * @param quantity uint256
     */
    modifier belowMax(uint256 quantity)
    {
        require(minted[_getMintedKey(_msgSender())] + quantity <= mintMax, 'EXCEEDS MAX MINT');
        _;
    }

    /**
     * belowAssigned modifier.
     *
     * @param assignedQuantity uint256
     * @param quantity uint256
     */
    modifier belowAssigned(uint256 assignedQuantity, uint256 quantity)
    {
        require(minted[_getMintedKey(_msgSender())] + quantity <= assignedQuantity, 'EXCEEDS ASSIGNED QUANTITY');
        _;
    }

    /**
     * validSignature modifier.
     *
     * @param signature bytes memory
     * @param assignedQuantity uint256
     */
    modifier validSignature(bytes memory signature, uint256 assignedQuantity)
    {
        bytes32 messageHash = sha256(abi.encode(_msgSender(), assignedQuantity, mintVersion));
        require(ECDSA.recover(messageHash, signature) == _signer, 'INVALID SIGNATURE');
        _;
    }

    /**
     * correctPrice modifier.
     *
     * @param quantity uint256
     * @param price uint256
     */
    modifier correctPrice(uint256 quantity, uint256 price)
    {
        require(msg.value == quantity * price, 'INCORRECT VALUE');
        _;
    }
}

interface adminMintable
{
    function adminMint(address to, uint256 quantity) external;
    function transferOwnership(address newOwner) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

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

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

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

// 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;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ContractWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintVersion","type":"uint256"},{"indexed":false,"internalType":"enum MintProxy.mintTypes","name":"mintType","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"mintPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintMax","type":"uint256"},{"indexed":false,"internalType":"bool","name":"mintActive","type":"bool"}],"name":"MintUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeTargetOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deactivateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintType","outputs":[{"internalType":"enum MintProxy.mintTypes","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"mintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newMintVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"assignedQuantity","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"restrictedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintMax","type":"uint256"}],"name":"setMintMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintType","type":"uint256"}],"name":"setMintType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"}],"name":"setTarget","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":"target","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600280546001600160a01b03191673b853ad67032738ffbcac61a856ca7c44ae36d10f17905560016004556008805460ff1916905534801561004557600080fd5b50600180546001600160a01b031916339081179091556100679060009061006c565b610118565b610076828261007a565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610076576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100d43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611b6c80620001286000396000f3fe6080604052600436106101b75760003560e01c8063776d1a01116100ec578063afc3cb491161008a578063d547741f11610064578063d547741f146104e4578063e58306f914610504578063f3eb39d514610524578063f4a0a5281461053757600080fd5b8063afc3cb4914610477578063c91c046214610497578063d4b83992146104ac57600080fd5b806391d14854116100c657806391d14854146103d757806396286f9a1461041b578063a217fddf14610442578063a7ecd37e1461045757600080fd5b8063776d1a011461036a5780638c0a89a71461038a5780638ccc5f80146103aa57600080fd5b80632f2ff15d116101595780634d155561116101335780634d155561146102fe57806351cff8d91461031457806364728701146103345780636817c76c1461035457600080fd5b80632f2ff15d1461029e57806336568abe146102be5780633ca63f2c146102de57600080fd5b8063248a9ca311610195578063248a9ca31461022c57806325fd90f31461025c5780632db11544146102765780632e56f71e1461028957600080fd5b806301ffc9a7146101bc57806307974689146101f15780630afaf4b914610208575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611832565b610557565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b506102066105f0565b005b34801561021457600080fd5b5061021e60045481565b6040519081526020016101e8565b34801561023857600080fd5b5061021e6102473660046117d7565b60009081526020819052604090206001015490565b34801561026857600080fd5b506008546101dc9060ff1681565b6102066102843660046117d7565b61061c565b34801561029557600080fd5b50610206610779565b3480156102aa57600080fd5b506102066102b9366004611807565b610797565b3480156102ca57600080fd5b506102066102d9366004611807565b6107bd565b3480156102ea57600080fd5b5061021e6102f9366004611794565b610849565b34801561030a57600080fd5b5061021e60075481565b34801561032057600080fd5b5061020661032f366004611794565b61086e565b34801561034057600080fd5b5061020661034f3660046117d7565b6108fa565b34801561036057600080fd5b5061021e60065481565b34801561037657600080fd5b50610206610385366004611794565b61095c565b34801561039657600080fd5b506102066103a5366004611794565b6109a3565b3480156103b657600080fd5b5061021e6103c53660046117d7565b60036020526000908152604090205481565b3480156103e357600080fd5b506101dc6103f2366004611807565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561042757600080fd5b506005546104359060ff1681565b6040516101e89190611a30565b34801561044e57600080fd5b5061021e600081565b34801561046357600080fd5b50610206610472366004611794565b610a2b565b34801561048357600080fd5b506102066104923660046117d7565b610a72565b3480156104a357600080fd5b50610206610a8b565b3480156104b857600080fd5b506002546104cc906001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b3480156104f057600080fd5b506102066104ff366004611807565b610aac565b34801561051057600080fd5b5061020661051f3660046117ae565b610ad2565b610206610532366004611872565b610aea565b34801561054357600080fd5b506102066105523660046117d7565b610d35565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806105ea57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60006105fc8133610d4e565b6004805490600061060c83611aef565b9190505550610619610dcc565b50565b60008060055460ff16600181111561064457634e487b7160e01b600052602160045260246000fd5b146106965760405162461bcd60e51b815260206004820152601360248201527f494e434f5252454354204d494e5420545950450000000000000000000000000060448201526064015b60405180910390fd5b60085460ff166106e85760405162461bcd60e51b815260206004820152601260248201527f4d494e54204953204e4f54204143544956450000000000000000000000000000604482015260640161068d565b8160075481600360006107006106fb3390565b610e31565b8152602001908152602001600020546107199190611a71565b11156107675760405162461bcd60e51b815260206004820152601060248201527f45584345454453204d4158204d494e5400000000000000000000000000000000604482015260640161068d565b6107743384600654610e93565b505050565b60006107858133610d4e565b6008805460ff19169055610619610dcc565b6000828152602081905260409020600101546107b38133610d4e565b6107748383610fe5565b6001600160a01b038116331461083b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161068d565b6108458282611083565b5050565b60006003600061085884610e31565b8152602001908152602001600020549050919050565b600061087a8133610d4e565b60405147906001600160a01b0384169082156108fc029083906000818181858888f193505050501580156108b2573d6000803e3d6000fd5b50604080516001600160a01b0385168152602081018390527f76cc4dd05e1fc280969f3363b5db432911cddfadcfae9bef818a492c0f8d5732910160405180910390a1505050565b60006109068133610d4e565b81600181111561092657634e487b7160e01b600052602160045260246000fd5b6005805460ff19166001838181111561094f57634e487b7160e01b600052602160045260246000fd5b0217905550610845610dcc565b60006109688133610d4e565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416179055610845610dcc565b60006109af8133610d4e565b6002546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301529091169063f2fde38b90602401600060405180830381600087803b158015610a0f57600080fd5b505af1158015610a23573d6000803e3d6000fd5b505050505050565b6000610a378133610d4e565b50600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000610a7e8133610d4e565b6007829055610845610dcc565b6000610a978133610d4e565b6008805460ff19166001179055610619610dcc565b600082815260208190526040902060010154610ac88133610d4e565b6107748383611083565b6000610ade8133610d4e565b61077483836000610e93565b60018060055460ff166001811115610b1257634e487b7160e01b600052602160045260246000fd5b14610b5f5760405162461bcd60e51b815260206004820152601360248201527f494e434f5252454354204d494e54205459504500000000000000000000000000604482015260640161068d565b60085460ff16610bb15760405162461bcd60e51b815260206004820152601260248201527f4d494e54204953204e4f54204143544956450000000000000000000000000000604482015260640161068d565b8282818160036000610bc233610e31565b815260200190815260200160002054610bdb9190611a71565b1115610c295760405162461bcd60e51b815260206004820152601960248201527f455843454544532041535349474e4544205155414e5449545900000000000000604482015260640161068d565b85856000600233600454604080516001600160a01b0390931660208401528201859052606082015260800160408051601f1981840301815290829052610c6e91611950565b602060405180830381855afa158015610c8b573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610cae91906117ef565b6001549091506001600160a01b0316610cc78285611102565b6001600160a01b031614610d1d5760405162461bcd60e51b815260206004820152601160248201527f494e56414c4944205349474e4154555245000000000000000000000000000000604482015260640161068d565b610d2a3388600654610e93565b505050505050505050565b6000610d418133610d4e565b6006829055610845610dcc565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661084557610d8a816001600160a01b03166014611126565b610d95836020611126565b604051602001610da692919061196c565b60408051601f198184030181529082905262461bcd60e51b825261068d91600401611a3e565b6002546004546005546006546007546008546040517feffd83c165abbbdce9f009654138d15109b7e74a24aaecbcca6cce47c2fdb88c96610e27966001600160a01b0390911695909460ff91821694909390929116906119ed565b60405180910390a1565b600060045482604051602001610e7692919091825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602082015260340190565b604051602081830303815290604052805190602001209050919050565b8181610e9f8183611a89565b3414610eed5760405162461bcd60e51b815260206004820152600f60248201527f494e434f52524543542056414c55450000000000000000000000000000000000604482015260640161068d565b6002546040517fe58306f90000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152602482018790529091169063e58306f990604401600060405180830381600087803b158015610f5457600080fd5b505af1158015610f68573d6000803e3d6000fd5b505050508360036000610f7a88610e31565b81526020019081526020016000206000828254610f979190611a71565b9091555050604080516001600160a01b0387168152602081018690527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a15050505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610845576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561103f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610845576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000806000611111858561139c565b9150915061111e8161140c565b509392505050565b60606000611135836002611a89565b611140906002611a71565b67ffffffffffffffff81111561116657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611190576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106111d557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061124657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611282846002611a89565b61128d906001611a71565b90505b6001811115611346577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106112dc57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061130057634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361133f81611ad8565b9050611290565b5083156113955760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161068d565b9392505050565b6000808251604114156113d35760208301516040840151606085015160001a6113c787828585611643565b94509450505050611405565b8251604014156113fd57602083015160408401516113f2868383611730565b935093505050611405565b506000905060025b9250929050565b600081600481111561142e57634e487b7160e01b600052602160045260246000fd5b14156114375750565b600181600481111561145957634e487b7160e01b600052602160045260246000fd5b14156114a75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161068d565b60028160048111156114c957634e487b7160e01b600052602160045260246000fd5b14156115175760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161068d565b600381600481111561153957634e487b7160e01b600052602160045260246000fd5b14156115ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161068d565b60048160048111156115cf57634e487b7160e01b600052602160045260246000fd5b14156106195760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161068d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561167a5750600090506003611727565b8460ff16601b1415801561169257508460ff16601c14155b156116a35750600090506004611727565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156116f7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661172057600060019250925050611727565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161176a87828885611643565b935093505050935093915050565b80356001600160a01b038116811461178f57600080fd5b919050565b6000602082840312156117a5578081fd5b61139582611778565b600080604083850312156117c0578081fd5b6117c983611778565b946020939093013593505050565b6000602082840312156117e8578081fd5b5035919050565b600060208284031215611800578081fd5b5051919050565b60008060408385031215611819578182fd5b8235915061182960208401611778565b90509250929050565b600060208284031215611843578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611395578182fd5b600080600060608486031215611886578081fd5b833567ffffffffffffffff8082111561189d578283fd5b818601915086601f8301126118b0578283fd5b8135818111156118c2576118c2611b20565b604051601f8201601f19908116603f011681019083821181831017156118ea576118ea611b20565b81604052828152896020848701011115611902578586fd5b826020860160208301379182016020908101959095525097928601359650505060409093013592915050565b6002811061194c57634e487b7160e01b600052602160045260246000fd5b9052565b60008251611962818460208701611aa8565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516119a4816017850160208801611aa8565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516119e1816028840160208801611aa8565b01602801949350505050565b6001600160a01b03871681526020810186905260c08101611a11604083018761192e565b84606083015283608083015282151560a0830152979650505050505050565b602081016105ea828461192e565b6020815260008251806020840152611a5d816040850160208701611aa8565b601f01601f19169190910160400192915050565b60008219821115611a8457611a84611b0a565b500190565b6000816000190483118215151615611aa357611aa3611b0a565b500290565b60005b83811015611ac3578181015183820152602001611aab565b83811115611ad2576000848401525b50505050565b600081611ae757611ae7611b0a565b506000190190565b6000600019821415611b0357611b03611b0a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122044f7e83a2ca8e2ebae91719517cca3b66ad019691290169f17a95538a28ee4be64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106101b75760003560e01c8063776d1a01116100ec578063afc3cb491161008a578063d547741f11610064578063d547741f146104e4578063e58306f914610504578063f3eb39d514610524578063f4a0a5281461053757600080fd5b8063afc3cb4914610477578063c91c046214610497578063d4b83992146104ac57600080fd5b806391d14854116100c657806391d14854146103d757806396286f9a1461041b578063a217fddf14610442578063a7ecd37e1461045757600080fd5b8063776d1a011461036a5780638c0a89a71461038a5780638ccc5f80146103aa57600080fd5b80632f2ff15d116101595780634d155561116101335780634d155561146102fe57806351cff8d91461031457806364728701146103345780636817c76c1461035457600080fd5b80632f2ff15d1461029e57806336568abe146102be5780633ca63f2c146102de57600080fd5b8063248a9ca311610195578063248a9ca31461022c57806325fd90f31461025c5780632db11544146102765780632e56f71e1461028957600080fd5b806301ffc9a7146101bc57806307974689146101f15780630afaf4b914610208575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611832565b610557565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b506102066105f0565b005b34801561021457600080fd5b5061021e60045481565b6040519081526020016101e8565b34801561023857600080fd5b5061021e6102473660046117d7565b60009081526020819052604090206001015490565b34801561026857600080fd5b506008546101dc9060ff1681565b6102066102843660046117d7565b61061c565b34801561029557600080fd5b50610206610779565b3480156102aa57600080fd5b506102066102b9366004611807565b610797565b3480156102ca57600080fd5b506102066102d9366004611807565b6107bd565b3480156102ea57600080fd5b5061021e6102f9366004611794565b610849565b34801561030a57600080fd5b5061021e60075481565b34801561032057600080fd5b5061020661032f366004611794565b61086e565b34801561034057600080fd5b5061020661034f3660046117d7565b6108fa565b34801561036057600080fd5b5061021e60065481565b34801561037657600080fd5b50610206610385366004611794565b61095c565b34801561039657600080fd5b506102066103a5366004611794565b6109a3565b3480156103b657600080fd5b5061021e6103c53660046117d7565b60036020526000908152604090205481565b3480156103e357600080fd5b506101dc6103f2366004611807565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561042757600080fd5b506005546104359060ff1681565b6040516101e89190611a30565b34801561044e57600080fd5b5061021e600081565b34801561046357600080fd5b50610206610472366004611794565b610a2b565b34801561048357600080fd5b506102066104923660046117d7565b610a72565b3480156104a357600080fd5b50610206610a8b565b3480156104b857600080fd5b506002546104cc906001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b3480156104f057600080fd5b506102066104ff366004611807565b610aac565b34801561051057600080fd5b5061020661051f3660046117ae565b610ad2565b610206610532366004611872565b610aea565b34801561054357600080fd5b506102066105523660046117d7565b610d35565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806105ea57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60006105fc8133610d4e565b6004805490600061060c83611aef565b9190505550610619610dcc565b50565b60008060055460ff16600181111561064457634e487b7160e01b600052602160045260246000fd5b146106965760405162461bcd60e51b815260206004820152601360248201527f494e434f5252454354204d494e5420545950450000000000000000000000000060448201526064015b60405180910390fd5b60085460ff166106e85760405162461bcd60e51b815260206004820152601260248201527f4d494e54204953204e4f54204143544956450000000000000000000000000000604482015260640161068d565b8160075481600360006107006106fb3390565b610e31565b8152602001908152602001600020546107199190611a71565b11156107675760405162461bcd60e51b815260206004820152601060248201527f45584345454453204d4158204d494e5400000000000000000000000000000000604482015260640161068d565b6107743384600654610e93565b505050565b60006107858133610d4e565b6008805460ff19169055610619610dcc565b6000828152602081905260409020600101546107b38133610d4e565b6107748383610fe5565b6001600160a01b038116331461083b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161068d565b6108458282611083565b5050565b60006003600061085884610e31565b8152602001908152602001600020549050919050565b600061087a8133610d4e565b60405147906001600160a01b0384169082156108fc029083906000818181858888f193505050501580156108b2573d6000803e3d6000fd5b50604080516001600160a01b0385168152602081018390527f76cc4dd05e1fc280969f3363b5db432911cddfadcfae9bef818a492c0f8d5732910160405180910390a1505050565b60006109068133610d4e565b81600181111561092657634e487b7160e01b600052602160045260246000fd5b6005805460ff19166001838181111561094f57634e487b7160e01b600052602160045260246000fd5b0217905550610845610dcc565b60006109688133610d4e565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416179055610845610dcc565b60006109af8133610d4e565b6002546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301529091169063f2fde38b90602401600060405180830381600087803b158015610a0f57600080fd5b505af1158015610a23573d6000803e3d6000fd5b505050505050565b6000610a378133610d4e565b50600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000610a7e8133610d4e565b6007829055610845610dcc565b6000610a978133610d4e565b6008805460ff19166001179055610619610dcc565b600082815260208190526040902060010154610ac88133610d4e565b6107748383611083565b6000610ade8133610d4e565b61077483836000610e93565b60018060055460ff166001811115610b1257634e487b7160e01b600052602160045260246000fd5b14610b5f5760405162461bcd60e51b815260206004820152601360248201527f494e434f5252454354204d494e54205459504500000000000000000000000000604482015260640161068d565b60085460ff16610bb15760405162461bcd60e51b815260206004820152601260248201527f4d494e54204953204e4f54204143544956450000000000000000000000000000604482015260640161068d565b8282818160036000610bc233610e31565b815260200190815260200160002054610bdb9190611a71565b1115610c295760405162461bcd60e51b815260206004820152601960248201527f455843454544532041535349474e4544205155414e5449545900000000000000604482015260640161068d565b85856000600233600454604080516001600160a01b0390931660208401528201859052606082015260800160408051601f1981840301815290829052610c6e91611950565b602060405180830381855afa158015610c8b573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610cae91906117ef565b6001549091506001600160a01b0316610cc78285611102565b6001600160a01b031614610d1d5760405162461bcd60e51b815260206004820152601160248201527f494e56414c4944205349474e4154555245000000000000000000000000000000604482015260640161068d565b610d2a3388600654610e93565b505050505050505050565b6000610d418133610d4e565b6006829055610845610dcc565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661084557610d8a816001600160a01b03166014611126565b610d95836020611126565b604051602001610da692919061196c565b60408051601f198184030181529082905262461bcd60e51b825261068d91600401611a3e565b6002546004546005546006546007546008546040517feffd83c165abbbdce9f009654138d15109b7e74a24aaecbcca6cce47c2fdb88c96610e27966001600160a01b0390911695909460ff91821694909390929116906119ed565b60405180910390a1565b600060045482604051602001610e7692919091825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602082015260340190565b604051602081830303815290604052805190602001209050919050565b8181610e9f8183611a89565b3414610eed5760405162461bcd60e51b815260206004820152600f60248201527f494e434f52524543542056414c55450000000000000000000000000000000000604482015260640161068d565b6002546040517fe58306f90000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152602482018790529091169063e58306f990604401600060405180830381600087803b158015610f5457600080fd5b505af1158015610f68573d6000803e3d6000fd5b505050508360036000610f7a88610e31565b81526020019081526020016000206000828254610f979190611a71565b9091555050604080516001600160a01b0387168152602081018690527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a15050505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610845576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561103f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610845576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000806000611111858561139c565b9150915061111e8161140c565b509392505050565b60606000611135836002611a89565b611140906002611a71565b67ffffffffffffffff81111561116657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611190576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106111d557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061124657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611282846002611a89565b61128d906001611a71565b90505b6001811115611346577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106112dc57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061130057634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361133f81611ad8565b9050611290565b5083156113955760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161068d565b9392505050565b6000808251604114156113d35760208301516040840151606085015160001a6113c787828585611643565b94509450505050611405565b8251604014156113fd57602083015160408401516113f2868383611730565b935093505050611405565b506000905060025b9250929050565b600081600481111561142e57634e487b7160e01b600052602160045260246000fd5b14156114375750565b600181600481111561145957634e487b7160e01b600052602160045260246000fd5b14156114a75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161068d565b60028160048111156114c957634e487b7160e01b600052602160045260246000fd5b14156115175760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161068d565b600381600481111561153957634e487b7160e01b600052602160045260246000fd5b14156115ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161068d565b60048160048111156115cf57634e487b7160e01b600052602160045260246000fd5b14156106195760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161068d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561167a5750600090506003611727565b8460ff16601b1415801561169257508460ff16601c14155b156116a35750600090506004611727565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156116f7573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661172057600060019250925050611727565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161176a87828885611643565b935093505050935093915050565b80356001600160a01b038116811461178f57600080fd5b919050565b6000602082840312156117a5578081fd5b61139582611778565b600080604083850312156117c0578081fd5b6117c983611778565b946020939093013593505050565b6000602082840312156117e8578081fd5b5035919050565b600060208284031215611800578081fd5b5051919050565b60008060408385031215611819578182fd5b8235915061182960208401611778565b90509250929050565b600060208284031215611843578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611395578182fd5b600080600060608486031215611886578081fd5b833567ffffffffffffffff8082111561189d578283fd5b818601915086601f8301126118b0578283fd5b8135818111156118c2576118c2611b20565b604051601f8201601f19908116603f011681019083821181831017156118ea576118ea611b20565b81604052828152896020848701011115611902578586fd5b826020860160208301379182016020908101959095525097928601359650505060409093013592915050565b6002811061194c57634e487b7160e01b600052602160045260246000fd5b9052565b60008251611962818460208701611aa8565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516119a4816017850160208801611aa8565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516119e1816028840160208801611aa8565b01602801949350505050565b6001600160a01b03871681526020810186905260c08101611a11604083018761192e565b84606083015283608083015282151560a0830152979650505050505050565b602081016105ea828461192e565b6020815260008251806020840152611a5d816040850160208701611aa8565b601f01601f19169190910160400192915050565b60008219821115611a8457611a84611b0a565b500190565b6000816000190483118215151615611aa357611aa3611b0a565b500290565b60005b83811015611ac3578181015183820152602001611aab565b83811115611ad2576000848401525b50505050565b600081611ae757611ae7611b0a565b506000190190565b6000600019821415611b0357611b03611b0a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122044f7e83a2ca8e2ebae91719517cca3b66ad019691290169f17a95538a28ee4be64736f6c63430008040033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.