ETH Price: $3,459.01 (-0.70%)
Gas: 3 Gwei

Contract

0xdE000042830A211533662637fE66760f1F2cD717
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value

There are no matching entries

Please try again later

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
175862522023-06-29 16:49:59368 days ago1688057399  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LUKSOMigrationDepositContract

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : LUKSOMigrationDepositContract.sol
//   _   _   _ _  _____  ___    _ __   ____  __      __  __ _               _   _             ___         _               _
//  | | | | | | |/ / __|/ _ \  | |\ \ / /\ \/ /___  |  \/  (_)__ _ _ _ __ _| |_(_)___ _ _    / __|___ _ _| |_ _ _ __ _ __| |_
//  | |_| |_| | ' <\__ \ (_) | | |_\ V /  >  </ -_) | |\/| | / _` | '_/ _` |  _| / _ \ ' \  | (__/ _ \ ' \  _| '_/ _` / _|  _|
//  |____\___/|_|\_\___/\___/  |____|_|  /_/\_\___| |_|  |_|_\__, |_| \__,_|\__|_\___/_||_|  \___\___/_||_\__|_| \__,_\__|\__|
//                                                           |___/

// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.17;

// interfaces
import {
    IERC1820Registry
} from "@openzeppelin/contracts/interfaces/IERC1820Registry.sol";
import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
import {
    IERC777Recipient
} from "@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol";

// modules
import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";

contract LUKSOMigrationDepositContract is
    IERC777Recipient,
    IERC165,
    Ownable2Step
{
    // The SenderDepositData struct stores the data of a deposit made by a sender
    struct SenderDepositData {
        address destinationAddress;
        uint96 amount;
        uint256 depositId;
    }

    // The DestinationDepositData struct stores the data of a deposit made to a destination
    struct DestinationDepositData {
        address senderAddress;
        uint96 amount;
        uint256 depositId;
    }

    // The DepositData struct stores the data of a deposit
    struct DepositData {
        address senderAddress;
        address destinationAddress;
        uint96 amount;
    }

    // The address of the LYXe token contract.
    address public constant LYX_TOKEN_CONTRACT_ADDRESS =
        0xA8b919680258d369114910511cc87595aec0be6D;

    // The address of the registry contract (ERC1820 Registry).
    address public constant ERC1820_REGISTRY_ADDRESS =
        0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24;

    // The hash of the interface of the contract that receives tokens.
    bytes32 private constant TOKENS_RECIPIENT_INTERFACE_HASH =
        0xb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b;

    // The deposit id
    uint256 public migrationDepositCount;

    // Determines whether the contract is paused or not. Deposits are disabled and not allowed while the contract is paused.
    bool public paused;

    // The '_senderDeposits' mapping stores an array of depositId for each sender address
    mapping(address => uint256[]) private _senderDeposits;

    // The '_destinationDeposits' mapping stores an array of depositId for each destination address
    mapping(address => uint256[]) private _destinationDeposits;

    // The '_deposits' mapping stores the DepositData struct of a depositId
    mapping(uint256 => DepositData) private _deposits;

    /**
     * @param sender The address of the sender migrating LYXe.
     * @param destinationAddress The address on the LUKSO main network that will receive the equivalent `amount` in LYX.
     * @param amount The amount of LYXe being migrated.
     * @param depositId The unique identifier associated with this particular migration transaction.
     * @param extraData Optional additional data related to the migration transaction.
     */
    event Deposit(
        address indexed sender,
        address indexed destinationAddress,
        uint256 amount,
        uint256 indexed depositId,
        bytes extraData
    );

    // Emits a pause status changed event.
    event PauseStatusChanged(bool newPauseStatus);

    constructor(address owner_) {
        // Set this contract as the implementer of the tokens recipient interface in the registry contract.
        IERC1820Registry(ERC1820_REGISTRY_ADDRESS).setInterfaceImplementer(
            address(this),
            TOKENS_RECIPIENT_INTERFACE_HASH,
            address(this)
        );

        // Set the paused state to false
        paused = false;
        emit PauseStatusChanged(false);

        // Set the owner
        _transferOwnership(owner_);
    }

    /**
     * @dev Whenever this contract receives LYXe tokens, it must be for the reason of
     * migrating LYXe.
     */
    function tokensReceived(
        address /* operator */,
        address sender_,
        address /* to */,
        uint256 amount_,
        bytes calldata depositData_,
        bytes calldata /* operatorData */
    ) external {
        // Check if the caller is the LYXe token contract.
        require(
            msg.sender == LYX_TOKEN_CONTRACT_ADDRESS,
            "LUKSOMigrationDepositContract: Only LYXe can be migrated"
        );

        // Check that we are migrating at least 1 LYXe
        require(
            amount_ >= 1 ether,
            "LUKSOMigrationDepositContract: A minimum of 1 LYXe is required"
        );

        // Check if depositData length is superior to 20
        require(
            depositData_.length >= 20,
            "LUKSOMigrationDepositContract: depositData length must be superior to 20"
        );

        // Check that the contract is not paused.
        require(!paused, "LUKSOMigrationDepositContract: Contract is paused");

        // Check if the deposit amount is not bigger than the maximum uint96 value.
        require(
            amount_ < type(uint96).max,
            "LUKSOMigrationDepositContract: LYXe amount too large"
        );

        uint96 migrationDepositAmount = uint96(amount_);

        address destinationAddress = address(bytes20(depositData_));

        uint256 depositId = migrationDepositCount++;

        // Append the depositId to the sender's deposits array.
        _senderDeposits[sender_].push(depositId);

        // Append the depositId to the destination's deposits array.
        _destinationDeposits[destinationAddress].push(depositId);

        // Store the deposit data
        _deposits[depositId] = DepositData(
            sender_,
            destinationAddress,
            migrationDepositAmount
        );

        // Emit the Deposit event with the sender, the migration address and the amount.
        emit Deposit(
            sender_,
            destinationAddress,
            amount_,
            depositId,
            depositData_[20:]
        );
    }

    /**
     * @dev Only the owner can pause the contract.
     * @param pauseStatus The status of the pause.
     */
    function setPaused(bool pauseStatus) external onlyOwner {
        require(
            paused != pauseStatus,
            "LUKSOMigrationDepositContract: Pause status is already set to this value"
        );
        paused = pauseStatus;

        emit PauseStatusChanged(pauseStatus);
    }

    /**
     * @dev Query the deposits made by a given address.
     *
     * @param senderAddress_ The address of the sender whose deposits should be queried.
     * @return An array representing each SenderDepositData made successively by the `sender_`.
     */
    function getDepositsBySenderAddress(
        address senderAddress_
    ) external view returns (SenderDepositData[] memory) {
        uint256[] memory senderDepositsIds = _senderDeposits[senderAddress_];
        uint256 numberOfDeposits = senderDepositsIds.length;

        SenderDepositData[] memory senderDepositsList = new SenderDepositData[](
            numberOfDeposits
        );

        for (uint256 i = 0; i < numberOfDeposits; i++) {
            uint256 depositId = senderDepositsIds[i];
            DepositData memory deposit = _deposits[depositId];

            senderDepositsList[i] = SenderDepositData(
                deposit.destinationAddress,
                deposit.amount,
                depositId
            );
        }

        return senderDepositsList;
    }

    /**
     * @dev Query the migrations made to a given address.
     *
     * @param destinationAddress_ The address of the destination whose migrations should be queried.
     * @return An array representing each DestinationDepositData made successively to the `destinationAddress_`.
     */
    function getDepositsByDestinationAddress(
        address destinationAddress_
    ) external view returns (DestinationDepositData[] memory) {
        uint256[] memory destinationDepositsIds = _destinationDeposits[
            destinationAddress_
        ];
        uint256 numberOfDeposits = destinationDepositsIds.length;

        DestinationDepositData[]
            memory destinationDepositsList = new DestinationDepositData[](
                numberOfDeposits
            );

        for (uint256 i = 0; i < numberOfDeposits; i++) {
            uint256 depositId = destinationDepositsIds[i];
            DepositData memory deposit = _deposits[depositId];

            destinationDepositsList[i] = DestinationDepositData(
                deposit.senderAddress,
                deposit.amount,
                depositId
            );
        }

        return destinationDepositsList;
    }

    /**
     * @dev Query the deposit data of a given depositId.
     *
     * @param depositId_ The depositId of the deposit to query.
     * @return The DepositData of the deposit.
     */
    function getDeposit(
        uint256 depositId_
    ) external view returns (DepositData memory) {
        return _deposits[depositId_];
    }

    /**
     * @dev Determines whether the contract supports a given interface.
     *
     * @param interfaceId The interface ID to check.
     * @return True if the contract supports the interface, false otherwise.
     */
    function supportsInterface(
        bytes4 interfaceId
    ) external pure override returns (bool) {
        return
            interfaceId == type(IERC165).interfaceId ||
            interfaceId == type(IERC777Recipient).interfaceId;
    }
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 3 of 9 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides 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} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

File 4 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 5 of 9 : IERC1820Registry.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1820Registry.sol)

pragma solidity ^0.8.0;

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

File 6 of 9 : IERC777Recipient.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777Recipient.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC777TokensRecipient standard as defined in the EIP.
 *
 * Accounts can be notified of {IERC777} tokens being sent to them by having a
 * contract implement this interface (contract holders can be their own
 * implementer) and registering it on the
 * https://eips.ethereum.org/EIPS/eip-1820[ERC1820 global registry].
 *
 * See {IERC1820Registry} and {ERC1820Implementer}.
 */
interface IERC777Recipient {
    /**
     * @dev Called by an {IERC777} token contract whenever tokens are being
     * moved or created into a registered account (`to`). The type of operation
     * is conveyed by `from` being the zero address or not.
     *
     * This call occurs _after_ the token contract's state is updated, so
     * {IERC777-balanceOf}, etc., can be used to query the post-operation state.
     *
     * This function may revert to prevent the operation from being executed.
     */
    function tokensReceived(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes calldata userData,
        bytes calldata operatorData
    ) external;
}

File 7 of 9 : 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 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 9 of 9 : IERC1820Registry.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/introspection/IERC1820Registry.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the global ERC1820 Registry, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
 * implementers for interfaces in this registry, as well as query support.
 *
 * Implementers may be shared by multiple accounts, and can also implement more
 * than a single interface for each account. Contracts can implement interfaces
 * for themselves, but externally-owned accounts (EOA) must delegate this to a
 * contract.
 *
 * {IERC165} interfaces can also be queried via the registry.
 *
 * For an in-depth explanation and source code analysis, see the EIP text.
 */
interface IERC1820Registry {
    event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer);

    event ManagerChanged(address indexed account, address indexed newManager);

    /**
     * @dev Sets `newManager` as the manager for `account`. A manager of an
     * account is able to set interface implementers for it.
     *
     * By default, each account is its own manager. Passing a value of `0x0` in
     * `newManager` will reset the manager to this initial state.
     *
     * Emits a {ManagerChanged} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     */
    function setManager(address account, address newManager) external;

    /**
     * @dev Returns the manager for `account`.
     *
     * See {setManager}.
     */
    function getManager(address account) external view returns (address);

    /**
     * @dev Sets the `implementer` contract as ``account``'s implementer for
     * `interfaceHash`.
     *
     * `account` being the zero address is an alias for the caller's address.
     * The zero address can also be used in `implementer` to remove an old one.
     *
     * See {interfaceHash} to learn how these are created.
     *
     * Emits an {InterfaceImplementerSet} event.
     *
     * Requirements:
     *
     * - the caller must be the current manager for `account`.
     * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
     * end in 28 zeroes).
     * - `implementer` must implement {IERC1820Implementer} and return true when
     * queried for support, unless `implementer` is the caller. See
     * {IERC1820Implementer-canImplementInterfaceForAddress}.
     */
    function setInterfaceImplementer(address account, bytes32 _interfaceHash, address implementer) external;

    /**
     * @dev Returns the implementer of `interfaceHash` for `account`. If no such
     * implementer is registered, returns the zero address.
     *
     * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
     * zeroes), `account` will be queried for support of it.
     *
     * `account` being the zero address is an alias for the caller's address.
     */
    function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address);

    /**
     * @dev Returns the interface hash for an `interfaceName`, as defined in the
     * corresponding
     * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
     */
    function interfaceHash(string calldata interfaceName) external pure returns (bytes32);

    /**
     * @notice Updates the cache with whether the contract implements an ERC165 interface or not.
     * @param account Address of the contract for which to update the cache.
     * @param interfaceId ERC165 interface for which to update the cache.
     */
    function updateERC165Cache(address account, bytes4 interfaceId) external;

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not.
     * If the result is not cached a direct lookup on the contract address is performed.
     * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling
     * {updateERC165Cache} with the contract address.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool);

    /**
     * @notice Checks whether a contract implements an ERC165 interface or not without using or updating the cache.
     * @param account Address of the contract to check.
     * @param interfaceId ERC165 interface to check.
     * @return True if `account` implements `interfaceId`, false otherwise.
     */
    function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"destinationAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"depositId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newPauseStatus","type":"bool"}],"name":"PauseStatusChanged","type":"event"},{"inputs":[],"name":"ERC1820_REGISTRY_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LYX_TOKEN_CONTRACT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId_","type":"uint256"}],"name":"getDeposit","outputs":[{"components":[{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"address","name":"destinationAddress","type":"address"},{"internalType":"uint96","name":"amount","type":"uint96"}],"internalType":"struct LUKSOMigrationDepositContract.DepositData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destinationAddress_","type":"address"}],"name":"getDepositsByDestinationAddress","outputs":[{"components":[{"internalType":"address","name":"senderAddress","type":"address"},{"internalType":"uint96","name":"amount","type":"uint96"},{"internalType":"uint256","name":"depositId","type":"uint256"}],"internalType":"struct LUKSOMigrationDepositContract.DestinationDepositData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"senderAddress_","type":"address"}],"name":"getDepositsBySenderAddress","outputs":[{"components":[{"internalType":"address","name":"destinationAddress","type":"address"},{"internalType":"uint96","name":"amount","type":"uint96"},{"internalType":"uint256","name":"depositId","type":"uint256"}],"internalType":"struct LUKSOMigrationDepositContract.SenderDepositData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrationDepositCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"pauseStatus","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"sender_","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"bytes","name":"depositData_","type":"bytes"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"tokensReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620012263803806200122683398101604081905262000034916200019c565b6200003f3362000122565b6040516329965a1d60e01b815230600482018190527fb281fc8c12954d22544db45de3159a39272895b169a852b314f9cc762e44c53b60248301526044820152731820a4b7618bde71dce8cdc73aab6c95905fad24906329965a1d90606401600060405180830381600087803b158015620000b957600080fd5b505af1158015620000ce573d6000803e3d6000fd5b50506003805460ff191690555050604051600081527fef37df9624f797913e7585c7f7b5d004ba6704be3c64b0561c157728ccc869859060200160405180910390a16200011b8162000122565b50620001ce565b600180546001600160a01b031916905562000149816200014c602090811b62000bf417901c565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620001af57600080fd5b81516001600160a01b0381168114620001c757600080fd5b9392505050565b61104880620001de6000396000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c8063715018a6116100975780639ea2b0a8116100665780639ea2b0a8146102055780639f9fb9681461021c578063e30c3978146102c9578063f2fde38b146102da57600080fd5b8063715018a6146101c457806379ba5097146101cc5780638da5cb5b146101d457806397079fde146101e557600080fd5b806316c38b3c116100d357806316c38b3c1461015657806327db25d5146101695780633c9fc5f71461019c5780635c975abb146101b757600080fd5b806223de29146100f957806301ffc9a71461010e57806304e2eaa014610136575b600080fd5b61010c610107366004610d1c565b6102ed565b005b61012161011c366004610dc7565b61068c565b60405190151581526020015b60405180910390f35b610149610144366004610df8565b6106c2565b60405161012d9190610e13565b61010c610164366004610e87565b61086f565b61018473a8b919680258d369114910511cc87595aec0be6d81565b6040516001600160a01b03909116815260200161012d565b610184731820a4b7618bde71dce8cdc73aab6c95905fad2481565b6003546101219060ff1681565b61010c61094f565b61010c610963565b6000546001600160a01b0316610184565b6101f86101f3366004610df8565b6109dd565b60405161012d9190610ea9565b61020e60025481565b60405190815260200161012d565b61029061022a366004610f11565b60408051606080820183526000808352602080840182905292840181905293845260068252928290208251938401835280546001600160a01b03908116855260019091015490811691840191909152600160a01b90046001600160601b03169082015290565b6040805182516001600160a01b03908116825260208085015190911690820152918101516001600160601b03169082015260600161012d565b6001546001600160a01b0316610184565b61010c6102e8366004610df8565b610b83565b3373a8b919680258d369114910511cc87595aec0be6d1461037b5760405162461bcd60e51b815260206004820152603860248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a204f60448201527f6e6c79204c5958652063616e206265206d69677261746564000000000000000060648201526084015b60405180910390fd5b670de0b6b3a76400008510156103f95760405162461bcd60e51b815260206004820152603e60248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a204160448201527f206d696e696d756d206f662031204c59586520697320726571756972656400006064820152608401610372565b60148310156104815760405162461bcd60e51b815260206004820152604860248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a206460448201527f65706f73697444617461206c656e677468206d7573742062652073757065726960648201526706f7220746f2032360c41b608482015260a401610372565b60035460ff16156104ee5760405162461bcd60e51b815260206004820152603160248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a20436044820152701bdb9d1c9858dd081a5cc81c185d5cd959607a1b6064820152608401610372565b6001600160601b0385106105615760405162461bcd60e51b815260206004820152603460248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a204c60448201527359586520616d6f756e7420746f6f206c6172676560601b6064820152608401610372565b84600061056e8587610f2a565b60601c905060006002600081548092919061058890610f5f565b909155506001600160a01b038b811660008181526004602090815260408083208054600180820183559185528385200187905588861680855260058452828520805480840182559086528486200188905582516060810184528681528085018281526001600160601b038d81168387019081528b8952600690975294909620905181546001600160a01b0319169089161781559451935193909616600160a01b93909216929092021791015591925082917f99d353966fe3c3445ee3f115b9ce5bc579b0e19a76b2484f79ae9d42e45fe4ce8b6106688b6014818f610f86565b60405161067793929190610fb0565b60405180910390a45050505050505050505050565b60006001600160e01b031982166301ffc9a760e01b14806106bc57506001600160e01b031982166223de2960e01b145b92915050565b6001600160a01b038116600090815260056020908152604080832080548251818502810185019093528083526060949383018282801561072157602002820191906000526020600020905b81548152602001906001019080831161070d575b5050505050905060008151905060008167ffffffffffffffff81111561074957610749610fe6565b60405190808252806020026020018201604052801561079457816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816107675790505b50905060005b828110156108665760008482815181106107b6576107b6610ffc565b60209081029190910181015160008181526006835260409081902081516060808201845282546001600160a01b039081168352600190930154808416838801526001600160601b03600160a01b9091048116838601908152855192830186528351909416825292519092169482019490945290810182905285519193509085908590811061084657610846610ffc565b60200260200101819052505050808061085e90610f5f565b91505061079a565b50949350505050565b610877610c44565b60035481151560ff9091161515036109085760405162461bcd60e51b815260206004820152604860248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a205060448201527f617573652073746174757320697320616c72656164792073657420746f20746860648201526769732076616c756560c01b608482015260a401610372565b6003805460ff19168215159081179091556040519081527fef37df9624f797913e7585c7f7b5d004ba6704be3c64b0561c157728ccc869859060200160405180910390a150565b610957610c44565b6109616000610c9e565b565b60015433906001600160a01b031681146109d15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608401610372565b6109da81610c9e565b50565b6001600160a01b0381166000908152600460209081526040808320805482518185028101850190935280835260609493830182828015610a3c57602002820191906000526020600020905b815481526020019060010190808311610a28575b5050505050905060008151905060008167ffffffffffffffff811115610a6457610a64610fe6565b604051908082528060200260200182016040528015610aaf57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610a825790505b50905060005b82811015610866576000848281518110610ad157610ad1610ffc565b60209081029190910181015160008181526006835260409081902081516060808201845282546001600160a01b0390811683526001909301548084168388019081526001600160601b03600160a01b90920482168487019081528651938401875290519094168252925190921694820194909452908101829052855191935090859085908110610b6357610b63610ffc565b602002602001018190525050508080610b7b90610f5f565b915050610ab5565b610b8b610c44565b600180546001600160a01b0383166001600160a01b03199091168117909155610bbc6000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146109615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610372565b600180546001600160a01b03191690556109da81610bf4565b80356001600160a01b0381168114610cce57600080fd5b919050565b60008083601f840112610ce557600080fd5b50813567ffffffffffffffff811115610cfd57600080fd5b602083019150836020828501011115610d1557600080fd5b9250929050565b60008060008060008060008060c0898b031215610d3857600080fd5b610d4189610cb7565b9750610d4f60208a01610cb7565b9650610d5d60408a01610cb7565b955060608901359450608089013567ffffffffffffffff80821115610d8157600080fd5b610d8d8c838d01610cd3565b909650945060a08b0135915080821115610da657600080fd5b50610db38b828c01610cd3565b999c989b5096995094979396929594505050565b600060208284031215610dd957600080fd5b81356001600160e01b031981168114610df157600080fd5b9392505050565b600060208284031215610e0a57600080fd5b610df182610cb7565b6020808252825182820181905260009190848201906040850190845b81811015610e7b57610e6883855180516001600160a01b031682526020808201516001600160601b031690830152604090810151910152565b9284019260609290920191600101610e2f565b50909695505050505050565b600060208284031215610e9957600080fd5b81358015158114610df157600080fd5b6020808252825182820181905260009190848201906040850190845b81811015610e7b57610efe83855180516001600160a01b031682526020808201516001600160601b031690830152604090810151910152565b9284019260609290920191600101610ec5565b600060208284031215610f2357600080fd5b5035919050565b6bffffffffffffffffffffffff198135818116916014851015610f575780818660140360031b1b83161692505b505092915050565b600060018201610f7f57634e487b7160e01b600052601160045260246000fd5b5060010190565b60008085851115610f9657600080fd5b83861115610fa357600080fd5b5050820193919092039150565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a26c12792cd932814daaec1f7660881234aa606378892b3129b2ae0ce40f562264736f6c63430008110033000000000000000000000000116a3afef5fb69256bd24ee13752f7654aaa933a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f45760003560e01c8063715018a6116100975780639ea2b0a8116100665780639ea2b0a8146102055780639f9fb9681461021c578063e30c3978146102c9578063f2fde38b146102da57600080fd5b8063715018a6146101c457806379ba5097146101cc5780638da5cb5b146101d457806397079fde146101e557600080fd5b806316c38b3c116100d357806316c38b3c1461015657806327db25d5146101695780633c9fc5f71461019c5780635c975abb146101b757600080fd5b806223de29146100f957806301ffc9a71461010e57806304e2eaa014610136575b600080fd5b61010c610107366004610d1c565b6102ed565b005b61012161011c366004610dc7565b61068c565b60405190151581526020015b60405180910390f35b610149610144366004610df8565b6106c2565b60405161012d9190610e13565b61010c610164366004610e87565b61086f565b61018473a8b919680258d369114910511cc87595aec0be6d81565b6040516001600160a01b03909116815260200161012d565b610184731820a4b7618bde71dce8cdc73aab6c95905fad2481565b6003546101219060ff1681565b61010c61094f565b61010c610963565b6000546001600160a01b0316610184565b6101f86101f3366004610df8565b6109dd565b60405161012d9190610ea9565b61020e60025481565b60405190815260200161012d565b61029061022a366004610f11565b60408051606080820183526000808352602080840182905292840181905293845260068252928290208251938401835280546001600160a01b03908116855260019091015490811691840191909152600160a01b90046001600160601b03169082015290565b6040805182516001600160a01b03908116825260208085015190911690820152918101516001600160601b03169082015260600161012d565b6001546001600160a01b0316610184565b61010c6102e8366004610df8565b610b83565b3373a8b919680258d369114910511cc87595aec0be6d1461037b5760405162461bcd60e51b815260206004820152603860248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a204f60448201527f6e6c79204c5958652063616e206265206d69677261746564000000000000000060648201526084015b60405180910390fd5b670de0b6b3a76400008510156103f95760405162461bcd60e51b815260206004820152603e60248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a204160448201527f206d696e696d756d206f662031204c59586520697320726571756972656400006064820152608401610372565b60148310156104815760405162461bcd60e51b815260206004820152604860248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a206460448201527f65706f73697444617461206c656e677468206d7573742062652073757065726960648201526706f7220746f2032360c41b608482015260a401610372565b60035460ff16156104ee5760405162461bcd60e51b815260206004820152603160248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a20436044820152701bdb9d1c9858dd081a5cc81c185d5cd959607a1b6064820152608401610372565b6001600160601b0385106105615760405162461bcd60e51b815260206004820152603460248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a204c60448201527359586520616d6f756e7420746f6f206c6172676560601b6064820152608401610372565b84600061056e8587610f2a565b60601c905060006002600081548092919061058890610f5f565b909155506001600160a01b038b811660008181526004602090815260408083208054600180820183559185528385200187905588861680855260058452828520805480840182559086528486200188905582516060810184528681528085018281526001600160601b038d81168387019081528b8952600690975294909620905181546001600160a01b0319169089161781559451935193909616600160a01b93909216929092021791015591925082917f99d353966fe3c3445ee3f115b9ce5bc579b0e19a76b2484f79ae9d42e45fe4ce8b6106688b6014818f610f86565b60405161067793929190610fb0565b60405180910390a45050505050505050505050565b60006001600160e01b031982166301ffc9a760e01b14806106bc57506001600160e01b031982166223de2960e01b145b92915050565b6001600160a01b038116600090815260056020908152604080832080548251818502810185019093528083526060949383018282801561072157602002820191906000526020600020905b81548152602001906001019080831161070d575b5050505050905060008151905060008167ffffffffffffffff81111561074957610749610fe6565b60405190808252806020026020018201604052801561079457816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816107675790505b50905060005b828110156108665760008482815181106107b6576107b6610ffc565b60209081029190910181015160008181526006835260409081902081516060808201845282546001600160a01b039081168352600190930154808416838801526001600160601b03600160a01b9091048116838601908152855192830186528351909416825292519092169482019490945290810182905285519193509085908590811061084657610846610ffc565b60200260200101819052505050808061085e90610f5f565b91505061079a565b50949350505050565b610877610c44565b60035481151560ff9091161515036109085760405162461bcd60e51b815260206004820152604860248201527f4c554b534f4d6967726174696f6e4465706f736974436f6e74726163743a205060448201527f617573652073746174757320697320616c72656164792073657420746f20746860648201526769732076616c756560c01b608482015260a401610372565b6003805460ff19168215159081179091556040519081527fef37df9624f797913e7585c7f7b5d004ba6704be3c64b0561c157728ccc869859060200160405180910390a150565b610957610c44565b6109616000610c9e565b565b60015433906001600160a01b031681146109d15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b6064820152608401610372565b6109da81610c9e565b50565b6001600160a01b0381166000908152600460209081526040808320805482518185028101850190935280835260609493830182828015610a3c57602002820191906000526020600020905b815481526020019060010190808311610a28575b5050505050905060008151905060008167ffffffffffffffff811115610a6457610a64610fe6565b604051908082528060200260200182016040528015610aaf57816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610a825790505b50905060005b82811015610866576000848281518110610ad157610ad1610ffc565b60209081029190910181015160008181526006835260409081902081516060808201845282546001600160a01b0390811683526001909301548084168388019081526001600160601b03600160a01b90920482168487019081528651938401875290519094168252925190921694820194909452908101829052855191935090859085908110610b6357610b63610ffc565b602002602001018190525050508080610b7b90610f5f565b915050610ab5565b610b8b610c44565b600180546001600160a01b0383166001600160a01b03199091168117909155610bbc6000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146109615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610372565b600180546001600160a01b03191690556109da81610bf4565b80356001600160a01b0381168114610cce57600080fd5b919050565b60008083601f840112610ce557600080fd5b50813567ffffffffffffffff811115610cfd57600080fd5b602083019150836020828501011115610d1557600080fd5b9250929050565b60008060008060008060008060c0898b031215610d3857600080fd5b610d4189610cb7565b9750610d4f60208a01610cb7565b9650610d5d60408a01610cb7565b955060608901359450608089013567ffffffffffffffff80821115610d8157600080fd5b610d8d8c838d01610cd3565b909650945060a08b0135915080821115610da657600080fd5b50610db38b828c01610cd3565b999c989b5096995094979396929594505050565b600060208284031215610dd957600080fd5b81356001600160e01b031981168114610df157600080fd5b9392505050565b600060208284031215610e0a57600080fd5b610df182610cb7565b6020808252825182820181905260009190848201906040850190845b81811015610e7b57610e6883855180516001600160a01b031682526020808201516001600160601b031690830152604090810151910152565b9284019260609290920191600101610e2f565b50909695505050505050565b600060208284031215610e9957600080fd5b81358015158114610df157600080fd5b6020808252825182820181905260009190848201906040850190845b81811015610e7b57610efe83855180516001600160a01b031682526020808201516001600160601b031690830152604090810151910152565b9284019260609290920191600101610ec5565b600060208284031215610f2357600080fd5b5035919050565b6bffffffffffffffffffffffff198135818116916014851015610f575780818660140360031b1b83161692505b505092915050565b600060018201610f7f57634e487b7160e01b600052601160045260246000fd5b5060010190565b60008085851115610f9657600080fd5b83861115610fa357600080fd5b5050820193919092039150565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220a26c12792cd932814daaec1f7660881234aa606378892b3129b2ae0ce40f562264736f6c63430008110033

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

000000000000000000000000116a3afef5fb69256bd24ee13752f7654aaa933a

-----Decoded View---------------
Arg [0] : owner_ (address): 0x116a3aFEf5fB69256Bd24ee13752f7654aaa933a

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000116a3afef5fb69256bd24ee13752f7654aaa933a


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

This address is used to bridge LYXe, to LYX on the LUKSO Blockchain.

Validator Index Block Amount
View All Withdrawals

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

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