MATIC Price: $0.99 (-1.65%)
Gas: 75 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo237.392151689281683107 MATIC

MATIC Value

$235.76 (@ $0.99/MATIC)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Exec With Sig Tr...552029742024-03-29 5:33:1838 secs ago1711690398IN
Gelato Network: Gelato
0 MATIC0.0230443464.42349877
Exec With Sig Tr...552029562024-03-29 5:32:401 min ago1711690360IN
Gelato Network: Gelato
0 MATIC0.0223375362.45082078
Exec With Sig Tr...552029472024-03-29 5:32:221 min ago1711690342IN
Gelato Network: Gelato
0 MATIC0.0160254263.71559921
Exec With Sig Tr...552029472024-03-29 5:32:221 min ago1711690342IN
Gelato Network: Gelato
0 MATIC0.0227899263.71559921
Exec With Sig Tr...552029262024-03-29 5:31:362 mins ago1711690296IN
Gelato Network: Gelato
0 MATIC0.4175920967.46023844
Exec With Sig Tr...552029022024-03-29 5:30:463 mins ago1711690246IN
Gelato Network: Gelato
0 MATIC0.0263666773.70944332
Exec With Sig Tr...552028982024-03-29 5:30:383 mins ago1711690238IN
Gelato Network: Gelato
0 MATIC0.0798471976.34516314
Exec With Sig552028842024-03-29 5:30:083 mins ago1711690208IN
Gelato Network: Gelato
0 MATIC0.0182372276.23366833
Exec With Sig Tr...552028702024-03-29 5:29:384 mins ago1711690178IN
Gelato Network: Gelato
0 MATIC0.087725983.56606923
Exec With Sig Tr...552028212024-03-29 5:27:536 mins ago1711690073IN
Gelato Network: Gelato
0 MATIC0.0544874177.65257007
Exec With Sig Tr...552028162024-03-29 5:27:436 mins ago1711690063IN
Gelato Network: Gelato
0 MATIC0.0287333180.32977664
Exec With Sig Tr...552028032024-03-29 5:26:517 mins ago1711690011IN
Gelato Network: Gelato
0 MATIC0.0191187263.6169065
Exec With Sig Tr...552027982024-03-29 5:26:317 mins ago1711689991IN
Gelato Network: Gelato
0 MATIC0.024213359.97666955
Exec With Sig Tr...552027912024-03-29 5:26:177 mins ago1711689977IN
Gelato Network: Gelato
0 MATIC0.0264101562.47080047
Exec With Sig Tr...552027692024-03-29 5:25:318 mins ago1711689931IN
Gelato Network: Gelato
0 MATIC0.0162892664.761506
Exec With Sig Tr...552027632024-03-29 5:25:178 mins ago1711689917IN
Gelato Network: Gelato
0 MATIC0.0204410766.23896287
Exec With Sig552027582024-03-29 5:25:078 mins ago1711689907IN
Gelato Network: Gelato
0 MATIC0.0158068566.07442362
Exec With Sig Tr...552027562024-03-29 5:25:038 mins ago1711689903IN
Gelato Network: Gelato
0 MATIC0.0200213765.80329556
Exec With Sig Tr...552027302024-03-29 5:24:079 mins ago1711689847IN
Gelato Network: Gelato
0 MATIC0.0177969465.78352002
Exec With Sig Tr...552026852024-03-29 5:22:3111 mins ago1711689751IN
Gelato Network: Gelato
0 MATIC0.0175003860.43261968
Exec With Sig Tr...552026702024-03-29 5:21:5911 mins ago1711689719IN
Gelato Network: Gelato
0 MATIC0.0166210161.43144039
Exec With Sig Tr...552026342024-03-29 5:20:4313 mins ago1711689643IN
Gelato Network: Gelato
0 MATIC0.0193373562.65749509
Exec With Sig552026172024-03-29 5:20:0713 mins ago1711689607IN
Gelato Network: Gelato
0 MATIC0.0144385660.36088135
Exec With Sig552025862024-03-29 5:19:0114 mins ago1711689541IN
Gelato Network: Gelato
0 MATIC0.1137062359.46546369
Exec With Sig Tr...552025442024-03-29 5:17:3316 mins ago1711689453IN
Gelato Network: Gelato
0 MATIC0.0135561458.30198769
View all transactions

Latest 25 internal transactions (View All)

Parent Txn Hash Block From To Value
552029742024-03-29 5:33:1838 secs ago1711690398
Gelato Network: Gelato
0.06600013 MATIC
552029562024-03-29 5:32:401 min ago1711690360
Gelato Network: Gelato
0.06721407 MATIC
552029472024-03-29 5:32:221 min ago1711690342
Gelato Network: Gelato
0.06798555 MATIC
552029022024-03-29 5:30:463 mins ago1711690246
Gelato Network: Gelato
0.07852962 MATIC
552028982024-03-29 5:30:383 mins ago1711690238
Gelato Network: Gelato
0.18570935 MATIC
552028162024-03-29 5:27:436 mins ago1711690063
Gelato Network: Gelato
0.07740683 MATIC
552028032024-03-29 5:26:517 mins ago1711690011
Gelato Network: Gelato
0.05363541 MATIC
552027562024-03-29 5:25:038 mins ago1711689903
Gelato Network: Gelato
0.05860305 MATIC
552024812024-03-29 5:15:1718 mins ago1711689317
Gelato Network: Gelato
0.05490396 MATIC
552023562024-03-29 5:10:5023 mins ago1711689050
Gelato Network: Gelato
0.05498813 MATIC
552022732024-03-29 5:07:5426 mins ago1711688874
Gelato Network: Gelato
0.17706494 MATIC
552022562024-03-29 5:07:1826 mins ago1711688838
Gelato Network: Gelato
0.07763872 MATIC
552022212024-03-29 5:06:0227 mins ago1711688762
Gelato Network: Gelato
0.08185538 MATIC
552022172024-03-29 5:05:5428 mins ago1711688754
Gelato Network: Gelato
0.07031323 MATIC
552021752024-03-29 5:03:5230 mins ago1711688632
Gelato Network: Gelato
0.05982675 MATIC
552018872024-03-29 4:52:5341 mins ago1711687973
Gelato Network: Gelato
0.06582972 MATIC
552009782024-03-29 4:18:511 hr ago1711685931
Gelato Network: Gelato
0.18659707 MATIC
552009532024-03-29 4:17:571 hr ago1711685877
Gelato Network: Gelato
0.16706977 MATIC
552009372024-03-29 4:17:231 hr ago1711685843
Gelato Network: Gelato
0.16556832 MATIC
552008932024-03-29 4:15:471 hr ago1711685747
Gelato Network: Gelato
0.17927118 MATIC
552008802024-03-29 4:15:211 hr ago1711685721
Gelato Network: Gelato
0.19314813 MATIC
552008542024-03-29 4:14:251 hr ago1711685665
Gelato Network: Gelato
0.18177205 MATIC
551998422024-03-29 3:35:541 hr ago1711683354
Gelato Network: Gelato
0.23500188 MATIC
551997392024-03-29 3:31:102 hrs ago1711683070
Gelato Network: Gelato
0.21848408 MATIC
551996402024-03-29 3:27:402 hrs ago1711682860
Gelato Network: Gelato
0.0844163 MATIC
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Gelato

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 7 : Gelato.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

import {LibDiamond} from "./libraries/standard/LibDiamond.sol";
import {IDiamondLoupe} from "./interfaces/standard/IDiamondLoupe.sol";
import {IDiamondCut} from "./interfaces/standard/IDiamondCut.sol";
import {IERC173} from "./interfaces/standard/IERC173.sol";
import {IERC165} from "./interfaces/standard/IERC165.sol";

contract Gelato {
    // more arguments are added to this struct
    // this avoids stack too deep errors
    struct DiamondArgs {
        address owner;
    }

    constructor(
        IDiamondCut.FacetCut[] memory _diamondCut,
        DiamondArgs memory _args
    ) payable {
        LibDiamond.diamondCut(_diamondCut, address(0), new bytes(0));
        LibDiamond.setContractOwner(_args.owner);

        LibDiamond.DiamondStorage storage ds = LibDiamond.diamondStorage();

        // adding ERC165 data
        ds.supportedInterfaces[type(IERC165).interfaceId] = true;
        ds.supportedInterfaces[type(IDiamondCut).interfaceId] = true;
        ds.supportedInterfaces[type(IDiamondLoupe).interfaceId] = true;
        ds.supportedInterfaces[type(IERC173).interfaceId] = true;
    }

    // Find facet for function that is called and execute the
    // function if a facet is found and return any value.
    // solhint-disable-next-line no-complex-fallback
    fallback() external payable {
        LibDiamond.DiamondStorage storage ds;
        bytes32 position = LibDiamond.DIAMOND_STORAGE_POSITION;
        assembly {
            ds.slot := position
        }
        address facet = ds.selectorToFacetAndPosition[msg.sig].facetAddress;
        require(facet != address(0), "Gelato: Function does not exist");
        assembly {
            calldatacopy(0, 0, calldatasize())
            let result := delegatecall(gas(), facet, 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())
            switch result
                case 0 {
                    revert(0, returndatasize())
                }
                default {
                    return(0, returndatasize())
                }
        }
    }

    // solhint-disable-next-line no-empty-blocks, ordering
    receive() external payable {}
}

File 2 of 7 : IDiamondCut.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamond Standard: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/

interface IDiamondCut {
    enum FacetCutAction {Add, Replace, Remove}
    // Add=0, Replace=1, Remove=2

    struct FacetCut {
        address facetAddress;
        FacetCutAction action;
        bytes4[] functionSelectors;
    }

    event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);

    /// @notice Add/replace/remove any number of functions and optionally execute
    ///         a function with delegatecall
    /// @param _diamondCut Contains the facet addresses and function selectors
    /// @param _init The address of the contract or facet to execute _calldata
    /// @param _calldata A function call, including function selector and arguments
    ///                  _calldata is executed with delegatecall on _init
    function diamondCut(
        FacetCut[] calldata _diamondCut,
        address _init,
        bytes calldata _calldata
    ) external;
}

File 3 of 7 : IDiamondLoupe.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamond Standard: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/

// A loupe is a small magnifying glass used to look at diamonds.
// These functions look at diamonds
interface IDiamondLoupe {
    /// These functions are expected to be called frequently
    /// by tools.

    struct Facet {
        address facetAddress;
        bytes4[] functionSelectors;
    }

    /// @notice Gets all facet addresses and their four byte function selectors.
    /// @return facets_ Facet
    function facets() external view returns (Facet[] memory facets_);

    /// @notice Gets all the function selectors supported by a specific facet.
    /// @param _facet The facet address.
    /// @return facetFunctionSelectors_
    function facetFunctionSelectors(address _facet)
        external
        view
        returns (bytes4[] memory facetFunctionSelectors_);

    /// @notice Get all the facet addresses used by a diamond.
    /// @return facetAddresses_
    function facetAddresses()
        external
        view
        returns (address[] memory facetAddresses_);

    /// @notice Gets the facet that supports the given selector.
    /// @dev If facet is not found return address(0).
    /// @param _functionSelector The function selector.
    /// @return facetAddress_ The facet address.
    function facetAddress(bytes4 _functionSelector)
        external
        view
        returns (address facetAddress_);
}

File 4 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

interface IERC165 {
    /// @notice Query if a contract implements an interface
    /// @param interfaceId The interface identifier, as specified in ERC-165
    /// @dev Interface identification is specified in ERC-165. This function
    ///  uses less than 30,000 gas.
    /// @return `true` if the contract implements `interfaceID` and
    ///  `interfaceID` is not 0xffffffff, `false` otherwise
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 7 : IERC173.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

/// @title ERC-173 Contract Ownership Standard
///  Note: the ERC-165 identifier for this interface is 0x7f5828d0
/* is ERC165 */
interface IERC173 {
    /// @dev This emits when ownership of a contract changes.
    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /// @notice Set the address of the new owner of the contract
    /// @dev Set _newOwner to address(0) to renounce any ownership.
    /// @param _newOwner The address of the new owner of the contract
    function transferOwnership(address _newOwner) external;

    /// @notice Get the address of the owner
    /// @return owner_ The address of the owner.
    function owner() external view returns (address owner_);
}

File 6 of 7 : LibDiamond.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;

// https://github.com/mudgen/diamond-3/blob/b009cd08b7822bad727bbcc47aa1b50d8b50f7f0/contracts/libraries/LibDiamond.sol#L1

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamond Standard: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/

import "../../interfaces/standard/IDiamondCut.sol";

// Custom due to incorrect string casting (non UTF-8 formatted)
import {GelatoBytes} from "../../../lib/GelatoBytes.sol";

library LibDiamond {
    bytes32 constant DIAMOND_STORAGE_POSITION =
        keccak256("diamond.standard.diamond.storage");

    struct FacetAddressAndPosition {
        address facetAddress;
        uint16 functionSelectorPosition; // position in facetFunctionSelectors.functionSelectors array
    }

    struct FacetFunctionSelectors {
        bytes4[] functionSelectors;
        uint16 facetAddressPosition; // position of facetAddress in facetAddresses array
    }

    struct DiamondStorage {
        // maps function selector to the facet address and
        // the position of the selector in the facetFunctionSelectors.selectors array
        mapping(bytes4 => FacetAddressAndPosition) selectorToFacetAndPosition;
        // maps facet addresses to function selectors
        mapping(address => FacetFunctionSelectors) facetFunctionSelectors;
        // facet addresses
        address[] facetAddresses;
        // Used to query if a contract implements an interface.
        // Used to implement ERC-165.
        mapping(bytes4 => bool) supportedInterfaces;
        // owner of the contract
        address contractOwner;
    }

    function diamondStorage()
        internal
        pure
        returns (DiamondStorage storage ds)
    {
        bytes32 position = DIAMOND_STORAGE_POSITION;
        assembly {
            ds.slot := position
        }
    }

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

    function setContractOwner(address _newOwner) internal {
        DiamondStorage storage ds = diamondStorage();
        address previousOwner = ds.contractOwner;
        ds.contractOwner = _newOwner;
        emit OwnershipTransferred(previousOwner, _newOwner);
    }

    function contractOwner() internal view returns (address contractOwner_) {
        contractOwner_ = diamondStorage().contractOwner;
    }

    function isContractOwner(address _guy) internal view returns (bool) {
        return _guy == contractOwner();
    }

    function enforceIsContractOwner() internal view {
        require(
            msg.sender == diamondStorage().contractOwner,
            "LibDiamond: Must be contract owner"
        );
    }

    event DiamondCut(
        IDiamondCut.FacetCut[] _diamondCut,
        address _init,
        bytes _calldata
    );

    // Internal function version of diamondCut
    function diamondCut(
        IDiamondCut.FacetCut[] memory _diamondCut,
        address _init,
        bytes memory _calldata
    ) internal {
        for (
            uint256 facetIndex;
            facetIndex < _diamondCut.length;
            facetIndex++
        ) {
            IDiamondCut.FacetCutAction action = _diamondCut[facetIndex].action;
            if (action == IDiamondCut.FacetCutAction.Add) {
                addFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else if (action == IDiamondCut.FacetCutAction.Replace) {
                replaceFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else if (action == IDiamondCut.FacetCutAction.Remove) {
                removeFunctions(
                    _diamondCut[facetIndex].facetAddress,
                    _diamondCut[facetIndex].functionSelectors
                );
            } else {
                revert("LibDiamondCut: Incorrect FacetCutAction");
            }
        }
        emit DiamondCut(_diamondCut, _init, _calldata);
        initializeDiamondCut(_init, _calldata);
    }

    function addFunctions(
        address _facetAddress,
        bytes4[] memory _functionSelectors
    ) internal {
        require(
            _functionSelectors.length > 0,
            "LibDiamondCut: No selectors in facet to cut"
        );
        DiamondStorage storage ds = diamondStorage();
        // uint16 selectorCount = uint16(diamondStorage().selectors.length);
        require(
            _facetAddress != address(0),
            "LibDiamondCut: Add facet can't be address(0)"
        );
        uint16 selectorPosition =
            uint16(
                ds.facetFunctionSelectors[_facetAddress]
                    .functionSelectors
                    .length
            );
        // add new facet address if it does not exist
        if (selectorPosition == 0) {
            enforceHasContractCode(
                _facetAddress,
                "LibDiamondCut: New facet has no code"
            );
            ds.facetFunctionSelectors[_facetAddress]
                .facetAddressPosition = uint16(ds.facetAddresses.length);
            ds.facetAddresses.push(_facetAddress);
        }
        for (
            uint256 selectorIndex;
            selectorIndex < _functionSelectors.length;
            selectorIndex++
        ) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress =
                ds.selectorToFacetAndPosition[selector].facetAddress;
            require(
                oldFacetAddress == address(0),
                "LibDiamondCut: Can't add function that already exists"
            );
            ds.facetFunctionSelectors[_facetAddress].functionSelectors.push(
                selector
            );
            ds.selectorToFacetAndPosition[selector]
                .facetAddress = _facetAddress;
            ds.selectorToFacetAndPosition[selector]
                .functionSelectorPosition = selectorPosition;
            selectorPosition++;
        }
    }

    function replaceFunctions(
        address _facetAddress,
        bytes4[] memory _functionSelectors
    ) internal {
        require(
            _functionSelectors.length > 0,
            "LibDiamondCut: No selectors in facet to cut"
        );
        DiamondStorage storage ds = diamondStorage();
        require(
            _facetAddress != address(0),
            "LibDiamondCut: Add facet can't be address(0)"
        );
        uint16 selectorPosition =
            uint16(
                ds.facetFunctionSelectors[_facetAddress]
                    .functionSelectors
                    .length
            );
        // add new facet address if it does not exist
        if (selectorPosition == 0) {
            enforceHasContractCode(
                _facetAddress,
                "LibDiamondCut: New facet has no code"
            );
            ds.facetFunctionSelectors[_facetAddress]
                .facetAddressPosition = uint16(ds.facetAddresses.length);
            ds.facetAddresses.push(_facetAddress);
        }
        for (
            uint256 selectorIndex;
            selectorIndex < _functionSelectors.length;
            selectorIndex++
        ) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress =
                ds.selectorToFacetAndPosition[selector].facetAddress;
            require(
                oldFacetAddress != _facetAddress,
                "LibDiamondCut: Can't replace function with same function"
            );
            removeFunction(oldFacetAddress, selector);
            // add function
            ds.selectorToFacetAndPosition[selector]
                .functionSelectorPosition = selectorPosition;
            ds.facetFunctionSelectors[_facetAddress].functionSelectors.push(
                selector
            );
            ds.selectorToFacetAndPosition[selector]
                .facetAddress = _facetAddress;
            selectorPosition++;
        }
    }

    function removeFunctions(
        address _facetAddress,
        bytes4[] memory _functionSelectors
    ) internal {
        require(
            _functionSelectors.length > 0,
            "LibDiamondCut: No selectors in facet to cut"
        );
        DiamondStorage storage ds = diamondStorage();
        // if function does not exist then do nothing and return
        require(
            _facetAddress == address(0),
            "LibDiamondCut: Remove facet address must be address(0)"
        );
        for (
            uint256 selectorIndex;
            selectorIndex < _functionSelectors.length;
            selectorIndex++
        ) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress =
                ds.selectorToFacetAndPosition[selector].facetAddress;
            removeFunction(oldFacetAddress, selector);
        }
    }

    function removeFunction(address _facetAddress, bytes4 _selector) internal {
        DiamondStorage storage ds = diamondStorage();
        require(
            _facetAddress != address(0),
            "LibDiamondCut: Can't remove function that doesn't exist"
        );
        // an immutable function is a function defined directly in a diamond
        require(
            _facetAddress != address(this),
            "LibDiamondCut: Can't remove immutable function"
        );
        // replace selector with last selector, then delete last selector
        uint256 selectorPosition =
            ds.selectorToFacetAndPosition[_selector].functionSelectorPosition;
        uint256 lastSelectorPosition =
            ds.facetFunctionSelectors[_facetAddress].functionSelectors.length -
                1;
        // if not the same then replace _selector with lastSelector
        if (selectorPosition != lastSelectorPosition) {
            bytes4 lastSelector =
                ds.facetFunctionSelectors[_facetAddress].functionSelectors[
                    lastSelectorPosition
                ];
            ds.facetFunctionSelectors[_facetAddress].functionSelectors[
                selectorPosition
            ] = lastSelector;
            ds.selectorToFacetAndPosition[lastSelector]
                .functionSelectorPosition = uint16(selectorPosition);
        }
        // delete the last selector
        ds.facetFunctionSelectors[_facetAddress].functionSelectors.pop();
        delete ds.selectorToFacetAndPosition[_selector];

        // if no more selectors for facet address then delete the facet address
        if (lastSelectorPosition == 0) {
            // replace facet address with last facet address and delete last facet address
            uint256 lastFacetAddressPosition = ds.facetAddresses.length - 1;
            uint256 facetAddressPosition =
                ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;
            if (facetAddressPosition != lastFacetAddressPosition) {
                address lastFacetAddress =
                    ds.facetAddresses[lastFacetAddressPosition];
                ds.facetAddresses[facetAddressPosition] = lastFacetAddress;
                ds.facetFunctionSelectors[lastFacetAddress]
                    .facetAddressPosition = uint16(facetAddressPosition);
            }
            ds.facetAddresses.pop();
            delete ds.facetFunctionSelectors[_facetAddress]
                .facetAddressPosition;
        }
    }

    function initializeDiamondCut(address _init, bytes memory _calldata)
        internal
    {
        if (_init == address(0)) {
            require(
                _calldata.length == 0,
                "LibDiamondCut: _init is address(0) but_calldata is not empty"
            );
        } else {
            require(
                _calldata.length > 0,
                "LibDiamondCut: _calldata is empty but _init is not address(0)"
            );
            if (_init != address(this)) {
                enforceHasContractCode(
                    _init,
                    "LibDiamondCut: _init address has no code"
                );
            }
            (bool success, bytes memory error) = _init.delegatecall(_calldata);
            if (!success) {
                if (error.length > 0) {
                    // bubble up the error
                    GelatoBytes.revertWithError(error, "LibDiamondCut:_init:");
                } else {
                    revert("LibDiamondCut: _init function reverted");
                }
            }
        }
    }

    function enforceHasContractCode(
        address _contract,
        string memory _errorMessage
    ) internal view {
        uint256 contractSize;
        assembly {
            contractSize := extcodesize(_contract)
        }
        require(contractSize > 0, _errorMessage);
    }
}

File 7 of 7 : GelatoBytes.sol
// "SPDX-License-Identifier: UNLICENSED"
pragma solidity 0.8.0;

library GelatoBytes {
    function calldataSliceSelector(bytes calldata _bytes)
        internal
        pure
        returns (bytes4 selector)
    {
        selector =
            _bytes[0] |
            (bytes4(_bytes[1]) >> 8) |
            (bytes4(_bytes[2]) >> 16) |
            (bytes4(_bytes[3]) >> 24);
    }

    function memorySliceSelector(bytes memory _bytes)
        internal
        pure
        returns (bytes4 selector)
    {
        selector =
            _bytes[0] |
            (bytes4(_bytes[1]) >> 8) |
            (bytes4(_bytes[2]) >> 16) |
            (bytes4(_bytes[3]) >> 24);
    }

    function revertWithError(bytes memory _bytes, string memory _tracingInfo)
        internal
        pure
    {
        // 68: 32-location, 32-length, 4-ErrorSelector, UTF-8 err
        if (_bytes.length % 32 == 4) {
            bytes4 selector;
            assembly {
                selector := mload(add(0x20, _bytes))
            }
            if (selector == 0x08c379a0) {
                // Function selector for Error(string)
                assembly {
                    _bytes := add(_bytes, 68)
                }
                revert(string(abi.encodePacked(_tracingInfo, string(_bytes))));
            } else {
                revert(
                    string(abi.encodePacked(_tracingInfo, "NoErrorSelector"))
                );
            }
        } else {
            revert(
                string(abi.encodePacked(_tracingInfo, "UnexpectedReturndata"))
            );
        }
    }

    function returnError(bytes memory _bytes, string memory _tracingInfo)
        internal
        pure
        returns (string memory)
    {
        // 68: 32-location, 32-length, 4-ErrorSelector, UTF-8 err
        if (_bytes.length % 32 == 4) {
            bytes4 selector;
            assembly {
                selector := mload(add(0x20, _bytes))
            }
            if (selector == 0x08c379a0) {
                // Function selector for Error(string)
                assembly {
                    _bytes := add(_bytes, 68)
                }
                return string(abi.encodePacked(_tracingInfo, string(_bytes)));
            } else {
                return
                    string(abi.encodePacked(_tracingInfo, "NoErrorSelector"));
            }
        } else {
            return
                string(abi.encodePacked(_tracingInfo, "UnexpectedReturndata"));
        }
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"address","name":"facetAddress","type":"address"},{"internalType":"enum IDiamondCut.FacetCutAction","name":"action","type":"uint8"},{"internalType":"bytes4[]","name":"functionSelectors","type":"bytes4[]"}],"internalType":"struct IDiamondCut.FacetCut[]","name":"_diamondCut","type":"tuple[]"},{"components":[{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct Gelato.DiamondArgs","name":"_args","type":"tuple"}],"stateMutability":"payable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"stateMutability":"payable","type":"receive"}]

608060405260405162002e5738038062002e57833981016040819052620000269162001081565b604080516000808252602082019092526200004e918491620000f560201b6200009c1760201c565b6200006881600001516200039d60201b6200030a1760201c565b60006200007f620003ff60201b6200036a1760201c565b6301ffc9a760e01b600090815260039091016020526040808220805460ff1990811660019081179092556307e4c70760e21b845282842080548216831790556348e2b09360e01b845282842080548216831790556307f5828d60e41b845291909220805490911690911790555062001890915050565b60005b83518110156200034e5760008482815181106200012557634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050600060028111156200015557634e487b7160e01b600052602160045260246000fd5b8160028111156200017657634e487b7160e01b600052602160045260246000fd5b1415620001ed57620001e7858381518110620001a257634e487b7160e01b600052603260045260246000fd5b602002602001015160000151868481518110620001cf57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516200042360201b60201c565b62000338565b60018160028111156200021057634e487b7160e01b600052602160045260246000fd5b14156200028157620001e78583815181106200023c57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518684815181106200026957634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516200066360201b60201c565b6002816002811115620002a457634e487b7160e01b600052602160045260246000fd5b14156200031557620001e7858381518110620002d057634e487b7160e01b600052603260045260246000fd5b602002602001015160000151868481518110620002fd57634e487b7160e01b600052603260045260246000fd5b602002602001015160400151620008b860201b60201c565b60405162461bcd60e51b81526004016200032f9062001510565b60405180910390fd5b5080620003458162001825565b915050620000f8565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738383836040516200038493929190620012a7565b60405180910390a1620003988282620009a0565b505050565b6000620003a9620003ff565b6004810180546001600160a01b038581166001600160a01b031983168117909355604051939450169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c90565b6000815111620004475760405162461bcd60e51b81526004016200032f9062001468565b600062000453620003ff565b90506001600160a01b0383166200047e5760405162461bcd60e51b81526004016200032f9062001557565b6001600160a01b038316600090815260018201602052604090205461ffff81166200052457620004c88460405180606001604052806024815260200162002e336024913962000b13565b6002820180546001600160a01b038616600081815260018087016020908152604083208201805461ffff191661ffff90961695909517909455845490810185559381529190912090910180546001600160a01b03191690911790555b60005b83518110156200065c5760008482815181106200055457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b03168015620005a75760405162461bcd60e51b81526004016200032f906200164e565b6001600160a01b03871660008181526001878101602090815260408084208054938401815584528184206008840401805463ffffffff60079095166004026101000a948502191660e089901c94909402939093179092556001600160e01b031986168352889052902080546001600160a01b03191690911761ffff60a01b1916600160a01b61ffff87160217905583620006418162001800565b94505050508080620006539062001825565b91505062000527565b5050505050565b6000815111620006875760405162461bcd60e51b81526004016200032f9062001468565b600062000693620003ff565b90506001600160a01b038316620006be5760405162461bcd60e51b81526004016200032f9062001557565b6001600160a01b038316600090815260018201602052604090205461ffff81166200076457620007088460405180606001604052806024815260200162002e336024913962000b13565b6002820180546001600160a01b038616600081815260018087016020908152604083208201805461ffff191661ffff90961695909517909455845490810185559381529190912090910180546001600160a01b03191690911790555b60005b83518110156200065c5760008482815181106200079457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b03908116908716811415620007ed5760405162461bcd60e51b81526004016200032f90620016ab565b620007f9818362000b37565b6001600160e01b03198216600081815260208781526040808320805461ffff60a01b1916600160a01b61ffff8b16021781556001600160a01b038c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b031916179055836200089d8162001800565b94505050508080620008af9062001825565b91505062000767565b6000815111620008dc5760405162461bcd60e51b81526004016200032f9062001468565b6000620008e8620003ff565b90506001600160a01b03831615620009145760405162461bcd60e51b81526004016200032f9062001708565b60005b82518110156200099a5760008382815181106200094457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918590526040909120549091506001600160a01b031662000982818362000b37565b50508080620009919062001825565b91505062000917565b50505050565b6001600160a01b038216620009d757805115620009d15760405162461bcd60e51b81526004016200032f90620013c5565b62000b0f565b6000815111620009fb5760405162461bcd60e51b81526004016200032f90620015a3565b6001600160a01b038216301462000a315762000a318260405180606001604052806028815260200162002e0b6028913962000b13565b600080836001600160a01b03168360405162000a4e9190620011de565b600060405180830381855af49150503d806000811462000a8b576040519150601f19603f3d011682016040523d82523d6000602084013e62000a90565b606091505b5091509150816200099a5780511562000af55762000aef816040518060400160405280601481526020017f4c69624469616d6f6e644375743a5f696e69743a00000000000000000000000081525062000eea60201b6200038e1760201c565b6200099a565b60405162461bcd60e51b81526004016200032f9062001422565b5050565b813b81816200099a5760405162461bcd60e51b81526004016200032f9190620013a9565b600062000b43620003ff565b90506001600160a01b03831662000b6e5760405162461bcd60e51b81526004016200032f90620014b3565b6001600160a01b03831630141562000b9a5760405162461bcd60e51b81526004016200032f9062001600565b6001600160e01b03198216600090815260208281526040808320546001600160a01b0387168452600180860190935290832054600160a01b90910461ffff16929162000be691620017b7565b905080821462000cf1576001600160a01b0385166000908152600184016020526040812080548390811062000c2b57634e487b7160e01b600052603260045260246000fd5b600091825260208083206008830401546001600160a01b038a168452600188019091526040909220805460079092166004026101000a90920460e01b92508291908590811062000c8b57634e487b7160e01b600052603260045260246000fd5b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790556001600160e01b031992909216825284905260409020805461ffff60a01b1916600160a01b61ffff8516021790555b6001600160a01b0385166000908152600184016020526040902080548062000d2957634e487b7160e01b600052603160045260246000fd5b60008281526020808220600860001990940193840401805463ffffffff600460078716026101000a0219169055919092556001600160e01b0319861682528490526040902080546001600160b01b0319169055806200065c57600283015460009062000d9890600190620017b7565b6001600160a01b038716600090815260018087016020526040909120015490915061ffff1680821462000e7657600085600201838154811062000deb57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546002870180546001600160a01b03909216925082918490811062000e2b57634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815260018781019092526040902001805461ffff191661ffff83161790555b8460020180548062000e9857634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03891682526001878101909152604090912001805461ffff1916905550505050505050565b6020825162000efa919062001843565b6004141562000f7757602082015162461bcd60e51b6001600160e01b03198216141562000f6457604483019250818360405160200162000f3c929190620011fc565b60408051601f198184030181529082905262461bcd60e51b82526200032f91600401620013a9565b8160405160200162000f3c91906200122f565b8060405160200162000f3c919062001264565b80516001600160a01b038116811462000fa257600080fd5b919050565b600082601f83011262000fb8578081fd5b8151602062000fd162000fcb8362001791565b62001765565b828152818101908583018385028701840188101562000fee578586fd5b855b85811015620010245781516001600160e01b03198116811462001011578788fd5b8452928401929084019060010162000ff0565b5090979650505050505050565b60006020828403121562001043578081fd5b604051602081016001600160401b03811182821017156200106857620010686200187a565b604052905080620010798362000f8a565b905292915050565b6000806040838503121562001094578182fd5b82516001600160401b0380821115620010ab578384fd5b818501915085601f830112620010bf578384fd5b81516020620010d262000fcb8362001791565b82815281810190858301885b858110156200118157815188016060818e03601f19011215620010ff578a8bfd5b604051606081018181108a821117156200111d576200111d6200187a565b6040526200112d82880162000f8a565b815260408201516003811062001141578c8dfd5b8188015260608201518981111562001157578c8dfd5b620011678f898386010162000fa7565b6040830152508552509284019290840190600101620010de565b50508097505050620011968882890162001031565b9450505050509250929050565b6001600160a01b03169052565b60008151808452620011ca816020860160208601620017d1565b601f01601f19169290920160200192915050565b60008251620011f2818460208701620017d1565b9190910192915050565b6000835162001210818460208801620017d1565b83519083019062001226818360208801620017d1565b01949350505050565b6000825162001243818460208701620017d1565b6e2737a2b93937b929b2b632b1ba37b960891b920191825250600f01919050565b6000825162001278818460208701620017d1565b7f556e657870656374656452657475726e64617461000000000000000000000000920191825250601401919050565b606080825284518282018190526000919060809081850190602080820287018401818b01875b848110156200137657898303607f19018652815180516001600160a01b031684528481015189850190600381106200131357634e487b7160e01b8c52602160045260248cfd5b858701526040918201519185018a9052815190819052908501908a90898601905b80831015620013605783516001600160e01b031916825292870192600192909201919087019062001334565b50978601979450505090830190600101620012cd565b5050620013868289018b620011a3565b87810360408901526200139a818a620011b0565b9b9a5050505050505050505050565b600060208252620013be6020830184620011b0565b9392505050565b6020808252603c908201527f4c69624469616d6f6e644375743a205f696e697420697320616464726573732860408201527f3029206275745f63616c6c64617461206973206e6f7420656d70747900000000606082015260800190565b60208082526026908201527f4c69624469616d6f6e644375743a205f696e69742066756e6374696f6e2072656040820152651d995c9d195960d21b606082015260800190565b6020808252602b908201527f4c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e206660408201526a1858d95d081d1bc818dd5d60aa1b606082015260800190565b60208082526037908201527f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360408201527f74696f6e207468617420646f65736e2774206578697374000000000000000000606082015260800190565b60208082526027908201527f4c69624469616d6f6e644375743a20496e636f727265637420466163657443756040820152663a20b1ba34b7b760c91b606082015260800190565b6020808252602c908201527f4c69624469616d6f6e644375743a204164642066616365742063616e2774206260408201526b65206164647265737328302960a01b606082015260800190565b6020808252603d908201527f4c69624469616d6f6e644375743a205f63616c6c6461746120697320656d707460408201527f7920627574205f696e6974206973206e6f742061646472657373283029000000606082015260800190565b6020808252602e908201527f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560408201526d3a30b1363290333ab731ba34b7b760911b606082015260800190565b60208082526035908201527f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f60408201527f6e207468617420616c7265616479206578697374730000000000000000000000606082015260800190565b60208082526038908201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60408201527f6374696f6e20776974682073616d652066756e6374696f6e0000000000000000606082015260800190565b60208082526036908201527f4c69624469616d6f6e644375743a2052656d6f7665206661636574206164647260408201527f657373206d757374206265206164647265737328302900000000000000000000606082015260800190565b6040518181016001600160401b03811182821017156200178957620017896200187a565b604052919050565b60006001600160401b03821115620017ad57620017ad6200187a565b5060209081020190565b600082821015620017cc57620017cc62001864565b500390565b60005b83811015620017ee578181015183820152602001620017d4565b838111156200099a5750506000910152565b600061ffff808316818114156200181b576200181b62001864565b6001019392505050565b60006000198214156200183c576200183c62001864565b5060010190565b6000826200185f57634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61156b80620018a06000396000f3fe60806040523661000b57005b600080356001600160e01b03191681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c602081905260409091205481906001600160a01b0316806100785760405162461bcd60e51b815260040161006f906113fc565b60405180910390fd5b3660008037600080366000845af43d6000803e808015610097573d6000f35b3d6000fd5b60005b83518110156102bf5760008482815181106100ca57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050600060028111156100f957634e487b7160e01b600052602160045260246000fd5b81600281111561011957634e487b7160e01b600052602160045260246000fd5b14156101845761017f85838151811061014257634e487b7160e01b600052603260045260246000fd5b60200260200101516000015186848151811061016e57634e487b7160e01b600052603260045260246000fd5b602002602001015160400151610426565b6102ac565b60018160028111156101a657634e487b7160e01b600052602160045260246000fd5b141561020c5761017f8583815181106101cf57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518684815181106101fb57634e487b7160e01b600052603260045260246000fd5b602002602001015160400151610650565b600281600281111561022e57634e487b7160e01b600052602160045260246000fd5b14156102945761017f85838151811061025757634e487b7160e01b600052603260045260246000fd5b60200260200101516000015186848151811061028357634e487b7160e01b600052603260045260246000fd5b60200260200101516040015161088d565b60405162461bcd60e51b815260040161006f906111b6565b50806102b781611498565b91505061009f565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738383836040516102f393929190610f58565b60405180910390a16103058282610966565b505050565b600061031461036a565b6004810180546001600160a01b038581166001600160a01b031983168117909355604051939450169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c90565b6020825161039c91906114b3565b6004141561041157602082015162461bcd60e51b6001600160e01b0319821614156104005760448301925081836040516020016103da929190610ebe565b60408051601f198184030181529082905262461bcd60e51b825261006f91600401611051565b816040516020016103da9190610eed565b806040516020016103da9190610f20565b5050565b60008151116104475760405162461bcd60e51b815260040161006f9061110e565b600061045161036a565b90506001600160a01b0383166104795760405162461bcd60e51b815260040161006f906111fd565b6001600160a01b038316600090815260018201602052604090205461ffff811661051b576104bf8460405180606001604052806024815260200161151260249139610aaa565b6002820180546001600160a01b038616600081815260018087016020908152604083208201805461ffff191661ffff90961695909517909455845490810185559381529190912090910180546001600160a01b03191690911790555b60005b835181101561064957600084828151811061054957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b031680156105995760405162461bcd60e51b815260040161006f906112f4565b6001600160a01b03871660008181526001878101602090815260408084208054938401815584528184206008840401805463ffffffff60079095166004026101000a948502191660e089901c94909402939093179092556001600160e01b031986168352889052902080546001600160a01b03191690911761ffff60a01b1916600160a01b61ffff8716021790558361063181611476565b9450505050808061064190611498565b91505061051e565b5050505050565b60008151116106715760405162461bcd60e51b815260040161006f9061110e565b600061067b61036a565b90506001600160a01b0383166106a35760405162461bcd60e51b815260040161006f906111fd565b6001600160a01b038316600090815260018201602052604090205461ffff8116610745576106e98460405180606001604052806024815260200161151260249139610aaa565b6002820180546001600160a01b038616600081815260018087016020908152604083208201805461ffff191661ffff90961695909517909455845490810185559381529190912090910180546001600160a01b03191690911790555b60005b835181101561064957600084828151811061077357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b039081169087168114156107c95760405162461bcd60e51b815260040161006f90611349565b6107d38183610acb565b6001600160e01b03198216600081815260208781526040808320805461ffff60a01b1916600160a01b61ffff8b16021781556001600160a01b038c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b0319161790558361087581611476565b9450505050808061088590611498565b915050610748565b60008151116108ae5760405162461bcd60e51b815260040161006f9061110e565b60006108b861036a565b90506001600160a01b038316156108e15760405162461bcd60e51b815260040161006f906113a6565b60005b825181101561096057600083828151811061090f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918590526040909120549091506001600160a01b031661094b8183610acb565b5050808061095890611498565b9150506108e4565b50505050565b6001600160a01b038216610998578051156109935760405162461bcd60e51b815260040161006f9061106b565b610422565b60008151116109b95760405162461bcd60e51b815260040161006f90611249565b6001600160a01b03821630146109eb576109eb826040518060600160405280602881526020016114ea60289139610aaa565b600080836001600160a01b031683604051610a069190610ea2565b600060405180830381855af49150503d8060008114610a41576040519150601f19603f3d011682016040523d82523d6000602084013e610a46565b606091505b50915091508161096057805115610a9257610a8d81604051806040016040528060148152602001732634b12234b0b6b7b73221baba1d2fb4b734ba1d60611b81525061038e565b610960565b60405162461bcd60e51b815260040161006f906110c8565b813b81816109605760405162461bcd60e51b815260040161006f9190611051565b6000610ad561036a565b90506001600160a01b038316610afd5760405162461bcd60e51b815260040161006f90611159565b6001600160a01b038316301415610b265760405162461bcd60e51b815260040161006f906112a6565b6001600160e01b03198216600090815260208281526040808320546001600160a01b0387168452600180860190935290832054600160a01b90910461ffff169291610b7091611433565b9050808214610c78576001600160a01b03851660009081526001840160205260408120805483908110610bb357634e487b7160e01b600052603260045260246000fd5b600091825260208083206008830401546001600160a01b038a168452600188019091526040909220805460079092166004026101000a90920460e01b925082919085908110610c1257634e487b7160e01b600052603260045260246000fd5b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790556001600160e01b031992909216825284905260409020805461ffff60a01b1916600160a01b61ffff8516021790555b6001600160a01b03851660009081526001840160205260409020805480610caf57634e487b7160e01b600052603160045260246000fd5b60008281526020808220600860001990940193840401805463ffffffff600460078716026101000a0219169055919092556001600160e01b0319861682528490526040902080546001600160b01b031916905580610649576002830154600090610d1b90600190611433565b6001600160a01b038716600090815260018087016020526040909120015490915061ffff16808214610df6576000856002018381548110610d6c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546002870180546001600160a01b039092169250829184908110610dab57634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815260018781019092526040902001805461ffff191661ffff83161790555b84600201805480610e1757634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03891682526001878101909152604090912001805461ffff1916905550505050505050565b6001600160a01b03169052565b60008151808452610e8e81602086016020860161144a565b601f01601f19169290920160200192915050565b60008251610eb481846020870161144a565b9190910192915050565b60008351610ed081846020880161144a565b835190830190610ee481836020880161144a565b01949350505050565b60008251610eff81846020870161144a565b6e2737a2b93937b929b2b632b1ba37b960891b920191825250600f01919050565b60008251610f3281846020870161144a565b73556e657870656374656452657475726e6461746160601b920191825250601401919050565b606080825284518282018190526000919060809081850190602080820287018401818b01875b8481101561102257898303607f19018652815180516001600160a01b03168452848101518985019060038110610fc257634e487b7160e01b8c52602160045260248cfd5b858701526040918201519185018a9052815190819052908501908a90898601905b8083101561100d5783516001600160e01b0319168252928701926001929092019190870190610fe3565b50978601979450505090830190600101610f7e565b50506110308289018b610e69565b8781036040890152611042818a610e76565b9b9a5050505050505050505050565b6000602082526110646020830184610e76565b9392505050565b6020808252603c908201527f4c69624469616d6f6e644375743a205f696e697420697320616464726573732860408201527f3029206275745f63616c6c64617461206973206e6f7420656d70747900000000606082015260800190565b60208082526026908201527f4c69624469616d6f6e644375743a205f696e69742066756e6374696f6e2072656040820152651d995c9d195960d21b606082015260800190565b6020808252602b908201527f4c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e206660408201526a1858d95d081d1bc818dd5d60aa1b606082015260800190565b60208082526037908201527f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360408201527f74696f6e207468617420646f65736e2774206578697374000000000000000000606082015260800190565b60208082526027908201527f4c69624469616d6f6e644375743a20496e636f727265637420466163657443756040820152663a20b1ba34b7b760c91b606082015260800190565b6020808252602c908201527f4c69624469616d6f6e644375743a204164642066616365742063616e2774206260408201526b65206164647265737328302960a01b606082015260800190565b6020808252603d908201527f4c69624469616d6f6e644375743a205f63616c6c6461746120697320656d707460408201527f7920627574205f696e6974206973206e6f742061646472657373283029000000606082015260800190565b6020808252602e908201527f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560408201526d3a30b1363290333ab731ba34b7b760911b606082015260800190565b60208082526035908201527f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f6040820152746e207468617420616c72656164792065786973747360581b606082015260800190565b60208082526038908201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60408201527f6374696f6e20776974682073616d652066756e6374696f6e0000000000000000606082015260800190565b60208082526036908201527f4c69624469616d6f6e644375743a2052656d6f76652066616365742061646472604082015275657373206d757374206265206164647265737328302960501b606082015260800190565b6020808252601f908201527f47656c61746f3a2046756e6374696f6e20646f6573206e6f7420657869737400604082015260600190565b600082821015611445576114456114d3565b500390565b60005b8381101561146557818101518382015260200161144d565b838111156109605750506000910152565b600061ffff8083168181141561148e5761148e6114d3565b6001019392505050565b60006000198214156114ac576114ac6114d3565b5060010190565b6000826114ce57634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fdfe4c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a204e657720666163657420686173206e6f20636f6465a2646970667358221220cec609c0d247fd16c365c9801837d30d683dbd1cf0b08f0fd32d65fe5b885f2564736f6c634300080000334c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a204e657720666163657420686173206e6f20636f646500000000000000000000000000000000000000000000000000000000000000400000000000000000000000006a0a93cd6d6fb7a36bf6234ef4650bf9474e7682000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000002625afbb3e63f885bc4de0f289571d81cf228b0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000011f931c1c0000000000000000000000000000000000000000000000000000000000000000000000000000000033faf125fc531a99cd764129bd2769a7e4c4daa9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000005cdffacc60000000000000000000000000000000000000000000000000000000052ef6b2c00000000000000000000000000000000000000000000000000000000adfca15e000000000000000000000000000000000000000000000000000000007a0ed6270000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000000000000000000000000000004796aa36fa6f47aad2b8db51c9a30859dd07acc90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000028da5cb5b00000000000000000000000000000000000000000000000000000000f2fde38b0000000000000000000000000000000000000000000000000000000000000000000000000000000071c2b9c9708c19a816e8e652f7c4cfe3f3a3d6a5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000002da44c84e00000000000000000000000000000000000000000000000000000000a4d0c0a90000000000000000000000000000000000000000000000000000000000000000000000000000000027ee02084023fd171e9798d33c8bba4255b247750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000033da3156000000000000000000000000000000000000000000000000000000000b9880caa00000000000000000000000000000000000000000000000000000000b87b0b4c00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040523661000b57005b600080356001600160e01b03191681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c602081905260409091205481906001600160a01b0316806100785760405162461bcd60e51b815260040161006f906113fc565b60405180910390fd5b3660008037600080366000845af43d6000803e808015610097573d6000f35b3d6000fd5b60005b83518110156102bf5760008482815181106100ca57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050600060028111156100f957634e487b7160e01b600052602160045260246000fd5b81600281111561011957634e487b7160e01b600052602160045260246000fd5b14156101845761017f85838151811061014257634e487b7160e01b600052603260045260246000fd5b60200260200101516000015186848151811061016e57634e487b7160e01b600052603260045260246000fd5b602002602001015160400151610426565b6102ac565b60018160028111156101a657634e487b7160e01b600052602160045260246000fd5b141561020c5761017f8583815181106101cf57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518684815181106101fb57634e487b7160e01b600052603260045260246000fd5b602002602001015160400151610650565b600281600281111561022e57634e487b7160e01b600052602160045260246000fd5b14156102945761017f85838151811061025757634e487b7160e01b600052603260045260246000fd5b60200260200101516000015186848151811061028357634e487b7160e01b600052603260045260246000fd5b60200260200101516040015161088d565b60405162461bcd60e51b815260040161006f906111b6565b50806102b781611498565b91505061009f565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738383836040516102f393929190610f58565b60405180910390a16103058282610966565b505050565b600061031461036a565b6004810180546001600160a01b038581166001600160a01b031983168117909355604051939450169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c90565b6020825161039c91906114b3565b6004141561041157602082015162461bcd60e51b6001600160e01b0319821614156104005760448301925081836040516020016103da929190610ebe565b60408051601f198184030181529082905262461bcd60e51b825261006f91600401611051565b816040516020016103da9190610eed565b806040516020016103da9190610f20565b5050565b60008151116104475760405162461bcd60e51b815260040161006f9061110e565b600061045161036a565b90506001600160a01b0383166104795760405162461bcd60e51b815260040161006f906111fd565b6001600160a01b038316600090815260018201602052604090205461ffff811661051b576104bf8460405180606001604052806024815260200161151260249139610aaa565b6002820180546001600160a01b038616600081815260018087016020908152604083208201805461ffff191661ffff90961695909517909455845490810185559381529190912090910180546001600160a01b03191690911790555b60005b835181101561064957600084828151811061054957634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b031680156105995760405162461bcd60e51b815260040161006f906112f4565b6001600160a01b03871660008181526001878101602090815260408084208054938401815584528184206008840401805463ffffffff60079095166004026101000a948502191660e089901c94909402939093179092556001600160e01b031986168352889052902080546001600160a01b03191690911761ffff60a01b1916600160a01b61ffff8716021790558361063181611476565b9450505050808061064190611498565b91505061051e565b5050505050565b60008151116106715760405162461bcd60e51b815260040161006f9061110e565b600061067b61036a565b90506001600160a01b0383166106a35760405162461bcd60e51b815260040161006f906111fd565b6001600160a01b038316600090815260018201602052604090205461ffff8116610745576106e98460405180606001604052806024815260200161151260249139610aaa565b6002820180546001600160a01b038616600081815260018087016020908152604083208201805461ffff191661ffff90961695909517909455845490810185559381529190912090910180546001600160a01b03191690911790555b60005b835181101561064957600084828151811061077357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b039081169087168114156107c95760405162461bcd60e51b815260040161006f90611349565b6107d38183610acb565b6001600160e01b03198216600081815260208781526040808320805461ffff60a01b1916600160a01b61ffff8b16021781556001600160a01b038c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b0319161790558361087581611476565b9450505050808061088590611498565b915050610748565b60008151116108ae5760405162461bcd60e51b815260040161006f9061110e565b60006108b861036a565b90506001600160a01b038316156108e15760405162461bcd60e51b815260040161006f906113a6565b60005b825181101561096057600083828151811061090f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160e01b031981166000908152918590526040909120549091506001600160a01b031661094b8183610acb565b5050808061095890611498565b9150506108e4565b50505050565b6001600160a01b038216610998578051156109935760405162461bcd60e51b815260040161006f9061106b565b610422565b60008151116109b95760405162461bcd60e51b815260040161006f90611249565b6001600160a01b03821630146109eb576109eb826040518060600160405280602881526020016114ea60289139610aaa565b600080836001600160a01b031683604051610a069190610ea2565b600060405180830381855af49150503d8060008114610a41576040519150601f19603f3d011682016040523d82523d6000602084013e610a46565b606091505b50915091508161096057805115610a9257610a8d81604051806040016040528060148152602001732634b12234b0b6b7b73221baba1d2fb4b734ba1d60611b81525061038e565b610960565b60405162461bcd60e51b815260040161006f906110c8565b813b81816109605760405162461bcd60e51b815260040161006f9190611051565b6000610ad561036a565b90506001600160a01b038316610afd5760405162461bcd60e51b815260040161006f90611159565b6001600160a01b038316301415610b265760405162461bcd60e51b815260040161006f906112a6565b6001600160e01b03198216600090815260208281526040808320546001600160a01b0387168452600180860190935290832054600160a01b90910461ffff169291610b7091611433565b9050808214610c78576001600160a01b03851660009081526001840160205260408120805483908110610bb357634e487b7160e01b600052603260045260246000fd5b600091825260208083206008830401546001600160a01b038a168452600188019091526040909220805460079092166004026101000a90920460e01b925082919085908110610c1257634e487b7160e01b600052603260045260246000fd5b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790556001600160e01b031992909216825284905260409020805461ffff60a01b1916600160a01b61ffff8516021790555b6001600160a01b03851660009081526001840160205260409020805480610caf57634e487b7160e01b600052603160045260246000fd5b60008281526020808220600860001990940193840401805463ffffffff600460078716026101000a0219169055919092556001600160e01b0319861682528490526040902080546001600160b01b031916905580610649576002830154600090610d1b90600190611433565b6001600160a01b038716600090815260018087016020526040909120015490915061ffff16808214610df6576000856002018381548110610d6c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546002870180546001600160a01b039092169250829184908110610dab57634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b0394851617905592909116815260018781019092526040902001805461ffff191661ffff83161790555b84600201805480610e1757634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b03891682526001878101909152604090912001805461ffff1916905550505050505050565b6001600160a01b03169052565b60008151808452610e8e81602086016020860161144a565b601f01601f19169290920160200192915050565b60008251610eb481846020870161144a565b9190910192915050565b60008351610ed081846020880161144a565b835190830190610ee481836020880161144a565b01949350505050565b60008251610eff81846020870161144a565b6e2737a2b93937b929b2b632b1ba37b960891b920191825250600f01919050565b60008251610f3281846020870161144a565b73556e657870656374656452657475726e6461746160601b920191825250601401919050565b606080825284518282018190526000919060809081850190602080820287018401818b01875b8481101561102257898303607f19018652815180516001600160a01b03168452848101518985019060038110610fc257634e487b7160e01b8c52602160045260248cfd5b858701526040918201519185018a9052815190819052908501908a90898601905b8083101561100d5783516001600160e01b0319168252928701926001929092019190870190610fe3565b50978601979450505090830190600101610f7e565b50506110308289018b610e69565b8781036040890152611042818a610e76565b9b9a5050505050505050505050565b6000602082526110646020830184610e76565b9392505050565b6020808252603c908201527f4c69624469616d6f6e644375743a205f696e697420697320616464726573732860408201527f3029206275745f63616c6c64617461206973206e6f7420656d70747900000000606082015260800190565b60208082526026908201527f4c69624469616d6f6e644375743a205f696e69742066756e6374696f6e2072656040820152651d995c9d195960d21b606082015260800190565b6020808252602b908201527f4c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e206660408201526a1858d95d081d1bc818dd5d60aa1b606082015260800190565b60208082526037908201527f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360408201527f74696f6e207468617420646f65736e2774206578697374000000000000000000606082015260800190565b60208082526027908201527f4c69624469616d6f6e644375743a20496e636f727265637420466163657443756040820152663a20b1ba34b7b760c91b606082015260800190565b6020808252602c908201527f4c69624469616d6f6e644375743a204164642066616365742063616e2774206260408201526b65206164647265737328302960a01b606082015260800190565b6020808252603d908201527f4c69624469616d6f6e644375743a205f63616c6c6461746120697320656d707460408201527f7920627574205f696e6974206973206e6f742061646472657373283029000000606082015260800190565b6020808252602e908201527f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560408201526d3a30b1363290333ab731ba34b7b760911b606082015260800190565b60208082526035908201527f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f6040820152746e207468617420616c72656164792065786973747360581b606082015260800190565b60208082526038908201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60408201527f6374696f6e20776974682073616d652066756e6374696f6e0000000000000000606082015260800190565b60208082526036908201527f4c69624469616d6f6e644375743a2052656d6f76652066616365742061646472604082015275657373206d757374206265206164647265737328302960501b606082015260800190565b6020808252601f908201527f47656c61746f3a2046756e6374696f6e20646f6573206e6f7420657869737400604082015260600190565b600082821015611445576114456114d3565b500390565b60005b8381101561146557818101518382015260200161144d565b838111156109605750506000910152565b600061ffff8083168181141561148e5761148e6114d3565b6001019392505050565b60006000198214156114ac576114ac6114d3565b5060010190565b6000826114ce57634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fdfe4c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a204e657720666163657420686173206e6f20636f6465a2646970667358221220cec609c0d247fd16c365c9801837d30d683dbd1cf0b08f0fd32d65fe5b885f2564736f6c63430008000033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000006a0a93cd6d6fb7a36bf6234ef4650bf9474e7682000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003e00000000000000000000000002625afbb3e63f885bc4de0f289571d81cf228b0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000011f931c1c0000000000000000000000000000000000000000000000000000000000000000000000000000000033faf125fc531a99cd764129bd2769a7e4c4daa9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000005cdffacc60000000000000000000000000000000000000000000000000000000052ef6b2c00000000000000000000000000000000000000000000000000000000adfca15e000000000000000000000000000000000000000000000000000000007a0ed6270000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000000000000000000000000000004796aa36fa6f47aad2b8db51c9a30859dd07acc90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000028da5cb5b00000000000000000000000000000000000000000000000000000000f2fde38b0000000000000000000000000000000000000000000000000000000000000000000000000000000071c2b9c9708c19a816e8e652f7c4cfe3f3a3d6a5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000002da44c84e00000000000000000000000000000000000000000000000000000000a4d0c0a90000000000000000000000000000000000000000000000000000000000000000000000000000000027ee02084023fd171e9798d33c8bba4255b247750000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000033da3156000000000000000000000000000000000000000000000000000000000b9880caa00000000000000000000000000000000000000000000000000000000b87b0b4c00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _diamondCut (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : _args (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
41 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000006a0a93cd6d6fb7a36bf6234ef4650bf9474e7682
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [7] : 00000000000000000000000000000000000000000000000000000000000003e0
Arg [8] : 0000000000000000000000002625afbb3e63f885bc4de0f289571d81cf228b0c
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 1f931c1c00000000000000000000000000000000000000000000000000000000
Arg [13] : 00000000000000000000000033faf125fc531a99cd764129bd2769a7e4c4daa9
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : cdffacc600000000000000000000000000000000000000000000000000000000
Arg [18] : 52ef6b2c00000000000000000000000000000000000000000000000000000000
Arg [19] : adfca15e00000000000000000000000000000000000000000000000000000000
Arg [20] : 7a0ed62700000000000000000000000000000000000000000000000000000000
Arg [21] : 01ffc9a700000000000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000004796aa36fa6f47aad2b8db51c9a30859dd07acc9
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [26] : 8da5cb5b00000000000000000000000000000000000000000000000000000000
Arg [27] : f2fde38b00000000000000000000000000000000000000000000000000000000
Arg [28] : 00000000000000000000000071c2b9c9708c19a816e8e652f7c4cfe3f3a3d6a5
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [32] : da44c84e00000000000000000000000000000000000000000000000000000000
Arg [33] : a4d0c0a900000000000000000000000000000000000000000000000000000000
Arg [34] : 00000000000000000000000027ee02084023fd171e9798d33c8bba4255b24775
Arg [35] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [36] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [37] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [38] : 3da3156000000000000000000000000000000000000000000000000000000000
Arg [39] : b9880caa00000000000000000000000000000000000000000000000000000000
Arg [40] : b87b0b4c00000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn 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.