Contract 0x2985d40668955cbd77b6144ed335db3702a93e8c 1

Contract Overview

Balance:
0 MATIC
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x9004f8b8b4e3f5f99d1986d3744b0063467a1b9f9f8cb8bf1ed3cb14897af231Gimme Ingredient...305245832023-01-04 5:56:22147 days 21 hrs ago0x2c5b4859a5d803b0a9816c95d6e2e789dfb0333f IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000326614576 1.514277791
0x1ab776e2a74fe22a4fedad0a1d2b4c2b32ea5e85ebf2cce9b5a52eb0cf6618a6Gimme Ingredient...305242092023-01-04 5:43:08147 days 21 hrs ago0x2c5b4859a5d803b0a9816c95d6e2e789dfb0333f IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000323535003 1.500000016
0x0c00db54026f63dbe4141408c8d1264406ef407b00479c3736f3a5c6118db6bcGimme Ingredient...305241802023-01-04 5:42:06147 days 21 hrs ago0x2c5b4859a5d803b0a9816c95d6e2e789dfb0333f IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000400485004 1.500000016
0xd2e0154c720643f7f90402ef5b29574eb37f0e36c2870b4f6453749b98ba13e5Gimme Ingredient...305233882023-01-04 5:14:02147 days 22 hrs ago0x2c5b4859a5d803b0a9816c95d6e2e789dfb0333f IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000631335006 1.500000016
0x9985a6a5854579e56aee8f02977c4398724b225bc68c757120337a527f07d819Gimme Ingredient...278880542022-09-02 7:02:46271 days 20 hrs ago0xace3eed06a005c3d065b75dfc67768de5cfca6a4 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.00064980365 2.041622892
0xf2dc80ee6262aff5bd64f9055b3c13b53f7bee70daf8d8d3daf5837ec58eab82Gimme Ingredient...278679512022-09-01 3:02:05273 days 19 mins ago0xace3eed06a005c3d065b75dfc67768de5cfca6a4 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000816503324 1.94000001
0x7b8865e0e823aad03c5f3c3490d0d7d4fd2fab331bfec1c752552737ec6995d2Gimme Ingredient...264930452022-05-27 23:45:36369 days 3 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000430416906 1.995645852
0x813446aff3b6f759b153f58a1fc04405a929b22c390633c7c9527dcc2d04ee20Gimme Ingredient...264929992022-05-27 23:41:46369 days 3 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000517525065 2.399526447
0x9c98fa6a836166266d7eda62ffd366d22e9762493db000c5342b950f295a0408Gimme Ingredient...264929532022-05-27 23:37:55369 days 3 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.003704120024 13.874251903
0x0efa36a080e57d5309f5705c976e836de8c00e1fa6ff69cab641df85487857c1Gimme Ingredient...264572562022-05-25 7:26:46371 days 19 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.002859821215 10.711823504
0x91d1cb0949ad07f51b93b8ad9fd3283aa1bae55c9acd4f52d83061a93e73a0e0Gimme Ingredient...263437062022-05-17 3:44:16379 days 23 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000647421652 2.425000009
0x66a261ea9d214f87ae3fb669e1f9b0b249325120105379524f0e3180d8ef8fb4Gimme Ingredient...261106002022-04-27 21:21:19399 days 6 hrs ago0x4677379c040a8a05724ab99f3bc3ed1eba95bf57 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.003884700914 18.010574967
0x78cf93f1b1188c59c9ce756032e85a0d66dbadd24ec6cc5b75f4e02960dc02b6Gimme Ingredient...261105862022-04-27 21:20:08399 days 6 hrs ago0x4677379c040a8a05724ab99f3bc3ed1eba95bf57 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.002175551106 5.168930377
0x3e91250487d2902895702df03a0ad922084a30028ab8b01d40230484d4102e67Gimme Ingredient...260943492022-04-26 15:04:54400 days 12 hrs ago0xa9abfea82ab560f038753613d886f0f122bba344 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000964478356 2.291521197
0x517d7f699295deecf6ca8cd132ab384241d54f7371915f05aeb3ccb0e50ff1deGimme Ingredient...260880182022-04-26 1:17:13401 days 2 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.003803889966 15.222988686
0x68eb4b84d544a7f764db8325158bfd1026b4d75e82c36847358187afd8916267Gimme Ingredient...259649882022-04-17 0:29:50410 days 2 hrs ago0x68a13209e2b02e8ce125027c0fddcaa78f064634 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.003502898965 7.997668818
0x8746fdd62e723e130a209d30c8ee19a94818f43374bdb51df3d3534c27e350a6Gimme Ingredient...259635352022-04-16 21:41:46410 days 5 hrs ago0x14ae8e0a96678207b37efb4a9a07bfbab92a00ac IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.00841756 20
0x36ae8703aaca8e793bae1275a89b0c49beb3db1d5e155ede58d0b19a653087c0Gimme Ingredient...259635242022-04-16 21:39:56410 days 5 hrs ago0x872a1389aa8cd119838b3da99d1be1b5d8bc8290 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.004796902162 10.952081469
0x406dc86cd6268cbebd4c0b234401d8dd5a2015f947b94e3b38fdcc5f2fe18caeGimme Ingredient...259413462022-04-15 5:42:20411 days 21 hrs ago0x6ddfa408aaa2e33c8447d5cba70d9ec037b13a30 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.005843086 19.4
0x5c7701eaffcbac6cbba700d23c39ac8cb065e7d146cd3028ec01593264bcdc0aGimme Ingredient...259379212022-04-14 23:08:46412 days 4 hrs ago0x10b74a9aa1f088e5866e1d996a3453f7c32e63c2 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.002041316499 4.849999999
0x957c09545bea6d44c5358ed1fbc190ba69b30afbebc54694dfd7e0a16754b621Gimme Ingredient...259369002022-04-14 21:06:01412 days 6 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.001046038304 4.850000022
0x143c9bf19b47311a824742a7ca9171f248ae8b16949cf5c83ba2c5a3e00d1669Gimme Ingredient...259223892022-04-13 21:29:47413 days 5 hrs ago0xf94d9236c90079d1bc74f567917fc2acd3f9bb54 IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.001128282086 3.201000025
0xb0ac429dfd75ff5a0adda7f8efa3305adcf1903cacc55d248e9a384215c4f40dSet Belly Nft259223762022-04-13 21:27:37413 days 5 hrs ago0x08d560bf0b6123e7d5687752fe532aff5e65d62e IN  0x2985d40668955cbd77b6144ed335db3702a93e8c0 MATIC0.000138696001 3.000000022
0x8a8e5bc0dd873cca386976cee7ed111375bdcb9ebf60972fb33ef5af656656f80x61020060259223572022-04-13 21:25:16413 days 5 hrs ago0x08d560bf0b6123e7d5687752fe532aff5e65d62e IN  Create: BellyFaucet0 MATIC0.009946060412 7.52499774
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BellyFaucet

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 9 : BellyFaucet.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface IBellyNft {
  function mint(
    address account,
    uint256 id,
    uint256 amount,
    bytes memory data
  ) external;

  function mintBatch(
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) external;
}

contract BellyFaucet is AccessControl, Pausable, ReentrancyGuard {
  IBellyNft public bellyNft;
  uint256[] public ingredientIds = [1, 2, 3, 5, 6, 7, 8, 10, 12, 13, 15, 17];

  constructor() {
    _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }

  function setBellyNft(address contractAddress)
    public
    onlyRole(DEFAULT_ADMIN_ROLE)
  {
    bellyNft = IBellyNft(contractAddress);
  }

  function gimmeIngredients(address to) public nonReentrant whenNotPaused {
    uint256 idsLength = ingredientIds.length;
    uint256[] memory amounts = new uint256[](idsLength);
    uint256 i;
    for (i = 0; i < idsLength; i++) {
      amounts[i] = 1;
    }

    bellyNft.mintBatch(to, ingredientIds, amounts, "");
  }

  /*** Pause / Unpause ***/

  function pause() public onlyRole(DEFAULT_ADMIN_ROLE) {
    _pause();
  }

  function unpause() public onlyRole(DEFAULT_ADMIN_ROLE) {
    _unpause();
  }
}

File 2 of 9 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 virtual 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 virtual {
        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 virtual 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());
        }
    }
}

File 3 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 4 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 9 : IAccessControl.sol
// 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;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 9 : ERC165.sol
// 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;
    }
}

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

pragma solidity ^0.8.0;

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

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bellyNft","outputs":[{"internalType":"contract IBellyNft","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"gimmeIngredients","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ingredientIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setBellyNft","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61020060405260016080908152600260a052600360c052600560e052600661010052600761012052600861014052600a61016052600c610180819052600d6101a052600f6101c05260116101e0526200005b916004916200012b565b503480156200006957600080fd5b506001805460ff19168155600255620000846000336200008a565b62000197565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000127576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620000e63390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b8280548282559060005260206000209081019282156200016e579160200282015b828111156200016e578251829060ff169055916020019190600101906200014c565b506200017c92915062000180565b5090565b5b808211156200017c576000815560010162000181565b6110dd80620001a76000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80635c975abb1161008c578063a217fddf11610066578063a217fddf14610227578063a5a138b51461022f578063c17c25c614610242578063d547741f1461025557600080fd5b80635c975abb146101d05780638456cb59146101db57806391d14854146101e357600080fd5b806336568abe116100c857806336568abe1461015d578063387e88ae146101705780633f4ba83a146101835780634d5a11961461018b57600080fd5b806301ffc9a7146100ef578063248a9ca3146101175780632f2ff15d14610148575b600080fd5b6101026100fd366004610d03565b610268565b60405190151581526020015b60405180910390f35b61013a610125366004610d45565b60009081526020819052604090206001015490565b60405190815260200161010e565b61015b610156366004610d87565b610301565b005b61015b61016b366004610d87565b61032c565b61013a61017e366004610d45565b6103e4565b61015b610405565b6003546101ab9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010e565b60015460ff16610102565b61015b61041c565b6101026101f1366004610d87565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b61013a600081565b61015b61023d366004610db3565b610430565b61015b610250366004610db3565b610629565b61015b610263366004610d87565b61067d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806102fb57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60008281526020819052604090206001015461031d81336106a3565b6103278383610773565b505050565b73ffffffffffffffffffffffffffffffffffffffff811633146103d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6103e08282610863565b5050565b600481815481106103f457600080fd5b600091825260209091200154905081565b600061041181336106a3565b61041961091a565b50565b600061042881336106a3565b6104196109fb565b600280540361049b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103cd565b6002805560015460ff161561050c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016103cd565b60045460008167ffffffffffffffff81111561052a5761052a610dce565b604051908082528060200260200182016040528015610553578160200160208202803683370190505b50905060005b8281101561059257600182828151811061057557610575610dfd565b60209081029190910101528061058a81610e5b565b915050610559565b6003546040517f1f7fdffa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690631f7fdffa906105ec90879060049087908201610e93565b600060405180830381600087803b15801561060657600080fd5b505af115801561061a573d6000803e3d6000fd5b50506001600255505050505050565b600061063581336106a3565b50600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008281526020819052604090206001015461069981336106a3565b6103278383610863565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166103e0576106f98173ffffffffffffffffffffffffffffffffffffffff166014610ab9565b610704836020610ab9565b604051602001610715929190610f74565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526103cd91600401610ff5565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff166103e05760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556108053390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16156103e05760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60015460ff16610986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016103cd565b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b60015460ff1615610a68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016103cd565b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336109d1565b60606000610ac8836002611046565b610ad3906002611083565b67ffffffffffffffff811115610aeb57610aeb610dce565b6040519080825280601f01601f191660200182016040528015610b15576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610b4c57610b4c610dfd565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610baf57610baf610dfd565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000610beb846002611046565b610bf6906001611083565b90505b6001811115610c93577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610c3757610c37610dfd565b1a60f81b828281518110610c4d57610c4d610dfd565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93610c8c8161109b565b9050610bf9565b508315610cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103cd565b9392505050565b600060208284031215610d1557600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610cfc57600080fd5b600060208284031215610d5757600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d8257600080fd5b919050565b60008060408385031215610d9a57600080fd5b82359150610daa60208401610d5e565b90509250929050565b600060208284031215610dc557600080fd5b610cfc82610d5e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610e8c57610e8c610e2c565b5060010190565b60006080820173ffffffffffffffffffffffffffffffffffffffff86168352602060808185015281865480845260a0860191508760005282600020935060005b81811015610eef57845483526001948501949284019201610ed3565b50508481036040860152855180825290820192508186019060005b81811015610f2657825185529383019391830191600101610f0a565b50505050828103606084015260008152602081019695505050505050565b60005b83811015610f5f578181015183820152602001610f47565b83811115610f6e576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610fac816017850160208801610f44565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351610fe9816028840160208801610f44565b01602801949350505050565b6020815260008251806020840152611014816040850160208701610f44565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561107e5761107e610e2c565b500290565b6000821982111561109657611096610e2c565b500190565b6000816110aa576110aa610e2c565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea164736f6c634300080d000a

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