ETH Price: $2,280.38 (+8.70%)

Contract

0x4cc4752155877F4333f25bB9A6F8880567ee1231
 

Overview

ETH Balance

0.02001 ETH

Eth Value

$45.63 (@ $2,280.38/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Launchpad Buys170454752023-04-14 12:41:351067 days ago1681476095IN
0x4cc47521...567ee1231
1.98 ETH0.0080839226.71445736
Launchpad Buys170454612023-04-14 12:38:351067 days ago1681475915IN
0x4cc47521...567ee1231
1.98 ETH0.007759525.64237096
Launchpad Buys170454302023-04-14 12:32:231067 days ago1681475543IN
0x4cc47521...567ee1231
3.6 ETH0.0109831628.10157635
Launchpad Buys170454262023-04-14 12:31:351067 days ago1681475495IN
0x4cc47521...567ee1231
1.08 ETH0.0070983127.99504922
Launchpad Buys170454062023-04-14 12:27:111067 days ago1681475231IN
0x4cc47521...567ee1231
1.08 ETH0.0073983729.17569506
Launchpad Buys170454032023-04-14 12:26:351067 days ago1681475195IN
0x4cc47521...567ee1231
1.8 ETH0.0086725329.61930481
Launchpad Buys170453522023-04-14 12:15:471067 days ago1681474547IN
0x4cc47521...567ee1231
1.08 ETH0.0077211430.45
Launchpad Buys170453472023-04-14 12:14:471067 days ago1681474487IN
0x4cc47521...567ee1231
1.08 ETH0.0079873931.5
Launchpad Buys170453302023-04-14 12:11:111067 days ago1681474271IN
0x4cc47521...567ee1231
1.125 ETH0.0068368326.55061153
Launchpad Buys170453242023-04-14 12:09:591067 days ago1681474199IN
0x4cc47521...567ee1231
3.6 ETH0.0111815228.60909809
Launchpad Buys170453202023-04-14 12:08:591067 days ago1681474139IN
0x4cc47521...567ee1231
1.08 ETH0.0071889928.35
Launchpad Buys170453022023-04-14 12:05:111067 days ago1681473911IN
0x4cc47521...567ee1231
4.14 ETH0.0112413426.74822375
Launchpad Buys170452492023-04-14 11:53:591067 days ago1681473239IN
0x4cc47521...567ee1231
3.24 ETH0.0100156326.97886401
Launchpad Buys170452442023-04-14 11:52:591067 days ago1681473179IN
0x4cc47521...567ee1231
3.6 ETH0.0113040628.92174913
Launchpad Buys170452392023-04-14 11:51:591067 days ago1681473119IN
0x4cc47521...567ee1231
1.8 ETH0.0082658328.23148212
Launchpad Buys170452122023-04-14 11:46:231067 days ago1681472783IN
0x4cc47521...567ee1231
2.7 ETH0.0094015927.50508589
Launchpad Buys170452062023-04-14 11:45:111067 days ago1681472711IN
0x4cc47521...567ee1231
3.42 ETH0.0096809925.40642223
Launchpad Buys170452042023-04-14 11:44:471067 days ago1681472687IN
0x4cc47521...567ee1231
3.6 ETH0.010670227.3
Launchpad Buy170451662023-04-14 11:37:111067 days ago1681472231IN
0x4cc47521...567ee1231
2.52 ETH0.0057469128.35
Launchpad Buys170451652023-04-14 11:36:591067 days ago1681472219IN
0x4cc47521...567ee1231
1.8 ETH0.007695926.28383919
Launchpad Buys170451652023-04-14 11:36:591067 days ago1681472219IN
0x4cc47521...567ee1231
1.26 ETH0.0071615827.19180413
Launchpad Buys170451312023-04-14 11:30:111067 days ago1681471811IN
0x4cc47521...567ee1231
3.6 ETH0.009647824.68492662
Launchpad Buys170451002023-04-14 11:23:351067 days ago1681471415IN
0x4cc47521...567ee1231
1.665 ETH0.0084122128.73025494
Launchpad Buys170450732023-04-14 11:18:111067 days ago1681471091IN
0x4cc47521...567ee1231
1.8 ETH0.0085617529.24336533
Launchpad Buys170450692023-04-14 11:17:231067 days ago1681471043IN
0x4cc47521...567ee1231
3.24 ETH0.0099579126.82339633
VIEW ADVANCED FILTER
Amount:Between 1-10k
Reset Filter

Showing the last 3 internal transactions (View Advanced Filter)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer174634062023-06-12 10:32:231008 days ago1686565943
0x4cc47521...567ee1231
794.925 ETH
Transfer170328572023-04-12 15:37:471068 days ago1681313867
0x4cc47521...567ee1231
450 ETH
Transfer165309292023-02-01 2:16:591139 days ago1675217819
0x4cc47521...567ee1231
6.624 ETH
VIEW ADVANCED FILTER
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
ElementLaunchpad

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.15;

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

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

pragma solidity ^0.8.15;


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 5 of 8 : LibOwnableStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.15;


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

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

// 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
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

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"}]

60806040523480156200001157600080fd5b50600073ffffffffffffffffffffffffffffffffffffffff166200003a6200006e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff160362000068576200006733620000ae60201b60201c565b5b620001ab565b6000620000856200019260201b62001c601760201c565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000620000c56200019260201b62001c601760201c565b905060008160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000700100000000000000000000000000000000905090565b61344280620001bb6000396000f3fe60806040526004361061010d5760003560e01c8063a8e5e4aa11610095578063c3866f2e11610064578063c3866f2e14610419578063d750e2a514610456578063f0b9e5ba1461047f578063f23a6e61146104bc578063f2fde38b146104f957610114565b8063a8e5e4aa14610361578063ab65a1f71461038a578063bc197c81146103b3578063c12e5d54146103f057610114565b80635d799f87116100dc5780635d799f871461028a5780637dfcc71a146102b35780638da5cb5b146102e1578063928515e91461030c5780639f827ea31461033857610114565b806301ffc9a7146101be57806304824e70146101fb578063150b7a021461022457806326e2dca21461026157610114565b3661011457005b600460008037604060002054801561014d573660008037600080366000845af415610143573d6000803e3d6000f35b3d6000803e3d6000fd5b7f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c174e6f7420696d706c656d656e746564206d6574686f642e0000000000604052600060605260646000fd5b3480156101ca57600080fd5b506101e560048036038101906101e09190611f0c565b610522565b6040516101f29190611f54565b60405180910390f35b34801561020757600080fd5b50610222600480360381019061021d9190611fcd565b610573565b005b34801561023057600080fd5b5061024b60048036038101906102469190612095565b61062e565b604051610258919061212c565b60405180910390f35b34801561026d57600080fd5b506102886004803603810190610283919061219d565b610643565b005b34801561029657600080fd5b506102b160048036038101906102ac9190612211565b610757565b005b3480156102bf57600080fd5b506102c861088d565b6040516102d8949392919061252e565b60405180910390f35b3480156102ed57600080fd5b506102f6610dcf565b6040516103039190612597565b60405180910390f35b34801561031857600080fd5b50610321610e02565b60405161032f929190612670565b60405180910390f35b34801561034457600080fd5b5061035f600480360381019061035a91906126de565b610ebb565b005b34801561036d57600080fd5b5061038860048036038101906103839190612783565b610fe0565b005b34801561039657600080fd5b506103b160048036038101906103ac919061282c565b6110d9565b005b3480156103bf57600080fd5b506103da60048036038101906103d59190612879565b611595565b6040516103e7919061212c565b60405180910390f35b3480156103fc57600080fd5b5061041760048036038101906104129190612979565b6115ad565b005b34801561042557600080fd5b50610440600480360381019061043b9190611f0c565b611a02565b60405161044d9190612597565b60405180910390f35b34801561046257600080fd5b5061047d60048036038101906104789190612a18565b611a86565b005b34801561048b57600080fd5b506104a660048036038101906104a19190612a65565b611b46565b6040516104b3919061212c565b60405180910390f35b3480156104c857600080fd5b506104e360048036038101906104de9190612ad9565b611b5a565b6040516104f0919061212c565b60405180910390f35b34801561050557600080fd5b50610520600480360381019061051b9190611fcd565b611b70565b005b60006301ffc9a760e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610592610dcf565b73ffffffffffffffffffffffffffffffffffffffff16146105e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105df90612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361062157600080fd5b61062b8147611c79565b50565b600063150b7a0260e01b905095945050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610662610dcf565b73ffffffffffffffffffffffffffffffffffffffff16146106b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106af90612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036106f157600080fd5b7f23b872dd000000000000000000000000000000000000000000000000000000006000523060045280602452825b368110156107505780356044526000806064600080895af1610745573d6000803e3d6000fd5b60208101905061071f565b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610776610dcf565b73ffffffffffffffffffffffffffffffffffffffff16146107cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c390612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361080557600080fd5b61088982828473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108439190612597565b602060405180830381865afa158015610860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108849190612c05565b611d03565b5050565b60006060806060600061089e611dce565b90506000816002018054905067ffffffffffffffff8111156108c3576108c2612c32565b5b6040519080825280602002602001820160405280156108f15781602001602082028036833780820191505090505b5090506000826002018054905067ffffffffffffffff81111561091757610916612c32565b5b6040519080825280602002602001820160405280156109455781602001602082028036833780820191505090505b50905060005b8360020180549050811015610b1e57600084600201828154811061097257610971612c61565b5b90600052602060002090600891828204019190066004029054906101000a900460e01b90506000856000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b8a81108015610a675750848181518110610a2f57610a2e612c61565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15610a7d5780610a7690612cbf565b9050610a12565b8a8103610adf5781858281518110610a9857610a97612c61565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508a610adc90612cbf565b9a505b858181518110610af257610af1612c61565b5b602002602001018051610b0490612cbf565b90818152505050505080610b1790612cbf565b905061094b565b508667ffffffffffffffff811115610b3957610b38612c32565b5b604051908082528060200260200182016040528015610b675781602001602082028036833780820191505090505b5095508667ffffffffffffffff811115610b8457610b83612c32565b5b604051908082528060200260200182016040528015610bb757816020015b6060815260200190600190039081610ba25790505b5094508667ffffffffffffffff811115610bd457610bd3612c32565b5b604051908082528060200260200182016040528015610c025781602001602082028036833780820191505090505b50935060005b87811015610dc557818181518110610c2357610c22612c61565b5b6020026020010151878281518110610c3e57610c3d612c61565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050836001016000838381518110610c9157610c90612c61565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054610cde90612d36565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0a90612d36565b8015610d575780601f10610d2c57610100808354040283529160200191610d57565b820191906000526020600020905b815481529060010190602001808311610d3a57829003601f168201915b5050505050868281518110610d6f57610d6e612c61565b5b6020026020010181905250828181518110610d8d57610d8c612c61565b5b6020026020010151858281518110610da857610da7612c61565b5b60200260200101818152505080610dbe90612cbf565b9050610c08565b5050505090919293565b6000610dd9611c60565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060606000610e10611dce565b905080600201805490508160020180805480602002602001604051908101604052809291908181526020018280548015610eab57602002820191906000526020600020906000905b82829054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019060040190602082600301049283019260010382029150808411610e585790505b5050505050905092509250509091565b3373ffffffffffffffffffffffffffffffffffffffff16610eda610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614610f30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2790612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f6957600080fd5b8373ffffffffffffffffffffffffffffffffffffffff1663f242432a308386866040518563ffffffff1660e01b8152600401610fa89493929190612d9e565b600060405180830381600087803b158015610fc257600080fd5b505af1158015610fd6573d6000803e3d6000fd5b5050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610fff610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c90612bd0565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663095ea7b383836040518363ffffffff1660e01b8152600401611090929190612df6565b6020604051808303816000875af11580156110af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d39190612e4b565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff166110f8610dcf565b73ffffffffffffffffffffffffffffffffffffffff161461114e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114590612bd0565b60405180910390fd5b600080611159611dce565b905060005b8484905081101561134457600085858381811061117e5761117d612c61565b5b90506020020160208101906111939190611f0c565b90506000836000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112dd5784806001019550506000846000016000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a76782600060405161132f929190612e78565b60405180910390a2505080600101905061115e565b5060008203611354575050611591565b60008160020190506000818054905090505b600081111561158c57600082600183038154811061138757611386612c61565b5b90600052602060002090600891828204019190066004029054906101000a900460e01b9050600073ffffffffffffffffffffffffffffffffffffffff16846000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361157f57828054905082146114e2578260018480549050038154811061147857611477612c61565b5b90600052602060002090600891828204019190066004029054906101000a900460e01b8360018403815481106114b1576114b0612c61565b5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908360e01c02179055505b826001848054905003815481106114fc576114fb612c61565b5b90600052602060002090600891828204019190066004026101000a81549063ffffffff02191690558280548061153557611534612ea1565b5b60019003818190600052602060002090600891828204019190066004026101000a81549063ffffffff0219169055905560018503611577575050505050611591565b846001900394505b5080600190039050611366565b505050505b5050565b600063bc197c8160e01b905098975050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff166115cc610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161990612bd0565b60405180910390fd5b60008160000160208101906116379190611fcd565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f90612f42565b60405180910390fd5b60006116b2611dce565b90508280602001906116c49190612f71565b8260010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020918261171292919061318b565b50366000848060400190611726919061325b565b9150915060005b828290508110156119fa57600083838381811061174d5761174c612c61565b5b905060200281019061175f91906132be565b60000160208101906117719190611f0c565b90506000856000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361186d57856002018290806001815401808255809150506001900390600052602060002090600891828204019190066004029091909190916101000a81548163ffffffff021916908360e01c02179055505b86866000016000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084848481811061191257611911612c61565b5b905060200281019061192491906132be565b80602001906119339190612f71565b876003016000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020918261199392919061318b565b50817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a76782896040516119e5929190612e78565b60405180910390a2505080600101905061172d565b505050505050565b6000611a0c611dce565b6000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b3373ffffffffffffffffffffffffffffffffffffffff16611aa5610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af290612bd0565b60405180910390fd5b60005b82829050811015611b4157611b36838383818110611b1f57611b1e612c61565b5b9050602002810190611b3191906132e6565b6115ad565b806001019050611afe565b505050565b600063f0b9e5ba60e01b9050949350505050565b600063f23a6e6160e01b90509695505050505050565b3373ffffffffffffffffffffffffffffffffffffffff16611b8f610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b90613380565b60405180910390fd5b611c5d81611dd3565b50565b6000700100000000000000000000000000000000905090565b8015611cff5760008060008084865af1611cfe577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1c5f7472616e736665724574682f5452414e534645525f4641494c4544604052600060605260646000fd5b5b5050565b60006040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152826024820152602081604483600073ffffffffffffffffffffffffffffffffffffffff8a165af191503d600182511460208210151681151783169250505060008103611dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbf906133ec565b60405180910390fd5b50505050565b600090565b6000611ddd611c60565b905060008160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611ee981611eb4565b8114611ef457600080fd5b50565b600081359050611f0681611ee0565b92915050565b600060208284031215611f2257611f21611eaa565b5b6000611f3084828501611ef7565b91505092915050565b60008115159050919050565b611f4e81611f39565b82525050565b6000602082019050611f696000830184611f45565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f9a82611f6f565b9050919050565b611faa81611f8f565b8114611fb557600080fd5b50565b600081359050611fc781611fa1565b92915050565b600060208284031215611fe357611fe2611eaa565b5b6000611ff184828501611fb8565b91505092915050565b6000819050919050565b61200d81611ffa565b811461201857600080fd5b50565b60008135905061202a81612004565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261205557612054612030565b5b8235905067ffffffffffffffff81111561207257612071612035565b5b60208301915083600182028301111561208e5761208d61203a565b5b9250929050565b6000806000806000608086880312156120b1576120b0611eaa565b5b60006120bf88828901611fb8565b95505060206120d088828901611fb8565b94505060406120e18882890161201b565b935050606086013567ffffffffffffffff81111561210257612101611eaf565b5b61210e8882890161203f565b92509250509295509295909350565b61212681611eb4565b82525050565b6000602082019050612141600083018461211d565b92915050565b60008083601f84011261215d5761215c612030565b5b8235905067ffffffffffffffff81111561217a57612179612035565b5b6020830191508360208202830111156121965761219561203a565b5b9250929050565b600080600080606085870312156121b7576121b6611eaa565b5b60006121c587828801611fb8565b945050602085013567ffffffffffffffff8111156121e6576121e5611eaf565b5b6121f287828801612147565b9350935050604061220587828801611fb8565b91505092959194509250565b6000806040838503121561222857612227611eaa565b5b600061223685828601611fb8565b925050602061224785828601611fb8565b9150509250929050565b61225a81611ffa565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61229581611f8f565b82525050565b60006122a7838361228c565b60208301905092915050565b6000602082019050919050565b60006122cb82612260565b6122d5818561226b565b93506122e08361227c565b8060005b838110156123115781516122f8888261229b565b9750612303836122b3565b9250506001810190506122e4565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612384578082015181840152602081019050612369565b60008484015250505050565b6000601f19601f8301169050919050565b60006123ac8261234a565b6123b68185612355565b93506123c6818560208601612366565b6123cf81612390565b840191505092915050565b60006123e683836123a1565b905092915050565b6000602082019050919050565b60006124068261231e565b6124108185612329565b9350836020820285016124228561233a565b8060005b8581101561245e578484038952815161243f85826123da565b945061244a836123ee565b925060208a01995050600181019050612426565b50829750879550505050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6124a581611ffa565b82525050565b60006124b7838361249c565b60208301905092915050565b6000602082019050919050565b60006124db82612470565b6124e5818561247b565b93506124f08361248c565b8060005b8381101561252157815161250888826124ab565b9750612513836124c3565b9250506001810190506124f4565b5085935050505092915050565b60006080820190506125436000830187612251565b818103602083015261255581866122c0565b9050818103604083015261256981856123fb565b9050818103606083015261257d81846124d0565b905095945050505050565b61259181611f8f565b82525050565b60006020820190506125ac6000830184612588565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6125e781611eb4565b82525050565b60006125f983836125de565b60208301905092915050565b6000602082019050919050565b600061261d826125b2565b61262781856125bd565b9350612632836125ce565b8060005b8381101561266357815161264a88826125ed565b975061265583612605565b925050600181019050612636565b5085935050505092915050565b60006040820190506126856000830185612251565b81810360208301526126978184612612565b90509392505050565b60006126ab82611f8f565b9050919050565b6126bb816126a0565b81146126c657600080fd5b50565b6000813590506126d8816126b2565b92915050565b600080600080608085870312156126f8576126f7611eaa565b5b6000612706878288016126c9565b94505060206127178782880161201b565b93505060406127288782880161201b565b925050606061273987828801611fb8565b91505092959194509250565b600061275082611f8f565b9050919050565b61276081612745565b811461276b57600080fd5b50565b60008135905061277d81612757565b92915050565b60008060006060848603121561279c5761279b611eaa565b5b60006127aa8682870161276e565b93505060206127bb86828701611fb8565b92505060406127cc8682870161201b565b9150509250925092565b60008083601f8401126127ec576127eb612030565b5b8235905067ffffffffffffffff81111561280957612808612035565b5b6020830191508360208202830111156128255761282461203a565b5b9250929050565b6000806020838503121561284357612842611eaa565b5b600083013567ffffffffffffffff81111561286157612860611eaf565b5b61286d858286016127d6565b92509250509250929050565b60008060008060008060008060a0898b03121561289957612898611eaa565b5b60006128a78b828c01611fb8565b98505060206128b88b828c01611fb8565b975050604089013567ffffffffffffffff8111156128d9576128d8611eaf565b5b6128e58b828c01612147565b9650965050606089013567ffffffffffffffff81111561290857612907611eaf565b5b6129148b828c01612147565b9450945050608089013567ffffffffffffffff81111561293757612936611eaf565b5b6129438b828c0161203f565b92509250509295985092959890939650565b600080fd5b6000606082840312156129705761296f612955565b5b81905092915050565b60006020828403121561298f5761298e611eaa565b5b600082013567ffffffffffffffff8111156129ad576129ac611eaf565b5b6129b98482850161295a565b91505092915050565b60008083601f8401126129d8576129d7612030565b5b8235905067ffffffffffffffff8111156129f5576129f4612035565b5b602083019150836020820283011115612a1157612a1061203a565b5b9250929050565b60008060208385031215612a2f57612a2e611eaa565b5b600083013567ffffffffffffffff811115612a4d57612a4c611eaf565b5b612a59858286016129c2565b92509250509250929050565b60008060008060608587031215612a7f57612a7e611eaa565b5b6000612a8d87828801611fb8565b9450506020612a9e8782880161201b565b935050604085013567ffffffffffffffff811115612abf57612abe611eaf565b5b612acb8782880161203f565b925092505092959194509250565b60008060008060008060a08789031215612af657612af5611eaa565b5b6000612b0489828a01611fb8565b9650506020612b1589828a01611fb8565b9550506040612b2689828a0161201b565b9450506060612b3789828a0161201b565b935050608087013567ffffffffffffffff811115612b5857612b57611eaf565b5b612b6489828a0161203f565b92509250509295509295509295565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612bba602083612b73565b9150612bc582612b84565b602082019050919050565b60006020820190508181036000830152612be981612bad565b9050919050565b600081519050612bff81612004565b92915050565b600060208284031215612c1b57612c1a611eaa565b5b6000612c2984828501612bf0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cca82611ffa565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612cfc57612cfb612c90565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612d4e57607f821691505b602082108103612d6157612d60612d07565b5b50919050565b600082825260208201905092915050565b50565b6000612d88600083612d67565b9150612d9382612d78565b600082019050919050565b600060a082019050612db36000830187612588565b612dc06020830186612588565b612dcd6040830185612251565b612dda6060830184612251565b8181036080830152612deb81612d7b565b905095945050505050565b6000604082019050612e0b6000830185612588565b612e186020830184612251565b9392505050565b612e2881611f39565b8114612e3357600080fd5b50565b600081519050612e4581612e1f565b92915050565b600060208284031215612e6157612e60611eaa565b5b6000612e6f84828501612e36565b91505092915050565b6000604082019050612e8d6000830185612588565b612e9a6020830184612588565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f7265676973746572466561747572653a20696e76616c6964206665617475726560008201527f20616464726573732e0000000000000000000000000000000000000000000000602082015250565b6000612f2c602983612b73565b9150612f3782612ed0565b604082019050919050565b60006020820190508181036000830152612f5b81612f1f565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112612f8e57612f8d612f62565b5b80840192508235915067ffffffffffffffff821115612fb057612faf612f67565b5b602083019250600182023603831315612fcc57612fcb612f6c565b5b509250929050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026130417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613004565b61304b8683613004565b95508019841693508086168417925050509392505050565b6000819050919050565b600061308861308361307e84611ffa565b613063565b611ffa565b9050919050565b6000819050919050565b6130a28361306d565b6130b66130ae8261308f565b848454613011565b825550505050565b600090565b6130cb6130be565b6130d6818484613099565b505050565b5b818110156130fa576130ef6000826130c3565b6001810190506130dc565b5050565b601f82111561313f5761311081612fdf565b61311984612ff4565b81016020851015613128578190505b61313c61313485612ff4565b8301826130db565b50505b505050565b600082821c905092915050565b600061316260001984600802613144565b1980831691505092915050565b600061317b8383613151565b9150826002028217905092915050565b6131958383612fd4565b67ffffffffffffffff8111156131ae576131ad612c32565b5b6131b88254612d36565b6131c38282856130fe565b6000601f8311600181146131f257600084156131e0578287013590505b6131ea858261316f565b865550613252565b601f19841661320086612fdf565b60005b8281101561322857848901358255600182019150602085019450602081019050613203565b868310156132455784890135613241601f891682613151565b8355505b6001600288020188555050505b50505050505050565b6000808335600160200384360303811261327857613277612f62565b5b80840192508235915067ffffffffffffffff82111561329a57613299612f67565b5b6020830192506020820236038313156132b6576132b5612f6c565b5b509250929050565b6000823560016040038336030381126132da576132d9612f62565b5b80830191505092915050565b60008235600160600383360303811261330257613301612f62565b5b80830191505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061336a602683612b73565b91506133758261330e565b604082019050919050565b600060208201905081810360008301526133998161335d565b9050919050565b7f5f7472616e7366657245524332302f5452414e534645525f4641494c45440000600082015250565b60006133d6601e83612b73565b91506133e1826133a0565b602082019050919050565b60006020820190508181036000830152613405816133c9565b905091905056fea2646970667358221220cf62590e97567c37cc21b4dcedee27d3ad28896e7289c83ab15630efd07b7d1564736f6c63430008110033

Deployed Bytecode

0x60806040526004361061010d5760003560e01c8063a8e5e4aa11610095578063c3866f2e11610064578063c3866f2e14610419578063d750e2a514610456578063f0b9e5ba1461047f578063f23a6e61146104bc578063f2fde38b146104f957610114565b8063a8e5e4aa14610361578063ab65a1f71461038a578063bc197c81146103b3578063c12e5d54146103f057610114565b80635d799f87116100dc5780635d799f871461028a5780637dfcc71a146102b35780638da5cb5b146102e1578063928515e91461030c5780639f827ea31461033857610114565b806301ffc9a7146101be57806304824e70146101fb578063150b7a021461022457806326e2dca21461026157610114565b3661011457005b600460008037604060002054801561014d573660008037600080366000845af415610143573d6000803e3d6000f35b3d6000803e3d6000fd5b7f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c174e6f7420696d706c656d656e746564206d6574686f642e0000000000604052600060605260646000fd5b3480156101ca57600080fd5b506101e560048036038101906101e09190611f0c565b610522565b6040516101f29190611f54565b60405180910390f35b34801561020757600080fd5b50610222600480360381019061021d9190611fcd565b610573565b005b34801561023057600080fd5b5061024b60048036038101906102469190612095565b61062e565b604051610258919061212c565b60405180910390f35b34801561026d57600080fd5b506102886004803603810190610283919061219d565b610643565b005b34801561029657600080fd5b506102b160048036038101906102ac9190612211565b610757565b005b3480156102bf57600080fd5b506102c861088d565b6040516102d8949392919061252e565b60405180910390f35b3480156102ed57600080fd5b506102f6610dcf565b6040516103039190612597565b60405180910390f35b34801561031857600080fd5b50610321610e02565b60405161032f929190612670565b60405180910390f35b34801561034457600080fd5b5061035f600480360381019061035a91906126de565b610ebb565b005b34801561036d57600080fd5b5061038860048036038101906103839190612783565b610fe0565b005b34801561039657600080fd5b506103b160048036038101906103ac919061282c565b6110d9565b005b3480156103bf57600080fd5b506103da60048036038101906103d59190612879565b611595565b6040516103e7919061212c565b60405180910390f35b3480156103fc57600080fd5b5061041760048036038101906104129190612979565b6115ad565b005b34801561042557600080fd5b50610440600480360381019061043b9190611f0c565b611a02565b60405161044d9190612597565b60405180910390f35b34801561046257600080fd5b5061047d60048036038101906104789190612a18565b611a86565b005b34801561048b57600080fd5b506104a660048036038101906104a19190612a65565b611b46565b6040516104b3919061212c565b60405180910390f35b3480156104c857600080fd5b506104e360048036038101906104de9190612ad9565b611b5a565b6040516104f0919061212c565b60405180910390f35b34801561050557600080fd5b50610520600480360381019061051b9190611fcd565b611b70565b005b60006301ffc9a760e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b3373ffffffffffffffffffffffffffffffffffffffff16610592610dcf565b73ffffffffffffffffffffffffffffffffffffffff16146105e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105df90612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361062157600080fd5b61062b8147611c79565b50565b600063150b7a0260e01b905095945050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610662610dcf565b73ffffffffffffffffffffffffffffffffffffffff16146106b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106af90612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036106f157600080fd5b7f23b872dd000000000000000000000000000000000000000000000000000000006000523060045280602452825b368110156107505780356044526000806064600080895af1610745573d6000803e3d6000fd5b60208101905061071f565b5050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610776610dcf565b73ffffffffffffffffffffffffffffffffffffffff16146107cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c390612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361080557600080fd5b61088982828473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108439190612597565b602060405180830381865afa158015610860573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108849190612c05565b611d03565b5050565b60006060806060600061089e611dce565b90506000816002018054905067ffffffffffffffff8111156108c3576108c2612c32565b5b6040519080825280602002602001820160405280156108f15781602001602082028036833780820191505090505b5090506000826002018054905067ffffffffffffffff81111561091757610916612c32565b5b6040519080825280602002602001820160405280156109455781602001602082028036833780820191505090505b50905060005b8360020180549050811015610b1e57600084600201828154811061097257610971612c61565b5b90600052602060002090600891828204019190066004029054906101000a900460e01b90506000856000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060005b8a81108015610a675750848181518110610a2f57610a2e612c61565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15610a7d5780610a7690612cbf565b9050610a12565b8a8103610adf5781858281518110610a9857610a97612c61565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508a610adc90612cbf565b9a505b858181518110610af257610af1612c61565b5b602002602001018051610b0490612cbf565b90818152505050505080610b1790612cbf565b905061094b565b508667ffffffffffffffff811115610b3957610b38612c32565b5b604051908082528060200260200182016040528015610b675781602001602082028036833780820191505090505b5095508667ffffffffffffffff811115610b8457610b83612c32565b5b604051908082528060200260200182016040528015610bb757816020015b6060815260200190600190039081610ba25790505b5094508667ffffffffffffffff811115610bd457610bd3612c32565b5b604051908082528060200260200182016040528015610c025781602001602082028036833780820191505090505b50935060005b87811015610dc557818181518110610c2357610c22612c61565b5b6020026020010151878281518110610c3e57610c3d612c61565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050836001016000838381518110610c9157610c90612c61565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054610cde90612d36565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0a90612d36565b8015610d575780601f10610d2c57610100808354040283529160200191610d57565b820191906000526020600020905b815481529060010190602001808311610d3a57829003601f168201915b5050505050868281518110610d6f57610d6e612c61565b5b6020026020010181905250828181518110610d8d57610d8c612c61565b5b6020026020010151858281518110610da857610da7612c61565b5b60200260200101818152505080610dbe90612cbf565b9050610c08565b5050505090919293565b6000610dd9611c60565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060606000610e10611dce565b905080600201805490508160020180805480602002602001604051908101604052809291908181526020018280548015610eab57602002820191906000526020600020906000905b82829054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019060040190602082600301049283019260010382029150808411610e585790505b5050505050905092509250509091565b3373ffffffffffffffffffffffffffffffffffffffff16610eda610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614610f30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2790612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f6957600080fd5b8373ffffffffffffffffffffffffffffffffffffffff1663f242432a308386866040518563ffffffff1660e01b8152600401610fa89493929190612d9e565b600060405180830381600087803b158015610fc257600080fd5b505af1158015610fd6573d6000803e3d6000fd5b5050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff16610fff610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c90612bd0565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663095ea7b383836040518363ffffffff1660e01b8152600401611090929190612df6565b6020604051808303816000875af11580156110af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d39190612e4b565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff166110f8610dcf565b73ffffffffffffffffffffffffffffffffffffffff161461114e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114590612bd0565b60405180910390fd5b600080611159611dce565b905060005b8484905081101561134457600085858381811061117e5761117d612c61565b5b90506020020160208101906111939190611f0c565b90506000836000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112dd5784806001019550506000846000016000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a76782600060405161132f929190612e78565b60405180910390a2505080600101905061115e565b5060008203611354575050611591565b60008160020190506000818054905090505b600081111561158c57600082600183038154811061138757611386612c61565b5b90600052602060002090600891828204019190066004029054906101000a900460e01b9050600073ffffffffffffffffffffffffffffffffffffffff16846000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361157f57828054905082146114e2578260018480549050038154811061147857611477612c61565b5b90600052602060002090600891828204019190066004029054906101000a900460e01b8360018403815481106114b1576114b0612c61565b5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908360e01c02179055505b826001848054905003815481106114fc576114fb612c61565b5b90600052602060002090600891828204019190066004026101000a81549063ffffffff02191690558280548061153557611534612ea1565b5b60019003818190600052602060002090600891828204019190066004026101000a81549063ffffffff0219169055905560018503611577575050505050611591565b846001900394505b5080600190039050611366565b505050505b5050565b600063bc197c8160e01b905098975050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff166115cc610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161990612bd0565b60405180910390fd5b60008160000160208101906116379190611fcd565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f90612f42565b60405180910390fd5b60006116b2611dce565b90508280602001906116c49190612f71565b8260010160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020918261171292919061318b565b50366000848060400190611726919061325b565b9150915060005b828290508110156119fa57600083838381811061174d5761174c612c61565b5b905060200281019061175f91906132be565b60000160208101906117719190611f0c565b90506000856000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361186d57856002018290806001815401808255809150506001900390600052602060002090600891828204019190066004029091909190916101000a81548163ffffffff021916908360e01c02179055505b86866000016000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084848481811061191257611911612c61565b5b905060200281019061192491906132be565b80602001906119339190612f71565b876003016000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020918261199392919061318b565b50817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167ff05686f2e12debc00665cd81463f2ae8ae5b4f167ea8dead964a3235a7d2a76782896040516119e5929190612e78565b60405180910390a2505080600101905061172d565b505050505050565b6000611a0c611dce565b6000016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b3373ffffffffffffffffffffffffffffffffffffffff16611aa5610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af290612bd0565b60405180910390fd5b60005b82829050811015611b4157611b36838383818110611b1f57611b1e612c61565b5b9050602002810190611b3191906132e6565b6115ad565b806001019050611afe565b505050565b600063f0b9e5ba60e01b9050949350505050565b600063f23a6e6160e01b90509695505050505050565b3373ffffffffffffffffffffffffffffffffffffffff16611b8f610dcf565b73ffffffffffffffffffffffffffffffffffffffff1614611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90612bd0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b90613380565b60405180910390fd5b611c5d81611dd3565b50565b6000700100000000000000000000000000000000905090565b8015611cff5760008060008084865af1611cfe577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1c5f7472616e736665724574682f5452414e534645525f4641494c4544604052600060605260646000fd5b5b5050565b60006040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152826024820152602081604483600073ffffffffffffffffffffffffffffffffffffffff8a165af191503d600182511460208210151681151783169250505060008103611dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbf906133ec565b60405180910390fd5b50505050565b600090565b6000611ddd611c60565b905060008160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611ee981611eb4565b8114611ef457600080fd5b50565b600081359050611f0681611ee0565b92915050565b600060208284031215611f2257611f21611eaa565b5b6000611f3084828501611ef7565b91505092915050565b60008115159050919050565b611f4e81611f39565b82525050565b6000602082019050611f696000830184611f45565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f9a82611f6f565b9050919050565b611faa81611f8f565b8114611fb557600080fd5b50565b600081359050611fc781611fa1565b92915050565b600060208284031215611fe357611fe2611eaa565b5b6000611ff184828501611fb8565b91505092915050565b6000819050919050565b61200d81611ffa565b811461201857600080fd5b50565b60008135905061202a81612004565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261205557612054612030565b5b8235905067ffffffffffffffff81111561207257612071612035565b5b60208301915083600182028301111561208e5761208d61203a565b5b9250929050565b6000806000806000608086880312156120b1576120b0611eaa565b5b60006120bf88828901611fb8565b95505060206120d088828901611fb8565b94505060406120e18882890161201b565b935050606086013567ffffffffffffffff81111561210257612101611eaf565b5b61210e8882890161203f565b92509250509295509295909350565b61212681611eb4565b82525050565b6000602082019050612141600083018461211d565b92915050565b60008083601f84011261215d5761215c612030565b5b8235905067ffffffffffffffff81111561217a57612179612035565b5b6020830191508360208202830111156121965761219561203a565b5b9250929050565b600080600080606085870312156121b7576121b6611eaa565b5b60006121c587828801611fb8565b945050602085013567ffffffffffffffff8111156121e6576121e5611eaf565b5b6121f287828801612147565b9350935050604061220587828801611fb8565b91505092959194509250565b6000806040838503121561222857612227611eaa565b5b600061223685828601611fb8565b925050602061224785828601611fb8565b9150509250929050565b61225a81611ffa565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61229581611f8f565b82525050565b60006122a7838361228c565b60208301905092915050565b6000602082019050919050565b60006122cb82612260565b6122d5818561226b565b93506122e08361227c565b8060005b838110156123115781516122f8888261229b565b9750612303836122b3565b9250506001810190506122e4565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612384578082015181840152602081019050612369565b60008484015250505050565b6000601f19601f8301169050919050565b60006123ac8261234a565b6123b68185612355565b93506123c6818560208601612366565b6123cf81612390565b840191505092915050565b60006123e683836123a1565b905092915050565b6000602082019050919050565b60006124068261231e565b6124108185612329565b9350836020820285016124228561233a565b8060005b8581101561245e578484038952815161243f85826123da565b945061244a836123ee565b925060208a01995050600181019050612426565b50829750879550505050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6124a581611ffa565b82525050565b60006124b7838361249c565b60208301905092915050565b6000602082019050919050565b60006124db82612470565b6124e5818561247b565b93506124f08361248c565b8060005b8381101561252157815161250888826124ab565b9750612513836124c3565b9250506001810190506124f4565b5085935050505092915050565b60006080820190506125436000830187612251565b818103602083015261255581866122c0565b9050818103604083015261256981856123fb565b9050818103606083015261257d81846124d0565b905095945050505050565b61259181611f8f565b82525050565b60006020820190506125ac6000830184612588565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6125e781611eb4565b82525050565b60006125f983836125de565b60208301905092915050565b6000602082019050919050565b600061261d826125b2565b61262781856125bd565b9350612632836125ce565b8060005b8381101561266357815161264a88826125ed565b975061265583612605565b925050600181019050612636565b5085935050505092915050565b60006040820190506126856000830185612251565b81810360208301526126978184612612565b90509392505050565b60006126ab82611f8f565b9050919050565b6126bb816126a0565b81146126c657600080fd5b50565b6000813590506126d8816126b2565b92915050565b600080600080608085870312156126f8576126f7611eaa565b5b6000612706878288016126c9565b94505060206127178782880161201b565b93505060406127288782880161201b565b925050606061273987828801611fb8565b91505092959194509250565b600061275082611f8f565b9050919050565b61276081612745565b811461276b57600080fd5b50565b60008135905061277d81612757565b92915050565b60008060006060848603121561279c5761279b611eaa565b5b60006127aa8682870161276e565b93505060206127bb86828701611fb8565b92505060406127cc8682870161201b565b9150509250925092565b60008083601f8401126127ec576127eb612030565b5b8235905067ffffffffffffffff81111561280957612808612035565b5b6020830191508360208202830111156128255761282461203a565b5b9250929050565b6000806020838503121561284357612842611eaa565b5b600083013567ffffffffffffffff81111561286157612860611eaf565b5b61286d858286016127d6565b92509250509250929050565b60008060008060008060008060a0898b03121561289957612898611eaa565b5b60006128a78b828c01611fb8565b98505060206128b88b828c01611fb8565b975050604089013567ffffffffffffffff8111156128d9576128d8611eaf565b5b6128e58b828c01612147565b9650965050606089013567ffffffffffffffff81111561290857612907611eaf565b5b6129148b828c01612147565b9450945050608089013567ffffffffffffffff81111561293757612936611eaf565b5b6129438b828c0161203f565b92509250509295985092959890939650565b600080fd5b6000606082840312156129705761296f612955565b5b81905092915050565b60006020828403121561298f5761298e611eaa565b5b600082013567ffffffffffffffff8111156129ad576129ac611eaf565b5b6129b98482850161295a565b91505092915050565b60008083601f8401126129d8576129d7612030565b5b8235905067ffffffffffffffff8111156129f5576129f4612035565b5b602083019150836020820283011115612a1157612a1061203a565b5b9250929050565b60008060208385031215612a2f57612a2e611eaa565b5b600083013567ffffffffffffffff811115612a4d57612a4c611eaf565b5b612a59858286016129c2565b92509250509250929050565b60008060008060608587031215612a7f57612a7e611eaa565b5b6000612a8d87828801611fb8565b9450506020612a9e8782880161201b565b935050604085013567ffffffffffffffff811115612abf57612abe611eaf565b5b612acb8782880161203f565b925092505092959194509250565b60008060008060008060a08789031215612af657612af5611eaa565b5b6000612b0489828a01611fb8565b9650506020612b1589828a01611fb8565b9550506040612b2689828a0161201b565b9450506060612b3789828a0161201b565b935050608087013567ffffffffffffffff811115612b5857612b57611eaf565b5b612b6489828a0161203f565b92509250509295509295509295565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612bba602083612b73565b9150612bc582612b84565b602082019050919050565b60006020820190508181036000830152612be981612bad565b9050919050565b600081519050612bff81612004565b92915050565b600060208284031215612c1b57612c1a611eaa565b5b6000612c2984828501612bf0565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cca82611ffa565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612cfc57612cfb612c90565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612d4e57607f821691505b602082108103612d6157612d60612d07565b5b50919050565b600082825260208201905092915050565b50565b6000612d88600083612d67565b9150612d9382612d78565b600082019050919050565b600060a082019050612db36000830187612588565b612dc06020830186612588565b612dcd6040830185612251565b612dda6060830184612251565b8181036080830152612deb81612d7b565b905095945050505050565b6000604082019050612e0b6000830185612588565b612e186020830184612251565b9392505050565b612e2881611f39565b8114612e3357600080fd5b50565b600081519050612e4581612e1f565b92915050565b600060208284031215612e6157612e60611eaa565b5b6000612e6f84828501612e36565b91505092915050565b6000604082019050612e8d6000830185612588565b612e9a6020830184612588565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f7265676973746572466561747572653a20696e76616c6964206665617475726560008201527f20616464726573732e0000000000000000000000000000000000000000000000602082015250565b6000612f2c602983612b73565b9150612f3782612ed0565b604082019050919050565b60006020820190508181036000830152612f5b81612f1f565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112612f8e57612f8d612f62565b5b80840192508235915067ffffffffffffffff821115612fb057612faf612f67565b5b602083019250600182023603831315612fcc57612fcb612f6c565b5b509250929050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026130417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613004565b61304b8683613004565b95508019841693508086168417925050509392505050565b6000819050919050565b600061308861308361307e84611ffa565b613063565b611ffa565b9050919050565b6000819050919050565b6130a28361306d565b6130b66130ae8261308f565b848454613011565b825550505050565b600090565b6130cb6130be565b6130d6818484613099565b505050565b5b818110156130fa576130ef6000826130c3565b6001810190506130dc565b5050565b601f82111561313f5761311081612fdf565b61311984612ff4565b81016020851015613128578190505b61313c61313485612ff4565b8301826130db565b50505b505050565b600082821c905092915050565b600061316260001984600802613144565b1980831691505092915050565b600061317b8383613151565b9150826002028217905092915050565b6131958383612fd4565b67ffffffffffffffff8111156131ae576131ad612c32565b5b6131b88254612d36565b6131c38282856130fe565b6000601f8311600181146131f257600084156131e0578287013590505b6131ea858261316f565b865550613252565b601f19841661320086612fdf565b60005b8281101561322857848901358255600182019150602085019450602081019050613203565b868310156132455784890135613241601f891682613151565b8355505b6001600288020188555050505b50505050505050565b6000808335600160200384360303811261327857613277612f62565b5b80840192508235915067ffffffffffffffff82111561329a57613299612f67565b5b6020830192506020820236038313156132b6576132b5612f6c565b5b509250929050565b6000823560016040038336030381126132da576132d9612f62565b5b80830191505092915050565b60008235600160600383360303811261330257613301612f62565b5b80830191505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061336a602683612b73565b91506133758261330e565b604082019050919050565b600060208201905081810360008301526133998161335d565b9050919050565b7f5f7472616e7366657245524332302f5452414e534645525f4641494c45440000600082015250565b60006133d6601e83612b73565b91506133e1826133a0565b602082019050919050565b60006020820190508181036000830152613405816133c9565b905091905056fea2646970667358221220cf62590e97567c37cc21b4dcedee27d3ad28896e7289c83ab15630efd07b7d1564736f6c63430008110033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.