ETH Price: $3,105.48 (+1.08%)
Gas: 7 Gwei

Contract

0xD2d23E884b19E3C76dA3607B201BebDcE78F16C8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Value
Set Bridge178827962023-08-10 6:46:47335 days ago1691650007IN
0xD2d23E88...cE78F16C8
0 ETH0.0006474814.03725118
0x60806040178827202023-08-10 6:31:23335 days ago1691649083IN
 Create: SpaceVault
0 ETH0.0314595214.39218875

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
179170202023-08-15 1:39:11330 days ago1692063551
0xD2d23E88...cE78F16C8
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SpaceVault

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : SpaceVault.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 TrinityLabDAO

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
pragma solidity 0.8.7;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./libraries/WrapedTokenDeployer.sol";
import "./interfaces/IVault.sol";
import "./security/OnlyGovernance.sol";
import "./security/OnlyBridge.sol";


/**
 * @title Space Vault
 */
contract SpaceVault is  IVault,
                        WrapedTokenDeployer,
                        ReentrancyGuard,
                        OnlyGovernance, 
                        OnlyBridge
{
    using SafeERC20 for IERC20;

    event Deposit(
        address indexed token,
        address indexed sender,
        uint256 amount
    );

    event Burn(
        address indexed token,
        address indexed sender,
        uint256 amount
    );

    event Withdraw(
        address indexed sender,
        address indexed token,
        address indexed to,
        uint256 amount
    );

    event Mint(
        address token_address,
        address dst_address,
        uint256 amount
    );

    address public bridge;
    
    function deposit(
        address token,
        address from,
        uint256 amount
    ) nonReentrant onlyBridge external override {
        IERC20(token).safeTransferFrom(from, address(this), amount);
        emit Deposit(from, token, amount);
    }

    function withdraw(
        address token,
        address to,
        uint256 amount
    ) nonReentrant onlyBridge external override {
        require(IERC20(token).balanceOf(address(this)) > amount, "Vault token balance to low");
        IERC20(token).safeTransfer(to, amount);
        emit Withdraw(msg.sender, token, to, amount);
    }

    function deploy(
        string memory name,
        string memory symbol,
        uint256 origin,
        bytes memory origin_hash,
        uint8 origin_decimals
    ) nonReentrant onlyBridge external override returns(address){
        return _deploy(name, symbol, origin, origin_hash, origin_decimals);
    }

    function mint(
        address token_address,
        address to,
        uint256 amount
    ) nonReentrant onlyBridge external override {
        WrapedToken(token_address).mint(to, amount);
        emit Mint(token_address, to, amount);
    }

    function burn(
        address token,
        address from,
        uint256 amount
    ) nonReentrant onlyBridge external override {
        ERC20Burnable(token).burnFrom(from, amount); 
        emit Burn(from, token, amount);
    }

    function tokenTransferOwnership(address token, address new_vault) nonReentrant onlyGovernance external {
        WrapedToken(token).transferOwnership(new_vault);
    }

    /**
     * @notice Balance of token in vault.
     */
    function getBalance(IERC20 token) external view returns (uint256) {
        return token.balanceOf(address(this));
    }

    /**
     * @notice Removes tokens accidentally sent to this vault.
     */
    function sweep(
        address token,
        uint256 amount,
        address to
    ) onlyGovernance external {
        IERC20(token).safeTransfer(to, amount);
    }
}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 17 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 5 of 17 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 6 of 17 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 7 of 17 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 8 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 9 of 17 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 10 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 17 : 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 12 of 17 : IVault.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.7;

interface IVault {
    function deposit(
        address,
        address,
        uint256
    ) external;

    function withdraw(
        address,
        address,
        uint256
    ) external;

    function deploy(
        string memory name,
        string memory symbol,
        uint256 origin,
        bytes memory origin_hash,
        uint8 origin_decimals
    ) external returns(address);

    function mint(
        address token_address,
        address to,
        uint256 amount
    ) external;

    function burn(
        address,
        address,
        uint256
    ) external;

}

File 13 of 17 : IWrapedTokenDeployer.sol
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.5.0;

/// @title An interface for a contract that is capable of deploying Uniswap V3 Pools
/// @notice A contract that constructs a pool must implement this to pass arguments to the pool
/// @dev This is used to avoid having constructor arguments in the pool contract, which results in the init code hash
/// of the pool being constant allowing the CREATE2 address of the pool to be cheaply computed on-chain
interface IWrapedTokenDeployer {
    /// @notice Get the parameters to be used in constructing the pool, set transiently during pool creation.
    /// Returns name
    /// Returns symbol
    /// Returns decimals
    function parameters()
        external
        returns (
            uint256 origin,
            bytes memory origin_hash,
            uint8 origin_decimals
        );
}

File 14 of 17 : WrapedToken.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 TrinityLabDAO
pragma solidity 0.8.7;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IWrapedTokenDeployer.sol";

contract WrapedToken is ERC20, ERC20Burnable, Ownable {

    uint256 public origin;
    bytes public origin_hash;
    uint8 immutable _decimals;

    constructor(string memory name, string memory symbol) ERC20(name, symbol){
        (uint256 origin_,  bytes memory origin_hash_, uint8 origin_decimals) = IWrapedTokenDeployer(msg.sender).parameters();
        origin = origin_;
        origin_hash = origin_hash_;
        _decimals = origin_decimals;
    }

    function decimals() public view virtual override returns (uint8){
        return _decimals;
    }

    function mint(address to, uint256 amount) external onlyOwner {
        _mint(to, amount);
    }
}

File 15 of 17 : WrapedTokenDeployer.sol
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.6;

import "../interfaces/IWrapedTokenDeployer.sol";
import "./WrapedToken.sol";

contract WrapedTokenDeployer is IWrapedTokenDeployer {
    struct Parameters {
        uint256 origin;
        bytes origin_hash;
        uint8 origin_decimals;
    }

    /// @inheritdoc IWrapedTokenDeployer
    Parameters public override parameters;

    /// @dev Deploys a pool with the given parameters by transiently setting the parameters storage slot and then
    /// clearing it after deploying the pool.
    /// @param name token name
    /// @param symbol token symbol
    /// @param origin chain ID
    /// @param origin_hash hash in origin chain
    function _deploy(
        string memory name,
        string memory symbol,
        uint256 origin,
        bytes memory origin_hash,
        uint8 origin_decimals
    ) internal returns (address token) {
        parameters = Parameters({origin: origin, origin_hash: origin_hash, origin_decimals: origin_decimals});
        token = address(new WrapedToken{salt: keccak256(abi.encode(origin, origin_hash, origin_decimals))}(name, symbol));
        delete parameters;
    }
}

File 16 of 17 : OnlyBridge.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./OnlyGovernance.sol";

abstract contract OnlyBridge is OnlyGovernance {

    address private bridge;

    function getBridge() public view returns(address){
        return bridge;
    }
    /**
     * @notice Used to set the bridge contract that determines the position
     * ranges and calls rebalance(). Must be called after this vault is
     * deployed.
     */
    function setBridge(address _bridge) external onlyGovernance {
        bridge = _bridge;
    }

    modifier onlyBridge {
        require(msg.sender == bridge, "bridge");
        _;
    }
}

File 17 of 17 : OnlyGovernance.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

abstract contract OnlyGovernance {

    address private governance;
    address private pendingGovernance;

    constructor() {
        governance = msg.sender;
    }

    function getGovernance() public view returns(address){
        return governance;
    }

    function getPendingGovernance() public view returns(address){
        return pendingGovernance;
    }

    /**
     * @notice Governance address is not updated until the new governance
     * address has called `acceptGovernance()` to accept this responsibility.
     */
    function setGovernance(address _governance) external onlyGovernance {
        pendingGovernance = _governance;
    }

    /**
     * @notice `setGovernance()` should be called by the existing governance
     * address prior to calling this function.
     */
    function acceptGovernance() external {
        require(msg.sender == pendingGovernance, "pendingGovernance");
        governance = msg.sender;
    }

    modifier onlyGovernance {
        require(msg.sender == governance, "governance");
        _;
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token_address","type":"address"},{"indexed":false,"internalType":"address","name":"dst_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"origin","type":"uint256"},{"internalType":"bytes","name":"origin_hash","type":"bytes"},{"internalType":"uint8","name":"origin_decimals","type":"uint8"}],"name":"deploy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token_address","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"parameters","outputs":[{"internalType":"uint256","name":"origin","type":"uint256"},{"internalType":"bytes","name":"origin_hash","type":"bytes"},{"internalType":"uint8","name":"origin_decimals","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"new_vault","type":"address"}],"name":"tokenTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506001600355600480546001600160a01b031916331790556125d8806100376000396000f3fe60806040523480156200001157600080fd5b5060043610620001155760003560e01c8063ab033ea911620000a3578063ded65e06116200006e578063ded65e061462000230578063e78cea921462000247578063f6b911bc146200025b578063f8b2cb4f146200027257600080fd5b8063ab033ea914620001d4578063c6c3bbe614620001eb578063d9caed121462000202578063dc2c256f146200021957600080fd5b80633bc3f9ea11620000e45780633bc3f9ea14620001795780638340f549146200018b5780638903573014620001a25780638dd1480214620001bd57600080fd5b80630fffbaf3146200011a578063238efcbc146200014457806324b4793c1462000150578063289b3c0d1462000167575b600080fd5b6006546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6200014e62000298565b005b6200014e6200016136600462001047565b62000300565b6004546001600160a01b031662000127565b6005546001600160a01b031662000127565b6200014e6200019c36600462001085565b620003a3565b620001ac6200044f565b6040516200013b93929190620012e2565b6200014e620001ce36600462001027565b620004f7565b6200014e620001e536600462001027565b62000546565b6200014e620001fc36600462001085565b62000595565b6200014e6200021336600462001085565b62000687565b6200014e6200022a366004620010cb565b62000803565b620001276200024136600462001136565b62000846565b60075462000127906001600160a01b031681565b6200014e6200026c36600462001085565b620008a4565b620002896200028336600462001027565b62000985565b6040519081526020016200013b565b6005546001600160a01b03163314620002ec5760405162461bcd60e51b815260206004820152601160248201527070656e64696e67476f7665726e616e636560781b60448201526064015b60405180910390fd5b600480546001600160a01b03191633179055565b6200030a62000a09565b6004546001600160a01b03163314620003375760405162461bcd60e51b8152600401620002e390620012be565b60405163f2fde38b60e01b81526001600160a01b03828116600483015283169063f2fde38b90602401600060405180830381600087803b1580156200037b57600080fd5b505af115801562000390573d6000803e3d6000fd5b505050506200039f6001600355565b5050565b620003ad62000a09565b6006546001600160a01b03163314620003da5760405162461bcd60e51b8152600401620002e3906200129e565b620003f16001600160a01b03841683308462000a65565b826001600160a01b0316826001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62836040516200043791815260200190565b60405180910390a36200044a6001600355565b505050565b600080546001805491929162000465906200133f565b80601f016020809104026020016040519081016040528092919081815260200182805462000493906200133f565b8015620004e45780601f10620004b857610100808354040283529160200191620004e4565b820191906000526020600020905b815481529060010190602001808311620004c657829003601f168201915b5050506002909301549192505060ff1683565b6004546001600160a01b03163314620005245760405162461bcd60e51b8152600401620002e390620012be565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314620005735760405162461bcd60e51b8152600401620002e390620012be565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6200059f62000a09565b6006546001600160a01b03163314620005cc5760405162461bcd60e51b8152600401620002e3906200129e565b6040516340c10f1960e01b81526001600160a01b038381166004830152602482018390528416906340c10f1990604401600060405180830381600087803b1580156200061757600080fd5b505af11580156200062c573d6000803e3d6000fd5b5050604080516001600160a01b038088168252861660208201529081018490527fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89250606001905060405180910390a16200044a6001600355565b6200069162000a09565b6006546001600160a01b03163314620006be5760405162461bcd60e51b8152600401620002e3906200129e565b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a082319060240160206040518083038186803b1580156200070057600080fd5b505afa15801562000715573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200073b9190620011fa565b116200078a5760405162461bcd60e51b815260206004820152601a60248201527f5661756c7420746f6b656e2062616c616e636520746f206c6f770000000000006044820152606401620002e3565b620007a06001600160a01b038416838362000ad8565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f784604051620007f091815260200190565b60405180910390a46200044a6001600355565b6004546001600160a01b03163314620008305760405162461bcd60e51b8152600401620002e390620012be565b6200044a6001600160a01b038416828462000ad8565b60006200085262000a09565b6006546001600160a01b031633146200087f5760405162461bcd60e51b8152600401620002e3906200129e565b6200088e868686868662000b0a565b90506200089b6001600355565b95945050505050565b620008ae62000a09565b6006546001600160a01b03163314620008db5760405162461bcd60e51b8152600401620002e3906200129e565b60405163079cc67960e41b81526001600160a01b038381166004830152602482018390528416906379cc679090604401600060405180830381600087803b1580156200092657600080fd5b505af11580156200093b573d6000803e3d6000fd5b50505050826001600160a01b0316826001600160a01b03167fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453836040516200043791815260200190565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015620009c857600080fd5b505afa158015620009dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a039190620011fa565b92915050565b6002600354141562000a5e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401620002e3565b6002600355565b6040516001600160a01b038085166024830152831660448201526064810182905262000ad29085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262000bfa565b50505050565b6040516001600160a01b0383166024820152604481018290526200044a90849063a9059cbb60e01b9060640162000a9a565b60408051606081018252848152602080820185905260ff841692820192909252600085815584519092839162000b47916001919088019062000e73565b50604091820151600291909101805460ff191660ff9092169190911790555162000b7a90859085908590602001620012e2565b60405160208183030381529060405280519060200120868660405162000ba09062000f02565b62000bad92919062001275565b8190604051809103906000f590508015801562000bce573d6000803e3d6000fd5b5060008080559091508062000be560018262000f10565b50600201805460ff1916905595945050505050565b600062000c51826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000cd39092919063ffffffff16565b8051909150156200044a578080602001905181019062000c72919062001112565b6200044a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620002e3565b606062000ce4848460008562000cec565b949350505050565b60608247101562000d4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620002e3565b600080866001600160a01b0316858760405162000d6d919062001242565b60006040518083038185875af1925050503d806000811462000dac576040519150601f19603f3d011682016040523d82523d6000602084013e62000db1565b606091505b509150915062000dc48783838762000dcf565b979650505050505050565b6060831562000e4057825162000e38576001600160a01b0385163b62000e385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620002e3565b508162000ce4565b62000ce4838381511562000e575781518083602001fd5b8060405162461bcd60e51b8152600401620002e3919062001260565b82805462000e81906200133f565b90600052602060002090601f01602090048101928262000ea5576000855562000ef0565b82601f1062000ec057805160ff191683800117855562000ef0565b8280016001018555821562000ef0579182015b8281111562000ef057825182559160200191906001019062000ed3565b5062000efe92915062000f52565b5090565b6111fa80620013a983390190565b50805462000f1e906200133f565b6000825580601f1062000f2f575050565b601f01602090049060005260206000209081019062000f4f919062000f52565b50565b5b8082111562000efe576000815560010162000f53565b600067ffffffffffffffff8084111562000f875762000f876200137c565b604051601f8501601f19908116603f0116810190828211818310171562000fb25762000fb26200137c565b8160405280935085815286868601111562000fcc57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011262000ff857600080fd5b620010098383356020850162000f69565b9392505050565b803560ff811681146200102257600080fd5b919050565b6000602082840312156200103a57600080fd5b8135620010098162001392565b600080604083850312156200105b57600080fd5b8235620010688162001392565b915060208301356200107a8162001392565b809150509250929050565b6000806000606084860312156200109b57600080fd5b8335620010a88162001392565b92506020840135620010ba8162001392565b929592945050506040919091013590565b600080600060608486031215620010e157600080fd5b8335620010ee8162001392565b9250602084013591506040840135620011078162001392565b809150509250925092565b6000602082840312156200112557600080fd5b815180151581146200100957600080fd5b600080600080600060a086880312156200114f57600080fd5b853567ffffffffffffffff808211156200116857600080fd5b6200117689838a0162000fe6565b965060208801359150808211156200118d57600080fd5b6200119b89838a0162000fe6565b9550604088013594506060880135915080821115620011b957600080fd5b508601601f81018813620011cc57600080fd5b620011dd8882356020840162000f69565b925050620011ee6080870162001010565b90509295509295909350565b6000602082840312156200120d57600080fd5b5051919050565b600081518084526200122e81602086016020860162001310565b601f01601f19169290920160200192915050565b600082516200125681846020870162001310565b9190910192915050565b60208152600062001009602083018462001214565b6040815260006200128a604083018562001214565b82810360208401526200089b818562001214565b60208082526006908201526562726964676560d01b604082015260600190565b6020808252600a9082015269676f7665726e616e636560b01b604082015260600190565b838152606060208201526000620012fd606083018562001214565b905060ff83166040830152949350505050565b60005b838110156200132d57818101518382015260200162001313565b8381111562000ad25750506000910152565b600181811c908216806200135457607f821691505b602082108114156200137657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811462000f4f57600080fdfe60a06040523480156200001157600080fd5b50604051620011fa380380620011fa833981016040819052620000349162000320565b8151829082906200004d906003906020850190620001ac565b50805162000063906004906020840190620001ac565b505050620000806200007a6200015660201b60201c565b6200015a565b6000806000336001600160a01b031663890357306040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620000c157600080fd5b505af1158015620000d6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200010091908101906200038a565b60068390558151929550909350915062000122906007906020850190620001ac565b5060f81b7fff0000000000000000000000000000000000000000000000000000000000000016608052506200045892505050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ba9062000405565b90600052602060002090601f016020900481019282620001de576000855562000229565b82601f10620001f957805160ff191683800117855562000229565b8280016001018555821562000229579182015b82811115620002295782518255916020019190600101906200020c565b50620002379291506200023b565b5090565b5b808211156200023757600081556001016200023c565b60006001600160401b03808411156200026f576200026f62000442565b604051601f8501601f19908116603f011681019082821181831017156200029a576200029a62000442565b81604052809350858152868686011115620002b457600080fd5b600092505b85831015620002d9578285015160208483010152602083019250620002b9565b85831115620002ec576000602087830101525b5050509392505050565b600082601f8301126200030857600080fd5b620003198383516020850162000252565b9392505050565b600080604083850312156200033457600080fd5b82516001600160401b03808211156200034c57600080fd5b6200035a86838701620002f6565b935060208501519150808211156200037157600080fd5b506200038085828601620002f6565b9150509250929050565b600080600060608486031215620003a057600080fd5b835160208501519093506001600160401b03811115620003bf57600080fd5b8401601f81018613620003d157600080fd5b620003e28682516020840162000252565b925050604084015160ff81168114620003fa57600080fd5b809150509250925092565b600181811c908216806200041a57607f821691505b602082108114156200043c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160f81c610d8362000477600039600061019b0152610d836000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad57806395d89b411161007157806395d89b4114610268578063a457c2d714610270578063a9059cbb14610283578063dd62ed3e14610296578063f2fde38b146102a957600080fd5b806370a0823114610200578063715018a61461022957806379cc6790146102315780638da5cb5b14610244578063938b5f321461025f57600080fd5b80632a465167116100f45780632a4651671461018c578063313ce5671461019457806339509351146101c557806340c10f19146101d857806342966c68146101ed57600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016757806323b872dd14610179575b600080fd5b61012e6102bc565b60405161013b9190610cd9565b60405180910390f35b610157610152366004610c49565b61034e565b604051901515815260200161013b565b6002545b60405190815260200161013b565b610157610187366004610c0d565b610366565b61012e61038a565b60405160ff7f000000000000000000000000000000000000000000000000000000000000000016815260200161013b565b6101576101d3366004610c49565b610418565b6101eb6101e6366004610c49565b61043a565b005b6101eb6101fb366004610c73565b610450565b61016b61020e366004610bb8565b6001600160a01b031660009081526020819052604090205490565b6101eb61045d565b6101eb61023f366004610c49565b610471565b6005546040516001600160a01b03909116815260200161013b565b61016b60065481565b61012e610486565b61015761027e366004610c49565b610495565b610157610291366004610c49565b610515565b61016b6102a4366004610bda565b610523565b6101eb6102b7366004610bb8565b61054e565b6060600380546102cb90610d12565b80601f01602080910402602001604051908101604052809291908181526020018280546102f790610d12565b80156103445780601f1061031957610100808354040283529160200191610344565b820191906000526020600020905b81548152906001019060200180831161032757829003601f168201915b5050505050905090565b60003361035c8185856105c4565b5060019392505050565b6000336103748582856106e9565b61037f858585610763565b506001949350505050565b6007805461039790610d12565b80601f01602080910402602001604051908101604052809291908181526020018280546103c390610d12565b80156104105780601f106103e557610100808354040283529160200191610410565b820191906000526020600020905b8154815290600101906020018083116103f357829003601f168201915b505050505081565b60003361035c81858561042b8383610523565b6104359190610cec565b6105c4565b610442610907565b61044c8282610961565b5050565b61045a3382610a20565b50565b610465610907565b61046f6000610b4a565b565b61047c8233836106e9565b61044c8282610a20565b6060600480546102cb90610d12565b600033816104a38286610523565b9050838110156105085760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b61037f82868684036105c4565b60003361035c818585610763565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610556610907565b6001600160a01b0381166105bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ff565b61045a81610b4a565b6001600160a01b0383166106265760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104ff565b6001600160a01b0382166106875760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104ff565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006106f58484610523565b9050600019811461075d57818110156107505760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104ff565b61075d84848484036105c4565b50505050565b6001600160a01b0383166107c75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104ff565b6001600160a01b0382166108295760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104ff565b6001600160a01b038316600090815260208190526040902054818110156108a15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104ff565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361075d565b6005546001600160a01b0316331461046f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104ff565b6001600160a01b0382166109b75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104ff565b80600260008282546109c99190610cec565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216610a805760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104ff565b6001600160a01b03821660009081526020819052604090205481811015610af45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104ff565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016106dc565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80356001600160a01b0381168114610bb357600080fd5b919050565b600060208284031215610bca57600080fd5b610bd382610b9c565b9392505050565b60008060408385031215610bed57600080fd5b610bf683610b9c565b9150610c0460208401610b9c565b90509250929050565b600080600060608486031215610c2257600080fd5b610c2b84610b9c565b9250610c3960208501610b9c565b9150604084013590509250925092565b60008060408385031215610c5c57600080fd5b610c6583610b9c565b946020939093013593505050565b600060208284031215610c8557600080fd5b5035919050565b6000815180845260005b81811015610cb257602081850181015186830182015201610c96565b81811115610cc4576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610bd36020830184610c8c565b60008219821115610d0d57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680610d2657607f821691505b60208210811415610d4757634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212209802fa27fcbf48dd5267de0c5fc9ee819c3aa1678b20559978224c780820e7ca64736f6c63430008070033a2646970667358221220899f6dbef9e70a9c1d06bfcb29dab0d4fd9a3450f3df073e624804aa3c982ee864736f6c63430008070033

Deployed Bytecode

0x60806040523480156200001157600080fd5b5060043610620001155760003560e01c8063ab033ea911620000a3578063ded65e06116200006e578063ded65e061462000230578063e78cea921462000247578063f6b911bc146200025b578063f8b2cb4f146200027257600080fd5b8063ab033ea914620001d4578063c6c3bbe614620001eb578063d9caed121462000202578063dc2c256f146200021957600080fd5b80633bc3f9ea11620000e45780633bc3f9ea14620001795780638340f549146200018b5780638903573014620001a25780638dd1480214620001bd57600080fd5b80630fffbaf3146200011a578063238efcbc146200014457806324b4793c1462000150578063289b3c0d1462000167575b600080fd5b6006546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6200014e62000298565b005b6200014e6200016136600462001047565b62000300565b6004546001600160a01b031662000127565b6005546001600160a01b031662000127565b6200014e6200019c36600462001085565b620003a3565b620001ac6200044f565b6040516200013b93929190620012e2565b6200014e620001ce36600462001027565b620004f7565b6200014e620001e536600462001027565b62000546565b6200014e620001fc36600462001085565b62000595565b6200014e6200021336600462001085565b62000687565b6200014e6200022a366004620010cb565b62000803565b620001276200024136600462001136565b62000846565b60075462000127906001600160a01b031681565b6200014e6200026c36600462001085565b620008a4565b620002896200028336600462001027565b62000985565b6040519081526020016200013b565b6005546001600160a01b03163314620002ec5760405162461bcd60e51b815260206004820152601160248201527070656e64696e67476f7665726e616e636560781b60448201526064015b60405180910390fd5b600480546001600160a01b03191633179055565b6200030a62000a09565b6004546001600160a01b03163314620003375760405162461bcd60e51b8152600401620002e390620012be565b60405163f2fde38b60e01b81526001600160a01b03828116600483015283169063f2fde38b90602401600060405180830381600087803b1580156200037b57600080fd5b505af115801562000390573d6000803e3d6000fd5b505050506200039f6001600355565b5050565b620003ad62000a09565b6006546001600160a01b03163314620003da5760405162461bcd60e51b8152600401620002e3906200129e565b620003f16001600160a01b03841683308462000a65565b826001600160a01b0316826001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62836040516200043791815260200190565b60405180910390a36200044a6001600355565b505050565b600080546001805491929162000465906200133f565b80601f016020809104026020016040519081016040528092919081815260200182805462000493906200133f565b8015620004e45780601f10620004b857610100808354040283529160200191620004e4565b820191906000526020600020905b815481529060010190602001808311620004c657829003601f168201915b5050506002909301549192505060ff1683565b6004546001600160a01b03163314620005245760405162461bcd60e51b8152600401620002e390620012be565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314620005735760405162461bcd60e51b8152600401620002e390620012be565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6200059f62000a09565b6006546001600160a01b03163314620005cc5760405162461bcd60e51b8152600401620002e3906200129e565b6040516340c10f1960e01b81526001600160a01b038381166004830152602482018390528416906340c10f1990604401600060405180830381600087803b1580156200061757600080fd5b505af11580156200062c573d6000803e3d6000fd5b5050604080516001600160a01b038088168252861660208201529081018490527fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89250606001905060405180910390a16200044a6001600355565b6200069162000a09565b6006546001600160a01b03163314620006be5760405162461bcd60e51b8152600401620002e3906200129e565b6040516370a0823160e01b815230600482015281906001600160a01b038516906370a082319060240160206040518083038186803b1580156200070057600080fd5b505afa15801562000715573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200073b9190620011fa565b116200078a5760405162461bcd60e51b815260206004820152601a60248201527f5661756c7420746f6b656e2062616c616e636520746f206c6f770000000000006044820152606401620002e3565b620007a06001600160a01b038416838362000ad8565b816001600160a01b0316836001600160a01b0316336001600160a01b03167f3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f784604051620007f091815260200190565b60405180910390a46200044a6001600355565b6004546001600160a01b03163314620008305760405162461bcd60e51b8152600401620002e390620012be565b6200044a6001600160a01b038416828462000ad8565b60006200085262000a09565b6006546001600160a01b031633146200087f5760405162461bcd60e51b8152600401620002e3906200129e565b6200088e868686868662000b0a565b90506200089b6001600355565b95945050505050565b620008ae62000a09565b6006546001600160a01b03163314620008db5760405162461bcd60e51b8152600401620002e3906200129e565b60405163079cc67960e41b81526001600160a01b038381166004830152602482018390528416906379cc679090604401600060405180830381600087803b1580156200092657600080fd5b505af11580156200093b573d6000803e3d6000fd5b50505050826001600160a01b0316826001600160a01b03167fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b9453836040516200043791815260200190565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015620009c857600080fd5b505afa158015620009dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a039190620011fa565b92915050565b6002600354141562000a5e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401620002e3565b6002600355565b6040516001600160a01b038085166024830152831660448201526064810182905262000ad29085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262000bfa565b50505050565b6040516001600160a01b0383166024820152604481018290526200044a90849063a9059cbb60e01b9060640162000a9a565b60408051606081018252848152602080820185905260ff841692820192909252600085815584519092839162000b47916001919088019062000e73565b50604091820151600291909101805460ff191660ff9092169190911790555162000b7a90859085908590602001620012e2565b60405160208183030381529060405280519060200120868660405162000ba09062000f02565b62000bad92919062001275565b8190604051809103906000f590508015801562000bce573d6000803e3d6000fd5b5060008080559091508062000be560018262000f10565b50600201805460ff1916905595945050505050565b600062000c51826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000cd39092919063ffffffff16565b8051909150156200044a578080602001905181019062000c72919062001112565b6200044a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620002e3565b606062000ce4848460008562000cec565b949350505050565b60608247101562000d4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620002e3565b600080866001600160a01b0316858760405162000d6d919062001242565b60006040518083038185875af1925050503d806000811462000dac576040519150601f19603f3d011682016040523d82523d6000602084013e62000db1565b606091505b509150915062000dc48783838762000dcf565b979650505050505050565b6060831562000e4057825162000e38576001600160a01b0385163b62000e385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620002e3565b508162000ce4565b62000ce4838381511562000e575781518083602001fd5b8060405162461bcd60e51b8152600401620002e3919062001260565b82805462000e81906200133f565b90600052602060002090601f01602090048101928262000ea5576000855562000ef0565b82601f1062000ec057805160ff191683800117855562000ef0565b8280016001018555821562000ef0579182015b8281111562000ef057825182559160200191906001019062000ed3565b5062000efe92915062000f52565b5090565b6111fa80620013a983390190565b50805462000f1e906200133f565b6000825580601f1062000f2f575050565b601f01602090049060005260206000209081019062000f4f919062000f52565b50565b5b8082111562000efe576000815560010162000f53565b600067ffffffffffffffff8084111562000f875762000f876200137c565b604051601f8501601f19908116603f0116810190828211818310171562000fb25762000fb26200137c565b8160405280935085815286868601111562000fcc57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011262000ff857600080fd5b620010098383356020850162000f69565b9392505050565b803560ff811681146200102257600080fd5b919050565b6000602082840312156200103a57600080fd5b8135620010098162001392565b600080604083850312156200105b57600080fd5b8235620010688162001392565b915060208301356200107a8162001392565b809150509250929050565b6000806000606084860312156200109b57600080fd5b8335620010a88162001392565b92506020840135620010ba8162001392565b929592945050506040919091013590565b600080600060608486031215620010e157600080fd5b8335620010ee8162001392565b9250602084013591506040840135620011078162001392565b809150509250925092565b6000602082840312156200112557600080fd5b815180151581146200100957600080fd5b600080600080600060a086880312156200114f57600080fd5b853567ffffffffffffffff808211156200116857600080fd5b6200117689838a0162000fe6565b965060208801359150808211156200118d57600080fd5b6200119b89838a0162000fe6565b9550604088013594506060880135915080821115620011b957600080fd5b508601601f81018813620011cc57600080fd5b620011dd8882356020840162000f69565b925050620011ee6080870162001010565b90509295509295909350565b6000602082840312156200120d57600080fd5b5051919050565b600081518084526200122e81602086016020860162001310565b601f01601f19169290920160200192915050565b600082516200125681846020870162001310565b9190910192915050565b60208152600062001009602083018462001214565b6040815260006200128a604083018562001214565b82810360208401526200089b818562001214565b60208082526006908201526562726964676560d01b604082015260600190565b6020808252600a9082015269676f7665726e616e636560b01b604082015260600190565b838152606060208201526000620012fd606083018562001214565b905060ff83166040830152949350505050565b60005b838110156200132d57818101518382015260200162001313565b8381111562000ad25750506000910152565b600181811c908216806200135457607f821691505b602082108114156200137657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811462000f4f57600080fdfe60a06040523480156200001157600080fd5b50604051620011fa380380620011fa833981016040819052620000349162000320565b8151829082906200004d906003906020850190620001ac565b50805162000063906004906020840190620001ac565b505050620000806200007a6200015660201b60201c565b6200015a565b6000806000336001600160a01b031663890357306040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620000c157600080fd5b505af1158015620000d6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200010091908101906200038a565b60068390558151929550909350915062000122906007906020850190620001ac565b5060f81b7fff0000000000000000000000000000000000000000000000000000000000000016608052506200045892505050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ba9062000405565b90600052602060002090601f016020900481019282620001de576000855562000229565b82601f10620001f957805160ff191683800117855562000229565b8280016001018555821562000229579182015b82811115620002295782518255916020019190600101906200020c565b50620002379291506200023b565b5090565b5b808211156200023757600081556001016200023c565b60006001600160401b03808411156200026f576200026f62000442565b604051601f8501601f19908116603f011681019082821181831017156200029a576200029a62000442565b81604052809350858152868686011115620002b457600080fd5b600092505b85831015620002d9578285015160208483010152602083019250620002b9565b85831115620002ec576000602087830101525b5050509392505050565b600082601f8301126200030857600080fd5b620003198383516020850162000252565b9392505050565b600080604083850312156200033457600080fd5b82516001600160401b03808211156200034c57600080fd5b6200035a86838701620002f6565b935060208501519150808211156200037157600080fd5b506200038085828601620002f6565b9150509250929050565b600080600060608486031215620003a057600080fd5b835160208501519093506001600160401b03811115620003bf57600080fd5b8401601f81018613620003d157600080fd5b620003e28682516020840162000252565b925050604084015160ff81168114620003fa57600080fd5b809150509250925092565b600181811c908216806200041a57607f821691505b602082108114156200043c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160f81c610d8362000477600039600061019b0152610d836000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad57806395d89b411161007157806395d89b4114610268578063a457c2d714610270578063a9059cbb14610283578063dd62ed3e14610296578063f2fde38b146102a957600080fd5b806370a0823114610200578063715018a61461022957806379cc6790146102315780638da5cb5b14610244578063938b5f321461025f57600080fd5b80632a465167116100f45780632a4651671461018c578063313ce5671461019457806339509351146101c557806340c10f19146101d857806342966c68146101ed57600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016757806323b872dd14610179575b600080fd5b61012e6102bc565b60405161013b9190610cd9565b60405180910390f35b610157610152366004610c49565b61034e565b604051901515815260200161013b565b6002545b60405190815260200161013b565b610157610187366004610c0d565b610366565b61012e61038a565b60405160ff7f000000000000000000000000000000000000000000000000000000000000000016815260200161013b565b6101576101d3366004610c49565b610418565b6101eb6101e6366004610c49565b61043a565b005b6101eb6101fb366004610c73565b610450565b61016b61020e366004610bb8565b6001600160a01b031660009081526020819052604090205490565b6101eb61045d565b6101eb61023f366004610c49565b610471565b6005546040516001600160a01b03909116815260200161013b565b61016b60065481565b61012e610486565b61015761027e366004610c49565b610495565b610157610291366004610c49565b610515565b61016b6102a4366004610bda565b610523565b6101eb6102b7366004610bb8565b61054e565b6060600380546102cb90610d12565b80601f01602080910402602001604051908101604052809291908181526020018280546102f790610d12565b80156103445780601f1061031957610100808354040283529160200191610344565b820191906000526020600020905b81548152906001019060200180831161032757829003601f168201915b5050505050905090565b60003361035c8185856105c4565b5060019392505050565b6000336103748582856106e9565b61037f858585610763565b506001949350505050565b6007805461039790610d12565b80601f01602080910402602001604051908101604052809291908181526020018280546103c390610d12565b80156104105780601f106103e557610100808354040283529160200191610410565b820191906000526020600020905b8154815290600101906020018083116103f357829003601f168201915b505050505081565b60003361035c81858561042b8383610523565b6104359190610cec565b6105c4565b610442610907565b61044c8282610961565b5050565b61045a3382610a20565b50565b610465610907565b61046f6000610b4a565b565b61047c8233836106e9565b61044c8282610a20565b6060600480546102cb90610d12565b600033816104a38286610523565b9050838110156105085760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b61037f82868684036105c4565b60003361035c818585610763565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610556610907565b6001600160a01b0381166105bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ff565b61045a81610b4a565b6001600160a01b0383166106265760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104ff565b6001600160a01b0382166106875760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104ff565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006106f58484610523565b9050600019811461075d57818110156107505760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104ff565b61075d84848484036105c4565b50505050565b6001600160a01b0383166107c75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104ff565b6001600160a01b0382166108295760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104ff565b6001600160a01b038316600090815260208190526040902054818110156108a15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104ff565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361075d565b6005546001600160a01b0316331461046f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104ff565b6001600160a01b0382166109b75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104ff565b80600260008282546109c99190610cec565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216610a805760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104ff565b6001600160a01b03821660009081526020819052604090205481811015610af45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104ff565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016106dc565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80356001600160a01b0381168114610bb357600080fd5b919050565b600060208284031215610bca57600080fd5b610bd382610b9c565b9392505050565b60008060408385031215610bed57600080fd5b610bf683610b9c565b9150610c0460208401610b9c565b90509250929050565b600080600060608486031215610c2257600080fd5b610c2b84610b9c565b9250610c3960208501610b9c565b9150604084013590509250925092565b60008060408385031215610c5c57600080fd5b610c6583610b9c565b946020939093013593505050565b600060208284031215610c8557600080fd5b5035919050565b6000815180845260005b81811015610cb257602081850181015186830182015201610c96565b81811115610cc4576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610bd36020830184610c8c565b60008219821115610d0d57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680610d2657607f821691505b60208210811415610d4757634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212209802fa27fcbf48dd5267de0c5fc9ee819c3aa1678b20559978224c780820e7ca64736f6c63430008070033a2646970667358221220899f6dbef9e70a9c1d06bfcb29dab0d4fd9a3450f3df073e624804aa3c982ee864736f6c63430008070033

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

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

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