Contract 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e6

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xa1f126cbc029cd7ebd030fc3634375ac9002188739f4cde78023da4a92aadd640x60806040202633222022-08-14 21:44:15112 days 4 hrs ago0x06c244a9bafbc96e609a8df32a07178552c7295a IN  Contract Creation0 ETH0.000393161259 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa933c62d2fcb68c11b76c3e621c367f77357cc3f9b467109c5d5faef6e33f301205203892022-08-17 15:56:01109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xa933c62d2fcb68c11b76c3e621c367f77357cc3f9b467109c5d5faef6e33f301205203892022-08-17 15:56:01109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x2c810b341cd4f43f9d06f8f15ddc9275711c2e18942f81624967e65471e70c1f205202262022-08-17 15:54:05109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x2c810b341cd4f43f9d06f8f15ddc9275711c2e18942f81624967e65471e70c1f205202262022-08-17 15:54:05109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xd99b16ead889edea03e16333a3d9a73ef7e02994396f7ef09caaa83758f83276205202132022-08-17 15:53:21109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xd99b16ead889edea03e16333a3d9a73ef7e02994396f7ef09caaa83758f83276205202132022-08-17 15:53:21109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xb36dc9f2c96bb47f506d9e0ac1e7ee735b688af37c0ca12bb25fdbb9c71ad9e7205200402022-08-17 15:50:31109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x890820094404db2773df101ae0999f341d46f63ddf06c45d47224a2e055d3daf205199252022-08-17 15:49:07109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x70aa3741d237b81b72cbbc843c043056518d0ee175af84c8f3457ec097a4eb93205198552022-08-17 15:47:38109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x70aa3741d237b81b72cbbc843c043056518d0ee175af84c8f3457ec097a4eb93205198552022-08-17 15:47:38109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x9892a5e6eb38f2017f3aabcd71b3d5e1065f136774906473d102919220eaaecd205193012022-08-17 15:41:00109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x9892a5e6eb38f2017f3aabcd71b3d5e1065f136774906473d102919220eaaecd205193012022-08-17 15:41:00109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xe46ba98a1723dfc87cd65c7c7c0864ec25a591fa5430a3e4d33c5eaf2711d106205191402022-08-17 15:38:43109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xc61f9086a4d946884e59d27fd979b098cec2df7ab12f7c13869dab8f13488971205185152022-08-17 15:28:53109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xa794c67f1714fc851e53cbd687ee92ed0e8b935bedb437d89ce2aa751ca47145205184772022-08-17 15:28:53109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xdb95bb6ec4f83f5aa5615c0d79a6d7091b71453ecd129f9d2f4e872d006adb71205183872022-08-17 15:27:32109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xba47d6080ee00c439a61c9a321c9c24cf2c7339b5c1a8653b1b4728ce377d91e205175892022-08-17 15:18:26109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xba47d6080ee00c439a61c9a321c9c24cf2c7339b5c1a8653b1b4728ce377d91e205175892022-08-17 15:18:26109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x8324618f76e51dd71d18b54c2c96504286df2c229abcbb701d38c0506947a453205175752022-08-17 15:17:36109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xf7a0afd69f57780eac2b3ca72bbb74a1e5627bfa5a03c077c012b8f607c9a823205170982022-08-17 15:12:07109 days 10 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xb8a38c824a8c9471f4394bdd4313e76260f49a17894a9828722e2f19c41d5274205149182022-08-17 14:43:46109 days 11 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0xe2cfafe0c74563f6f208a56aae8c6de819562d67da315903e8d202f4722c654b205143832022-08-17 14:36:14109 days 11 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x3ccc57fb04150483a16e27a4d7fabb9dc8c05cf8a5fe2a265a07a71d3efdcd8f205121822022-08-17 14:10:04109 days 11 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x3ccc57fb04150483a16e27a4d7fabb9dc8c05cf8a5fe2a265a07a71d3efdcd8f205121822022-08-17 14:10:04109 days 11 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
0x775720699d35abe572df1755a08fc36c79083a3ff9eee43aa7ade8df13f38cff205120162022-08-17 14:08:04109 days 12 hrs ago 0x80c7ae0e9a383a311ec66a7060c8ef26ac291931 0x6a0c604af9e08f7ec9252b09889578e98d6fc6e60 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x84e695aAa4818c5E31e547541Ba7D6F3902315Da

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.