ETH Price: $1,575.50 (-0.97%)
Gas: 0.5 GWei

Contract

0x47874ff0BEf601D180a8A653A912EBbE03739a1a

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00
Transaction Hash
Method
Block
From
To
Set Approval For...181265542025-04-17 13:09:321 hr ago1744895372IN
0x47874ff0...E03739a1a
0 ETH0.000005080.16039588
Set Approval For...181248032025-04-17 11:55:192 hrs ago1744890919IN
0x47874ff0...E03739a1a
0 ETH0.000003060.10334055
Set Approval For...181209892025-04-17 9:16:355 hrs ago1744881395IN
0x47874ff0...E03739a1a
0 ETH0.000002130.0719564
Set Approval For...181196822025-04-17 8:25:086 hrs ago1744878308IN
0x47874ff0...E03739a1a
0 ETH0.000003390.1070348
Set Approval For...181128052025-04-17 3:31:0211 hrs ago1744860662IN
0x47874ff0...E03739a1a
0 ETH0.000001930.06108939
Set Approval For...181084352025-04-17 0:04:0614 hrs ago1744848246IN
0x47874ff0...E03739a1a
0 ETH0.000002860.09042806
Set Approval For...181015792025-04-16 18:10:4020 hrs ago1744827040IN
0x47874ff0...E03739a1a
0 ETH0.000007650.24156738
Set Approval For...180882122025-04-16 8:46:3029 hrs ago1744793190IN
0x47874ff0...E03739a1a
0 ETH0.000002210.0699128
Set Approval For...180799252025-04-16 2:59:3635 hrs ago1744772376IN
0x47874ff0...E03739a1a
0 ETH0.000002080.06587074
Set Approval For...180759682025-04-15 23:55:2538 hrs ago1744761325IN
0x47874ff0...E03739a1a
0 ETH0.000002620.08273961
Set Approval For...180678932025-04-15 17:10:3445 hrs ago1744737034IN
0x47874ff0...E03739a1a
0 ETH0.000007850.247764
Set Approval For...180642922025-04-15 14:42:5047 hrs ago1744728170IN
0x47874ff0...E03739a1a
0 ETH0.000002330.07351078
Set Approval For...180628972025-04-15 13:50:282 days ago1744725028IN
0x47874ff0...E03739a1a
0 ETH0.000002820.08925
Set Approval For...180620122025-04-15 13:16:562 days ago1744723016IN
0x47874ff0...E03739a1a
0 ETH0.000005820.18379482
Set Approval For...180548602025-04-15 8:21:322 days ago1744705292IN
0x47874ff0...E03739a1a
0 ETH0.000001980.06251399
Set Approval For...180513032025-04-15 5:55:032 days ago1744696503IN
0x47874ff0...E03739a1a
0 ETH0.00000880.17055205
Set Approval For...180487572025-04-15 3:58:142 days ago1744689494IN
0x47874ff0...E03739a1a
0 ETH0.00000550.10661065
Set Approval For...180424882025-04-14 22:31:232 days ago1744669883IN
0x47874ff0...E03739a1a
0 ETH0.000003770.11916784
Set Approval For...180424842025-04-14 22:31:132 days ago1744669873IN
0x47874ff0...E03739a1a
0 ETH0.000003530.11138648
Set Approval For...180394912025-04-14 19:53:352 days ago1744660415IN
0x47874ff0...E03739a1a
0 ETH0.0000030.09492069
Set Approval For...180050662025-04-13 17:27:283 days ago1744565248IN
0x47874ff0...E03739a1a
0 ETH0.000002980.09399915
Set Approval For...179992982025-04-13 13:17:504 days ago1744550270IN
0x47874ff0...E03739a1a
0 ETH0.000001990.063
Set Approval For...179933502025-04-13 8:56:444 days ago1744534604IN
0x47874ff0...E03739a1a
0 ETH0.000002150.06800421
Set Approval For...179821022025-04-12 23:44:224 days ago1744501462IN
0x47874ff0...E03739a1a
0 ETH0.000002610.05065294
Set Approval For...179782932025-04-12 20:11:234 days ago1744488683IN
0x47874ff0...E03739a1a
0 ETH0.000002780.08779326
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
181265542025-04-17 13:09:321 hr ago1744895372
0x47874ff0...E03739a1a
0 ETH
181248032025-04-17 11:55:192 hrs ago1744890919
0x47874ff0...E03739a1a
0 ETH
181209892025-04-17 9:16:355 hrs ago1744881395
0x47874ff0...E03739a1a
0 ETH
181196822025-04-17 8:25:086 hrs ago1744878308
0x47874ff0...E03739a1a
0 ETH
181128052025-04-17 3:31:0211 hrs ago1744860662
0x47874ff0...E03739a1a
0 ETH
181084352025-04-17 0:04:0614 hrs ago1744848246
0x47874ff0...E03739a1a
0 ETH
181015792025-04-16 18:10:4020 hrs ago1744827040
0x47874ff0...E03739a1a
0 ETH
180882122025-04-16 8:46:3029 hrs ago1744793190
0x47874ff0...E03739a1a
0 ETH
180799252025-04-16 2:59:3635 hrs ago1744772376
0x47874ff0...E03739a1a
0 ETH
180759682025-04-15 23:55:2538 hrs ago1744761325
0x47874ff0...E03739a1a
0 ETH
180678932025-04-15 17:10:3445 hrs ago1744737034
0x47874ff0...E03739a1a
0 ETH
180642922025-04-15 14:42:5047 hrs ago1744728170
0x47874ff0...E03739a1a
0 ETH
180628972025-04-15 13:50:282 days ago1744725028
0x47874ff0...E03739a1a
0 ETH
180620122025-04-15 13:16:562 days ago1744723016
0x47874ff0...E03739a1a
0 ETH
180548602025-04-15 8:21:322 days ago1744705292
0x47874ff0...E03739a1a
0 ETH
180513032025-04-15 5:55:032 days ago1744696503
0x47874ff0...E03739a1a
0 ETH
180487572025-04-15 3:58:142 days ago1744689494
0x47874ff0...E03739a1a
0 ETH
180424882025-04-14 22:31:232 days ago1744669883
0x47874ff0...E03739a1a
0 ETH
180424842025-04-14 22:31:132 days ago1744669873
0x47874ff0...E03739a1a
0 ETH
180394912025-04-14 19:53:352 days ago1744660415
0x47874ff0...E03739a1a
0 ETH
180050662025-04-13 17:27:283 days ago1744565248
0x47874ff0...E03739a1a
0 ETH
179992982025-04-13 13:17:504 days ago1744550270
0x47874ff0...E03739a1a
0 ETH
179933502025-04-13 8:56:444 days ago1744534604
0x47874ff0...E03739a1a
0 ETH
179821022025-04-12 23:44:224 days ago1744501462
0x47874ff0...E03739a1a
0 ETH
179782932025-04-12 20:11:234 days ago1744488683
0x47874ff0...E03739a1a
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TanukiLineaPark_CreatedByALIENSWAP

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion, MIT license
File 1 of 7 : TanukiLineaPark_CreatedByALIENSWAP.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/////////////////////////////////////////////////////////
//  all-in-one NFT generator at https://alienswap.xyz  //
/////////////////////////////////////////////////////////

import "./ERC721Creator.sol";



///////////////////////////////////////////////////
//   ___  _ _                                    //
//  / _ \| (_)                                   //
// / /_\ \ |_  ___ _ __  _____      ____ _ _ __  //
// |  _  | | |/ _ \ '_ \/ __\ \ /\ / / _` | '_ \ //
// | | | | | |  __/ | | \__ \ V  V / (_| | |_) |//
// \_| |_/_|_|\___|_| |_|___/ \_/\_/ \__,_| .__/ //
//                                        | |    //
//                                        |_|    //
///////////////////////////////////////////////////




contract TanukiLineaPark_CreatedByALIENSWAP is ERC721Creator {
    SalesConfiguration  salesConfig = SalesConfiguration(

0,
1,
1708882437,
4102444799,
0,
0,
0,
4102444799,
0x0000000000000000000000000000000000000000000000000000000000000000,
0xDD491a3cA9B5Bbb12A0E1d9725448C7Bb6bbFf04
    );

    constructor() ERC721Creator(unicode"Tanuki Linea Park 2024", unicode"TNKL24", 1000000, "https://createx.art/api/v1/createx/metadata/LINEA/8d3beyv40607xxuljt8m36oms7gc72el/", 
    "https://createx.art/api/v1/createx/collection_url/LINEA/8d3beyv40607xxuljt8m36oms7gc72el", 0xDD491a3cA9B5Bbb12A0E1d9725448C7Bb6bbFf04, 0, 
    salesConfig
    
    ) {}
}

File 2 of 7 : ERC721Creator.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/Proxy.sol";
import "@openzeppelin/Address.sol";
import "@openzeppelin/StorageSlot.sol";
import "@openzeppelin/Ownable.sol";
contract ERC721Creator is Proxy, Ownable {

    struct SalesConfiguration {
        uint256 publicSalePrice;
        uint256 maxSalePurchasePerAddress;
        uint256 publicSaleStart;
        uint256 publicSaleEnd;
        uint256 presaleStart;
        uint256 preSalePrice;
        uint256 presaleMaxMintsPerAddress;
        uint256 presaleEnd;
        bytes32 presaleMerkleRoot;
        address fundsRecipient;
    }
    constructor(string memory name, string memory symbol, uint256 maxSupply, string memory baseURI, string memory collectionURI, address recipient, uint256 royaltyAmount,
SalesConfiguration memory _salesConfig


) Ownable() {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = 0xD82F30c68369f255B32BE4864deEf620A3C709fb;


    Address.functionDelegateCall(
            0xD82F30c68369f255B32BE4864deEf620A3C709fb,
            abi.encodeWithSignature("initCreator(string,string,uint256,string,string,address,uint256,uint256,uint256)",
                                                name, symbol, maxSupply, baseURI, collectionURI, recipient, royaltyAmount, 100000000000000, 1696089600));

        Address.functionDelegateCall(
            0xD82F30c68369f255B32BE4864deEf620A3C709fb,
            abi.encodeWithSignature("setSaleConfiguration(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,bytes32)",
                _salesConfig.publicSalePrice,
                _salesConfig.maxSalePurchasePerAddress,
                _salesConfig.publicSaleStart,
                _salesConfig.publicSaleEnd,
                _salesConfig.presaleStart,
                _salesConfig.presaleEnd,
                _salesConfig.preSalePrice,
                _salesConfig.presaleMaxMintsPerAddress,
                _salesConfig.fundsRecipient,
                _salesConfig.presaleMerkleRoot
            )
        );
    }

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
    function implementation() public view returns (address) {
        return _implementation();
    }

    function _implementation() internal override view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 5 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "@openzeppelin/Context.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 is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @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) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internal call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overridden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}

File 7 of 7 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260405180610140016040528060008152602001600181526020016365db7a05815260200163f48656ff815260200160008152602001600081526020016000815260200163f48656ff81526020016000801b815260200173dd491a3ca9b5bbb12a0e1d9725448c7bb6bbff0473ffffffffffffffffffffffffffffffffffffffff168152506001600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015561010082015181600801556101208201518160090160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050503480156200013c57600080fd5b506040518060400160405280601681526020017f54616e756b69204c696e6561205061726b2032303234000000000000000000008152506040518060400160405280600681526020017f544e4b4c32340000000000000000000000000000000000000000000000000000815250620f4240604051806080016040528060538152602001620016d060539139604051806080016040528060588152602001620016786058913973dd491a3ca9b5bbb12a0e1d9725448c7bb6bbff0460006001604051806101400160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820154815260200160078201548152602001600882015481526020016009820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050620002d6620002ca620005a960201b60201c565b620005b160201b60201c565b60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd60001c62000308919062000861565b60001b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b1462000340576200033f6200089c565b5b73d82f30c68369f255b32be4864deef620a3c709fb6200038e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6200067560201b620002c31760201c565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620004a373d82f30c68369f255b32be4864deef620a3c709fb89898989898989655af3107a40006365184600604051602401620004159998979695949392919062000a6d565b6040516020818303038152906040527fd8890f77000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506200067f60201b620002cd1760201c565b506200059a73d82f30c68369f255b32be4864deef620a3c709fb826000015183602001518460400151856060015186608001518760e001518860a001518960c001518a61012001518b61010001516040516024016200050c9a9998979695949392919062000b43565b6040516020818303038152906040527fd6743d4c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506200067f60201b620002cd1760201c565b50505050505050505062000d15565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000819050919050565b6060620006ad83836040518060600160405280602781526020016200172360279139620006b560201b60201c565b905092915050565b6060620006c8846200079960201b60201c565b6200070a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007019062000c69565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff168560405162000734919062000cd8565b600060405180830381855af49150503d806000811462000771576040519150601f19603f3d011682016040523d82523d6000602084013e62000776565b606091505b50915091506200078e828286620007bc60201b60201c565b925050509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315620007ce5782905062000821565b600083511115620007e25782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000818919062000cf1565b60405180910390fd5b9392505050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200086e8262000828565b91506200087b8362000828565b925082820390508181111562000896576200089562000832565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b600081519050919050565b600082825260208201905092915050565b60005b8381101562000907578082015181840152602081019050620008ea565b60008484015250505050565b6000601f19601f8301169050919050565b60006200093182620008cb565b6200093d8185620008d6565b93506200094f818560208601620008e7565b6200095a8162000913565b840191505092915050565b620009708162000828565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009a38262000976565b9050919050565b620009b58162000996565b82525050565b6000819050919050565b600065ffffffffffff82169050919050565b6000819050919050565b600062000a02620009fc620009f684620009bb565b620009d7565b620009c5565b9050919050565b62000a1481620009e1565b82525050565b6000819050919050565b600063ffffffff82169050919050565b600062000a5562000a4f62000a498462000a1a565b620009d7565b62000a24565b9050919050565b62000a678162000a34565b82525050565b600061012082019050818103600083015262000a8a818c62000924565b9050818103602083015262000aa0818b62000924565b905062000ab1604083018a62000965565b818103606083015262000ac5818962000924565b9050818103608083015262000adb818862000924565b905062000aec60a0830187620009aa565b62000afb60c083018662000965565b62000b0a60e083018562000a09565b62000b1a61010083018462000a5c565b9a9950505050505050505050565b6000819050919050565b62000b3d8162000b28565b82525050565b60006101408201905062000b5b600083018d62000965565b62000b6a602083018c62000965565b62000b79604083018b62000965565b62000b88606083018a62000965565b62000b97608083018962000965565b62000ba660a083018862000965565b62000bb560c083018762000965565b62000bc460e083018662000965565b62000bd4610100830185620009aa565b62000be461012083018462000b32565b9b9a5050505050505050505050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b600062000c51602683620008d6565b915062000c5e8262000bf3565b604082019050919050565b6000602082019050818103600083015262000c848162000c42565b9050919050565b600081519050919050565b600081905092915050565b600062000cae8262000c8b565b62000cba818562000c96565b935062000ccc818560208601620008e7565b80840191505092915050565b600062000ce6828462000ca1565b915081905092915050565b6000602082019050818103600083015262000d0d818462000924565b905092915050565b6109538062000d256000396000f3fe6080604052600436106100435760003560e01c80635c60da1b1461005c578063715018a6146100875780638da5cb5b1461009e578063f2fde38b146100c957610052565b36610052576100506100f2565b005b61005a6100f2565b005b34801561006857600080fd5b5061007161010c565b60405161007e91906105dd565b60405180910390f35b34801561009357600080fd5b5061009c61011b565b005b3480156100aa57600080fd5b506100b36101a3565b6040516100c091906105dd565b60405180910390f35b3480156100d557600080fd5b506100f060048036038101906100eb9190610629565b6101cc565b005b6100fa6102fa565b61010a6101056102fc565b610353565b565b60006101166102fc565b905090565b610123610379565b73ffffffffffffffffffffffffffffffffffffffff166101416101a3565b73ffffffffffffffffffffffffffffffffffffffff1614610197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018e906106b3565b60405180910390fd5b6101a16000610381565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6101d4610379565b73ffffffffffffffffffffffffffffffffffffffff166101f26101a3565b73ffffffffffffffffffffffffffffffffffffffff1614610248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161023f906106b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae90610745565b60405180910390fd5b6102c081610381565b50565b6000819050919050565b60606102f283836040518060600160405280602781526020016108f760279139610445565b905092915050565b565b600061032a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6102c3565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3660008037600080366000845af43d6000803e8060008114610374573d6000f35b3d6000fd5b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606061045084610512565b61048f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610486906107d7565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516104b79190610868565b600060405180830381855af49150503d80600081146104f2576040519150601f19603f3d011682016040523d82523d6000602084013e6104f7565b606091505b5091509150610507828286610535565b925050509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561054557829050610595565b6000835111156105585782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058c91906108d4565b60405180910390fd5b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105c78261059c565b9050919050565b6105d7816105bc565b82525050565b60006020820190506105f260008301846105ce565b92915050565b600080fd5b610606816105bc565b811461061157600080fd5b50565b600081359050610623816105fd565b92915050565b60006020828403121561063f5761063e6105f8565b5b600061064d84828501610614565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061069d602083610656565b91506106a882610667565b602082019050919050565b600060208201905081810360008301526106cc81610690565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061072f602683610656565b915061073a826106d3565b604082019050919050565b6000602082019050818103600083015261075e81610722565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006107c1602683610656565b91506107cc82610765565b604082019050919050565b600060208201905081810360008301526107f0816107b4565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561082b578082015181840152602081019050610810565b60008484015250505050565b6000610842826107f7565b61084c8185610802565b935061085c81856020860161080d565b80840191505092915050565b60006108748284610837565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b60006108a68261087f565b6108b08185610656565b93506108c081856020860161080d565b6108c98161088a565b840191505092915050565b600060208201905081810360008301526108ee818461089b565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b4cfcaef4bdee62c7960fc25a7589cde0192356122ed16d40336a7d4cdb9d76964736f6c6343000812003368747470733a2f2f637265617465782e6172742f6170692f76312f637265617465782f636f6c6c656374696f6e5f75726c2f4c494e45412f3864336265797634303630377878756c6a74386d33366f6d733767633732656c68747470733a2f2f637265617465782e6172742f6170692f76312f637265617465782f6d657461646174612f4c494e45412f3864336265797634303630377878756c6a74386d33366f6d733767633732656c2f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564

Deployed Bytecode

0x6080604052600436106100435760003560e01c80635c60da1b1461005c578063715018a6146100875780638da5cb5b1461009e578063f2fde38b146100c957610052565b36610052576100506100f2565b005b61005a6100f2565b005b34801561006857600080fd5b5061007161010c565b60405161007e91906105dd565b60405180910390f35b34801561009357600080fd5b5061009c61011b565b005b3480156100aa57600080fd5b506100b36101a3565b6040516100c091906105dd565b60405180910390f35b3480156100d557600080fd5b506100f060048036038101906100eb9190610629565b6101cc565b005b6100fa6102fa565b61010a6101056102fc565b610353565b565b60006101166102fc565b905090565b610123610379565b73ffffffffffffffffffffffffffffffffffffffff166101416101a3565b73ffffffffffffffffffffffffffffffffffffffff1614610197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018e906106b3565b60405180910390fd5b6101a16000610381565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6101d4610379565b73ffffffffffffffffffffffffffffffffffffffff166101f26101a3565b73ffffffffffffffffffffffffffffffffffffffff1614610248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161023f906106b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102ae90610745565b60405180910390fd5b6102c081610381565b50565b6000819050919050565b60606102f283836040518060600160405280602781526020016108f760279139610445565b905092915050565b565b600061032a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6102c3565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b3660008037600080366000845af43d6000803e8060008114610374573d6000f35b3d6000fd5b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606061045084610512565b61048f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610486906107d7565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040516104b79190610868565b600060405180830381855af49150503d80600081146104f2576040519150601f19603f3d011682016040523d82523d6000602084013e6104f7565b606091505b5091509150610507828286610535565b925050509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561054557829050610595565b6000835111156105585782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058c91906108d4565b60405180910390fd5b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105c78261059c565b9050919050565b6105d7816105bc565b82525050565b60006020820190506105f260008301846105ce565b92915050565b600080fd5b610606816105bc565b811461061157600080fd5b50565b600081359050610623816105fd565b92915050565b60006020828403121561063f5761063e6105f8565b5b600061064d84828501610614565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061069d602083610656565b91506106a882610667565b602082019050919050565b600060208201905081810360008301526106cc81610690565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061072f602683610656565b915061073a826106d3565b604082019050919050565b6000602082019050818103600083015261075e81610722565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b60006107c1602683610656565b91506107cc82610765565b604082019050919050565b600060208201905081810360008301526107f0816107b4565b9050919050565b600081519050919050565b600081905092915050565b60005b8381101561082b578082015181840152602081019050610810565b60008484015250505050565b6000610842826107f7565b61084c8185610802565b935061085c81856020860161080d565b80840191505092915050565b60006108748284610837565b915081905092915050565b600081519050919050565b6000601f19601f8301169050919050565b60006108a68261087f565b6108b08185610656565b93506108c081856020860161080d565b6108c98161088a565b840191505092915050565b600060208201905081810360008301526108ee818461089b565b90509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b4cfcaef4bdee62c7960fc25a7589cde0192356122ed16d40336a7d4cdb9d76964736f6c63430008120033

Block Transaction Gas Used Reward
view all blocks sequenced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.