ETH Price: $2,836.86 (+2.34%)

Contract

0xc6895a02F9dFe64341c7B1d03e77018E24Db15eD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw ERC20162555262022-12-24 15:35:47792 days ago1671896147IN
0xc6895a02...E24Db15eD
0 ETH0.0010378113.68046164
Withdraw ERC20162555072022-12-24 15:31:47792 days ago1671895907IN
0xc6895a02...E24Db15eD
0 ETH0.0007488312.51750553
Withdraw ERC20162481062022-12-23 14:45:59793 days ago1671806759IN
0xc6895a02...E24Db15eD
0 ETH0.0013253214.27367496
Withdraw ERC20162456562022-12-23 6:34:47793 days ago1671777287IN
0xc6895a02...E24Db15eD
0 ETH0.0010690110.27142736
Withdraw ERC20162443482022-12-23 2:12:23793 days ago1671761543IN
0xc6895a02...E24Db15eD
0 ETH0.0015118114.52592322
Withdraw ERC20162336322022-12-21 14:20:35795 days ago1671632435IN
0xc6895a02...E24Db15eD
0 ETH0.0018955315.64426122
Withdraw ERC20162330612022-12-21 12:25:23795 days ago1671625523IN
0xc6895a02...E24Db15eD
0 ETH0.0018479315.24986136
Withdraw ERC20162054562022-12-17 15:57:23799 days ago1671292643IN
0xc6895a02...E24Db15eD
0 ETH0.0018410417.68924767
Withdraw ERC20161992682022-12-16 19:12:11800 days ago1671217931IN
0xc6895a02...E24Db15eD
0 ETH0.0029141224.0485022
Withdraw ERC20161903462022-12-15 13:18:59801 days ago1671110339IN
0xc6895a02...E24Db15eD
0 ETH0.0033232627.42490297
Withdraw ERC20161854082022-12-14 20:45:23802 days ago1671050723IN
0xc6895a02...E24Db15eD
0 ETH0.0017061916.39549899
Withdraw ERC20161807032022-12-14 4:58:47802 days ago1670993927IN
0xc6895a02...E24Db15eD
0 ETH0.0016604315.95579391
Withdraw ERC20161798132022-12-14 2:00:35802 days ago1670983235IN
0xc6895a02...E24Db15eD
0 ETH0.0020108516.5944001
Withdraw ERC20161780372022-12-13 20:03:23803 days ago1670961803IN
0xc6895a02...E24Db15eD
0 ETH0.0021460820.62256901
Withdraw ERC20161635432022-12-11 19:25:47805 days ago1670786747IN
0xc6895a02...E24Db15eD
0 ETH0.0019489816.08378171
Withdraw ERC20161350552022-12-07 19:56:23809 days ago1670442983IN
0xc6895a02...E24Db15eD
0 ETH0.0020579619.77580651
Withdraw ERC20161346702022-12-07 18:39:11809 days ago1670438351IN
0xc6895a02...E24Db15eD
0 ETH0.0020381819.58571626
Withdraw ERC20161284102022-12-06 21:22:35810 days ago1670361755IN
0xc6895a02...E24Db15eD
0 ETH0.0018382417.66238002
Withdraw ERC20161194092022-12-05 15:10:23811 days ago1670253023IN
0xc6895a02...E24Db15eD
0 ETH0.0044022742.29820448
Withdraw ERC20161019222022-12-03 4:32:47813 days ago1670041967IN
0xc6895a02...E24Db15eD
0 ETH0.0013766213.22697146
Withdraw ERC20160920952022-12-01 19:38:59815 days ago1669923539IN
0xc6895a02...E24Db15eD
0 ETH0.0014228313.67098397
Withdraw ERC20160916732022-12-01 18:13:59815 days ago1669918439IN
0xc6895a02...E24Db15eD
0 ETH0.0015160714.56849438
Withdraw ERC20160803122022-11-30 4:06:59816 days ago1669781219IN
0xc6895a02...E24Db15eD
0 ETH0.0012835512.33414059
Withdraw ERC20160722422022-11-29 1:02:47817 days ago1669683767IN
0xc6895a02...E24Db15eD
0 ETH0.0014560412.01586025
Withdraw ERC20160593462022-11-27 5:51:35819 days ago1669528295IN
0xc6895a02...E24Db15eD
0 ETH0.0013304810.98080556
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bridge

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : Bridge.sol
pragma solidity ^0.8.17;

import "./handlers/ERC20Handler.sol";
import "./helpers/HashIndexer.sol";
import "./interfaces/ISigners.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IERC20MintableBurnable.sol";


contract Bridge is ERC20Handler, HashIndexer, Ownable {
    ISignersRepository public signersRep;

    event DepositERC20(
        string receiver,
        address token,
        uint256 amount,
        string network
    );
    event AdminWithdrawERC20(
        address token,
        address receiver,
        uint256 amount
    );
    event SignersRepoUpdated(address _signersRep, address sender);

    constructor(address _signersRep) Ownable() {
        signersRep = ISignersRepository(_signersRep);
    }

    function checkSignersCopies(address[]memory _signers) private pure returns (bool){
        if (_signers.length == 1) {
            return false;
        }

        for (uint8 i = 0; i < _signers.length - 1; i++) {
            for (uint8 q = i + 1; q < _signers.length; q++) {
                if (_signers[i] == _signers[q]) {
                    return true;
                }
            }
        }

        return false;
    }

    function withdrawERC20(address _token, address _receiver, uint256 _amount) onlyOwner external {
        require(_receiver != address(0), "Zero address recipient specified");
        _sendERC20(_token, _receiver, _amount);
        emit AdminWithdrawERC20(_token, _receiver, _amount);
    }

    function withdrawERC20(
        address _token,
        string memory _txHash,
        uint256 _amount,
        bytes32[] memory _r,
        bytes32[] memory _s,
        uint8[] memory _v
    ) onlyInexistentHash(_txHash) external {
        address[] memory _signers = _deriveERC20Signers(_token, _txHash, _amount, _r, _s, _v);
        checkSigners(_signers);

        _addHash(_txHash);
        _sendERC20(_token, msg.sender, _amount);
    }

    function depositERC20(address _token, string memory _receiver, uint256 _amount, string memory _network) external {
        require(IERC20(_token).transferFrom(msg.sender, address(this), _amount), "token transfer failed");

        emit DepositERC20(_receiver, _token, _amount, _network);
    }
/**
    function burnERC20(address _token, string memory _receiver, uint256 _amount, string memory _network) external {
        require(IERC20MintableBurnable(_token).burnFrom(msg.sender, _amount), "token burn failed");

        emit DepositERC20(_receiver, _token, _amount, _network);
    }

    function mintERC20(
        address _token,
        uint256 _amount,
        string memory _txHash,
        bytes32[] memory _r,
        bytes32[] memory _s,
        uint8[] memory _v
    ) onlyInexistentHash(_txHash) external {
        address[] memory _signers = _deriveERC20Signers(_token, _txHash, _amount, _r, _s, _v);
        checkSigners(_signers);

        _addHash(_txHash);
        require(IERC20MintableBurnable(_token).mint(msg.sender, _amount), "token mint failed");
    }
*/
    function withdrawNative(address _receiver, uint256 _amount) onlyOwner external {
        require(_receiver != address(0), "Zero address recipient specified");
        (bool success,) = _receiver.call{value: _amount}("");
        require(success, "ETH transfer failed");
    }

    function setSignersRep(address _signersRep) external onlyOwner {
        signersRep = ISignersRepository(_signersRep);
        emit SignersRepoUpdated(_signersRep, msg.sender);
    }

    function checkSigners(address[] memory _signers) internal{
        require(
            !checkSignersCopies(_signers),
            "Bridge: signatures contain copies"
        );
        require(
            signersRep.containsSigners(_signers),
            "Bridge: bad signatures"
        );
    }
}

File 2 of 11 : ERC20Handler.sol
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";


abstract contract ERC20Handler{
    using SafeERC20 for IERC20;
    function _deriveERC20Signers(
        address _token,
        string memory _txHash,
        uint256 _amount,
        bytes32[] memory _r,
        bytes32[] memory _s,
        uint8[] memory _v
    ) internal view returns (address[] memory) {
        bytes32 _hash = keccak256(abi.encodePacked(block.chainid, _token, msg.sender, _txHash, _amount));
        address[] memory _signers = new address[](_r.length);
        for (uint8 i = 0; i < _r.length; i++) {
            _signers[i] = ecrecover(_hash, _v[i], _r[i], _s[i]);
        }

        return _signers;
    }

    function _sendERC20(
        address _token,
        address _receiver,
        uint256 _amount
    ) internal {
       IERC20(_token).safeTransfer(_receiver, _amount);
    }
}

File 3 of 11 : HashIndexer.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

abstract contract HashIndexer {
    mapping(string => bool) private hashes;

    event HashAdded(string hash);

    constructor () {}

    modifier onlyInexistentHash(string memory _hash) {
        require(!hashes[_hash], "HashIndexer: such hash already exists");
        _;
    }

    function _addHash(string memory _hash) internal {
        hashes[_hash] = true;
        emit HashAdded(_hash);
    }

    function containsHash(string memory _hash) external view returns (bool){
        return _containsHash(_hash);
    }

    function _containsHash(string memory _hash) internal view returns (bool){
        return hashes[_hash];
    }
}

File 4 of 11 : ISigners.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

interface ISignersRepository {
    event SignerAdded(address, address);
    event SignerRemoved(address, address);


    function containsSigner(address) external view returns (bool);
    function containsSigners(address[] calldata) external view returns (bool);
    function signersLength() view external returns (uint256);
    function setupSigner(address) external;
}

File 5 of 11 : 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 6 of 11 : IERC20MintableBurnable.sol
pragma solidity ^0.8.17;

interface IERC20MintableBurnable {
    function mint(
        address _receiver,
        uint256 _amount
    ) external returns (bool);

    function burnFrom(
        address _sender,
        uint256 _amount
    ) external returns (bool);
}

File 7 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 8 of 11 : 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 11 : 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 10 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 11 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signersRep","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminWithdrawERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"receiver","type":"string"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"network","type":"string"}],"name":"DepositERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"hash","type":"string"}],"name":"HashAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_signersRep","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"SignersRepoUpdated","type":"event"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"containsHash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"string","name":"_receiver","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_network","type":"string"}],"name":"depositERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signersRep","type":"address"}],"name":"setSignersRep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signersRep","outputs":[{"internalType":"contract ISignersRepository","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"string","name":"_txHash","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_r","type":"bytes32[]"},{"internalType":"bytes32[]","name":"_s","type":"bytes32[]"},{"internalType":"uint8[]","name":"_v","type":"uint8[]"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200249e3803806200249e8339818101604052810190620000379190620001d7565b620000576200004b6200009f60201b60201c565b620000a760201b60201c565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000209565b600033905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200019f8262000172565b9050919050565b620001b18162000192565b8114620001bd57600080fd5b50565b600081519050620001d181620001a6565b92915050565b600060208284031215620001f057620001ef6200016d565b5b60006200020084828501620001c0565b91505092915050565b61228580620002196000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063897b73cd11610066578063897b73cd146101315780638da5cb5b1461014f578063c3e345f91461016d578063f2fde38b14610189578063f7f668ef146101a55761009e565b806307b18bde146100a35780632a095689146100bf57806344004cc1146100db5780636492f57a146100f7578063715018a614610127575b600080fd5b6100bd60048036038101906100b89190611066565b6101c1565b005b6100d960048036038101906100d491906111ec565b6102e9565b005b6100f560048036038101906100f0919061128b565b6103eb565b005b610111600480360381019061010c91906112de565b6104ad565b60405161011e9190611342565b60405180910390f35b61012f6104bf565b005b6101396104d3565b60405161014691906113bc565b60405180910390f35b6101576104f9565b60405161016491906113e6565b60405180910390f35b61018760048036038101906101829190611401565b610523565b005b6101a3600480360381019061019e9190611401565b6105a8565b005b6101bf60048036038101906101ba9190611628565b61062b565b005b6101c96106d1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161022f90611782565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161025e906117d3565b60006040518083038185875af1925050503d806000811461029b576040519150601f19603f3d011682016040523d82523d6000602084013e6102a0565b606091505b50509050806102e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102db90611834565b60405180910390fd5b505050565b8373ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b815260040161032693929190611863565b6020604051808303816000875af1158015610345573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036991906118c6565b6103a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039f9061193f565b60405180910390fd5b7f438d32fe32e6bde90ecd983db6c2358e3f19cecaf1c6f1d9f20d0828be51a1b4838584846040516103dd94939291906119cd565b60405180910390a150505050565b6103f36106d1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045990611782565b60405180910390fd5b61046d83838361074f565b7fac6303b4cf6f066bc670195b64990e50df60eb54ca397394c4bee6e15748b9f38383836040516104a093929190611863565b60405180910390a1505050565b60006104b88261077f565b9050919050565b6104c76106d1565b6104d160006107b3565b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61052b6106d1565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f118c0beaeb50185da094ba885f4fec89e011473ac9445a65161cf242332127cf813360405161059d929190611a20565b60405180910390a150565b6105b06106d1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361061f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690611abb565b60405180910390fd5b610628816107b3565b50565b8460008160405161063c9190611b17565b908152602001604051809103902060009054906101000a900460ff1615610698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068f90611ba0565b60405180910390fd5b60006106a8888888888888610879565b90506106b381610a24565b6106bc87610b4b565b6106c788338861074f565b5050505050505050565b6106d9610bbc565b73ffffffffffffffffffffffffffffffffffffffff166106f76104f9565b73ffffffffffffffffffffffffffffffffffffffff161461074d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074490611c0c565b60405180910390fd5b565b61077a82828573ffffffffffffffffffffffffffffffffffffffff16610bc49092919063ffffffff16565b505050565b600080826040516107909190611b17565b908152602001604051809103902060009054906101000a900460ff169050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060004688338989604051602001610896959493929190611c95565b6040516020818303038152906040528051906020012090506000855167ffffffffffffffff8111156108cb576108ca6110c1565b5b6040519080825280602002602001820160405280156108f95781602001602082028036833780820191505090505b50905060005b86518160ff161015610a1457600183868360ff168151811061092457610923611cf0565b5b6020026020010151898460ff168151811061094257610941611cf0565b5b6020026020010151898560ff16815181106109605761095f611cf0565b5b6020026020010151604051600081526020016040526040516109859493929190611d3d565b6020604051602081039080840390855afa1580156109a7573d6000803e3d6000fd5b50505060206040510351828260ff16815181106109c7576109c6611cf0565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080610a0c90611db1565b9150506108ff565b5080925050509695505050505050565b610a2d81610c4a565b15610a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6490611e4c565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631fa9fe71826040518263ffffffff1660e01b8152600401610ac89190611f2a565b602060405180830381865afa158015610ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0991906118c6565b610b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3f90611f98565b60405180910390fd5b50565b6001600082604051610b5d9190611b17565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507fe0c9f5e6f5abddac86dac0e02afc9f3fda7b7fc6d9454a13c51fcb28621e1e5f81604051610bb19190611fb8565b60405180910390a150565b600033905090565b610c458363a9059cbb60e01b8484604051602401610be3929190611fda565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d41565b505050565b60006001825103610c5e5760009050610d3c565b60005b60018351610c6f9190612003565b8160ff161015610d36576000600182610c889190612037565b90505b83518160ff161015610d2257838160ff1681518110610cad57610cac611cf0565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16848360ff1681518110610ce157610ce0611cf0565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1603610d0f57600192505050610d3c565b8080610d1a90611db1565b915050610c8b565b508080610d2e90611db1565b915050610c61565b50600090505b919050565b6000610da3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610e089092919063ffffffff16565b9050600081511115610e035780806020019051810190610dc391906118c6565b610e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df9906120de565b60405180910390fd5b5b505050565b6060610e178484600085610e20565b90509392505050565b606082471015610e65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5c90612170565b60405180910390fd5b610e6e85610f34565b610ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea4906121dc565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610ed69190612238565b60006040518083038185875af1925050503d8060008114610f13576040519150601f19603f3d011682016040523d82523d6000602084013e610f18565b606091505b5091509150610f28828286610f57565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315610f6757829050610fb7565b600083511115610f7a5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fae9190611fb8565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ffd82610fd2565b9050919050565b61100d81610ff2565b811461101857600080fd5b50565b60008135905061102a81611004565b92915050565b6000819050919050565b61104381611030565b811461104e57600080fd5b50565b6000813590506110608161103a565b92915050565b6000806040838503121561107d5761107c610fc8565b5b600061108b8582860161101b565b925050602061109c85828601611051565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6110f9826110b0565b810181811067ffffffffffffffff82111715611118576111176110c1565b5b80604052505050565b600061112b610fbe565b905061113782826110f0565b919050565b600067ffffffffffffffff821115611157576111566110c1565b5b611160826110b0565b9050602081019050919050565b82818337600083830152505050565b600061118f61118a8461113c565b611121565b9050828152602081018484840111156111ab576111aa6110ab565b5b6111b684828561116d565b509392505050565b600082601f8301126111d3576111d26110a6565b5b81356111e384826020860161117c565b91505092915050565b6000806000806080858703121561120657611205610fc8565b5b60006112148782880161101b565b945050602085013567ffffffffffffffff81111561123557611234610fcd565b5b611241878288016111be565b935050604061125287828801611051565b925050606085013567ffffffffffffffff81111561127357611272610fcd565b5b61127f878288016111be565b91505092959194509250565b6000806000606084860312156112a4576112a3610fc8565b5b60006112b28682870161101b565b93505060206112c38682870161101b565b92505060406112d486828701611051565b9150509250925092565b6000602082840312156112f4576112f3610fc8565b5b600082013567ffffffffffffffff81111561131257611311610fcd565b5b61131e848285016111be565b91505092915050565b60008115159050919050565b61133c81611327565b82525050565b60006020820190506113576000830184611333565b92915050565b6000819050919050565b600061138261137d61137884610fd2565b61135d565b610fd2565b9050919050565b600061139482611367565b9050919050565b60006113a682611389565b9050919050565b6113b68161139b565b82525050565b60006020820190506113d160008301846113ad565b92915050565b6113e081610ff2565b82525050565b60006020820190506113fb60008301846113d7565b92915050565b60006020828403121561141757611416610fc8565b5b60006114258482850161101b565b91505092915050565b600067ffffffffffffffff821115611449576114486110c1565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6114728161145f565b811461147d57600080fd5b50565b60008135905061148f81611469565b92915050565b60006114a86114a38461142e565b611121565b905080838252602082019050602084028301858111156114cb576114ca61145a565b5b835b818110156114f457806114e08882611480565b8452602084019350506020810190506114cd565b5050509392505050565b600082601f830112611513576115126110a6565b5b8135611523848260208601611495565b91505092915050565b600067ffffffffffffffff821115611547576115466110c1565b5b602082029050602081019050919050565b600060ff82169050919050565b61156e81611558565b811461157957600080fd5b50565b60008135905061158b81611565565b92915050565b60006115a461159f8461152c565b611121565b905080838252602082019050602084028301858111156115c7576115c661145a565b5b835b818110156115f057806115dc888261157c565b8452602084019350506020810190506115c9565b5050509392505050565b600082601f83011261160f5761160e6110a6565b5b813561161f848260208601611591565b91505092915050565b60008060008060008060c0878903121561164557611644610fc8565b5b600061165389828a0161101b565b965050602087013567ffffffffffffffff81111561167457611673610fcd565b5b61168089828a016111be565b955050604061169189828a01611051565b945050606087013567ffffffffffffffff8111156116b2576116b1610fcd565b5b6116be89828a016114fe565b935050608087013567ffffffffffffffff8111156116df576116de610fcd565b5b6116eb89828a016114fe565b92505060a087013567ffffffffffffffff81111561170c5761170b610fcd565b5b61171889828a016115fa565b9150509295509295509295565b600082825260208201905092915050565b7f5a65726f206164647265737320726563697069656e7420737065636966696564600082015250565b600061176c602083611725565b915061177782611736565b602082019050919050565b6000602082019050818103600083015261179b8161175f565b9050919050565b600081905092915050565b50565b60006117bd6000836117a2565b91506117c8826117ad565b600082019050919050565b60006117de826117b0565b9150819050919050565b7f455448207472616e73666572206661696c656400000000000000000000000000600082015250565b600061181e601383611725565b9150611829826117e8565b602082019050919050565b6000602082019050818103600083015261184d81611811565b9050919050565b61185d81611030565b82525050565b600060608201905061187860008301866113d7565b61188560208301856113d7565b6118926040830184611854565b949350505050565b6118a381611327565b81146118ae57600080fd5b50565b6000815190506118c08161189a565b92915050565b6000602082840312156118dc576118db610fc8565b5b60006118ea848285016118b1565b91505092915050565b7f746f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b6000611929601583611725565b9150611934826118f3565b602082019050919050565b600060208201905081810360008301526119588161191c565b9050919050565b600081519050919050565b60005b8381101561198857808201518184015260208101905061196d565b60008484015250505050565b600061199f8261195f565b6119a98185611725565b93506119b981856020860161196a565b6119c2816110b0565b840191505092915050565b600060808201905081810360008301526119e78187611994565b90506119f660208301866113d7565b611a036040830185611854565b8181036060830152611a158184611994565b905095945050505050565b6000604082019050611a3560008301856113d7565b611a4260208301846113d7565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611aa5602683611725565b9150611ab082611a49565b604082019050919050565b60006020820190508181036000830152611ad481611a98565b9050919050565b600081905092915050565b6000611af18261195f565b611afb8185611adb565b9350611b0b81856020860161196a565b80840191505092915050565b6000611b238284611ae6565b915081905092915050565b7f48617368496e64657865723a2073756368206861736820616c7265616479206560008201527f7869737473000000000000000000000000000000000000000000000000000000602082015250565b6000611b8a602583611725565b9150611b9582611b2e565b604082019050919050565b60006020820190508181036000830152611bb981611b7d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611bf6602083611725565b9150611c0182611bc0565b602082019050919050565b60006020820190508181036000830152611c2581611be9565b9050919050565b6000819050919050565b611c47611c4282611030565b611c2c565b82525050565b60008160601b9050919050565b6000611c6582611c4d565b9050919050565b6000611c7782611c5a565b9050919050565b611c8f611c8a82610ff2565b611c6c565b82525050565b6000611ca18288611c36565b602082019150611cb18287611c7e565b601482019150611cc18286611c7e565b601482019150611cd18285611ae6565b9150611cdd8284611c36565b6020820191508190509695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b611d288161145f565b82525050565b611d3781611558565b82525050565b6000608082019050611d526000830187611d1f565b611d5f6020830186611d2e565b611d6c6040830185611d1f565b611d796060830184611d1f565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611dbc82611558565b915060ff8203611dcf57611dce611d82565b5b600182019050919050565b7f4272696467653a207369676e61747572657320636f6e7461696e20636f70696560008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000611e36602183611725565b9150611e4182611dda565b604082019050919050565b60006020820190508181036000830152611e6581611e29565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611ea181610ff2565b82525050565b6000611eb38383611e98565b60208301905092915050565b6000602082019050919050565b6000611ed782611e6c565b611ee18185611e77565b9350611eec83611e88565b8060005b83811015611f1d578151611f048882611ea7565b9750611f0f83611ebf565b925050600181019050611ef0565b5085935050505092915050565b60006020820190508181036000830152611f448184611ecc565b905092915050565b7f4272696467653a20626164207369676e61747572657300000000000000000000600082015250565b6000611f82601683611725565b9150611f8d82611f4c565b602082019050919050565b60006020820190508181036000830152611fb181611f75565b9050919050565b60006020820190508181036000830152611fd28184611994565b905092915050565b6000604082019050611fef60008301856113d7565b611ffc6020830184611854565b9392505050565b600061200e82611030565b915061201983611030565b925082820390508181111561203157612030611d82565b5b92915050565b600061204282611558565b915061204d83611558565b9250828201905060ff81111561206657612065611d82565b5b92915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006120c8602a83611725565b91506120d38261206c565b604082019050919050565b600060208201905081810360008301526120f7816120bb565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061215a602683611725565b9150612165826120fe565b604082019050919050565b600060208201905081810360008301526121898161214d565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006121c6601d83611725565b91506121d182612190565b602082019050919050565b600060208201905081810360008301526121f5816121b9565b9050919050565b600081519050919050565b6000612212826121fc565b61221c81856117a2565b935061222c81856020860161196a565b80840191505092915050565b60006122448284612207565b91508190509291505056fea2646970667358221220c2e25943c3c40ac46f28da677c3973fc9a5adf68c791a6a39d81031ddd8f7c0564736f6c63430008110033000000000000000000000000d408b361ce76d15d1f76933321c866006c0ef495

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063897b73cd11610066578063897b73cd146101315780638da5cb5b1461014f578063c3e345f91461016d578063f2fde38b14610189578063f7f668ef146101a55761009e565b806307b18bde146100a35780632a095689146100bf57806344004cc1146100db5780636492f57a146100f7578063715018a614610127575b600080fd5b6100bd60048036038101906100b89190611066565b6101c1565b005b6100d960048036038101906100d491906111ec565b6102e9565b005b6100f560048036038101906100f0919061128b565b6103eb565b005b610111600480360381019061010c91906112de565b6104ad565b60405161011e9190611342565b60405180910390f35b61012f6104bf565b005b6101396104d3565b60405161014691906113bc565b60405180910390f35b6101576104f9565b60405161016491906113e6565b60405180910390f35b61018760048036038101906101829190611401565b610523565b005b6101a3600480360381019061019e9190611401565b6105a8565b005b6101bf60048036038101906101ba9190611628565b61062b565b005b6101c96106d1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161022f90611782565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161025e906117d3565b60006040518083038185875af1925050503d806000811461029b576040519150601f19603f3d011682016040523d82523d6000602084013e6102a0565b606091505b50509050806102e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102db90611834565b60405180910390fd5b505050565b8373ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b815260040161032693929190611863565b6020604051808303816000875af1158015610345573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036991906118c6565b6103a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039f9061193f565b60405180910390fd5b7f438d32fe32e6bde90ecd983db6c2358e3f19cecaf1c6f1d9f20d0828be51a1b4838584846040516103dd94939291906119cd565b60405180910390a150505050565b6103f36106d1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045990611782565b60405180910390fd5b61046d83838361074f565b7fac6303b4cf6f066bc670195b64990e50df60eb54ca397394c4bee6e15748b9f38383836040516104a093929190611863565b60405180910390a1505050565b60006104b88261077f565b9050919050565b6104c76106d1565b6104d160006107b3565b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61052b6106d1565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f118c0beaeb50185da094ba885f4fec89e011473ac9445a65161cf242332127cf813360405161059d929190611a20565b60405180910390a150565b6105b06106d1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361061f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690611abb565b60405180910390fd5b610628816107b3565b50565b8460008160405161063c9190611b17565b908152602001604051809103902060009054906101000a900460ff1615610698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068f90611ba0565b60405180910390fd5b60006106a8888888888888610879565b90506106b381610a24565b6106bc87610b4b565b6106c788338861074f565b5050505050505050565b6106d9610bbc565b73ffffffffffffffffffffffffffffffffffffffff166106f76104f9565b73ffffffffffffffffffffffffffffffffffffffff161461074d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074490611c0c565b60405180910390fd5b565b61077a82828573ffffffffffffffffffffffffffffffffffffffff16610bc49092919063ffffffff16565b505050565b600080826040516107909190611b17565b908152602001604051809103902060009054906101000a900460ff169050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060004688338989604051602001610896959493929190611c95565b6040516020818303038152906040528051906020012090506000855167ffffffffffffffff8111156108cb576108ca6110c1565b5b6040519080825280602002602001820160405280156108f95781602001602082028036833780820191505090505b50905060005b86518160ff161015610a1457600183868360ff168151811061092457610923611cf0565b5b6020026020010151898460ff168151811061094257610941611cf0565b5b6020026020010151898560ff16815181106109605761095f611cf0565b5b6020026020010151604051600081526020016040526040516109859493929190611d3d565b6020604051602081039080840390855afa1580156109a7573d6000803e3d6000fd5b50505060206040510351828260ff16815181106109c7576109c6611cf0565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080610a0c90611db1565b9150506108ff565b5080925050509695505050505050565b610a2d81610c4a565b15610a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6490611e4c565b60405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631fa9fe71826040518263ffffffff1660e01b8152600401610ac89190611f2a565b602060405180830381865afa158015610ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0991906118c6565b610b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3f90611f98565b60405180910390fd5b50565b6001600082604051610b5d9190611b17565b908152602001604051809103902060006101000a81548160ff0219169083151502179055507fe0c9f5e6f5abddac86dac0e02afc9f3fda7b7fc6d9454a13c51fcb28621e1e5f81604051610bb19190611fb8565b60405180910390a150565b600033905090565b610c458363a9059cbb60e01b8484604051602401610be3929190611fda565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d41565b505050565b60006001825103610c5e5760009050610d3c565b60005b60018351610c6f9190612003565b8160ff161015610d36576000600182610c889190612037565b90505b83518160ff161015610d2257838160ff1681518110610cad57610cac611cf0565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16848360ff1681518110610ce157610ce0611cf0565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1603610d0f57600192505050610d3c565b8080610d1a90611db1565b915050610c8b565b508080610d2e90611db1565b915050610c61565b50600090505b919050565b6000610da3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610e089092919063ffffffff16565b9050600081511115610e035780806020019051810190610dc391906118c6565b610e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df9906120de565b60405180910390fd5b5b505050565b6060610e178484600085610e20565b90509392505050565b606082471015610e65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5c90612170565b60405180910390fd5b610e6e85610f34565b610ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea4906121dc565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610ed69190612238565b60006040518083038185875af1925050503d8060008114610f13576040519150601f19603f3d011682016040523d82523d6000602084013e610f18565b606091505b5091509150610f28828286610f57565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60608315610f6757829050610fb7565b600083511115610f7a5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fae9190611fb8565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ffd82610fd2565b9050919050565b61100d81610ff2565b811461101857600080fd5b50565b60008135905061102a81611004565b92915050565b6000819050919050565b61104381611030565b811461104e57600080fd5b50565b6000813590506110608161103a565b92915050565b6000806040838503121561107d5761107c610fc8565b5b600061108b8582860161101b565b925050602061109c85828601611051565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6110f9826110b0565b810181811067ffffffffffffffff82111715611118576111176110c1565b5b80604052505050565b600061112b610fbe565b905061113782826110f0565b919050565b600067ffffffffffffffff821115611157576111566110c1565b5b611160826110b0565b9050602081019050919050565b82818337600083830152505050565b600061118f61118a8461113c565b611121565b9050828152602081018484840111156111ab576111aa6110ab565b5b6111b684828561116d565b509392505050565b600082601f8301126111d3576111d26110a6565b5b81356111e384826020860161117c565b91505092915050565b6000806000806080858703121561120657611205610fc8565b5b60006112148782880161101b565b945050602085013567ffffffffffffffff81111561123557611234610fcd565b5b611241878288016111be565b935050604061125287828801611051565b925050606085013567ffffffffffffffff81111561127357611272610fcd565b5b61127f878288016111be565b91505092959194509250565b6000806000606084860312156112a4576112a3610fc8565b5b60006112b28682870161101b565b93505060206112c38682870161101b565b92505060406112d486828701611051565b9150509250925092565b6000602082840312156112f4576112f3610fc8565b5b600082013567ffffffffffffffff81111561131257611311610fcd565b5b61131e848285016111be565b91505092915050565b60008115159050919050565b61133c81611327565b82525050565b60006020820190506113576000830184611333565b92915050565b6000819050919050565b600061138261137d61137884610fd2565b61135d565b610fd2565b9050919050565b600061139482611367565b9050919050565b60006113a682611389565b9050919050565b6113b68161139b565b82525050565b60006020820190506113d160008301846113ad565b92915050565b6113e081610ff2565b82525050565b60006020820190506113fb60008301846113d7565b92915050565b60006020828403121561141757611416610fc8565b5b60006114258482850161101b565b91505092915050565b600067ffffffffffffffff821115611449576114486110c1565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6114728161145f565b811461147d57600080fd5b50565b60008135905061148f81611469565b92915050565b60006114a86114a38461142e565b611121565b905080838252602082019050602084028301858111156114cb576114ca61145a565b5b835b818110156114f457806114e08882611480565b8452602084019350506020810190506114cd565b5050509392505050565b600082601f830112611513576115126110a6565b5b8135611523848260208601611495565b91505092915050565b600067ffffffffffffffff821115611547576115466110c1565b5b602082029050602081019050919050565b600060ff82169050919050565b61156e81611558565b811461157957600080fd5b50565b60008135905061158b81611565565b92915050565b60006115a461159f8461152c565b611121565b905080838252602082019050602084028301858111156115c7576115c661145a565b5b835b818110156115f057806115dc888261157c565b8452602084019350506020810190506115c9565b5050509392505050565b600082601f83011261160f5761160e6110a6565b5b813561161f848260208601611591565b91505092915050565b60008060008060008060c0878903121561164557611644610fc8565b5b600061165389828a0161101b565b965050602087013567ffffffffffffffff81111561167457611673610fcd565b5b61168089828a016111be565b955050604061169189828a01611051565b945050606087013567ffffffffffffffff8111156116b2576116b1610fcd565b5b6116be89828a016114fe565b935050608087013567ffffffffffffffff8111156116df576116de610fcd565b5b6116eb89828a016114fe565b92505060a087013567ffffffffffffffff81111561170c5761170b610fcd565b5b61171889828a016115fa565b9150509295509295509295565b600082825260208201905092915050565b7f5a65726f206164647265737320726563697069656e7420737065636966696564600082015250565b600061176c602083611725565b915061177782611736565b602082019050919050565b6000602082019050818103600083015261179b8161175f565b9050919050565b600081905092915050565b50565b60006117bd6000836117a2565b91506117c8826117ad565b600082019050919050565b60006117de826117b0565b9150819050919050565b7f455448207472616e73666572206661696c656400000000000000000000000000600082015250565b600061181e601383611725565b9150611829826117e8565b602082019050919050565b6000602082019050818103600083015261184d81611811565b9050919050565b61185d81611030565b82525050565b600060608201905061187860008301866113d7565b61188560208301856113d7565b6118926040830184611854565b949350505050565b6118a381611327565b81146118ae57600080fd5b50565b6000815190506118c08161189a565b92915050565b6000602082840312156118dc576118db610fc8565b5b60006118ea848285016118b1565b91505092915050565b7f746f6b656e207472616e73666572206661696c65640000000000000000000000600082015250565b6000611929601583611725565b9150611934826118f3565b602082019050919050565b600060208201905081810360008301526119588161191c565b9050919050565b600081519050919050565b60005b8381101561198857808201518184015260208101905061196d565b60008484015250505050565b600061199f8261195f565b6119a98185611725565b93506119b981856020860161196a565b6119c2816110b0565b840191505092915050565b600060808201905081810360008301526119e78187611994565b90506119f660208301866113d7565b611a036040830185611854565b8181036060830152611a158184611994565b905095945050505050565b6000604082019050611a3560008301856113d7565b611a4260208301846113d7565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611aa5602683611725565b9150611ab082611a49565b604082019050919050565b60006020820190508181036000830152611ad481611a98565b9050919050565b600081905092915050565b6000611af18261195f565b611afb8185611adb565b9350611b0b81856020860161196a565b80840191505092915050565b6000611b238284611ae6565b915081905092915050565b7f48617368496e64657865723a2073756368206861736820616c7265616479206560008201527f7869737473000000000000000000000000000000000000000000000000000000602082015250565b6000611b8a602583611725565b9150611b9582611b2e565b604082019050919050565b60006020820190508181036000830152611bb981611b7d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611bf6602083611725565b9150611c0182611bc0565b602082019050919050565b60006020820190508181036000830152611c2581611be9565b9050919050565b6000819050919050565b611c47611c4282611030565b611c2c565b82525050565b60008160601b9050919050565b6000611c6582611c4d565b9050919050565b6000611c7782611c5a565b9050919050565b611c8f611c8a82610ff2565b611c6c565b82525050565b6000611ca18288611c36565b602082019150611cb18287611c7e565b601482019150611cc18286611c7e565b601482019150611cd18285611ae6565b9150611cdd8284611c36565b6020820191508190509695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b611d288161145f565b82525050565b611d3781611558565b82525050565b6000608082019050611d526000830187611d1f565b611d5f6020830186611d2e565b611d6c6040830185611d1f565b611d796060830184611d1f565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611dbc82611558565b915060ff8203611dcf57611dce611d82565b5b600182019050919050565b7f4272696467653a207369676e61747572657320636f6e7461696e20636f70696560008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000611e36602183611725565b9150611e4182611dda565b604082019050919050565b60006020820190508181036000830152611e6581611e29565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611ea181610ff2565b82525050565b6000611eb38383611e98565b60208301905092915050565b6000602082019050919050565b6000611ed782611e6c565b611ee18185611e77565b9350611eec83611e88565b8060005b83811015611f1d578151611f048882611ea7565b9750611f0f83611ebf565b925050600181019050611ef0565b5085935050505092915050565b60006020820190508181036000830152611f448184611ecc565b905092915050565b7f4272696467653a20626164207369676e61747572657300000000000000000000600082015250565b6000611f82601683611725565b9150611f8d82611f4c565b602082019050919050565b60006020820190508181036000830152611fb181611f75565b9050919050565b60006020820190508181036000830152611fd28184611994565b905092915050565b6000604082019050611fef60008301856113d7565b611ffc6020830184611854565b9392505050565b600061200e82611030565b915061201983611030565b925082820390508181111561203157612030611d82565b5b92915050565b600061204282611558565b915061204d83611558565b9250828201905060ff81111561206657612065611d82565b5b92915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006120c8602a83611725565b91506120d38261206c565b604082019050919050565b600060208201905081810360008301526120f7816120bb565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061215a602683611725565b9150612165826120fe565b604082019050919050565b600060208201905081810360008301526121898161214d565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006121c6601d83611725565b91506121d182612190565b602082019050919050565b600060208201905081810360008301526121f5816121b9565b9050919050565b600081519050919050565b6000612212826121fc565b61221c81856117a2565b935061222c81856020860161196a565b80840191505092915050565b60006122448284612207565b91508190509291505056fea2646970667358221220c2e25943c3c40ac46f28da677c3973fc9a5adf68c791a6a39d81031ddd8f7c0564736f6c63430008110033

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

000000000000000000000000d408b361ce76d15d1f76933321c866006c0ef495

-----Decoded View---------------
Arg [0] : _signersRep (address): 0xD408b361Ce76d15D1F76933321C866006c0ef495

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d408b361ce76d15d1f76933321c866006c0ef495


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  ]

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.