MNT Price: $0.90 (+1.69%)

Contract

0xec9Acf4Ca6dad2720be6d0b5bCb6DDF56728Bb57
 

Overview

MNT Balance

Mantle Mainnet Network LogoMantle Mainnet Network LogoMantle Mainnet Network Logo0 MNT

MNT Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Launchpad Buy400357832024-01-05 8:34:02750 days ago1704443642IN
0xec9Acf4C...56728Bb57
0 MNT0.098098550.055
Launchpad Buy392853452024-01-03 15:13:18751 days ago1704294798IN
0xec9Acf4C...56728Bb57
0 MNT0.317860070.05
Register Feature390564902024-01-03 7:33:03752 days ago1704267183IN
0xec9Acf4C...56728Bb57
0 MNT0.090389020.05
Register Feature383409842024-01-02 9:47:47753 days ago1704188867IN
0xec9Acf4C...56728Bb57
0 MNT0.129250960.05
Launchpad Buy379846932024-01-02 2:35:37753 days ago1704162937IN
0xec9Acf4C...56728Bb57
0 MNT0.09789270.05
Launchpad Buy374584802024-01-01 9:46:02754 days ago1704102362IN
0xec9Acf4C...56728Bb57
0 MNT0.070869850.05
Launchpad Buy374322452024-01-01 9:28:37754 days ago1704101317IN
0xec9Acf4C...56728Bb57
0 MNT0.073102880.05
Launchpad Buy362670042023-12-31 10:19:37755 days ago1704017977IN
0xec9Acf4C...56728Bb57
0 MNT0.091962250.05
Launchpad Buy362619662023-12-31 10:16:27755 days ago1704017787IN
0xec9Acf4C...56728Bb57
0 MNT0.09013160.05
Launchpad Buy361954772023-12-31 9:38:17755 days ago1704015497IN
0xec9Acf4C...56728Bb57
0 MNT0.099605390.05
Launchpad Buy361930072023-12-31 9:35:27755 days ago1704015327IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361928402023-12-31 9:35:12755 days ago1704015312IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361927412023-12-31 9:35:07755 days ago1704015307IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361926232023-12-31 9:34:52755 days ago1704015292IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361925802023-12-31 9:34:47755 days ago1704015287IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361924752023-12-31 9:34:32755 days ago1704015272IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361924172023-12-31 9:34:27755 days ago1704015267IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361922712023-12-31 9:34:11755 days ago1704015251IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361921212023-12-31 9:33:51755 days ago1704015231IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361919492023-12-31 9:33:36755 days ago1704015216IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361918472023-12-31 9:33:26755 days ago1704015206IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361917732023-12-31 9:33:21755 days ago1704015201IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361917022023-12-31 9:33:11755 days ago1704015191IN
0xec9Acf4C...56728Bb57
0 MNT0.098513230.0515
Launchpad Buy361917002023-12-31 9:33:11755 days ago1704015191IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
Launchpad Buy361914792023-12-31 9:33:01755 days ago1704015181IN
0xec9Acf4C...56728Bb57
0 MNT0.098513160.05
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ElementLaunchpad

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "./storage/LibFeatureStorage.sol";
import "./storage/LibOwnableStorage.sol";
import "./libs/Ownable.sol";
import "./libs/FixinTokenSpender.sol";


contract ElementLaunchpad is Ownable, FixinTokenSpender {

    /// @dev Fallback for just receiving ether.
    receive() external payable {}

    /// @dev Forwards calls to the appropriate implementation contract.
    fallback() external payable {
        assembly {
            // Copy methodID to memory 0x00~0x04
            calldatacopy(0, 0, 4)

            // Calculate impl.slot and load impl from storage
            let impl := sload(keccak256(0, 0x40))
            if impl {
                calldatacopy(0, 0, calldatasize())
                if delegatecall(gas(), impl, 0, calldatasize(), 0, 0) {
                    // Success, copy the returned data and return.
                    returndatacopy(0, 0, returndatasize())
                    return(0, returndatasize())
                }

                // Failed, copy the returned data and revert.
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            // revert("Not implemented method.")
            mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
            mstore(0x20, 0x0000002000000000000000000000000000000000000000000000000000000000)
            mstore(0x40, 0x000000174e6f7420696d706c656d656e746564206d6574686f642e0000000000)
            mstore(0x60, 0)
            revert(0, 0x64)
        }
    }

    struct Method {
        bytes4 methodID;
        string methodName;
    }

    struct Feature {
        address feature;
        string name;
        Method[] methods;
    }

    event FeatureFunctionUpdated(
        bytes4 indexed methodID,
        address oldFeature,
        address newFeature
    );

    function registerFeatures(Feature[] calldata features) external onlyOwner {
        unchecked {
            for (uint256 i; i < features.length; ++i) {
                registerFeature(features[i]);
            }
        }
    }

    function registerFeature(Feature calldata feature) public onlyOwner {
        unchecked {
            address impl = feature.feature;
            require(impl != address(0), "registerFeature: invalid feature address.");

            LibFeatureStorage.Storage storage stor = LibFeatureStorage.getStorage();
            stor.featureNames[impl] = feature.name;

            Method[] calldata methods = feature.methods;
            for (uint256 i; i < methods.length; ++i) {
                bytes4 methodID = methods[i].methodID;
                address oldFeature = stor.featureImpls[methodID];
                if (oldFeature == address(0)) {
                    stor.methodIDs.push(methodID);
                }
                stor.featureImpls[methodID] = impl;
                stor.methodNames[methodID] = methods[i].methodName;
                emit FeatureFunctionUpdated(methodID, oldFeature, impl);
            }
        }
    }

    function unregister(bytes4[] calldata methodIDs) external onlyOwner {
        unchecked {
            uint256 removedFeatureCount;
            LibFeatureStorage.Storage storage stor = LibFeatureStorage.getStorage();

            // Update storage.featureImpls
            for (uint256 i; i < methodIDs.length; ++i) {
                bytes4 methodID = methodIDs[i];
                address impl = stor.featureImpls[methodID];
                if (impl != address(0)) {
                    removedFeatureCount++;
                    stor.featureImpls[methodID] = address(0);
                }
                emit FeatureFunctionUpdated(methodID, impl, address(0));
            }
            if (removedFeatureCount == 0) {
                return;
            }

            // Remove methodIDs from storage.methodIDs
            bytes4[] storage storMethodIDs = stor.methodIDs;
            for (uint256 i = storMethodIDs.length; i > 0; --i) {
                bytes4 methodID = storMethodIDs[i - 1];
                if (stor.featureImpls[methodID] == address(0)) {
                    if (i != storMethodIDs.length) {
                        storMethodIDs[i - 1] = storMethodIDs[storMethodIDs.length - 1];
                    }
                    delete storMethodIDs[storMethodIDs.length - 1];
                    storMethodIDs.pop();

                    if (removedFeatureCount == 1) { // Finished
                        return;
                    }
                    --removedFeatureCount;
                }
            }
        }
    }

    function getMethodIDs() external view returns (uint256 count, bytes4[] memory methodIDs) {
        LibFeatureStorage.Storage storage stor = LibFeatureStorage.getStorage();
        return (stor.methodIDs.length, stor.methodIDs);
    }

    function getFeatureImpl(bytes4 methodID) external view returns (address impl) {
        return LibFeatureStorage.getStorage().featureImpls[methodID];
    }

    function getFeatures() external view returns (
        uint256 featuresCount,
        address[] memory features,
        string[] memory names,
        uint256[] memory featureMethodsCount
    ) {
        LibFeatureStorage.Storage storage stor = LibFeatureStorage.getStorage();
        uint256[] memory methodsCount = new uint256[](stor.methodIDs.length);
        address[] memory addrs = new address[](stor.methodIDs.length);

        for (uint256 i = 0; i < stor.methodIDs.length; ++i) {
            bytes4 methodID = stor.methodIDs[i];
            address impl = stor.featureImpls[methodID];

            uint256 j = 0;
            while (j < featuresCount && impl != addrs[j]) {
                ++j;
            }
            if (j == featuresCount) {
                addrs[j] = impl;
                ++featuresCount;
            }

            ++methodsCount[j];
        }

        features = new address[](featuresCount);
        names = new string[](featuresCount);
        featureMethodsCount = new uint256[](featuresCount);
        for (uint256 i = 0; i < featuresCount; ++i) {
            features[i] = addrs[i];
            names[i] = stor.featureNames[addrs[i]];
            featureMethodsCount[i] = methodsCount[i];
        }
        return (featuresCount, features, names, featureMethodsCount);
    }

    function approveERC20(IERC20 token, address operator, uint256 amount) external onlyOwner {
        token.approve(operator, amount);
    }

    function rescueETH(address recipient) external onlyOwner {
        require(recipient != address(0));
        _transferEth(recipient, address(this).balance);
    }

    function rescueERC20(address asset, address recipient) external onlyOwner {
        require(recipient != address(0));
        _transferERC20(asset, recipient, IERC20(asset).balanceOf(address(this)));
    }

    function rescueERC721(address asset, uint256[] calldata ids , address recipient) external onlyOwner {
        require(recipient != address(0));
        assembly {
            // selector for transferFrom(address,address,uint256)
            mstore(0, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(0x4, address())
            mstore(0x24, recipient)

            for { let offset := ids.offset } lt(offset, calldatasize()) { offset := add(offset, 0x20) } {
                // tokenID
                mstore(0x44, calldataload(offset))
                if iszero(call(gas(), asset, 0, 0, 0x64, 0, 0)) {
                    returndatacopy(0, 0, returndatasize())
                    revert(0, returndatasize())
                }
            }
        }
    }

    function rescueERC1155(IERC1155 asset, uint256 id, uint256 amount, address recipient) external onlyOwner {
        require(recipient != address(0));
        asset.safeTransferFrom(address(this), recipient, id, amount, "");
    }

    function onERC1155Received(address, address, uint256, uint256, bytes calldata) external virtual returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(address, address, uint256[] calldata, uint256[] calldata, bytes calldata) external virtual returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }

    function onERC721Received(address, address, uint256, bytes calldata) external virtual returns (bytes4) {
        return 0x150b7a02;
    }

    function onERC721Received(address, uint256, bytes calldata) external virtual returns (bytes4) {
        return 0xf0b9e5ba;
    }

    function supportsInterface(bytes4 interfaceId) external virtual returns (bool) {
        return interfaceId == this.supportsInterface.selector;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;


/// @dev Helpers for moving tokens around.
abstract contract FixinTokenSpender {

    // Mask of the lower 20 bytes of a bytes32.
    uint256 constant private ADDRESS_MASK = ((1 << 160) - 1);

    /// @dev Transfers ERC20 tokens from `owner` to `to`.
    /// @param token The token to spend.
    /// @param owner The owner of the tokens.
    /// @param to The recipient of the tokens.
    /// @param amount The amount of `token` to transfer.
    function _transferERC20From(address token, address owner, address to, uint256 amount) internal {
        uint256 success;
        assembly {
            let ptr := mload(0x40) // free memory pointer

            // selector for transferFrom(address,address,uint256)
            mstore(ptr, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(ptr, 0x04), and(owner, ADDRESS_MASK))
            mstore(add(ptr, 0x24), and(to, ADDRESS_MASK))
            mstore(add(ptr, 0x44), amount)

            success := call(gas(), and(token, ADDRESS_MASK), 0, ptr, 0x64, ptr, 32)

            let rdsize := returndatasize()

            // Check for ERC20 success. ERC20 tokens should return a boolean,
            // but some don't. We accept 0-length return data as success, or at
            // least 32 bytes that starts with a 32-byte boolean true.
            success := and(
                success,                             // call itself succeeded
                or(
                    iszero(rdsize),                  // no return data, or
                    and(
                        iszero(lt(rdsize, 32)),      // at least 32 bytes
                        eq(mload(ptr), 1)            // starts with uint256(1)
                    )
                )
            )
        }
        require(success != 0, "_transferERC20/TRANSFER_FAILED");
    }

    /// @dev Transfers ERC20 tokens from ourselves to `to`.
    /// @param token The token to spend.
    /// @param to The recipient of the tokens.
    /// @param amount The amount of `token` to transfer.
    function _transferERC20(address token, address to, uint256 amount) internal {
        uint256 success;
        assembly {
            let ptr := mload(0x40) // free memory pointer

            // selector for transfer(address,uint256)
            mstore(ptr, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(ptr, 0x04), and(to, ADDRESS_MASK))
            mstore(add(ptr, 0x24), amount)

            success := call(gas(), and(token, ADDRESS_MASK), 0, ptr, 0x44, ptr, 32)

            let rdsize := returndatasize()

            // Check for ERC20 success. ERC20 tokens should return a boolean,
            // but some don't. We accept 0-length return data as success, or at
            // least 32 bytes that starts with a 32-byte boolean true.
            success := and(
                success,                             // call itself succeeded
                or(
                    iszero(rdsize),                  // no return data, or
                    and(
                        iszero(lt(rdsize, 32)),      // at least 32 bytes
                        eq(mload(ptr), 1)            // starts with uint256(1)
                    )
                )
            )
        }
        require(success != 0, "_transferERC20/TRANSFER_FAILED");
    }

    /// @dev Transfers some amount of ETH to the given recipient and
    ///      reverts if the transfer fails.
    /// @param recipient The recipient of the ETH.
    /// @param amount The amount of ETH to transfer.
    function _transferEth(address recipient, uint256 amount) internal {
        assembly {
            if amount {
                if iszero(call(gas(), recipient, amount, 0, 0, 0, 0)) {
                    // revert("_transferEth/TRANSFER_FAILED")
                    mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                    mstore(0x20, 0x0000002000000000000000000000000000000000000000000000000000000000)
                    mstore(0x40, 0x0000001c5f7472616e736665724574682f5452414e534645525f4641494c4544)
                    mstore(0x60, 0)
                    revert(0, 0x64)
                }
            }
        }
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "../storage/LibOwnableStorage.sol";


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        if (owner() == address(0)) {
            _transferOwnership(msg.sender);
        }
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == msg.sender, "Ownable: caller is not the owner");
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) private {
        LibOwnableStorage.Storage storage stor = LibOwnableStorage.getStorage();
        address oldOwner = stor.owner;
        stor.owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 8 : LibFeatureStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;


library LibFeatureStorage {

    uint256 constant STORAGE_ID_FEATURE = 0;

    struct Storage {
        // Mapping of methodID -> feature implementation
        mapping(bytes4 => address) featureImpls;
        // Mapping of feature implementation -> feature name
        mapping(address => string) featureNames;
        // Record methodIDs
        bytes4[] methodIDs;
        // Mapping of methodID -> method name
        mapping(bytes4 => string) methodNames;
    }

    /// @dev Get the storage bucket for this contract.
    function getStorage() internal pure returns (Storage storage stor) {
        // Dip into assembly to change the slot pointed to by the local
        // variable `stor`.
        // See https://solidity.readthedocs.io/en/v0.6.8/assembly.html?highlight=slot#access-to-external-variables-functions-and-libraries
        assembly { stor.slot := STORAGE_ID_FEATURE }
    }
}

File 8 of 8 : LibOwnableStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;


library LibOwnableStorage {

    uint256 constant STORAGE_ID_OWNABLE = 1 << 128;

    struct Storage {
        uint256 reentrancyStatus;
        address owner;
    }

    /// @dev Get the storage bucket for this contract.
    function getStorage() internal pure returns (Storage storage stor) {
        assembly { stor.slot := STORAGE_ID_OWNABLE }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"methodID","type":"bytes4"},{"indexed":false,"internalType":"address","name":"oldFeature","type":"address"},{"indexed":false,"internalType":"address","name":"newFeature","type":"address"}],"name":"FeatureFunctionUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"methodID","type":"bytes4"}],"name":"getFeatureImpl","outputs":[{"internalType":"address","name":"impl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeatures","outputs":[{"internalType":"uint256","name":"featuresCount","type":"uint256"},{"internalType":"address[]","name":"features","type":"address[]"},{"internalType":"string[]","name":"names","type":"string[]"},{"internalType":"uint256[]","name":"featureMethodsCount","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMethodIDs","outputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes4[]","name":"methodIDs","type":"bytes4[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"feature","type":"address"},{"internalType":"string","name":"name","type":"string"},{"components":[{"internalType":"bytes4","name":"methodID","type":"bytes4"},{"internalType":"string","name":"methodName","type":"string"}],"internalType":"struct ElementLaunchpad.Method[]","name":"methods","type":"tuple[]"}],"internalType":"struct ElementLaunchpad.Feature","name":"feature","type":"tuple"}],"name":"registerFeature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"feature","type":"address"},{"internalType":"string","name":"name","type":"string"},{"components":[{"internalType":"bytes4","name":"methodID","type":"bytes4"},{"internalType":"string","name":"methodName","type":"string"}],"internalType":"struct ElementLaunchpad.Method[]","name":"methods","type":"tuple[]"}],"internalType":"struct ElementLaunchpad.Feature[]","name":"features","type":"tuple[]"}],"name":"registerFeatures","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"asset","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4[]","name":"methodIDs","type":"bytes4[]"}],"name":"unregister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060006200001e6200003e565b6001600160a01b0316036200003857620000383362000067565b620000dc565b600062000055620000d460201b620012ae1760201c565b600101546001600160a01b0316919050565b60006200007e620000d460201b620012ae1760201c565b6001810180546001600160a01b038581166001600160a01b031983168117909355604051939450169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b600160801b90565b611d2a80620000ec6000396000f3fe60806040526004361061010d5760003560e01c8063a8e5e4aa11610095578063c3866f2e11610064578063c3866f2e14610394578063d750e2a5146103d4578063f0b9e5ba146103f4578063f23a6e611461041f578063f2fde38b1461044c57610114565b8063a8e5e4aa14610305578063ab65a1f714610325578063bc197c8114610345578063c12e5d541461037457610114565b80635d799f87116100dc5780635d799f87146102505780637dfcc71a146102705780638da5cb5b14610295578063928515e9146102c25780639f827ea3146102e557610114565b806301ffc9a71461018357806304824e70146101c9578063150b7a02146101eb57806326e2dca21461023057610114565b3661011457005b6000600481823760408120548015610146573682833781823684845af41561013e573d82833e3d82f35b3d82833e3d82fd5b5062461bcd60e51b8152600160e51b6020527c174e6f7420696d706c656d656e746564206d6574686f642e00000000006040526060819052606481fd5b34801561018f57600080fd5b506101b461019e366004611407565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b3480156101d557600080fd5b506101e96101e436600461144d565b61046c565b005b3480156101f757600080fd5b506102176102063660046114b2565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016101c0565b34801561023c57600080fd5b506101e961024b366004611568565b6104c4565b34801561025c57600080fd5b506101e961026b3660046115cf565b610550565b34801561027c57600080fd5b5061028561060b565b6040516101c09493929190611643565b3480156102a157600080fd5b506102aa610a44565b6040516001600160a01b0390911681526020016101c0565b3480156102ce57600080fd5b506102d7610a59565b6040516101c0929190611730565b3480156102f157600080fd5b506101e9610300366004611788565b610aeb565b34801561031157600080fd5b506101e96103203660046117c7565b610bb0565b34801561033157600080fd5b506101e9610340366004611808565b610c58565b34801561035157600080fd5b50610217610360366004611849565b63bc197c8160e01b98975050505050505050565b34801561038057600080fd5b506101e961038f366004611907565b610f1f565b3480156103a057600080fd5b506102aa6103af366004611407565b6001600160e01b0319166000908152602081905260409020546001600160a01b031690565b3480156103e057600080fd5b506101e96103ef366004611808565b6111a3565b34801561040057600080fd5b5061021761040f366004611941565b63785cf2dd60e11b949350505050565b34801561042b57600080fd5b5061021761043a36600461199c565b63f23a6e6160e01b9695505050505050565b34801561045857600080fd5b506101e961046736600461144d565b611211565b33610475610a44565b6001600160a01b0316146104a45760405162461bcd60e51b815260040161049b90611a17565b60405180910390fd5b6001600160a01b0381166104b757600080fd5b6104c181476112b6565b50565b336104cd610a44565b6001600160a01b0316146104f35760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b03811661050657600080fd5b6323b872dd60e01b6000523060045280602452825b368110156105495780356044526000806064600080895af1610541573d6000803e3d6000fd5b60200161051b565b5050505050565b33610559610a44565b6001600160a01b03161461057f5760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b03811661059257600080fd5b6040516370a0823160e01b815230600482015261060790839083906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106029190611a4c565b611308565b5050565b60025460009060609081908190849081906001600160401b0381111561063357610633611a65565b60405190808252806020026020018201604052801561065c578160200160208202803683370190505b5060028301549091506000906001600160401b0381111561067f5761067f611a65565b6040519080825280602002602001820160405280156106a8578160200160208202803683370190505b50905060005b60028401548110156107df5760008460020182815481106106d1576106d1611a7b565b6000918252602080832060088304015460079092166004026101000a90910460e01b6001600160e01b0319811683529087905260408220549092506001600160a01b0316905b8a81108015610751575084818151811061073357610733611a7b565b60200260200101516001600160a01b0316826001600160a01b031614155b156107665761075f81611a91565b9050610717565b8a81036107a4578185828151811061078057610780611a7b565b6001600160a01b03909216602092830291909101909101526107a18b611a91565b9a505b8581815181106107b6576107b6611a7b565b6020026020010180516107c890611a91565b9052506107d89150829050611a91565b90506106ae565b50866001600160401b038111156107f8576107f8611a65565b604051908082528060200260200182016040528015610821578160200160208202803683370190505b509550866001600160401b0381111561083c5761083c611a65565b60405190808252806020026020018201604052801561086f57816020015b606081526020019060019003908161085a5790505b509450866001600160401b0381111561088a5761088a611a65565b6040519080825280602002602001820160405280156108b3578160200160208202803683370190505b50935060005b87811015610a3a578181815181106108d3576108d3611a7b565b60200260200101518782815181106108ed576108ed611a7b565b60200260200101906001600160a01b031690816001600160a01b03168152505083600101600083838151811061092557610925611a7b565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020805461095890611ab8565b80601f016020809104026020016040519081016040528092919081815260200182805461098490611ab8565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b50505050508682815181106109e8576109e8611a7b565b6020026020010181905250828181518110610a0557610a05611a7b565b6020026020010151858281518110610a1f57610a1f611a7b565b6020908102919091010152610a3381611a91565b90506108b9565b5050505090919293565b6001600160801b01546001600160a01b031690565b6002805460408051602080840282018101909252828152600093606093859390929082908490830182828015610adb57602002820191906000526020600020906000905b82829054906101000a900460e01b6001600160e01b03191681526020019060040190602082600301049283019260010382029150808411610a9d5790505b5050505050905092509250509091565b33610af4610a44565b6001600160a01b031614610b1a5760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b038116610b2d57600080fd5b604051637921219560e11b81523060048201526001600160a01b038281166024830152604482018590526064820184905260a06084830152600060a483015285169063f242432a9060c401600060405180830381600087803b158015610b9257600080fd5b505af1158015610ba6573d6000803e3d6000fd5b5050505050505050565b33610bb9610a44565b6001600160a01b031614610bdf5760405162461bcd60e51b815260040161049b90611a17565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820183905284169063095ea7b3906044016020604051808303816000875af1158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c529190611af2565b50505050565b33610c61610a44565b6001600160a01b031614610c875760405162461bcd60e51b815260040161049b90611a17565b60008060005b83811015610d70576000858583818110610ca957610ca9611a7b565b9050602002016020810190610cbe9190611407565b6001600160e01b031981166000908152602085905260409020549091506001600160a01b03168015610d18576001600160e01b03198216600090815260208590526040902080546001600160a01b03191690556001909401935b604080516001600160a01b0383168152600060208201526001600160e01b03198416917ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a767910160405180910390a25050600101610c8d565b5081600003610d7f5750505050565b6002810180545b8015610f17576000826001830381548110610da357610da3611a7b565b6000918252602080832060088304015460079092166004026101000a90910460e01b6001600160e01b031981168352908690526040909120549091506001600160a01b0316610f0d5782548214610e7557825483906000198101908110610e0c57610e0c611a7b565b90600052602060002090600891828204019190066004029054906101000a900460e01b836001840381548110610e4457610e44611a7b565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908360e01c02179055505b825483906000198101908110610e8d57610e8d611a7b565b90600052602060002090600891828204019190066004026101000a81549063ffffffff021916905582805480610ec557610ec5611b14565b600082815260209020600860001990920191820401805463ffffffff600460078516026101000a021916905590556001859003610f055750505050505050565b600019909401935b5060001901610d86565b505050505050565b33610f28610a44565b6001600160a01b031614610f4e5760405162461bcd60e51b815260040161049b90611a17565b6000610f5d602083018361144d565b90506001600160a01b038116610fc75760405162461bcd60e51b815260206004820152602960248201527f7265676973746572466561747572653a20696e76616c696420666561747572656044820152681030b2323932b9b99760b91b606482015260840161049b565b6000610fd66020840184611b2a565b6001600160a01b0384166000908152600184016020526040902091610ffc919083611bb6565b5036600061100d6040860186611c75565b9150915060005b81811015610f1757600083838381811061103057611030611a7b565b90506020028101906110429190611cbe565b611050906020810190611407565b6001600160e01b031981166000908152602087905260409020549091506001600160a01b0316806110be57600286018054600181018255600091825260209091206008820401805463ffffffff60079093166004026101000a928302191660e085901c929092029190911790555b6001600160e01b03198216600090815260208790526040902080546001600160a01b0319166001600160a01b03891617905584848481811061110257611102611a7b565b90506020028101906111149190611cbe565b611122906020810190611b2a565b6001600160e01b031984166000908152600389016020526040902091611149919083611bb6565b50604080516001600160a01b038084168252891660208201526001600160e01b03198416917ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a767910160405180910390a25050600101611014565b336111ac610a44565b6001600160a01b0316146111d25760405162461bcd60e51b815260040161049b90611a17565b60005b8181101561120c576112048383838181106111f2576111f2611a7b565b905060200281019061038f9190611cde565b6001016111d5565b505050565b3361121a610a44565b6001600160a01b0316146112405760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b0381166112a55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049b565b6104c1816113a7565b600160801b90565b80156106075760008060008084865af16106075762461bcd60e51b600052600160e51b6020527c1c5f7472616e736665724574682f5452414e534645525f4641494c4544604052600060605260646000fd5b600060405163a9059cbb60e01b81526001600160a01b038416600482015282602482015260208160448360006001600160a01b038a165af191503d600182511460208210151681151783169250505080600003610c525760405162461bcd60e51b815260206004820152601e60248201527f5f7472616e7366657245524332302f5452414e534645525f4641494c45440000604482015260640161049b565b6001600160801b0180546001600160a01b031981166001600160a01b03848116918217909355604051600160801b939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60006020828403121561141957600080fd5b81356001600160e01b03198116811461143157600080fd5b9392505050565b6001600160a01b03811681146104c157600080fd5b60006020828403121561145f57600080fd5b813561143181611438565b60008083601f84011261147c57600080fd5b5081356001600160401b0381111561149357600080fd5b6020830191508360208285010111156114ab57600080fd5b9250929050565b6000806000806000608086880312156114ca57600080fd5b85356114d581611438565b945060208601356114e581611438565b93506040860135925060608601356001600160401b0381111561150757600080fd5b6115138882890161146a565b969995985093965092949392505050565b60008083601f84011261153657600080fd5b5081356001600160401b0381111561154d57600080fd5b6020830191508360208260051b85010111156114ab57600080fd5b6000806000806060858703121561157e57600080fd5b843561158981611438565b935060208501356001600160401b038111156115a457600080fd5b6115b087828801611524565b90945092505060408501356115c481611438565b939692955090935050565b600080604083850312156115e257600080fd5b82356115ed81611438565b915060208301356115fd81611438565b809150509250929050565b600081518084526020808501945080840160005b838110156116385781518752958201959082019060010161161c565b509495945050505050565b600060808201868352602060808185015281875180845260a086019150828901935060005b8181101561168d5784516001600160a01b031683529383019391830191600101611668565b5050848103604086015286518082528282019350600581901b8201830183890160005b8381101561170d57601f19808685030188528251805180865260005b818110156116e7578281018a01518782018b015289016116cc565b5060008682018a015298880198601f0190911690930186019250908501906001016116b0565b505086810360608801526117218189611608565b9b9a5050505050505050505050565b6000604082018483526020604081850152818551808452606086019150828701935060005b8181101561177b5784516001600160e01b03191683529383019391830191600101611755565b5090979650505050505050565b6000806000806080858703121561179e57600080fd5b84356117a981611438565b9350602085013592506040850135915060608501356115c481611438565b6000806000606084860312156117dc57600080fd5b83356117e781611438565b925060208401356117f781611438565b929592945050506040919091013590565b6000806020838503121561181b57600080fd5b82356001600160401b0381111561183157600080fd5b61183d85828601611524565b90969095509350505050565b60008060008060008060008060a0898b03121561186557600080fd5b883561187081611438565b9750602089013561188081611438565b965060408901356001600160401b038082111561189c57600080fd5b6118a88c838d01611524565b909850965060608b01359150808211156118c157600080fd5b6118cd8c838d01611524565b909650945060808b01359150808211156118e657600080fd5b506118f38b828c0161146a565b999c989b5096995094979396929594505050565b60006020828403121561191957600080fd5b81356001600160401b0381111561192f57600080fd5b82016060818503121561143157600080fd5b6000806000806060858703121561195757600080fd5b843561196281611438565b93506020850135925060408501356001600160401b0381111561198457600080fd5b6119908782880161146a565b95989497509550505050565b60008060008060008060a087890312156119b557600080fd5b86356119c081611438565b955060208701356119d081611438565b9450604087013593506060870135925060808701356001600160401b038111156119f957600080fd5b611a0589828a0161146a565b979a9699509497509295939492505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611a5e57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060018201611ab157634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611acc57607f821691505b602082108103611aec57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611b0457600080fd5b8151801515811461143157600080fd5b634e487b7160e01b600052603160045260246000fd5b6000808335601e19843603018112611b4157600080fd5b8301803591506001600160401b03821115611b5b57600080fd5b6020019150368190038213156114ab57600080fd5b601f82111561120c57600081815260208120601f850160051c81016020861015611b975750805b601f850160051c820191505b81811015610f1757828155600101611ba3565b6001600160401b03831115611bcd57611bcd611a65565b611be183611bdb8354611ab8565b83611b70565b6000601f841160018114611c155760008515611bfd5750838201355b600019600387901b1c1916600186901b178355610549565b600083815260209020601f19861690835b82811015611c465786850135825560209485019460019092019101611c26565b5086821015611c635760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000808335601e19843603018112611c8c57600080fd5b8301803591506001600160401b03821115611ca657600080fd5b6020019150600581901b36038213156114ab57600080fd5b60008235603e19833603018112611cd457600080fd5b9190910192915050565b60008235605e19833603018112611cd457600080fdfea2646970667358221220d77600d840b78f84ccc589113e4b34b365945c85f46009024fe6f5b0d467497664736f6c63430008110033

Deployed Bytecode

0x60806040526004361061010d5760003560e01c8063a8e5e4aa11610095578063c3866f2e11610064578063c3866f2e14610394578063d750e2a5146103d4578063f0b9e5ba146103f4578063f23a6e611461041f578063f2fde38b1461044c57610114565b8063a8e5e4aa14610305578063ab65a1f714610325578063bc197c8114610345578063c12e5d541461037457610114565b80635d799f87116100dc5780635d799f87146102505780637dfcc71a146102705780638da5cb5b14610295578063928515e9146102c25780639f827ea3146102e557610114565b806301ffc9a71461018357806304824e70146101c9578063150b7a02146101eb57806326e2dca21461023057610114565b3661011457005b6000600481823760408120548015610146573682833781823684845af41561013e573d82833e3d82f35b3d82833e3d82fd5b5062461bcd60e51b8152600160e51b6020527c174e6f7420696d706c656d656e746564206d6574686f642e00000000006040526060819052606481fd5b34801561018f57600080fd5b506101b461019e366004611407565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b3480156101d557600080fd5b506101e96101e436600461144d565b61046c565b005b3480156101f757600080fd5b506102176102063660046114b2565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020016101c0565b34801561023c57600080fd5b506101e961024b366004611568565b6104c4565b34801561025c57600080fd5b506101e961026b3660046115cf565b610550565b34801561027c57600080fd5b5061028561060b565b6040516101c09493929190611643565b3480156102a157600080fd5b506102aa610a44565b6040516001600160a01b0390911681526020016101c0565b3480156102ce57600080fd5b506102d7610a59565b6040516101c0929190611730565b3480156102f157600080fd5b506101e9610300366004611788565b610aeb565b34801561031157600080fd5b506101e96103203660046117c7565b610bb0565b34801561033157600080fd5b506101e9610340366004611808565b610c58565b34801561035157600080fd5b50610217610360366004611849565b63bc197c8160e01b98975050505050505050565b34801561038057600080fd5b506101e961038f366004611907565b610f1f565b3480156103a057600080fd5b506102aa6103af366004611407565b6001600160e01b0319166000908152602081905260409020546001600160a01b031690565b3480156103e057600080fd5b506101e96103ef366004611808565b6111a3565b34801561040057600080fd5b5061021761040f366004611941565b63785cf2dd60e11b949350505050565b34801561042b57600080fd5b5061021761043a36600461199c565b63f23a6e6160e01b9695505050505050565b34801561045857600080fd5b506101e961046736600461144d565b611211565b33610475610a44565b6001600160a01b0316146104a45760405162461bcd60e51b815260040161049b90611a17565b60405180910390fd5b6001600160a01b0381166104b757600080fd5b6104c181476112b6565b50565b336104cd610a44565b6001600160a01b0316146104f35760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b03811661050657600080fd5b6323b872dd60e01b6000523060045280602452825b368110156105495780356044526000806064600080895af1610541573d6000803e3d6000fd5b60200161051b565b5050505050565b33610559610a44565b6001600160a01b03161461057f5760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b03811661059257600080fd5b6040516370a0823160e01b815230600482015261060790839083906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106029190611a4c565b611308565b5050565b60025460009060609081908190849081906001600160401b0381111561063357610633611a65565b60405190808252806020026020018201604052801561065c578160200160208202803683370190505b5060028301549091506000906001600160401b0381111561067f5761067f611a65565b6040519080825280602002602001820160405280156106a8578160200160208202803683370190505b50905060005b60028401548110156107df5760008460020182815481106106d1576106d1611a7b565b6000918252602080832060088304015460079092166004026101000a90910460e01b6001600160e01b0319811683529087905260408220549092506001600160a01b0316905b8a81108015610751575084818151811061073357610733611a7b565b60200260200101516001600160a01b0316826001600160a01b031614155b156107665761075f81611a91565b9050610717565b8a81036107a4578185828151811061078057610780611a7b565b6001600160a01b03909216602092830291909101909101526107a18b611a91565b9a505b8581815181106107b6576107b6611a7b565b6020026020010180516107c890611a91565b9052506107d89150829050611a91565b90506106ae565b50866001600160401b038111156107f8576107f8611a65565b604051908082528060200260200182016040528015610821578160200160208202803683370190505b509550866001600160401b0381111561083c5761083c611a65565b60405190808252806020026020018201604052801561086f57816020015b606081526020019060019003908161085a5790505b509450866001600160401b0381111561088a5761088a611a65565b6040519080825280602002602001820160405280156108b3578160200160208202803683370190505b50935060005b87811015610a3a578181815181106108d3576108d3611a7b565b60200260200101518782815181106108ed576108ed611a7b565b60200260200101906001600160a01b031690816001600160a01b03168152505083600101600083838151811061092557610925611a7b565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020805461095890611ab8565b80601f016020809104026020016040519081016040528092919081815260200182805461098490611ab8565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b50505050508682815181106109e8576109e8611a7b565b6020026020010181905250828181518110610a0557610a05611a7b565b6020026020010151858281518110610a1f57610a1f611a7b565b6020908102919091010152610a3381611a91565b90506108b9565b5050505090919293565b6001600160801b01546001600160a01b031690565b6002805460408051602080840282018101909252828152600093606093859390929082908490830182828015610adb57602002820191906000526020600020906000905b82829054906101000a900460e01b6001600160e01b03191681526020019060040190602082600301049283019260010382029150808411610a9d5790505b5050505050905092509250509091565b33610af4610a44565b6001600160a01b031614610b1a5760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b038116610b2d57600080fd5b604051637921219560e11b81523060048201526001600160a01b038281166024830152604482018590526064820184905260a06084830152600060a483015285169063f242432a9060c401600060405180830381600087803b158015610b9257600080fd5b505af1158015610ba6573d6000803e3d6000fd5b5050505050505050565b33610bb9610a44565b6001600160a01b031614610bdf5760405162461bcd60e51b815260040161049b90611a17565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820183905284169063095ea7b3906044016020604051808303816000875af1158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c529190611af2565b50505050565b33610c61610a44565b6001600160a01b031614610c875760405162461bcd60e51b815260040161049b90611a17565b60008060005b83811015610d70576000858583818110610ca957610ca9611a7b565b9050602002016020810190610cbe9190611407565b6001600160e01b031981166000908152602085905260409020549091506001600160a01b03168015610d18576001600160e01b03198216600090815260208590526040902080546001600160a01b03191690556001909401935b604080516001600160a01b0383168152600060208201526001600160e01b03198416917ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a767910160405180910390a25050600101610c8d565b5081600003610d7f5750505050565b6002810180545b8015610f17576000826001830381548110610da357610da3611a7b565b6000918252602080832060088304015460079092166004026101000a90910460e01b6001600160e01b031981168352908690526040909120549091506001600160a01b0316610f0d5782548214610e7557825483906000198101908110610e0c57610e0c611a7b565b90600052602060002090600891828204019190066004029054906101000a900460e01b836001840381548110610e4457610e44611a7b565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908360e01c02179055505b825483906000198101908110610e8d57610e8d611a7b565b90600052602060002090600891828204019190066004026101000a81549063ffffffff021916905582805480610ec557610ec5611b14565b600082815260209020600860001990920191820401805463ffffffff600460078516026101000a021916905590556001859003610f055750505050505050565b600019909401935b5060001901610d86565b505050505050565b33610f28610a44565b6001600160a01b031614610f4e5760405162461bcd60e51b815260040161049b90611a17565b6000610f5d602083018361144d565b90506001600160a01b038116610fc75760405162461bcd60e51b815260206004820152602960248201527f7265676973746572466561747572653a20696e76616c696420666561747572656044820152681030b2323932b9b99760b91b606482015260840161049b565b6000610fd66020840184611b2a565b6001600160a01b0384166000908152600184016020526040902091610ffc919083611bb6565b5036600061100d6040860186611c75565b9150915060005b81811015610f1757600083838381811061103057611030611a7b565b90506020028101906110429190611cbe565b611050906020810190611407565b6001600160e01b031981166000908152602087905260409020549091506001600160a01b0316806110be57600286018054600181018255600091825260209091206008820401805463ffffffff60079093166004026101000a928302191660e085901c929092029190911790555b6001600160e01b03198216600090815260208790526040902080546001600160a01b0319166001600160a01b03891617905584848481811061110257611102611a7b565b90506020028101906111149190611cbe565b611122906020810190611b2a565b6001600160e01b031984166000908152600389016020526040902091611149919083611bb6565b50604080516001600160a01b038084168252891660208201526001600160e01b03198416917ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a767910160405180910390a25050600101611014565b336111ac610a44565b6001600160a01b0316146111d25760405162461bcd60e51b815260040161049b90611a17565b60005b8181101561120c576112048383838181106111f2576111f2611a7b565b905060200281019061038f9190611cde565b6001016111d5565b505050565b3361121a610a44565b6001600160a01b0316146112405760405162461bcd60e51b815260040161049b90611a17565b6001600160a01b0381166112a55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049b565b6104c1816113a7565b600160801b90565b80156106075760008060008084865af16106075762461bcd60e51b600052600160e51b6020527c1c5f7472616e736665724574682f5452414e534645525f4641494c4544604052600060605260646000fd5b600060405163a9059cbb60e01b81526001600160a01b038416600482015282602482015260208160448360006001600160a01b038a165af191503d600182511460208210151681151783169250505080600003610c525760405162461bcd60e51b815260206004820152601e60248201527f5f7472616e7366657245524332302f5452414e534645525f4641494c45440000604482015260640161049b565b6001600160801b0180546001600160a01b031981166001600160a01b03848116918217909355604051600160801b939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60006020828403121561141957600080fd5b81356001600160e01b03198116811461143157600080fd5b9392505050565b6001600160a01b03811681146104c157600080fd5b60006020828403121561145f57600080fd5b813561143181611438565b60008083601f84011261147c57600080fd5b5081356001600160401b0381111561149357600080fd5b6020830191508360208285010111156114ab57600080fd5b9250929050565b6000806000806000608086880312156114ca57600080fd5b85356114d581611438565b945060208601356114e581611438565b93506040860135925060608601356001600160401b0381111561150757600080fd5b6115138882890161146a565b969995985093965092949392505050565b60008083601f84011261153657600080fd5b5081356001600160401b0381111561154d57600080fd5b6020830191508360208260051b85010111156114ab57600080fd5b6000806000806060858703121561157e57600080fd5b843561158981611438565b935060208501356001600160401b038111156115a457600080fd5b6115b087828801611524565b90945092505060408501356115c481611438565b939692955090935050565b600080604083850312156115e257600080fd5b82356115ed81611438565b915060208301356115fd81611438565b809150509250929050565b600081518084526020808501945080840160005b838110156116385781518752958201959082019060010161161c565b509495945050505050565b600060808201868352602060808185015281875180845260a086019150828901935060005b8181101561168d5784516001600160a01b031683529383019391830191600101611668565b5050848103604086015286518082528282019350600581901b8201830183890160005b8381101561170d57601f19808685030188528251805180865260005b818110156116e7578281018a01518782018b015289016116cc565b5060008682018a015298880198601f0190911690930186019250908501906001016116b0565b505086810360608801526117218189611608565b9b9a5050505050505050505050565b6000604082018483526020604081850152818551808452606086019150828701935060005b8181101561177b5784516001600160e01b03191683529383019391830191600101611755565b5090979650505050505050565b6000806000806080858703121561179e57600080fd5b84356117a981611438565b9350602085013592506040850135915060608501356115c481611438565b6000806000606084860312156117dc57600080fd5b83356117e781611438565b925060208401356117f781611438565b929592945050506040919091013590565b6000806020838503121561181b57600080fd5b82356001600160401b0381111561183157600080fd5b61183d85828601611524565b90969095509350505050565b60008060008060008060008060a0898b03121561186557600080fd5b883561187081611438565b9750602089013561188081611438565b965060408901356001600160401b038082111561189c57600080fd5b6118a88c838d01611524565b909850965060608b01359150808211156118c157600080fd5b6118cd8c838d01611524565b909650945060808b01359150808211156118e657600080fd5b506118f38b828c0161146a565b999c989b5096995094979396929594505050565b60006020828403121561191957600080fd5b81356001600160401b0381111561192f57600080fd5b82016060818503121561143157600080fd5b6000806000806060858703121561195757600080fd5b843561196281611438565b93506020850135925060408501356001600160401b0381111561198457600080fd5b6119908782880161146a565b95989497509550505050565b60008060008060008060a087890312156119b557600080fd5b86356119c081611438565b955060208701356119d081611438565b9450604087013593506060870135925060808701356001600160401b038111156119f957600080fd5b611a0589828a0161146a565b979a9699509497509295939492505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611a5e57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060018201611ab157634e487b7160e01b600052601160045260246000fd5b5060010190565b600181811c90821680611acc57607f821691505b602082108103611aec57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611b0457600080fd5b8151801515811461143157600080fd5b634e487b7160e01b600052603160045260246000fd5b6000808335601e19843603018112611b4157600080fd5b8301803591506001600160401b03821115611b5b57600080fd5b6020019150368190038213156114ab57600080fd5b601f82111561120c57600081815260208120601f850160051c81016020861015611b975750805b601f850160051c820191505b81811015610f1757828155600101611ba3565b6001600160401b03831115611bcd57611bcd611a65565b611be183611bdb8354611ab8565b83611b70565b6000601f841160018114611c155760008515611bfd5750838201355b600019600387901b1c1916600186901b178355610549565b600083815260209020601f19861690835b82811015611c465786850135825560209485019460019092019101611c26565b5086821015611c635760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000808335601e19843603018112611c8c57600080fd5b8301803591506001600160401b03821115611ca657600080fd5b6020019150600581901b36038213156114ab57600080fd5b60008235603e19833603018112611cd457600080fd5b9190910192915050565b60008235605e19833603018112611cd457600080fdfea2646970667358221220d77600d840b78f84ccc589113e4b34b365945c85f46009024fe6f5b0d467497664736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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