Contract 0x84e695aaa4818c5e31e547541ba7d6f3902315da

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x6a06d1ce22e4a19fb2b67ff85e09da28c27109a465e825b0657cfa48e8da13f60x60806040202633152022-08-14 21:43:53103 days 15 hrs ago0x06c244a9bafbc96e609a8df32a07178552c7295a IN  Create: SmolOwnersResolverAdapter0 ETH0.000608705718 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd06e2448fa5ff1f6f5032b17c7c4669e7ab22a94ca432a4deb5ea5187aae9fdd413455092022-11-26 11:05:332 hrs 13 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x7b20d815232f0216ff7fbc8f7ad25e3ad072970e9b2dd53cccc5bec6d0ac629c412908252022-11-26 6:36:466 hrs 42 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xb31cfb414bb8be1140f98382a725326ed1bd5ec4e979aaaf3c8e87ee689aeaaa412907622022-11-26 6:36:266 hrs 42 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x96d1c6e3a5d767e64ce1ba5f90413758476ff35a9c70394d728e63a2476dd535412704332022-11-26 4:44:398 hrs 34 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x96d1c6e3a5d767e64ce1ba5f90413758476ff35a9c70394d728e63a2476dd535412704332022-11-26 4:44:398 hrs 34 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x96d1c6e3a5d767e64ce1ba5f90413758476ff35a9c70394d728e63a2476dd535412704332022-11-26 4:44:398 hrs 34 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x96d1c6e3a5d767e64ce1ba5f90413758476ff35a9c70394d728e63a2476dd535412704332022-11-26 4:44:398 hrs 34 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xc2ed85e0af4b812858b7c8d6c4ad4ce010002876ece0fce1408ab99fc3aa44e7412172272022-11-25 23:37:5313 hrs 40 mins ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x16ddba18df21a6bcb768b4b333dc76278d9ae2f11ab2ded0dc518012e63306b8410500332022-11-25 9:21:481 day 3 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x5bd78aceee747e07aede116aaf86494e9b5ac4ef54e142e64887289d11594756410233042022-11-25 7:18:171 day 6 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x4ceedf83db7e56d4742843586e03c1e70f58cbd3ff53cf7b44c571f5d497b409410087672022-11-25 6:05:311 day 7 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x63a00aba89cc0bb4bab329ea19c0dd58256071accfbf14006e84e8f3a26f97ae409523552022-11-25 0:16:501 day 13 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xe82c7eb0516fc14a2bad9187d29300cdbb21c06c239d3f1495999419c011e24a408410862022-11-24 13:58:441 day 23 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x5a69a6040818a202bb97267d7d53e634a54adeaceaa684a5d6aa21970d841c11406929672022-11-24 1:33:352 days 11 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x14e34aecd66002d323bdd580feb73123e5e5210c8e827caf22e9d88fa8b29adf404247832022-11-23 3:03:353 days 10 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x0fc08e531181f31093690efb31d4dcc184961f647c0a991d6aaf43a43ab289fc404247052022-11-23 3:03:153 days 10 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xdd16ab9001d6f542b78a185a0d797e06dd3bc71caa567ce05c85627ddefe7acf403628952022-11-22 21:18:343 days 16 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xcd0aac3000988709dfcb21041716b062a82b11737c3993c441db0dcad50260a0402587192022-11-22 13:35:133 days 23 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xb498253a2142263aa2ff9bb6349e9074984f9f54e58b2a0974d43645a0264b87402586612022-11-22 13:34:573 days 23 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xa90bcbbcc4c51946a6ab1dffa756b09d1a41d01aa077d3d434b24d0f6600f063401832422022-11-22 8:03:374 days 5 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x515f21536172c8c267fb3b2c34d3f1361a11c437f2a01ecf7a9aca5ddc6f9229401831622022-11-22 8:03:164 days 5 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x9abf353ab9f70140b774faffa692dc967d7ec70c7bb75089244b6013f495b31f401499482022-11-22 5:32:174 days 7 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xe8b50db1467a633064576a719e7635fb0376810ef6d03b5a6b1cbb1f745e2e18401498872022-11-22 5:31:584 days 7 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0x35dbff475f7dc0c113b1f026858f8368c6d9c698819ba36fe885fe0ecb4f66e6400846412022-11-21 23:25:024 days 13 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
0xe14d91c87f217b1f01105985acadf17f6e584a5643f10eaeae6abdc1ff472a3d400845762022-11-21 23:24:434 days 13 hrs ago 0xf9cba7812a7a3362b227ecb2db60ec9cfccbd304 0x84e695aaa4818c5e31e547541ba7d6f3902315da0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SmolOwnersResolverAdapter

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : SmolOwnersResolverAdapter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.11;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

import "../interfaces/ICreatureOwnerResolver.sol";

/**
 * @title  SmolOwnersResolverAdapter contract
 * @author Archethect
 * @notice This contract contains all functionalities for verifying Smol ownership
 */
contract SmolOwnersResolverAdapter is Initializable, ICreatureOwnerResolver {
    IERC721 public smolBrains;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    function initialize(address smolBrains_) public initializer {
        require(address(smolBrains_) != address(0), "SMOLOWNERSRESOLVERADAPTER:ILLEGAL_ADDRESS");
        smolBrains = IERC721(smolBrains_);
    }

    function isOwner(address account, uint256 tokenId) external view override returns (bool) {
        return smolBrains.ownerOf(tokenId) == account;
    }
}

File 2 of 6 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 6 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

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

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = _setInitializedVersion(1);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        bool isTopLevelCall = _setInitializedVersion(version);
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(version);
        }
    }

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

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        _setInitializedVersion(type(uint8).max);
    }

    function _setInitializedVersion(uint8 version) private returns (bool) {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level
        // of initializers, because in other contexts the contract may have been reentered.
        if (_initializing) {
            require(
                version == 1 && !AddressUpgradeable.isContract(address(this)),
                "Initializable: contract is already initialized"
            );
            return false;
        } else {
            require(_initialized < version, "Initializable: contract is already initialized");
            _initialized = version;
            return true;
        }
    }
}

File 4 of 6 : ICreatureOwnerResolver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.11;

/**
 * @title  ICreatureOwnerResolver interface
 * @author Archethect
 * @notice This interface contains all functionalities for verifying Creature ownership
 */
interface ICreatureOwnerResolver {
    function isOwner(address account, uint256 tokenId) external view returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"inputs":[{"internalType":"address","name":"smolBrains_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"smolBrains","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061001961001e565b610142565b61002860ff61002b565b50565b60008054610100900460ff16156100bd578160ff16600114801561005f575061005d3061013360201b6102381760201c565b155b6100b55760405162461bcd60e51b815260206004820152602e602482015260008051602061050083398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b506000919050565b60005460ff8084169116106101195760405162461bcd60e51b815260206004820152602e602482015260008051602061050083398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016100ac565b506000805460ff191660ff92909216919091179055600190565b6001600160a01b03163b151590565b6103af806101516000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806349a5572b14610046578063c4d66de81461007c578063e327a6af14610091575b600080fd5b60005461005f906201000090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61008f61008a3660046102e7565b6100b4565b005b6100a461009f36600461030b565b6101b1565b6040519015158152602001610073565b60006100c06001610247565b905080156100d8576000805461ff0019166101001790555b6001600160a01b0382166101455760405162461bcd60e51b815260206004820152602960248201527f534d4f4c4f574e4552535245534f4c564552414441505445523a494c4c4547416044820152684c5f4144445245535360b81b60648201526084015b60405180910390fd5b6000805462010000600160b01b031916620100006001600160a01b0385160217905580156101ad576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050565b600080546040516331a9108f60e11b8152600481018490526001600160a01b03858116926201000090041690636352211e90602401602060405180830381865afa158015610203573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102279190610337565b6001600160a01b0316149392505050565b6001600160a01b03163b151590565b60008054610100900460ff161561028e578160ff16600114801561026a5750303b155b6102865760405162461bcd60e51b815260040161013c90610354565b506000919050565b60005460ff8084169116106102b55760405162461bcd60e51b815260040161013c90610354565b506000805460ff191660ff92909216919091179055600190565b6001600160a01b03811681146102e457600080fd5b50565b6000602082840312156102f957600080fd5b8135610304816102cf565b9392505050565b6000806040838503121561031e57600080fd5b8235610329816102cf565b946020939093013593505050565b60006020828403121561034957600080fd5b8151610304816102cf565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b60608201526080019056fea164736f6c634300080b000a496e697469616c697a61626c653a20636f6e747261637420697320616c726561

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.