ETH Price: $1,960.44 (-6.01%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

Transaction Hash
Block
From
To
Bridge422045652026-02-15 23:34:3719 secs ago1771198477IN
Metamask: Meta Bridge
0 ETH0.000001290.01133575
Bridge422045492026-02-15 23:34:0551 secs ago1771198445IN
Metamask: Meta Bridge
0.00545409 ETH0.000000750.00895356
Bridge422045072026-02-15 23:32:412 mins ago1771198361IN
Metamask: Meta Bridge
0.0372 ETH0.000000780.00858166
Bridge422043942026-02-15 23:28:556 mins ago1771198135IN
Metamask: Meta Bridge
0.003 ETH0.00000110.00829292
Bridge422043732026-02-15 23:28:136 mins ago1771198093IN
Metamask: Meta Bridge
0.00029 ETH0.000001340.01008336
Bridge422043582026-02-15 23:27:437 mins ago1771198063IN
Metamask: Meta Bridge
0 ETH0.000008330.01324336
Bridge422043392026-02-15 23:27:057 mins ago1771198025IN
Metamask: Meta Bridge
0 ETH0.000001450.01324428
Bridge422043322026-02-15 23:26:518 mins ago1771198011IN
Metamask: Meta Bridge
0 ETH0.000003090.00740488
Bridge422043152026-02-15 23:26:178 mins ago1771197977IN
Metamask: Meta Bridge
0 ETH0.00000570.01127756
Bridge422043072026-02-15 23:26:018 mins ago1771197961IN
Metamask: Meta Bridge
0.00104 ETH0.000001810.00881128
Bridge422042462026-02-15 23:23:5910 mins ago1771197839IN
Metamask: Meta Bridge
0 ETH0.000001430.00857441
Bridge422042432026-02-15 23:23:5311 mins ago1771197833IN
Metamask: Meta Bridge
0 ETH0.000006870.00857626
Bridge422042162026-02-15 23:22:5911 mins ago1771197779IN
Metamask: Meta Bridge
0.0029 ETH0.000001070.00805017
Bridge422040932026-02-15 23:18:5316 mins ago1771197533IN
Metamask: Meta Bridge
0.00007 ETH0.000000690.00826655
Bridge422040472026-02-15 23:17:2117 mins ago1771197441IN
Metamask: Meta Bridge
0.0097 ETH0.000000870.0065792
Bridge422039992026-02-15 23:15:4519 mins ago1771197345IN
Metamask: Meta Bridge
0 ETH0.000006920.00791023
Bridge422039782026-02-15 23:15:0319 mins ago1771197303IN
Metamask: Meta Bridge
0.0007 ETH0.000001050.00791293
Bridge422039202026-02-15 23:13:0721 mins ago1771197187IN
Metamask: Meta Bridge
0.00071927 ETH0.000005720.01175348
Bridge422038912026-02-15 23:12:0922 mins ago1771197129IN
Metamask: Meta Bridge
0.039 ETH0.000000370.00410043
Bridge422038802026-02-15 23:11:4723 mins ago1771197107IN
Metamask: Meta Bridge
0 ETH0.000011130.01309167
Bridge422037982026-02-15 23:09:0325 mins ago1771196943IN
Metamask: Meta Bridge
0 ETH0.000001610.0141278
Bridge422036242026-02-15 23:03:1531 mins ago1771196595IN
Metamask: Meta Bridge
0 ETH0.000001880.01094617
Bridge422036152026-02-15 23:02:5731 mins ago1771196577IN
Metamask: Meta Bridge
0 ETH0.000002230.01340239
Bridge422036142026-02-15 23:02:5532 mins ago1771196575IN
Metamask: Meta Bridge
0.00026715 ETH0.000000820.00979892
Bridge422035412026-02-15 23:00:2934 mins ago1771196429IN
Metamask: Meta Bridge
0 ETH0.000016120.01218132
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
422045492026-02-15 23:34:0551 secs ago1771198445
Metamask: Meta Bridge
0.00545409 ETH
422045072026-02-15 23:32:412 mins ago1771198361
Metamask: Meta Bridge
0.0372 ETH
422043942026-02-15 23:28:556 mins ago1771198135
Metamask: Meta Bridge
0.003 ETH
422043732026-02-15 23:28:136 mins ago1771198093
Metamask: Meta Bridge
0.00029 ETH
422043072026-02-15 23:26:018 mins ago1771197961
Metamask: Meta Bridge
0.00104 ETH
422042162026-02-15 23:22:5911 mins ago1771197779
Metamask: Meta Bridge
0.0029 ETH
422040932026-02-15 23:18:5316 mins ago1771197533
Metamask: Meta Bridge
0.00007 ETH
422040472026-02-15 23:17:2117 mins ago1771197441
Metamask: Meta Bridge
0.0097 ETH
422039782026-02-15 23:15:0319 mins ago1771197303
Metamask: Meta Bridge
0.0007 ETH
422039202026-02-15 23:13:0721 mins ago1771197187
Metamask: Meta Bridge
0.00071927 ETH
422038912026-02-15 23:12:0922 mins ago1771197129
Metamask: Meta Bridge
0.039 ETH
422036142026-02-15 23:02:5532 mins ago1771196575
Metamask: Meta Bridge
0.00026715 ETH
422034992026-02-15 22:59:0535 mins ago1771196345
Metamask: Meta Bridge
0.00658 ETH
422034972026-02-15 22:59:0135 mins ago1771196341
Metamask: Meta Bridge
0.15 ETH
422034712026-02-15 22:58:0936 mins ago1771196289
Metamask: Meta Bridge
0.0026753 ETH
422034302026-02-15 22:56:4738 mins ago1771196207
Metamask: Meta Bridge
0.005 ETH
422032292026-02-15 22:50:0544 mins ago1771195805
Metamask: Meta Bridge
0.2556113 ETH
422032012026-02-15 22:49:0945 mins ago1771195749
Metamask: Meta Bridge
0.00891795 ETH
422027542026-02-15 22:34:151 hr ago1771194855
Metamask: Meta Bridge
0.00007884 ETH
422026952026-02-15 22:32:171 hr ago1771194737
Metamask: Meta Bridge
0.00002934 ETH
422026332026-02-15 22:30:131 hr ago1771194613
Metamask: Meta Bridge
0.0032 ETH
422025542026-02-15 22:27:351 hr ago1771194455
Metamask: Meta Bridge
0.13 ETH
422025282026-02-15 22:26:431 hr ago1771194403
Metamask: Meta Bridge
0.00122716 ETH
422024092026-02-15 22:22:451 hr ago1771194165
Metamask: Meta Bridge
0.00001372 ETH
422023402026-02-15 22:20:271 hr ago1771194027
Metamask: Meta Bridge
0.00014465 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetaBridge

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IAdapter, IBridge, ISpender} from "contracts/interfaces/Exports.sol";
import {Constants} from "contracts/utils/Exports.sol";
import "./Spender.sol";

contract MetaBridge is IBridge, Ownable, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;

    ISpender public immutable spender;

    // Mapping of adapterId to adapter
    mapping(string => address) public adapters;
    mapping(string => bool) public adapterRemoved;

    /**
     * @notice Constructor to create the MetaBridge
     * @param _owner The Owner of the MetaBridge set on deployment
     * @dev Deploys the Spender. Once the Spender is deployed it cannot be changed
     */
    constructor(address _owner) {
        spender = new Spender();
        _transferOwnership(_owner);
    }

    /**
     * @notice Sets the adapter for an aggregator. It can't be changed later.
     * @param adapterId Aggregator's identifier
     * @param adapterAddress Address of the contract that contains the logic for this aggregator
     */
    function setAdapter(
        string calldata adapterId,
        address adapterAddress
    ) external override onlyOwner {
        require(adapterAddress.isContract(), "ADAPTER_IS_NOT_A_CONTRACT");
        require(!adapterRemoved[adapterId], "ADAPTER_REMOVED");
        require(adapters[adapterId] == address(0), "ADAPTER_EXISTS");
        require(bytes(adapterId).length > 0, "INVALID_ADAPTED_ID");

        adapters[adapterId] = adapterAddress;
        emit AdapterSet(adapterId, adapterAddress);
    }

    /**
     * @notice Removes the adapter for an existing aggregator. This can't be undone.
     * @param adapterId Adapter's identifier
     */
    function removeAdapter(
        string calldata adapterId
    ) external override onlyOwner {
        require(adapters[adapterId] != address(0), "ADAPTER_DOES_NOT_EXIST");
        delete adapters[adapterId];
        adapterRemoved[adapterId] = true;
        emit AdapterRemoved(adapterId);
    }

    /**
     * @notice Performs a bridge
     * @param adapterId Identifier of the aggregator to be used for the bridge
     * @param srcToken Identifier of the source chain
     * @param amount Amount of tokens to be transferred from the destination chain
     * @param data Dynamic data which is passed in to the delegatecall made to the adapter
     * @dev pausable and nonreentrant
     */
    function bridge(
        string calldata adapterId,
        address srcToken,
        uint256 amount,
        bytes calldata data
    ) external payable override whenNotPaused nonReentrant {
        address adapter = adapters[adapterId];
        require(adapter != address(0), "ADAPTER_NOT_FOUND");

        // Move ERC20 funds to the spender
        if (srcToken != Constants.NATIVE_TOKEN) {
            IERC20(srcToken).safeTransferFrom(
                msg.sender,
                address(spender),
                amount
            );
        } else {
            require(msg.value == amount, "MSGVALUE_AMOUNT_MISMATCH");
        }

        spender.bridge{value: msg.value}(
            adapter,
            abi.encodePacked(
                // bridge signature
                IAdapter.bridge.selector,
                abi.encode(msg.sender),
                data
            )
        );
    }

    /**
     * @notice Prevents the bridge function from being executed until the contract is unpaused.
     */
    function pauseBridge() external onlyOwner {
        _pause();
    }

    /**
     * @notice Unpauses the contract to make the bridge function callable.
     */
    function unpauseBridge() external onlyOwner {
        _unpause();
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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);
        }
    }
}

// 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 10 of 16 : Exports.sol
pragma solidity ^0.8.0;

import {IAdapter} from "./IAdapter.sol";
import {IBridge} from "./IBridge.sol";
import {ISpender} from "./ISpender.sol";

File 11 of 16 : IAdapter.sol
pragma solidity ^0.8.0;

interface IAdapter {
    event Bridge(
        address recipient,
        address aggregator,
        uint256 destChain,
        address srcToken,
        address destToken,
        uint256 srcAmount
    );

    event Fee(address srcToken, address feeWallet, uint256 fee);

    function bridge(
        address recipient,
        address aggregator,
        address spender,
        uint256 destChain,
        address srcToken,
        address destToken,
        uint256 srcAmount,
        bytes calldata data,
        uint256 fee,
        address payable feeWallet
    ) external payable;
}

pragma solidity ^0.8.0;

interface IBridge {
    event AdapterSet(string adapterId, address addr);

    event AdapterRemoved(string adapterId);

    function setAdapter(
        string calldata adapterId,
        address adapterAddress
    ) external;

    function removeAdapter(string calldata adapterId) external;

    function bridge(
        string calldata adapterId,
        address tokenFrom,
        uint256 amount,
        bytes calldata data
    ) external payable;
}

File 13 of 16 : ISpender.sol
pragma solidity ^0.8.0;

interface ISpender {
    function bridge(
        address adapterAddress,
        bytes calldata data
    ) external payable;
}

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import {IBridge, ISpender} from "contracts/interfaces/Exports.sol";

contract Spender is ISpender {
    using Address for address;

    IBridge public immutable metabridge;

    /**
     * @dev MetaBridge creates the Spender. Not intended to be called directly.
     */
    constructor() public {
        metabridge = IBridge(msg.sender);
    }

    /**
     * @notice Performs a bridge
     * @param adapter Address of the adapter to be used for the bridge
     * @param data Dynamic data which is passed in to the delegatecall made to the adapter
     */
    function bridge(
        address adapter,
        bytes calldata data
    ) external payable override {
        require(msg.sender == address(metabridge), "FORBIDDEN");
        adapter.functionDelegateCall(data, "ADAPTER_DELEGATECALL_FAILED");
    }
}

File 15 of 16 : Constants.sol
pragma solidity ^0.8.0;

library Constants {
    address internal constant NATIVE_TOKEN =
        0x0000000000000000000000000000000000000000;
}

File 16 of 16 : Exports.sol
pragma solidity ^0.8.0;

import {Constants} from "./Constants.sol";

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"adapterId","type":"string"}],"name":"AdapterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"adapterId","type":"string"},{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"AdapterSet","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":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"adapterRemoved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"adapters","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"adapterId","type":"string"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bridge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"adapterId","type":"string"}],"name":"removeAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"adapterId","type":"string"},{"internalType":"address","name":"adapterAddress","type":"address"}],"name":"setAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spender","outputs":[{"internalType":"contract ISpender","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseBridge","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001ced38038062001ced8339810160408190526200003491620000f8565b6200003f336200009a565b6000805460ff60a01b19169055600180556040516200005e90620000ea565b604051809103906000f0801580156200007b573d6000803e3d6000fd5b506001600160a01b031660805262000093816200009a565b506200012a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6104e1806200180c83390190565b6000602082840312156200010b57600080fd5b81516001600160a01b03811681146200012357600080fd5b9392505050565b6080516116b8620001546000396000818161028801528181610691015261074501526116b86000f3fe6080604052600436106100c75760003560e01c80638da5cb5b11610074578063b84f5d1e1161004e578063b84f5d1e14610228578063e8edc81614610276578063f2fde38b146102aa57600080fd5b80638da5cb5b1461018c578063a82f143c146101d8578063b5268389146101ed57600080fd5b80635c975abb116100a55780635c975abb14610121578063715018a6146101625780637dd0480f1461017757600080fd5b806339122461146100cc5780633ce33bff146100ee5780633ef11fd714610101575b600080fd5b3480156100d857600080fd5b506100ec6100e7366004611253565b6102ca565b005b6100ec6100fc3660046112a7565b6105a5565b34801561010d57600080fd5b506100ec61011c366004611334565b610843565b34801561012d57600080fd5b5060005474010000000000000000000000000000000000000000900460ff165b60405190151581526020015b60405180910390f35b34801561016e57600080fd5b506100ec6109d6565b34801561018357600080fd5b506100ec6109ea565b34801561019857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610159565b3480156101e457600080fd5b506100ec6109fa565b3480156101f957600080fd5b5061014d6102083660046113a5565b805160208183018101805160038252928201919093012091525460ff1681565b34801561023457600080fd5b506101b36102433660046113a5565b805160208183018101805160028252928201919093012091525473ffffffffffffffffffffffffffffffffffffffff1681565b34801561028257600080fd5b506101b37f000000000000000000000000000000000000000000000000000000000000000081565b3480156102b657600080fd5b506100ec6102c5366004611474565b610a0a565b6102d2610ac1565b73ffffffffffffffffffffffffffffffffffffffff81163b610355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f414441505445525f49535f4e4f545f415f434f4e54524143540000000000000060448201526064015b60405180910390fd5b60038383604051610367929190611496565b9081526040519081900360200190205460ff16156103e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f414441505445525f52454d4f5645440000000000000000000000000000000000604482015260640161034c565b600073ffffffffffffffffffffffffffffffffffffffff166002848460405161040b929190611496565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff1614610498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f414441505445525f455849535453000000000000000000000000000000000000604482015260640161034c565b816104ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f494e56414c49445f414441505445445f49440000000000000000000000000000604482015260640161034c565b8060028484604051610512929190611496565b908152604051908190036020018120805473ffffffffffffffffffffffffffffffffffffffff939093167fffffffffffffffffffffffff0000000000000000000000000000000000000000909316929092179091557ff9648cbc19f288e0f271f7e95311238912bf1ea8225e636a13bb1d259126002190610598908590859085906114ef565b60405180910390a1505050565b6105ad610b42565b6105b5610bc7565b6000600287876040516105c9929190611496565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff16905080610658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f414441505445525f4e4f545f464f554e44000000000000000000000000000000604482015260640161034c565b73ffffffffffffffffffffffffffffffffffffffff8516156106bb576106b673ffffffffffffffffffffffffffffffffffffffff8616337f000000000000000000000000000000000000000000000000000000000000000087610c3a565b610724565b833414610724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4d534756414c55455f414d4f554e545f4d49534d415443480000000000000000604482015260640161034c565b6040805133602082015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691634cfee32691349185917fab138240000000000000000000000000000000000000000000000000000000009101604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526107d392918a908a9060200161154d565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016107ff9291906115ee565b6000604051808303818588803b15801561081857600080fd5b505af115801561082c573d6000803e3d6000fd5b50505050505061083b60018055565b505050505050565b61084b610ac1565b600073ffffffffffffffffffffffffffffffffffffffff1660028383604051610875929190611496565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff1603610902576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f414441505445525f444f45535f4e4f545f455849535400000000000000000000604482015260640161034c565b60028282604051610914929190611496565b90815260405190819003602001812080547fffffffffffffffffffffffff000000000000000000000000000000000000000016905560019060039061095c9085908590611496565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909316929092179091557fb00061f7cc154fc23eb34671ab724fc7eb7b806abae871abae8f1eafce972135906109ca908490849061161d565b60405180910390a15050565b6109de610ac1565b6109e86000610cd5565b565b6109f2610ac1565b6109e8610d4a565b610a02610ac1565b6109e8610de3565b610a12610ac1565b73ffffffffffffffffffffffffffffffffffffffff8116610ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161034c565b610abe81610cd5565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034c565b60005474010000000000000000000000000000000000000000900460ff16156109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161034c565b600260015403610c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161034c565b6002600155565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610ccf908590610e3a565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610d52610b42565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610db93390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b610deb610f4e565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610db9565b6000610e9c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fd29092919063ffffffff16565b9050805160001480610ebd575080806020019051810190610ebd9190611631565b610f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161034c565b505050565b60005474010000000000000000000000000000000000000000900460ff166109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161034c565b6060610fe18484600085610fe9565b949350505050565b60608247101561107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161034c565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516110a49190611653565b60006040518083038185875af1925050503d80600081146110e1576040519150601f19603f3d011682016040523d82523d6000602084013e6110e6565b606091505b50915091506110f787838387611102565b979650505050505050565b606083156111985782516000036111915773ffffffffffffffffffffffffffffffffffffffff85163b611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034c565b5081610fe1565b610fe183838151156111ad5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034c919061166f565b60008083601f8401126111f357600080fd5b50813567ffffffffffffffff81111561120b57600080fd5b60208301915083602082850101111561122357600080fd5b9250929050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461124e57600080fd5b919050565b60008060006040848603121561126857600080fd5b833567ffffffffffffffff81111561127f57600080fd5b61128b868287016111e1565b909450925061129e90506020850161122a565b90509250925092565b600080600080600080608087890312156112c057600080fd5b863567ffffffffffffffff808211156112d857600080fd5b6112e48a838b016111e1565b90985096508691506112f860208a0161122a565b955060408901359450606089013591508082111561131557600080fd5b5061132289828a016111e1565b979a9699509497509295939492505050565b6000806020838503121561134757600080fd5b823567ffffffffffffffff81111561135e57600080fd5b61136a858286016111e1565b90969095509350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156113b757600080fd5b813567ffffffffffffffff808211156113cf57600080fd5b818401915084601f8301126113e357600080fd5b8135818111156113f5576113f5611376565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561143b5761143b611376565b8160405282815287602084870101111561145457600080fd5b826020860160208301376000928101602001929092525095945050505050565b60006020828403121561148657600080fd5b61148f8261122a565b9392505050565b8183823760009101908152919050565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b6040815260006115036040830185876114a6565b905073ffffffffffffffffffffffffffffffffffffffff83166020830152949350505050565b60005b8381101561154457818101518382015260200161152c565b50506000910152565b7fffffffff000000000000000000000000000000000000000000000000000000008516815260008451611587816004850160208901611529565b820183856004830137600093016004019283525090949350505050565b600081518084526115bc816020860160208601611529565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000610fe160408301846115a4565b602081526000610fe16020830184866114a6565b60006020828403121561164357600080fd5b8151801515811461148f57600080fd5b60008251611665818460208701611529565b9190910192915050565b60208152600061148f60208301846115a456fea264697066735822122072506545287e639e706b5ac924fb1dc17154f9ae1d31264c54b4f71cdcd9ef6a64736f6c6343000813003360a060405234801561001057600080fd5b50336080526080516104ac610035600039600081816055015260b801526104ac6000f3fe6080604052600436106100295760003560e01c80634cfee3261461002e5780634ed6ef1914610043575b600080fd5b61004161003c366004610347565b6100a0565b005b34801561004f57600080fd5b506100777f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f464f5242494444454e000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6101d082828080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152601b81527f414441505445525f44454c454741544543414c4c5f4641494c45440000000000602082015273ffffffffffffffffffffffffffffffffffffffff881693925090506101d6565b50505050565b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516102009190610409565b600060405180830381855af49150503d806000811461023b576040519150601f19603f3d011682016040523d82523d6000602084013e610240565b606091505b50915091506102518683838761025b565b9695505050505050565b606083156102f15782516000036102ea5773ffffffffffffffffffffffffffffffffffffffff85163b6102ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161013b565b50816102fb565b6102fb8383610303565b949350505050565b8151156103135781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161013b9190610425565b60008060006040848603121561035c57600080fd5b833573ffffffffffffffffffffffffffffffffffffffff8116811461038057600080fd5b9250602084013567ffffffffffffffff8082111561039d57600080fd5b818601915086601f8301126103b157600080fd5b8135818111156103c057600080fd5b8760208285010111156103d257600080fd5b6020830194508093505050509250925092565b60005b838110156104005781810151838201526020016103e8565b50506000910152565b6000825161041b8184602087016103e5565b9190910192915050565b60208152600082518060208401526104448160408501602087016103e5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212204abcbd7ec8b4d7b725614a43b1d1225399c3aaf13795f8e50a196e41b8590eb564736f6c63430008130033000000000000000000000000c3a624e7dba0bf887cb945bc6667bd6abee388d2

Deployed Bytecode

0x6080604052600436106100c75760003560e01c80638da5cb5b11610074578063b84f5d1e1161004e578063b84f5d1e14610228578063e8edc81614610276578063f2fde38b146102aa57600080fd5b80638da5cb5b1461018c578063a82f143c146101d8578063b5268389146101ed57600080fd5b80635c975abb116100a55780635c975abb14610121578063715018a6146101625780637dd0480f1461017757600080fd5b806339122461146100cc5780633ce33bff146100ee5780633ef11fd714610101575b600080fd5b3480156100d857600080fd5b506100ec6100e7366004611253565b6102ca565b005b6100ec6100fc3660046112a7565b6105a5565b34801561010d57600080fd5b506100ec61011c366004611334565b610843565b34801561012d57600080fd5b5060005474010000000000000000000000000000000000000000900460ff165b60405190151581526020015b60405180910390f35b34801561016e57600080fd5b506100ec6109d6565b34801561018357600080fd5b506100ec6109ea565b34801561019857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610159565b3480156101e457600080fd5b506100ec6109fa565b3480156101f957600080fd5b5061014d6102083660046113a5565b805160208183018101805160038252928201919093012091525460ff1681565b34801561023457600080fd5b506101b36102433660046113a5565b805160208183018101805160028252928201919093012091525473ffffffffffffffffffffffffffffffffffffffff1681565b34801561028257600080fd5b506101b37f000000000000000000000000a5c1ce365ddb5a91ff466774ec4bdf8f97cb9f5581565b3480156102b657600080fd5b506100ec6102c5366004611474565b610a0a565b6102d2610ac1565b73ffffffffffffffffffffffffffffffffffffffff81163b610355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f414441505445525f49535f4e4f545f415f434f4e54524143540000000000000060448201526064015b60405180910390fd5b60038383604051610367929190611496565b9081526040519081900360200190205460ff16156103e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f414441505445525f52454d4f5645440000000000000000000000000000000000604482015260640161034c565b600073ffffffffffffffffffffffffffffffffffffffff166002848460405161040b929190611496565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff1614610498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f414441505445525f455849535453000000000000000000000000000000000000604482015260640161034c565b816104ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f494e56414c49445f414441505445445f49440000000000000000000000000000604482015260640161034c565b8060028484604051610512929190611496565b908152604051908190036020018120805473ffffffffffffffffffffffffffffffffffffffff939093167fffffffffffffffffffffffff0000000000000000000000000000000000000000909316929092179091557ff9648cbc19f288e0f271f7e95311238912bf1ea8225e636a13bb1d259126002190610598908590859085906114ef565b60405180910390a1505050565b6105ad610b42565b6105b5610bc7565b6000600287876040516105c9929190611496565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff16905080610658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f414441505445525f4e4f545f464f554e44000000000000000000000000000000604482015260640161034c565b73ffffffffffffffffffffffffffffffffffffffff8516156106bb576106b673ffffffffffffffffffffffffffffffffffffffff8616337f000000000000000000000000a5c1ce365ddb5a91ff466774ec4bdf8f97cb9f5587610c3a565b610724565b833414610724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4d534756414c55455f414d4f554e545f4d49534d415443480000000000000000604482015260640161034c565b6040805133602082015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000a5c1ce365ddb5a91ff466774ec4bdf8f97cb9f551691634cfee32691349185917fab138240000000000000000000000000000000000000000000000000000000009101604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526107d392918a908a9060200161154d565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016107ff9291906115ee565b6000604051808303818588803b15801561081857600080fd5b505af115801561082c573d6000803e3d6000fd5b50505050505061083b60018055565b505050505050565b61084b610ac1565b600073ffffffffffffffffffffffffffffffffffffffff1660028383604051610875929190611496565b9081526040519081900360200190205473ffffffffffffffffffffffffffffffffffffffff1603610902576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f414441505445525f444f45535f4e4f545f455849535400000000000000000000604482015260640161034c565b60028282604051610914929190611496565b90815260405190819003602001812080547fffffffffffffffffffffffff000000000000000000000000000000000000000016905560019060039061095c9085908590611496565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909316929092179091557fb00061f7cc154fc23eb34671ab724fc7eb7b806abae871abae8f1eafce972135906109ca908490849061161d565b60405180910390a15050565b6109de610ac1565b6109e86000610cd5565b565b6109f2610ac1565b6109e8610d4a565b610a02610ac1565b6109e8610de3565b610a12610ac1565b73ffffffffffffffffffffffffffffffffffffffff8116610ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161034c565b610abe81610cd5565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161034c565b60005474010000000000000000000000000000000000000000900460ff16156109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161034c565b600260015403610c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161034c565b6002600155565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610ccf908590610e3a565b50505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610d52610b42565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610db93390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b610deb610f4e565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610db9565b6000610e9c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fd29092919063ffffffff16565b9050805160001480610ebd575080806020019051810190610ebd9190611631565b610f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161034c565b505050565b60005474010000000000000000000000000000000000000000900460ff166109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161034c565b6060610fe18484600085610fe9565b949350505050565b60608247101561107b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161034c565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516110a49190611653565b60006040518083038185875af1925050503d80600081146110e1576040519150601f19603f3d011682016040523d82523d6000602084013e6110e6565b606091505b50915091506110f787838387611102565b979650505050505050565b606083156111985782516000036111915773ffffffffffffffffffffffffffffffffffffffff85163b611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034c565b5081610fe1565b610fe183838151156111ad5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034c919061166f565b60008083601f8401126111f357600080fd5b50813567ffffffffffffffff81111561120b57600080fd5b60208301915083602082850101111561122357600080fd5b9250929050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461124e57600080fd5b919050565b60008060006040848603121561126857600080fd5b833567ffffffffffffffff81111561127f57600080fd5b61128b868287016111e1565b909450925061129e90506020850161122a565b90509250925092565b600080600080600080608087890312156112c057600080fd5b863567ffffffffffffffff808211156112d857600080fd5b6112e48a838b016111e1565b90985096508691506112f860208a0161122a565b955060408901359450606089013591508082111561131557600080fd5b5061132289828a016111e1565b979a9699509497509295939492505050565b6000806020838503121561134757600080fd5b823567ffffffffffffffff81111561135e57600080fd5b61136a858286016111e1565b90969095509350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156113b757600080fd5b813567ffffffffffffffff808211156113cf57600080fd5b818401915084601f8301126113e357600080fd5b8135818111156113f5576113f5611376565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561143b5761143b611376565b8160405282815287602084870101111561145457600080fd5b826020860160208301376000928101602001929092525095945050505050565b60006020828403121561148657600080fd5b61148f8261122a565b9392505050565b8183823760009101908152919050565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b6040815260006115036040830185876114a6565b905073ffffffffffffffffffffffffffffffffffffffff83166020830152949350505050565b60005b8381101561154457818101518382015260200161152c565b50506000910152565b7fffffffff000000000000000000000000000000000000000000000000000000008516815260008451611587816004850160208901611529565b820183856004830137600093016004019283525090949350505050565b600081518084526115bc816020860160208601611529565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000610fe160408301846115a4565b602081526000610fe16020830184866114a6565b60006020828403121561164357600080fd5b8151801515811461148f57600080fd5b60008251611665818460208701611529565b9190910192915050565b60208152600061148f60208301846115a456fea264697066735822122072506545287e639e706b5ac924fb1dc17154f9ae1d31264c54b4f71cdcd9ef6a64736f6c63430008130033

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

000000000000000000000000c3a624e7dba0bf887cb945bc6667bd6abee388d2

-----Decoded View---------------
Arg [0] : _owner (address): 0xC3A624e7DbA0BF887Cb945bC6667BD6aBEE388D2

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

`; } let ensZeroWidthWarningHtml = ""; if ($("#hdnIsEnsContainZeroWidthChars").val() == "true") { ensZeroWidthWarningHtml = `
${zeroWidthWarningMessage} Check the actual text at BaseName.
`; } const ensOnL2NoteHtml = ensOnL2Note != "" ? `
  • ${ensOnL2Note}
  • ` : ""; const contentHtml = `
    Additional Info
    Full Name:
    ${ensNameForkIconSrc}


    Note:
    • Name tag is displayed due to forward and reverse resolution. Find out more.
    • A Domain Name is not necessarily held by a person popularly associated with the name.
    • ${ensOnL2NoteHtml}
    ${ensUnicodeWarningHtml} ${ensZeroWidthWarningHtml}
    `; $('#ensName').popover({ html: true, content: contentHtml, trigger: 'manual', placement: 'right' }); $('#ensName').click(function (event) { $("#udName").popover('hide') $("#ensName").popover('toggle'); event.stopPropagation(); }); $('#ensName').on('shown.bs.popover', async () => { //disable tooltip when hovering over ens name in the main page $("[rel='tooltipEns']").each(function () { $(this).tooltip('hide'); $(this).tooltip('disable'); }); //call ajax here to get result if (!otherENSNamesHtml) { const resolvedAddressesModel = await getEnsResolvedAddress($("#hdnAddress").val(), primaryDomainNameLabel); otherENSNamesHtml = generateEnsPopoverGrid(resolvedAddressesModel.d); if (!otherENSNamesHtml) { otherENSNamesHtml = "There are no other names resolving to this address." } } $(".popOverEnsOwnedAddressTable").html(otherENSNamesHtml); $("#divENSDisplayName").html(ensDisplayName); // append more copy button for ENS let domainName = $("#hdnEnsText").val(); const copyEnsButtonHtml = ` `; $("#spanCopyENSAddress").html(copyEnsButtonHtml); $("[data-bs-toggle='tooltip']").tooltip(); }); $('#ensName').on('hidden.bs.popover', () => { $("[rel='tooltipEns']").each(function () { $(this).tooltip('enable'); }); }); $('#ensName').on('hide.bs.popover', () => { $("[data-bs-toggle='tooltip']").tooltip('hide'); }); $(document).click(function (e) { const popoverElement = document.getElementById('popover-ens-preview'); const popoverTrigger = document.getElementById('ensName'); if (!popoverTrigger.contains(e.target) && (!popoverElement || !popoverElement.contains(e.target))) { $("#ensName").popover('hide'); } }) } async function getEnsResolvedAddress(address, currentEnsText) { try { const requestModel = { "lookupAddress": address, "primaryDomainName": currentEnsText, "provider": ensNameProvider }; const response = await $.ajax({ url: "/name-lookup-search.aspx/GetOtherDomainNameForAddress", type: "POST", contentType: "application/json", dataType: "json", data: JSON.stringify({ requestModel: requestModel }) }) return response; } catch { return ""; } } function generateEnsPopoverGrid(model) { if (!model || model.DomainNames.length == 0) { return ""; } let listOtherENSNames = ""; model.DomainNames.forEach(x => listOtherENSNames += x.Name); let moreOtherENSNames = ""; if (model.Total > 5) { moreOtherENSNames = `More ` } const result = `
    Other names resolving to this address:
    ${listOtherENSNames} ${moreOtherENSNames}
    `; return result; } // ===== UD name tag const displayUDName = ''; const primaryUDName = ''; const showUDPublicNote = 'false'; let otherUDNamesHtml = ""; function initUDNamePopOver() { //required to allow bootstrap popover to support table $.fn.popover.Constructor.Default.allowList.table = []; $.fn.popover.Constructor.Default.allowList.tr = []; $.fn.popover.Constructor.Default.allowList.td = []; $.fn.popover.Constructor.Default.allowList.th = []; $.fn.popover.Constructor.Default.allowList.div = []; $.fn.popover.Constructor.Default.allowList.tbody = []; $.fn.popover.Constructor.Default.allowList.thead = []; //allowList my inline styling for bootstrap $.fn.popover.Constructor.Default.allowList['*'].push('style') let unicodeWarningHtml = ""; if ($("#hdnIsUDContainUnicodeChars").val() == "true") { unicodeWarningHtml = `
    ${unicodeWarningMessage} Check the actual text at Unstoppable Domains.
    `; } let zeroWidthWarningHtml = ""; if ($("#hdnIsUDContainZeroWidthChars").val() == "true") { zeroWidthWarningHtml = `
    ${unicodeWarningMessage} Check the actual text at Unstoppable Domains.
    `; } const contentHtml = `
    Additional Info
    Full Name:
    Unstoppable Domains Name


    Note:
    • Name tag is displayed due to forward and reverse resolution. Find out more
    • A Domain Name is not necessarily held by a person popularly associated with the name.
    ${unicodeWarningHtml} ${zeroWidthWarningHtml}
    `; $('#udName').popover({ html: true, content: contentHtml, trigger: 'manual' }); $('#udName').click(function (event) { $("#ensName").popover('hide'); $("#udName").popover('toggle'); event.stopPropagation(); }); $('#udName').on('shown.bs.popover', async () => { //disable tooltip when hovering over SID name in the main page $("[rel='tooltipUDName']").each(function () { $(this).tooltip('hide'); $(this).tooltip('disable'); }); //call ajax here to get result if (!otherUDNamesHtml) { const resolvedAddressesModel = await getUDNamesResolvedAddress($("#hdnAddress").val(), primaryUDName); //format the ajax to otherUDNamesHtml otherUDNamesHtml = generateUDPopoverGrid(resolvedAddressesModel.d); if (!otherUDNamesHtml) { otherUDNamesHtml = "There are no other names resolving to this address." } } $(".popoverUDNamesOwnedByAddress").html(otherUDNamesHtml); $("#divDisplayUDName").html(displayUDName); if (showUDPublicNote == true) { $("#noteUD").html('The Unstoppable Domains NFT is minted on the Ethereum blockchain. View and verify its details on Etherscan.'); $("#noteUD").show(); } $("[data-bs-toggle='tooltip']").tooltip(); }); $('#udName').on('hidden.bs.popover', () => { $("[rel='tooltipUDName']").each(function () { $(this).tooltip('enable'); }); }); $('#udName').on('hide.bs.popover', () => { $("[data-bs-toggle='tooltip']").tooltip('hide'); }); // Hide Unstoppable Domains Name popover when click outside the popover popup. $(document).click(function () { $("#udName").popover('hide') }); } async function getUDNamesResolvedAddress(address, primaryUDName) { try { const requestModel = { "lookupAddress": address, "primaryDomainName": primaryUDName, "provider": "UD" }; const response = await $.ajax({ url: "/name-lookup-search.aspx/GetOtherDomainNameForAddress", type: "POST", contentType: "application/json", dataType: "json", data: JSON.stringify({ requestModel: requestModel }) }) return response; } catch { return ""; } } function generateUDPopoverGrid(model) { if (!model || model.DomainNames.length == 0) { return ""; } let listOtherUDNames = ""; model.DomainNames.forEach(x => listOtherUDNames += x.Name); let moreOtherUDNames = ""; if (model.Total > 5) { moreOtherUDNames = `More `; } const result = `
    Other names resolving to this address:
    ${listOtherUDNames} ${moreOtherUDNames}
    `; return result; } // ===== end UD name tag const tooltipForTokenHolding = 'More than 201 tokens found, listing and displaying the total balance of the first 100 tokens only. Click on the Coins icon to see the full list and balance.'; var adjustPosition = 0; $(document).ready(function () { switchAmountToValue(document.getElementById("headerAmountValue"), 'Value (USD)', 'Amount', true); switchAmountToValue(document.getElementById("headerIntAmountValue"), 'Value (USD)', 'Amount', true); switchMethodColumn(document.getElementById("headerMethod"), 'Method', 'Action', true); onDocumentReady(); $("[rel='tooltip']").tooltip(); $("[data-bs-toggle-second='tooltip']").tooltip({ trigger: 'hover' }); $("[rel='tooltipEns']").each(function () { $(this).tooltip({ title: $(this).attr("tooltip-title") }); }); if (hash != '') { activaTab(hash); }; onAddressDocReady(); // Note: this is causing "Copied" tooltip not showing when copy button is clicked in V3, and seems like not applicable to v3, comment out first in case there is issue //$('[data-bs-toggle="tooltip"]').click(function () { // $('[data-bs-toggle="tooltip"]').tooltip("hide"); //}); document.getElementById("copyaddressbutton").classList.remove("disabled"); if ($("#txtSearchContract").length) { initialiseKeyupOnDocReady(); } if (!!$('#ensName')[0]) { initEnsNamePopOver(); } if (!!$("#udName")[0]) { initUDNamePopOver(); } handleToggle(); if (window.matchMedia("(max-width: 767px)").matches) { // Mobile adjustPosition = 90; } else { // Others adjustPosition = 50; } if (tooltipForTokenHolding) { const dropdownMenuBalance = document.getElementById("dropdownMenuBalance"); if (dropdownMenuBalance) { const dropdownWrapper = dropdownMenuBalance.closest(".dropdown"); if (dropdownWrapper) { dropdownWrapper.setAttribute("title", tooltipForTokenHolding); new bootstrap.Tooltip(dropdownWrapper); } } } }); function displayAudit() { $('html, body').animate({ scrollTop: $("#auditReportId").offset().top - adjustPosition }); } var cThemeMode = getCookie('displaymode'); function handleToggle() { var className = document.getElementsByClassName('editor'); var classNameCount = className.length; for (var j = 0; j t.innerWidth()) { if (mb + d > tb) { t.css('padding-bottom', ((mb + d) - tb)); } } else { t.css('overflow', 'visible'); } }).on('hidden.bs.dropdown', function () { $(this).css({ 'padding-bottom': '', 'overflow': '' }); }); var btn_ERC20_sort = { count: 0, reminder_count: 2, list: [], default_list: [], ERC20_sort_start: function (count) { if (document.getElementsByClassName('list-custom-divider-ERC20')[0]) { var self = this if (count != undefined) { self.count = count } var before_el = document.getElementsByClassName('list-custom-divider-ERC20')[0] var parent_el = before_el.parentNode var element_selector = parent_el.querySelectorAll(".list-custom-ERC20"); if (self.list.length == 0) { element_selector.forEach(function (e) { self.list.push(e); self.default_list.push(e); }); } $(".list-custom-ERC20").remove() var type = self.count % self.reminder_count self.sortList(type, parent_el, before_el); self.count++ } }, sortList: function (type, parent_el, before_el) { var self = this var sorted_list = [] var icon_el = $(before_el).find('button').find('i') switch (type) { case 1: icon_el.attr("class", "fad fa-sort-up") sorted_list = self.sortUsdAsc() break; default: icon_el.attr("class", "fad fa-sort-down") sorted_list = self.sortUsdDesc() } for (var i = sorted_list.length - 1; i >= 0; i--) { before_el.insertAdjacentElement('afterend', sorted_list[i]) } }, sortUsdAsc: function () { var self = this var sort_list = self.list sort_list.sort(function (a, b) { var target_a_value = self.formatCurrencyToNumber(a.querySelector('.list-usd-value').textContent.trim() || -1); var target_b_value = self.formatCurrencyToNumber(b.querySelector('.list-usd-value').textContent.trim() || -1); if (target_a_value == -1 || target_b_value == -1) { return 1; } if (target_a_value target_b_value) { return 1; } return 0 }); return sort_list }, sortUsdDesc: function () { var self = this var sort_list = self.list sort_list.sort(function (a, b) { var target_a_value = self.formatCurrencyToNumber(a.querySelector('.list-usd-value').textContent.trim() || -1); var target_b_value = self.formatCurrencyToNumber(b.querySelector('.list-usd-value').textContent.trim() || -1); if (target_a_value target_b_value) { return -1; } return 0 }); return sort_list }, formatCurrencyToNumber: function (strCurrency) { if (typeof strCurrency == "number") return strCurrency else return Number(strCurrency.replace(/[^0-9.-]+/g, "")); }, } function hrefTokenHolding() { var location = "/tokenholdings?a=0xa20ecbc821fb54064aa7b5c6ac81173b8b34df71" var queryString = $("input.form-control.form-control-xs.search.mb-3")[0].value if (queryString) { location += "&q=" + queryString } window.location.href = location } $(document).ready(function () { $("#btn_ERC20_sort").on("click", function (event) { event.preventDefault(); setTimeout(function () { btn_ERC20_sort.ERC20_sort_start() }, 10) }) btn_ERC20_sort.ERC20_sort_start() var mainAddress = $("#hdnAddress").val(); // user search for method filters var searchFuncTimeOut; $("#ContentPlaceHolder1_inputMethodName").on("keyup", function ($event) { if (searchFuncTimeOut) { clearTimeout(searchFuncTimeOut) } var searchTerm = $(this).val(); searchFuncTimeOut = setTimeout(function () { searchFunctions( searchTerm); }, 350); }); var isSearchFunctions = false; $("#dropdownMethod").on("click", function (e) { if (isSearchFunctions === false) { searchFunctions(''); isSearchFunctions = true; } }); const litDefaultMethodFilterHtml = ''; function searchFunctions(searchTerm) { if (searchTerm === '' || searchTerm.length > 3) { const curPath = encodeURIComponent(window.location.search); $.ajax({ type: 'Get', url: `/functionSearchHandler.ashx?ca=${mainAddress}&func=${searchTerm ?? ''}&curPath=${curPath}`, success: function (response) { $("#searchFunctionResult").html(''); if (response && response.length > 0) { for (var i = 0; i ${response[i].name} ${response[i].methodId} ` ); } $("[data-bs-toggle='tooltip']").tooltip(); } else { $("#searchFunctionResult").append( `` ); } $("#inputMethodSpinner").hide(); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#searchFunctionResult").html(''); $("#inputMethodSpinner").hide(); } }); } else { $("#inputMethodSpinner").hide(); $("#searchFunctionResult").html(litDefaultMethodFilterHtml); } } // Resize window for analytic tab let isBusy = false; $(window).resize(function () { isBusy = true; if (isBusy) { let analyticFrame = document.getElementById('analytics_pageiframe'); if (analyticFrame && analyticFrame.contentWindow != undefined) { let navtab = analyticFrame.contentWindow.document.getElementsByClassName("nav_tabs1"); let hIframe = "0px"; if (navtab != null && navtab != undefined && navtab.length > 0) { let navH = Number(navtab[0].scrollHeight); hIframe = (Number(analyticFrame.contentWindow.document.getElementsByClassName("tab-content")[0].scrollHeight) + navH + 20) + 'px'; } else { hIframe = analyticFrame.contentWindow.document.body.scrollHeight + 'px'; } analyticFrame.style.height = hIframe } } }); // detect tooltip for token holding dropdown if ($(".addresses-tooltip-over").length > 0) { if (!isMobile()) { $(".addresses-tooltip-over").attr("data-bs-trigger", "hover"); let tooltip = bootstrap.Tooltip.getInstance(".addresses-tooltip-over"); if (tooltip !== null) { tooltip.dispose(); tooltip = new bootstrap.Tooltip($(".addresses-tooltip-over")); tooltip._config.trigger = 'hover'; tooltip.update(); } } } // Quick export transaction csv const quickExportCsvData = '[{"Txhash":"0x5c16c1b2e3fd8ef2ce3488c25b27c3301b44c03be3da4298f782caded1de45a2","Status":"Success","Method":"Bridge","Blockno":"42204565","DateTime":"2026-02-15 23:34:37","Sender":"0xf025724e8A296fD353c048B2e1a92DDe378AE96B","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000129"},{"Txhash":"0x36020a4bb078edd027b5795c34b5ad7f4ccd9ecd889ecc452fe4cfedbb5bfb78","Status":"Success","Method":"Bridge","Blockno":"42204549","DateTime":"2026-02-15 23:34:05","Sender":"0xD281f8456cD135f34D674A8e5dc1860944Ca27a2","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.00545409 ETH","Value":"$10.69","TxnFee":"0.00000075"},{"Txhash":"0x7d3a45b0d3f8df48507131a6cb329ece18b72065c720ce05c03e81a221047ca2","Status":"Success","Method":"Bridge","Blockno":"42204507","DateTime":"2026-02-15 23:32:41","Sender":"0x9b95a0c2f7bC154Af3B50E039951c0932Eb55501","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.0372 ETH","Value":"$72.93","TxnFee":"0.00000078"},{"Txhash":"0xa904c83dae34aace139cb20a50079725d0881c031284630cef975bfc143397c2","Status":"Success","Method":"Bridge","Blockno":"42204394","DateTime":"2026-02-15 23:28:55","Sender":"0x1a223bacfAAc260BCa1Bff6f9a248732764EB93F","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.003 ETH","Value":"$5.88","TxnFee":"0.0000011"},{"Txhash":"0x736f171fc1fbe9a07115ac320f16258d79ea94f805d27645756f48ba5123b863","Status":"Success","Method":"Bridge","Blockno":"42204373","DateTime":"2026-02-15 23:28:13","Sender":"0x86C9e05215E090814A744BA56080120a95B338a9","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.00029 ETH","Value":"$0.57","TxnFee":"0.00000134"},{"Txhash":"0xd09f52c2979c46cc9a8d5b4c842e0bd840d149e319eee69ab7ad88b55da356fb","Status":"Success","Method":"Bridge","Blockno":"42204358","DateTime":"2026-02-15 23:27:43","Sender":"0xa1090d200Cede73d834B9086B172aa146a302417","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000833"},{"Txhash":"0x6ce928086fcc90ff3f4152bbb166a51e607c9795b8446af0503f243d672bc686","Status":"Success","Method":"Bridge","Blockno":"42204339","DateTime":"2026-02-15 23:27:05","Sender":"0x1a223bacfAAc260BCa1Bff6f9a248732764EB93F","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000145"},{"Txhash":"0x8ee5919c2c39704eac2e2e052f28c7917693de43109eca5b4c94404e1a902c2d","Status":"Success","Method":"Bridge","Blockno":"42204332","DateTime":"2026-02-15 23:26:51","Sender":"0x39Eeab696204508946B158Cf08bd30e665e2Ff7F","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000309"},{"Txhash":"0x854976949411a96ecec522e1afec0f17971cb91affd68b227660fa441b2b9957","Status":"Success","Method":"Bridge","Blockno":"42204315","DateTime":"2026-02-15 23:26:17","Sender":"0x19393cE556d7AfB61dfD40b40a5595f9fF5a5e40","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.0000057"},{"Txhash":"0x65e0194ab0241506f1407ec3f1e0c803dc31ec12bd6e8bb6d30734345b0c7730","Status":"Success","Method":"Bridge","Blockno":"42204307","DateTime":"2026-02-15 23:26:01","Sender":"0xeEc0C39A7a9245AfF104aF2569Ec17EB51113de2","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.00104 ETH","Value":"$2.04","TxnFee":"0.00000181"},{"Txhash":"0xf608bb53d885d3f174471b1a2641617fda78c6c3ce99adc7e16b0d511c97ca7c","Status":"Success","Method":"Bridge","Blockno":"42204246","DateTime":"2026-02-15 23:23:59","Sender":"0xeEc0C39A7a9245AfF104aF2569Ec17EB51113de2","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000143"},{"Txhash":"0xe815d7423cff110442a88c12a44bc76ed759d5a0afa014235ea4522258d7f788","Status":"Success","Method":"Bridge","Blockno":"42204243","DateTime":"2026-02-15 23:23:53","Sender":"0xa1090d200Cede73d834B9086B172aa146a302417","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000687"},{"Txhash":"0x1a4ab43db849917787c3cb43a2db2447f522457fc5056c180bf2974033c186cf","Status":"Success","Method":"Bridge","Blockno":"42204216","DateTime":"2026-02-15 23:22:59","Sender":"0x102fa8e74C7e810e824c5E0d96394b5f6D61326d","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.0029 ETH","Value":"$5.69","TxnFee":"0.00000107"},{"Txhash":"0xa7cf51d8099b249e3f5cbf997c6b36de0b34bb492ce83e571f995fafb880508d","Status":"Success","Method":"Bridge","Blockno":"42204093","DateTime":"2026-02-15 23:18:53","Sender":"0x8A3E27b38FDE3B52eE00799d86ED851cb240B1f8","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.00007 ETH","Value":"$0.14","TxnFee":"0.00000069"},{"Txhash":"0xcd5742025a1b5ebe66bca26ca269cae9c3fb6e3edcc9091e0ebfc7590867a782","Status":"Success","Method":"Bridge","Blockno":"42204047","DateTime":"2026-02-15 23:17:21","Sender":"0x8A3E27b38FDE3B52eE00799d86ED851cb240B1f8","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.0097 ETH","Value":"$19.02","TxnFee":"0.00000087"},{"Txhash":"0x79446326cafaab63ec28b100af3d7160127a204a36c565b2455225bf1b790a83","Status":"Success","Method":"Bridge","Blockno":"42203999","DateTime":"2026-02-15 23:15:45","Sender":"0x976d5a88e9bc344d04054fb73514F971DB59370D","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000692"},{"Txhash":"0xed61e129cb210d71d399d9882264588cbd421ed086ef91d4267b6fc931a3f983","Status":"Success","Method":"Bridge","Blockno":"42203978","DateTime":"2026-02-15 23:15:03","Sender":"0x65Cbd32b424DB02f447AC3Cc88cbC8333B03fb9F","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.0007 ETH","Value":"$1.37","TxnFee":"0.00000105"},{"Txhash":"0xf3bb295e10e3a16ed5559c8cc1710d5d18c38c90401938534ad161a9518c0966","Status":"Success","Method":"Bridge","Blockno":"42203920","DateTime":"2026-02-15 23:13:07","Sender":"0x27f2117B3A72b5fd2Bf5330F1Ab27aB641725Fb0","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.00071927 ETH","Value":"$1.41","TxnFee":"0.00000572"},{"Txhash":"0x7c79d20b517fc97c8d3e71523945196458db2c0a2a388899727fb90bcb0d63b3","Status":"Success","Method":"Bridge","Blockno":"42203891","DateTime":"2026-02-15 23:12:09","Sender":"0xA838eb532E5A98Bd55dD44a2eec0fD2094Ac7023","SenderLable":"bennybullish.base.eth","Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.039 ETH","Value":"$76.46","TxnFee":"0.00000037"},{"Txhash":"0x4ff334161d16c54893009575b6b5d977c21d3bdced210d3ed36030fa04da6143","Status":"Success","Method":"Bridge","Blockno":"42203880","DateTime":"2026-02-15 23:11:47","Sender":"0xEf60C2dBC7113c7e85fEab5F917A8C7E666FD19D","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00001113"},{"Txhash":"0xb2a51c0e3ae332e6d1c80401bfce1f8317f1163f4b3341a0df529ca78c0c2eea","Status":"Success","Method":"Bridge","Blockno":"42203798","DateTime":"2026-02-15 23:09:03","Sender":"0x48354a4c2351DA7b4Db534091a3F5aA8ff0db3f8","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000161"},{"Txhash":"0xe6f6c8b5b1b05184435ee700a72e265623531024250b7a3b4fca372b02e7d4f6","Status":"Success","Method":"Bridge","Blockno":"42203624","DateTime":"2026-02-15 23:03:15","Sender":"0xc96E4096C0b01AD20eE3F3b7188f3752e3eec602","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000188"},{"Txhash":"0x2b39ee9a21f6ba1e0da8dce2c021f70afc6824f2ca046e852c0ae9c02936e884","Status":"Success","Method":"Bridge","Blockno":"42203615","DateTime":"2026-02-15 23:02:57","Sender":"0xfb889fdBF6e0c0c67ECc55fb5ec923c2CC4C44fa","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00000223"},{"Txhash":"0x59be44a32072d044032aa2cc1cd7ae11bac7c42c34e53f6ae055fe3337760a31","Status":"Success","Method":"Bridge","Blockno":"42203614","DateTime":"2026-02-15 23:02:55","Sender":"0x7eb48ac8cef097e7d1d5F72320A9538D24574d69","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0.00026715 ETH","Value":"$0.52","TxnFee":"0.00000082"},{"Txhash":"0x2e5e1dac1eb84fb9df749513c44eb41a6208f6d409e0bd83ad7cd5b8edb34eff","Status":"Success","Method":"Bridge","Blockno":"42203541","DateTime":"2026-02-15 23:00:29","Sender":"0x3A6253ba3d2bE998483B20e8B703E36444E3e232","SenderLable":null,"Receiver":"0xa20ECbC821fB54064aa7B5C6aC81173b8b34Df71","ReceiverLable":"Metamask: Meta Bridge","Amount":"0 ETH","Value":"$0.00","TxnFee":"0.00001612"}]'; const quickExportCsvTitle = 'Transaction Hash,Status,Method,Blockno,"DateTime (UTC)",From,From_Nametag,To,To_Nametag,Amount,Value (USD),Txn Fee'; let isExportFinish = true; if ($("#btnExportQuickTableToCSV").length > 0 && quickExportCsvData) { $("#btnExportQuickTableToCSV").click(function () { if (isExportFinish == true) { isExportFinish = false; $("#btnExportQuickTableToCSV").append(''); let lstTxsObj = JSON.parse(quickExportCsvData); if (lstTxsObj.length > 0) { let csvRows = []; csvRows.push(quickExportCsvTitle.replace(/"/g, "")); for (let i = 0; i 0 && quickExportInternalTxsData) { $("#ContentPlaceHolder1_btnQuickExportInternalTxs").click(function () { if (isExportFinish == true) { isExportFinish = false; $("#ContentPlaceHolder1_btnQuickExportInternalTxs").append(''); let lstTxsObj = JSON.parse(quickExportInternalTxsData); if (lstTxsObj.length > 0) { let csvRows = []; csvRows.push(quickExportInternalTxsTitle.replace(/"/g, "")); for (let i = 0; i { if (x.startsWith("F")) { file = x.replace("F", ""); } else if (x.startsWith("L")) { line = x.replace("L", ""); } }) var editorId = "editor" + file var editorElem = $("#" + editorId); if (!editorElem.length) { return; } if (!line) { return; } var editor = ace.edit(editorId); editor.resize(true); editor.scrollToLine(line, true, true, function () { }); editor.gotoLine(line); var Range = ace.require('ace/range').Range $(document).scrollTop($("#" + editorId).offset().top - 95); //document.getElementById(editorId).scrollIntoView(); editor.session.addMarker(new Range(line - 1, 0, line - 1, 1), "myMarker", "fullLine"); //window.onbeforeunload = function () { $(document).scrollTop($("#" + editorId).offset().top); }; } setTimeout(function () { editorGoToLine(); }, 500); }); $("body,html").click(function (evt) { let elm = $(evt.target).attr("id"); let isClickedMode = elm === "darkModaBtn" || elm === "darkModaBtnIcon"; if (isClickedMode) { let isClickedSunMode = false; let clrBorder = "#112641"; if (elm === "darkModaBtn") isClickedSunMode = $(evt.target).find("#darkModaBtnIcon").hasClass("fa-moon"); if (elm === "darkModaBtnIcon") isClickedSunMode = $(evt.target).hasClass("fa-moon"); if (isClickedSunMode) { clrBorder = "#fff"; } let iframes = document.getElementById('analytics_pageiframe'); let heatcell = iframes.contentWindow.document.getElementsByClassName("ch-day").length; for (let i = 0; i