ETH Price: $2,439.99 (-9.41%)

Contract

0x7Db308520702D268a117E1dc04a26495AE5ffe43

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Bridge In4250956662026-01-25 14:20:366 days ago1769350836IN
0x7Db30852...5AE5ffe43
0 ETH0.000001090.02
Bridge In4250956472026-01-25 14:20:316 days ago1769350831IN
0x7Db30852...5AE5ffe43
0 ETH0.000002460.02
Bridge In4250662052026-01-25 12:17:546 days ago1769343474IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02
Bridge In4250323572026-01-25 9:57:026 days ago1769335022IN
0x7Db30852...5AE5ffe43
0 ETH0.000001090.020042
Bridge In4250323192026-01-25 9:56:536 days ago1769335013IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02
Bridge In4250318882026-01-25 9:55:056 days ago1769334905IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02
Bridge In4250315002026-01-25 9:53:286 days ago1769334808IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02004
Bridge In4250311342026-01-25 9:51:566 days ago1769334716IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.020022
Bridge In4250306292026-01-25 9:49:506 days ago1769334590IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02
Bridge In4250302272026-01-25 9:48:096 days ago1769334489IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02
Bridge In4250298882026-01-25 9:46:446 days ago1769334404IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02
Bridge In4250294422026-01-25 9:44:536 days ago1769334293IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.020014
Bridge In4250291662026-01-25 9:43:446 days ago1769334224IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.02
Bridge In4250286242026-01-25 9:41:286 days ago1769334088IN
0x7Db30852...5AE5ffe43
0 ETH0.000002450.020022
Bridge In4250282312026-01-25 9:39:516 days ago1769333991IN
0x7Db30852...5AE5ffe43
0 ETH0.00000280.020058
Bridge In4250198532026-01-25 9:04:556 days ago1769331895IN
0x7Db30852...5AE5ffe43
0 ETH0.00000120.020052
Bridge In4250198332026-01-25 9:04:506 days ago1769331890IN
0x7Db30852...5AE5ffe43
0 ETH0.000003550.020052
Bridge In4250156812026-01-25 8:47:346 days ago1769330854IN
0x7Db30852...5AE5ffe43
0 ETH0.000000840.020024
Bridge In4250156532026-01-25 8:47:276 days ago1769330847IN
0x7Db30852...5AE5ffe43
0 ETH0.000000840.020076
Bridge In4250156212026-01-25 8:47:196 days ago1769330839IN
0x7Db30852...5AE5ffe43
0 ETH0.000000830.02
Bridge In4250155912026-01-25 8:47:116 days ago1769330831IN
0x7Db30852...5AE5ffe43
0 ETH0.000000840.02003
Bridge In4250155622026-01-25 8:47:046 days ago1769330824IN
0x7Db30852...5AE5ffe43
0 ETH0.000000840.020022
Bridge In4250155342026-01-25 8:46:576 days ago1769330817IN
0x7Db30852...5AE5ffe43
0 ETH0.000000840.02004
Bridge In4250155062026-01-25 8:46:506 days ago1769330810IN
0x7Db30852...5AE5ffe43
0 ETH0.000000830.020002
Bridge In4250154762026-01-25 8:46:436 days ago1769330803IN
0x7Db30852...5AE5ffe43
0 ETH0.000000840.02016
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x7eC15bed...Decbf688B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TokenBridgeWrapped

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/interfaces/IERC1271.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

interface IRequestRegistry {
    function registerRequest(
        uint256 srcChainId,
        address srcBridge,
        uint256 dstChainId,
        address dstBridge,
        uint256 nonce,
        address token,
        address recipient,
        uint256 amount,
        uint256 deadline,
        bytes32 messageHash
    ) external;
}

/// @title TokenBridgeWrapped - Lock-and-Release Bridge
/// @notice Dest chain bridge contract for AlienX Bridge
/// @dev Uses Lock-and-Release architecture: bridgeIn releases pre-funded tokens, bridgeOut locks tokens
contract TokenBridgeWrapped is AccessControl, Pausable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    bytes32 public constant RELAYER_ROLE = keccak256("RELAYER_ROLE");
    bytes32 public constant SIGNER_ROLE = keccak256("SIGNER_ROLE");
    uint256 public constant SIGNER_SET_SIZE = 5;
    uint256 public constant SIGNATURE_THRESHOLD = 3;
    bytes4 private constant _ERC1271_MAGICVALUE = 0x1626ba7e;

    bytes32 private constant _EIP712_DOMAIN_TYPEHASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
    bytes32 private constant _BRIDGE_MESSAGE_TYPEHASH =
        keccak256(
            "BridgeMessage(uint256 srcChainId,address srcBridge,uint256 dstChainId,address dstBridge,uint256 nonce,address token,address recipient,uint256 amount,uint256 deadline)"
        );
    bytes32 private constant _SIGNATURE_TYPEHASH =
        keccak256("SignatureData(bytes32 messageHash,uint256 signExpiry)");
    bytes32 private constant _EMERGENCY_WITHDRAW_TYPEHASH =
        keccak256("EmergencyWithdraw(address token,address to,uint256 amount,uint256 nonce)");
    bytes32 private constant _NAME_HASH = keccak256("AlienXBridge");
    bytes32 private constant _VERSION_HASH = keccak256("1");

    // Release State Tracking
    mapping(bytes32 => bool) public processedMessages;
    mapping(address => uint256) public dailyReleased;       // Amount released today per token
    mapping(address => uint256) public lastReleaseDay;      // Last release day per token
    mapping(address => uint256) public dailyReleaseLimit;   // Daily release limit per token
    mapping(address => bool) public supportedTokens;

    // Outbound Limits (Symmetric with L1)
    mapping(address => uint256) public minAmountPerTx;
    mapping(address => uint256) public maxAmountPerTx;
    mapping(address => uint256) public maxAmountPerDay;
    mapping(address => uint256) public dailyDeposited;      // Locked today
    mapping(address => uint256) public lastDepositDay;     // Last lock day

    // Token Mapping (Bidirectional, Immutable)
    mapping(address => address) public srcToDestToken;      // srcToken => destToken
    mapping(address => address) public destToSrcToken;      // destToken => srcToken (reverse)
    mapping(address => bool) public tokenMappingLocked;     // Is mapping locked

    uint256 public peerChainId;
    address public peerBridge;
    mapping(uint256 => mapping(address => bool)) public allowedPeers;
    uint256 public signerCount;
    address public requestRegistry;

    // Source -> Remote State
    uint256 public nonce;
    
    // Emergency Withdraw State
    uint256 public withdrawNonce;

    // Events
    event BridgeIn(
        uint256 indexed nonce,
        address indexed token,
        address indexed recipient,
        uint256 amount,
        uint256 deadline,
        uint256 signExpiry,
        bytes32 messageHash
    );

    event MessageRejected(bytes32 indexed messageHash);

    event BridgeOut(
        uint256 indexed nonce,
        address indexed sender,
        address indexed token,
        uint256 amount,
        address recipient,
        uint256 deadline,
        bytes32 messageHash
    );

    event DailyLimitUpdated(address indexed token, uint256 limit);
    event TokenSupportUpdated(address indexed token, bool supported);
    event TokenMappingSet(address indexed srcToken, address indexed destToken);
    event TokenDeposited(address indexed token, address indexed depositor, uint256 amount);
    event EmergencyWithdraw(address indexed token, address indexed to, uint256 amount, uint256 nonce, bytes32 withdrawHash);
    event PeerBridgeUpdated(uint256 indexed chainId, address indexed bridge);
    event PeerAllowedUpdated(uint256 indexed chainId, address indexed bridge, bool allowed);
    event SignerUpdated(address indexed signer, bool active);
    event RequestRegistryUpdated(address indexed registry);

    // Errors
    error NonceAlreadyProcessed();
    error DailyLimitExceeded();
    error AmountZero();
    error InvalidRecipient();
    error TokenNotSupported();
    error PeerBridgeNotConfigured();
    error PeerNotAllowed();
    error InvalidPeerBridge();
    error InvalidPeerChainId();
    error DeadlineExpired();
    error SignatureExpired();
    error InvalidSignExpiry();
    error RequestRegistryNotSet();
    error InvalidSignature();
    error InvalidSigner();
    error InvalidSignerOrder();
    error InsufficientSignatures();
    error SignatureCountMismatch();
    error InvalidSignatureCount();
    error SignerSetNotComplete();
    error SignerSetComplete();
    error SignerAlreadyExists();
    error SignerDoesNotExist();
    error InsufficientBridgeBalance();
    error TokenMappingLocked();
    error InvalidTokenMapping();
    error DestTokenAlreadyMapped();
    error AmountBelowMin();
    error AmountAboveLimit();
    error InvalidBounds();

    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setRoleAdmin(SIGNER_ROLE, DEFAULT_ADMIN_ROLE);
    }

    // ============ Admin Functions ============

    /// @notice Set outbound limits for a token (Mirroring L1)
    function setLimits(address token, uint256 _min, uint256 _maxTx, uint256 _maxDay) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (_min > _maxTx && _maxTx > 0) revert InvalidBounds();
        minAmountPerTx[token] = _min;
        maxAmountPerTx[token] = _maxTx;
        maxAmountPerDay[token] = _maxDay;
        emit DailyLimitUpdated(token, _maxDay); 
    }

    /// @notice Set inbound release limit for a token
    function setDailyLimit(address token, uint256 limit) external onlyRole(DEFAULT_ADMIN_ROLE) {
        dailyReleaseLimit[token] = limit;
        emit DailyLimitUpdated(token, limit);
    }

    /// @notice Set token support status (deprecated, use setTokenMapping instead)
    function setTokenSupport(address token, bool supported) external onlyRole(DEFAULT_ADMIN_ROLE) {
        supportedTokens[token] = supported;
        emit TokenSupportUpdated(token, supported);
    }

    /// @notice Set token mapping (one-time only, bidirectional binding)
    /// @param srcToken Source chain token address
    /// @param destToken Destination chain token address
    function setTokenMapping(address srcToken, address destToken) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (tokenMappingLocked[srcToken]) revert TokenMappingLocked();
        if (srcToken == address(0) || destToken == address(0)) revert InvalidTokenMapping();
        if (destToSrcToken[destToken] != address(0)) revert DestTokenAlreadyMapped();
        
        srcToDestToken[srcToken] = destToken;
        destToSrcToken[destToken] = srcToken;
        tokenMappingLocked[srcToken] = true;
        supportedTokens[destToken] = true;
        emit TokenMappingSet(srcToken, destToken);
    }

    function addSigner(address signer) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (signerCount >= SIGNER_SET_SIZE) revert SignerSetComplete();
        if (signer == address(0)) revert InvalidSigner();
        if (hasRole(SIGNER_ROLE, signer)) revert SignerAlreadyExists();
        _grantRole(SIGNER_ROLE, signer);
        emit SignerUpdated(signer, true);
    }

    function replaceSigner(address oldSigner, address newSigner) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (newSigner == address(0)) revert InvalidSigner();
        if (!hasRole(SIGNER_ROLE, oldSigner)) revert SignerDoesNotExist();
        if (hasRole(SIGNER_ROLE, newSigner)) revert SignerAlreadyExists();
        _revokeRole(SIGNER_ROLE, oldSigner);
        _grantRole(SIGNER_ROLE, newSigner);
        emit SignerUpdated(oldSigner, false);
        emit SignerUpdated(newSigner, true);
    }

    function setPeerBridge(uint256 chainId, address bridge) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (chainId == 0) revert InvalidPeerChainId();
        if (bridge == address(0)) revert InvalidPeerBridge();
        peerChainId = chainId;
        peerBridge = bridge;
        emit PeerBridgeUpdated(chainId, bridge);
        allowedPeers[chainId][bridge] = true;
        emit PeerAllowedUpdated(chainId, bridge, true);
    }

    function setPeerAllowed(uint256 chainId, address bridge, bool allowed) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (chainId == 0) revert InvalidPeerChainId();
        if (bridge == address(0)) revert InvalidPeerBridge();
        allowedPeers[chainId][bridge] = allowed;
        emit PeerAllowedUpdated(chainId, bridge, allowed);
    }

    function setRequestRegistry(address registry) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if (registry == address(0)) revert InvalidPeerBridge();
        requestRegistry = registry;
        emit RequestRegistryUpdated(registry);
    }

    function pause() external onlyRole(DEFAULT_ADMIN_ROLE) {
        _pause();
    }

    function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) {
        _unpause();
    }

    // ============ Deposit Functions ============

    /// @notice Deposit tokens into the bridge for liquidity (only registered tokens)
    /// @param token Token address to deposit
    /// @param amount Amount to deposit
    function depositTokens(address token, uint256 amount) external {
        if (!supportedTokens[token]) revert TokenNotSupported();
        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
        emit TokenDeposited(token, msg.sender, amount);
    }

    /// @notice Get bridge balance for a token
    /// @param token Token address to query
    /// @return Bridge balance
    function bridgeBalance(address token) external view returns (uint256) {
        return IERC20(token).balanceOf(address(this));
    }

    // ============ Bridge Functions ============

    /// @notice Bridge tokens from remote chain (Release pre-deposited tokens)
    /// @dev Releases tokens from bridge's pre-funded balance to recipient
    function bridgeIn(
        uint256 srcChainId,
        address srcBridge,
        uint256 _nonce,
        address token,
        address recipient,
        uint256 amount,
        uint256 deadline,
        uint256 signExpiry,
        address[] calldata signers,
        bytes[] calldata signatures
    ) external whenNotPaused nonReentrant {
        if (recipient == address(0) || recipient == address(this)) revert InvalidRecipient();
        if (!supportedTokens[token]) revert TokenNotSupported();
        if (amount == 0) revert AmountZero();
        if (!allowedPeers[srcChainId][srcBridge]) revert PeerNotAllowed();
        
        // Check 1: Is the request expired (user's deadline)
        if (block.timestamp > deadline) revert DeadlineExpired();
        // Check 2: Is the signature expired (signer's signExpiry)
        if (block.timestamp > signExpiry) revert SignatureExpired();
        // Check 3: signExpiry must not exceed deadline
        if (signExpiry > deadline) revert InvalidSignExpiry();
        
        // Check 4: Bridge has sufficient balance (BEFORE marking processed)
        if (IERC20(token).balanceOf(address(this)) < amount) revert InsufficientBridgeBalance();

        uint256 currentDay = block.timestamp / 1 days;
        if (currentDay > lastReleaseDay[token]) {
            dailyReleased[token] = 0;
            lastReleaseDay[token] = currentDay;
        }

        if (dailyReleased[token] + amount > dailyReleaseLimit[token]) revert DailyLimitExceeded();

        // Compute messageHash (excludes signExpiry, used for idempotency check)
        address hashToken = token;
        if (destToSrcToken[token] != address(0)) {
            hashToken = destToSrcToken[token];
        }

        bytes32 structHash = _messageStructHash(
            srcChainId,
            srcBridge,
            block.chainid,
            address(this),
            _nonce,
            hashToken,
            recipient,
            amount,
            deadline
        );
        bytes32 messageHash = _hashTypedData(block.chainid, address(this), structHash);
        if (processedMessages[messageHash]) revert NonceAlreadyProcessed();
        
        // Compute signature digest (includes signExpiry, EIP-712 format)
        bytes32 signatureDigest = _signatureDigest(block.chainid, address(this), messageHash, signExpiry);
        _validateSignatures(signatureDigest, signers, signatures);
        
        // CEI Pattern: State updates before external calls
        processedMessages[messageHash] = true;
        dailyReleased[token] += amount;

        // Release pre-deposited tokens to recipient
        IERC20(token).safeTransfer(recipient, amount);

        emit BridgeIn(_nonce, token, recipient, amount, deadline, signExpiry, messageHash);
    }

    /// @notice Mark a request as processed (prevents double-spend)
    /// @dev Called by SIGNER_ROLE (Relayer server signer) to reserve before rejection/refund
    function markRejected(bytes32 messageHash) external onlyRole(SIGNER_ROLE) {
        if (processedMessages[messageHash]) revert NonceAlreadyProcessed();
        processedMessages[messageHash] = true;
        emit MessageRejected(messageHash);
    }

    /// @notice Bridge tokens to remote chain (Lock tokens in bridge)
    /// @dev Locks user's tokens in bridge contract for cross-chain transfer
    function bridgeOut(address token, address targetRecipient, uint256 amount, uint256 deadline) external whenNotPaused nonReentrant {
        if (peerChainId == 0 || peerBridge == address(0)) revert PeerBridgeNotConfigured();
        if (!allowedPeers[peerChainId][peerBridge]) revert PeerNotAllowed();
        if (targetRecipient == address(0)) revert InvalidRecipient();
        if (!supportedTokens[token]) revert TokenNotSupported();
        if (amount == 0) revert AmountZero();
        
        // Symmetric Limit Checks (Inbound to L1)
        if (minAmountPerTx[token] > 0 && amount < minAmountPerTx[token]) revert AmountBelowMin();
        if (maxAmountPerTx[token] > 0 && amount > maxAmountPerTx[token]) revert AmountAboveLimit();
        
        uint256 currentDay = block.timestamp / 1 days;
        if (currentDay > lastDepositDay[token]) {
            dailyDeposited[token] = 0;
            lastDepositDay[token] = currentDay;
        }
        if (maxAmountPerDay[token] > 0 && dailyDeposited[token] + amount > maxAmountPerDay[token]) revert DailyLimitExceeded();
        
        dailyDeposited[token] += amount;

        if (deadline <= block.timestamp) revert DeadlineExpired();
        if (requestRegistry == address(0)) revert RequestRegistryNotSet();
        
        // Lock sender's tokens in bridge
        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);

        bytes32 structHash = _messageStructHash(
            block.chainid,
            address(this),
            peerChainId,
            peerBridge,
            nonce,
            token,
            targetRecipient,
            amount,
            deadline
        );
        bytes32 messageHash = _hashTypedData(peerChainId, peerBridge, structHash);
        IRequestRegistry(requestRegistry).registerRequest(
            block.chainid,
            address(this),
            peerChainId,
            peerBridge,
            nonce,
            token,
            targetRecipient,
            amount,
            deadline,
            messageHash
        );
        emit BridgeOut(nonce, msg.sender, token, amount, targetRecipient, deadline, messageHash);
        nonce++;
    }

    // ============ Emergency Withdraw ============

    /// @notice Emergency withdraw with multisig (requires 3-of-5 signatures, EIP-712 compliant)
    /// @param token Token address to withdraw
    /// @param to Recipient address
    /// @param amount Amount to withdraw
    /// @param signers Array of signer addresses (must be in ascending order)
    /// @param signatures Array of corresponding signatures
    function emergencyWithdraw(
        address token,
        address to,
        uint256 amount,
        address[] calldata signers,
        bytes[] calldata signatures
    ) external whenPaused {
        if (to == address(0)) revert InvalidRecipient();
        
        uint256 currentNonce = withdrawNonce;
        
        // Compute EIP-712 compliant withdraw hash
        bytes32 structHash = keccak256(abi.encode(
            _EMERGENCY_WITHDRAW_TYPEHASH,
            token,
            to,
            amount,
            currentNonce
        ));
        bytes32 withdrawHash = _hashTypedData(block.chainid, address(this), structHash);
        
        // Validate multisig
        _validateSignatures(withdrawHash, signers, signatures);
        
        // Update state before external call (CEI)
        withdrawNonce++;
        IERC20(token).safeTransfer(to, amount);
        emit EmergencyWithdraw(token, to, amount, currentNonce, withdrawHash);
    }

    /// @notice Get current withdraw nonce for signing
    function getWithdrawNonce() external view returns (uint256) {
        return withdrawNonce;
    }

    // ============ Internal Functions ============

    function _validateSignatures(
        bytes32 digest,
        address[] calldata signers,
        bytes[] calldata signatures
    ) internal view {
        if (signerCount != SIGNER_SET_SIZE) revert SignerSetNotComplete();
        if (signers.length != signatures.length) revert SignatureCountMismatch();
        if (signers.length < SIGNATURE_THRESHOLD) revert InsufficientSignatures();
        if (signers.length > SIGNER_SET_SIZE) revert InvalidSignatureCount();

        address lastSigner = address(0);
        for (uint256 i = 0; i < signers.length; i++) {
            address signer = signers[i];
            if (signer <= lastSigner) revert InvalidSignerOrder();
            if (!hasRole(SIGNER_ROLE, signer)) revert InvalidSigner();

            if (signer.code.length > 0) {
                if (IERC1271(signer).isValidSignature(digest, signatures[i]) != _ERC1271_MAGICVALUE) {
                    revert InvalidSignature();
                }
            } else {
                (address recovered, ECDSA.RecoverError error, ) = ECDSA.tryRecover(digest, signatures[i]);
                if (error != ECDSA.RecoverError.NoError || recovered != signer) revert InvalidSignature();
            }

            lastSigner = signer;
        }
    }

    function _messageStructHash(
        uint256 srcChainId,
        address srcBridge,
        uint256 dstChainId,
        address dstBridge,
        uint256 _nonce,
        address token,
        address recipient,
        uint256 amount,
        uint256 deadline
    ) internal pure returns (bytes32) {
        return keccak256(
            abi.encode(
                _BRIDGE_MESSAGE_TYPEHASH,
                srcChainId,
                srcBridge,
                dstChainId,
                dstBridge,
                _nonce,
                token,
                recipient,
                amount,
                deadline
            )
        );
    }

    function _domainSeparator(uint256 chainId, address verifyingContract) internal pure returns (bytes32) {
        return keccak256(abi.encode(_EIP712_DOMAIN_TYPEHASH, _NAME_HASH, _VERSION_HASH, chainId, verifyingContract));
    }

    function _hashTypedData(uint256 chainId, address verifyingContract, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", _domainSeparator(chainId, verifyingContract), structHash));
    }

    function _signatureDigest(uint256 chainId, address verifyingContract, bytes32 messageHash, uint256 signExpiry) internal pure returns (bytes32) {
        bytes32 structHash = keccak256(abi.encode(_SIGNATURE_TYPEHASH, messageHash, signExpiry));
        return _hashTypedData(chainId, verifyingContract, structHash);
    }

    function _grantRole(bytes32 role, address account) internal override returns (bool) {
        bool hadRole = hasRole(role, account);
        if (!hadRole && role == SIGNER_ROLE) {
            if (account == address(0)) revert InvalidSigner();
            if (signerCount >= SIGNER_SET_SIZE) revert SignerSetComplete();
        }
        bool granted = super._grantRole(role, account);
        if (!hadRole && role == SIGNER_ROLE) {
            signerCount += 1;
        }
        return granted;
    }

    function _revokeRole(bytes32 role, address account) internal override returns (bool) {
        bool hadRole = hasRole(role, account);
        bool revoked = super._revokeRole(role, account);
        if (hadRole && role == SIGNER_ROLE) {
            signerCount -= 1;
        }
        return revoked;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {IERC165, ERC165} from "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /// @inheritdoc IERC165
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/IAccessControl.sol)

pragma solidity >=0.8.4;

/**
 * @dev External interface of AccessControl declared to support ERC-165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted to signal this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1271.sol)

pragma solidity >=0.5.0;

/**
 * @dev Interface of the ERC-1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with `hash`
     */
    function isValidSignature(bytes32 hash, bytes calldata signature) external view returns (bytes4 magicValue);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 6 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 7 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

import {IERC20} from "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

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

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, 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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @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.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

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

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.20;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS
    }

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
     * return address(0) without also returning an error description. Errors are documented using an enum (error type)
     * and a bytes32 providing additional information about the error.
     *
     * If no error is returned, then the address can be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     */
    function tryRecover(
        bytes32 hash,
        bytes memory signature
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly ("memory-safe") {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures]
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            uint8 v = uint8((uint256(vs) >> 255) + 27);
            return tryRecover(hash, v, r, s);
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS, s);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature, bytes32(0));
        }

        return (signer, RecoverError.NoError, bytes32(0));
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /// @inheritdoc IERC165
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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 {
    bool private _paused;

    /**
     * @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);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @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 {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @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 v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * 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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // 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;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AmountAboveLimit","type":"error"},{"inputs":[],"name":"AmountBelowMin","type":"error"},{"inputs":[],"name":"AmountZero","type":"error"},{"inputs":[],"name":"DailyLimitExceeded","type":"error"},{"inputs":[],"name":"DeadlineExpired","type":"error"},{"inputs":[],"name":"DestTokenAlreadyMapped","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"InsufficientBridgeBalance","type":"error"},{"inputs":[],"name":"InsufficientSignatures","type":"error"},{"inputs":[],"name":"InvalidBounds","type":"error"},{"inputs":[],"name":"InvalidPeerBridge","type":"error"},{"inputs":[],"name":"InvalidPeerChainId","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSignExpiry","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidSignatureCount","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"InvalidSignerOrder","type":"error"},{"inputs":[],"name":"InvalidTokenMapping","type":"error"},{"inputs":[],"name":"NonceAlreadyProcessed","type":"error"},{"inputs":[],"name":"PeerBridgeNotConfigured","type":"error"},{"inputs":[],"name":"PeerNotAllowed","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"RequestRegistryNotSet","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"SignatureCountMismatch","type":"error"},{"inputs":[],"name":"SignatureExpired","type":"error"},{"inputs":[],"name":"SignerAlreadyExists","type":"error"},{"inputs":[],"name":"SignerDoesNotExist","type":"error"},{"inputs":[],"name":"SignerSetComplete","type":"error"},{"inputs":[],"name":"SignerSetNotComplete","type":"error"},{"inputs":[],"name":"TokenMappingLocked","type":"error"},{"inputs":[],"name":"TokenNotSupported","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"signExpiry","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"messageHash","type":"bytes32"}],"name":"BridgeIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"messageHash","type":"bytes32"}],"name":"BridgeOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"}],"name":"DailyLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"withdrawHash","type":"bytes32"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"messageHash","type":"bytes32"}],"name":"MessageRejected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"chainId","type":"uint256"},{"indexed":true,"internalType":"address","name":"bridge","type":"address"},{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"PeerAllowedUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"chainId","type":"uint256"},{"indexed":true,"internalType":"address","name":"bridge","type":"address"}],"name":"PeerBridgeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"registry","type":"address"}],"name":"RequestRegistryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"SignerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"srcToken","type":"address"},{"indexed":true,"internalType":"address","name":"destToken","type":"address"}],"name":"TokenMappingSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"supported","type":"bool"}],"name":"TokenSupportUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RELAYER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNATURE_THRESHOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_SET_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"addSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"allowedPeers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"bridgeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"srcChainId","type":"uint256"},{"internalType":"address","name":"srcBridge","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"signExpiry","type":"uint256"},{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"bridgeIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"targetRecipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"bridgeOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"dailyDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"dailyReleaseLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"dailyReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"destToSrcToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address[]","name":"signers","type":"address[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastDepositDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastReleaseDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"messageHash","type":"bytes32"}],"name":"markRejected","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxAmountPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"peerBridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"peerChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"processedMessages","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldSigner","type":"address"},{"internalType":"address","name":"newSigner","type":"address"}],"name":"replaceSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setDailyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"_min","type":"uint256"},{"internalType":"uint256","name":"_maxTx","type":"uint256"},{"internalType":"uint256","name":"_maxDay","type":"uint256"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"bridge","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setPeerAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"bridge","type":"address"}],"name":"setPeerBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"setRequestRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"destToken","type":"address"}],"name":"setTokenMapping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bool","name":"supported","type":"bool"}],"name":"setTokenSupport","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"srcToDestToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supportedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenMappingLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

0x608060409080825234620001365760016002556000908180528160205282822033835260205260ff838320541615908180926200012e575b620000f3575b5062000049336200013b565b5080620000eb575b620000bf575b7fe2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70918282528160205260018183200190828254925551927fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff8380a46126c69081620001cd8239f35b60135460018101809111620000d75760135562000057565b634e487b7160e01b82526011600452602482fd5b508062000051565b33156200011f5750600560135410156200010e57386200003d565b82516331460d4560e01b8152600490fd5b632057875960e21b8152600490fd5b508262000037565b600080fd5b6001600160a01b031660008181527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205490919060ff16620001c857818052816020526040822081835260205260408220600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b509056fe608080604052600436101561001357600080fd5b600090813560e01c90816301ffc9a714611b3a575080630c6a753f14611ab25780631091f80a14611a695780631a1fe73514611a305780632156529b1461198457806324763d0714611968578063248a9ca31461193c5780632803212f146118d257806328d40eab146114f45780632a29156b146114bb5780632f2ff15d146113ce57806336568abe146113865780633f4ba83a1461132e578063404aed5d14610fdd578063446692d414610fa45780634518da2c14610f005780634d4617b714610ec457806352e4051a14610ea85780635c975abb14610e8557806366168bd714610dfb57806368c4ac2614610dbc5780636b2d853d146109355780636b470fa414610d275780636dbed08314610ceb5780637ca548c614610ccd5780638456cb5914610c7357806388ba16ab14610c4457806391d1485414610bf9578063926d7d7f14610bbe578063a1ebf35d14610b95578063a217fddf14610b79578063a8ae520714610a3f578063aa9b58a714610971578063affed0e014610953578063b8a4e15114610935578063c1e05ebd146108fc578063c4d20842146108bd578063c72ab95214610884578063c9e145901461081a578063cdae6f4c14610727578063cdfceeba14610709578063d547741f146106c8578063de4b4aa01461056c578063e3d9109f1461041f578063e70125bf146103f6578063e8008a8f146103cd578063eb12d61e146102f4578063ebced90c146102bb578063f1a3eed5146102825763f3d162971461024757600080fd5b3461027f57602036600319011261027f576020906040906001600160a01b0361026e611b93565b168152600983522054604051908152f35b80fd5b503461027f57602036600319011261027f576020906040906001600160a01b036102aa611b93565b168152600683522054604051908152f35b503461027f57602036600319011261027f576020906040906001600160a01b036102e3611b93565b168152600a83522054604051908152f35b503461027f57602036600319011261027f5761030e611b93565b610316611bf0565b600560135410156103bb576001600160a01b0381169081156103a957600080516020612651833981519152835282602052604083208260005260205260ff60406000205416610397576103689061233d565b507ffcaa24b1276bfa7dbf77797c0a984b9df924acbeaabd48cd2f1b0eca379b78fa602060405160018152a280f35b604051630e1857b360e21b8152600490fd5b604051632057875960e21b8152600490fd5b6040516331460d4560e01b8152600490fd5b503461027f578060031936011261027f576011546040516001600160a01b039091168152602090f35b503461027f578060031936011261027f576014546040516001600160a01b039091168152602090f35b503461027f57604036600319011261027f57610439611b93565b610441611ba9565b9061044a611bf0565b6001600160a01b03828116929083156103a95760008051602061265183398151915291828652602093868552604087209281169283600052855260ff604060002054161561055a578387528685526040872086600052855260ff604060002054166103975784936000526000845260406000208360005284526104d560ff6040600020541691612554565b5080610552575b610521575b6104ea9061233d565b506040518581527ffcaa24b1276bfa7dbf77797c0a984b9df924acbeaabd48cd2f1b0eca379b78fa938491a260405160018152a280f35b9150601354600019810190811161053c5760135582916104e1565b634e487b7160e01b600052601160045260246000fd5b5060016104dc565b60405163d244b30760e01b8152600490fd5b503461027f5760a036600319011261027f57610586611b93565b61058e611ba9565b6044356064359267ffffffffffffffff938481116106c4576105b4903690600401611bbf565b9190946084359081116106c0576105cf903690600401611bbf565b9490956105da611c6e565b6001600160a01b038281169790969088156106ae57601654946040519860208a01917f76450e933f6bc2efef8f360dc557e0674b931f9f522e594a13aa1d2240d8db85835216988960408201528a60608201528860808201528660a082015260a0815261064681611cbf565b519020610654903046612273565b9561065f9387611e93565b8361066983611e2c565b6016556106769186611dcd565b6040519283526020830152604082015260607fe5b70312aca5e61fbf87aa9080081337eaa504eb2818194ad1874f2dd99e4ea491a380f35b604051634e46966960e11b8152600490fd5b8680fd5b8580fd5b503461027f57604036600319011261027f576107056004356106e8611ba9565b90808452836020526107006001604086200154611c2a565b6124e6565b5080f35b503461027f578060031936011261027f576020601054604051908152f35b503461027f57604036600319011261027f57600435610744611ba9565b61074c611bf0565b8115610808576001600160a01b03169081156107f65780601055816bffffffffffffffffffffffff60a01b601154161760115581817fba1fb6f05f592f36f10c1f40caf37b79d645c42a6fd9847098206fe73e9a7d3f8580a3808352601260205260408320826000526020526040600020600160ff198254161790557f4c1362d861a094545fedb3c8c04110af5d951927c251e9b30f27c1f36d955e62602060405160018152a380f35b604051634868985960e01b8152600490fd5b604051633259f62760e11b8152600490fd5b503461027f57602036600319011261027f57610834611b93565b61083c611bf0565b6001600160a01b031680156107f657601480546001600160a01b031916821790557f52229bc2aaba108c21350a7a91a62cb728b568c61c2259dc33768772c13a94ec8280a280f35b503461027f57602036600319011261027f576020906040906001600160a01b036108ac611b93565b168152600583522054604051908152f35b503461027f57602036600319011261027f5760209060ff906040906001600160a01b036108e8611b93565b168152600f84522054166040519015158152f35b503461027f57602036600319011261027f576020906040906001600160a01b03610924611b93565b168152600c83522054604051908152f35b503461027f578060031936011261027f576020601654604051908152f35b503461027f578060031936011261027f576020601554604051908152f35b503461027f57602036600319011261027f573360009081526000805160206126718339815191526020526040902054600435906000805160206126518339815191529060ff1615610a215750808252600360205260ff604083205416610a0f57808252600360205260408220805460ff191660011790557f56e6a506924693294c9b398179d3922fbf3f3d5029292de8eee7801d6df8eefb8280a280f35b60405163752eea4f60e01b8152600490fd5b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b503461027f57604036600319011261027f57610a59611b93565b610a61611ba9565b610a69611bf0565b6001600160a01b03918216808452600f602090815260408520549192909160ff16610b675782158015610b5d575b610b4b57831692838552600e8252604085205416610b3957818452600d8152604084206bffffffffffffffffffffffff60a01b908482825416179055838552600e8252826040862091825416179055818452600f81526007604085209160ff199260018482541617905584865252600160408520918254161790557f671ac0b13072855923042cd2fb5cbf09cc99fb0f6c937113b61907adc6f6e3678380a380f35b604051634673723f60e01b8152600490fd5b604051630403fe5760e11b8152600490fd5b5083811615610a97565b6040516351ca5fd360e11b8152600490fd5b503461027f578060031936011261027f57602090604051908152f35b503461027f578060031936011261027f5760206040516000805160206126518339815191528152f35b503461027f578060031936011261027f5760206040517fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc48152f35b503461027f57604036600319011261027f576040610c15611ba9565b91600435815280602052209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b503461027f57602036600319011261027f5760ff60406020926004358152600384522054166040519015158152f35b503461027f578060031936011261027f57610c8c611bf0565b610c94611c50565b600160ff19815416176001557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b503461027f578060031936011261027f576020601354604051908152f35b503461027f57602036600319011261027f576020906001600160a01b039060409082610d15611b93565b168152600d8452205416604051908152f35b503461027f576020908160031936011261027f576024826001600160a01b03610d4e611b93565b16604051928380926370a0823160e01b82523060048301525afa918215610db05791610d7e575b50604051908152f35b90508181813d8311610da9575b610d958183611cdb565b81010312610da4575138610d75565b600080fd5b503d610d8b565b604051903d90823e3d90fd5b503461027f57602036600319011261027f5760209060ff906040906001600160a01b03610de7611b93565b168152600784522054166040519015158152f35b503461027f57604036600319011261027f57610e15611b93565b6001600160a01b031680825260076020526040822054602435919060ff1615610e7357610e4482303384611cfd565b6040519182527ff1444b5cad7ce70cb018d1b8edc8618fe303f3c7f034d8d572a6e27facbf2bef60203393a380f35b604051633dd1b30560e01b8152600490fd5b503461027f578060031936011261027f57602060ff600154166040519015158152f35b503461027f578060031936011261027f57602060405160058152f35b503461027f57602036600319011261027f576020906001600160a01b039060409082610eee611b93565b168152600e8452205416604051908152f35b503461027f57606036600319011261027f57600435610f1d611ba9565b906044359182151590818403610da457610f35611bf0565b8215610808576001600160a01b03169283156107f6577f4c1362d861a094545fedb3c8c04110af5d951927c251e9b30f27c1f36d955e6291610f9a602092858852601284526040882087600052845260406000209060ff801983541691151516179055565b604051908152a380f35b503461027f57602036600319011261027f576020906040906001600160a01b03610fcc611b93565b168152600b83522054604051908152f35b503461027f57608036600319011261027f57610ff7611b93565b610fff611ba9565b6064359060443561100e611c50565b611016611e0b565b6010548015801561131b575b61130957855260209260128452604086209060018060a01b039182601154168852855260ff604088205416156112f7578184169586156106ae57828116948589526007875260ff60408a20541615610e735784156112e55785895260088752604089205480151590816112db575b506112c95785895260098752604089205480151590816112bf575b506112ad57620151804204868a52600c885260408a20548111611294575b50600a8752604089205415158061126f575b61125d57858952600b8752604089206110f5868254611dc0565b90554283111561124b578360145416156112395788906111178630338a611cfd565b60105461113d61113686898960115416956015549889888830466121d9565b8383612273565b956014541690813b15611235578361014492604051968795869463108c774360e11b86524660048701523060248701526044860152606485015260848401528a60a48401528c60c48401528960e484015287610104840152886101248401525af1801561122a576111fc575b506111f1956015549560405194855284015260408301526060820152827f44cb72580ca917f9b1c2f49c854cf7e2f9ff5074d62190280e3fd2c73f8ae85a60803393a4611e2c565b601555600160025580f35b67ffffffffffffffff8111611216576040526111f16111a9565b634e487b7160e01b88526041600452602488fd5b6040513d8a823e3d90fd5b8380fd5b6040516306238f6360e01b8152600490fd5b604051631ab7da6b60e01b8152600490fd5b604051630652f4c560e21b8152600490fd5b50600b87526112828560408b2054611dc0565b868a52600a885260408a2054106110db565b600b8852896040812055600c885260408a2055386110c9565b6040516306886b9160e01b8152600490fd5b90508511386110ab565b6040516333cbecaf60e01b8152600490fd5b9050851038611090565b6040516365e52d5160e11b8152600490fd5b6040516309d9f3d760e01b8152600490fd5b6040516322bb3bab60e21b8152600490fd5b506011546001600160a01b031615611022565b503461027f578060031936011261027f57611347611bf0565b61134f611c6e565b60ff19600154166001557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b503461027f57604036600319011261027f576113a0611ba9565b336001600160a01b038216036113bc57610705906004356124e6565b60405163334bd91960e11b8152600490fd5b503461027f57604036600319011261027f576004356113eb611ba9565b90808352826020526114036001604085200154611c2a565b808352602083815260408085206001600160a01b038516808752925284205460ff1615929083806114a4575b61148e575b5061143f908261246d565b5081611476575b5061144e5780f35b601354600181018091116114625760135580f35b634e487b7160e01b82526011600452602482fd5b60008051602061265183398151915291501438611446565b156103a957600560135410156103bb5738611434565b50600080516020612651833981519152831461142f565b503461027f57602036600319011261027f576020906040906001600160a01b036114e3611b93565b168152600883522054604051908152f35b503461027f5761014036600319011261027f5761150f611ba9565b6064356001600160a01b03811690036118ce576084356001600160a01b03811690036118ce5767ffffffffffffffff6101043581811161123557611557903690600401611bbf565b929091610124359081116118ca57611573903690600401611bbf565b9161157c611c50565b611584611e0b565b6084356001600160a01b03161580156118b6575b6106ae576064356001600160a01b031686526007602052604086205460ff1615610e735760a435156112e55760043586526012602090815260408088206001600160a01b038416895290915286205460ff16156112f75760c435421161124b5760e43542116118a45760c43560e43511611892576040516370a0823160e01b81523060048201526020816024816064356001600160a01b03165afa908115611887578791611855575b5060a43511611843576064356001600160a01b0316865260056020526040862054620151804204908111611828575b50600460205261168660a4356040882054611dc0565b6064356001600160a01b03168752600660205260408720541061125d576001600160a01b036064358181168852600e60205260408820546116f3936116ec939092911680611820575b5060c4359160a435916084359160443590309046906004356121d9565b3046612273565b93848652600360205260ff604087205416610a0f576117649361175f60405160208101907f35487897f847a5e4fa4b0d24b9c945b1b25c4283bb34be71d9522fb70f423069825288604082015260e43560608201526060815261175581611c8d565b5190203046612273565b611e93565b808252600360205260408220600160ff1982541617905560018060a01b0360643516825260046020526040822061179e60a4358254611dc0565b90556117ba60a4356084356064356001600160a01b0316611dcd565b6040519060a435825260c435602083015260e4356040830152606082015260018060a01b03608435169060018060a01b0360643516907f6702b1136862f32efec1175df1974987e1e69b9381a26f90751e108dae6f39c5608060443592a4600160025580f35b9050386116cf565b60046020528660408120556005602052604087205538611670565b604051632f1cd18160e21b8152600490fd5b90506020813d60201161187f575b8161187060209383611cdb565b810103126106c0575138611641565b3d9150611863565b6040513d89823e3d90fd5b604051630b21a8f760e21b8152600490fd5b604051630819bdcd60e01b8152600490fd5b506084356001600160a01b03163014611598565b8480fd5b5080fd5b503461027f57604036600319011261027f576118ec611b93565b7f074424510750f675220b94bac388bff82d6407b38f341b0226af2ab45af33dc260206024359261191b611bf0565b6001600160a01b03168085526006825260408086208590555193845292a280f35b503461027f57602036600319011261027f57600160406020926004358152808452200154604051908152f35b503461027f578060031936011261027f57602060405160038152f35b503461027f57608036600319011261027f5761199e611b93565b60243590604435906064356119b1611bf0565b82841180611a27575b611a15577f074424510750f675220b94bac388bff82d6407b38f341b0226af2ab45af33dc29260209260018060a01b031694858752600884526040872055600983526040862055600a8252806040862055604051908152a280f35b60405163a883435760e01b8152600490fd5b508215156119ba565b503461027f57602036600319011261027f576020906040906001600160a01b03611a58611b93565b168152600483522054604051908152f35b503461027f57604036600319011261027f5760ff6040602092611a8a611ba9565b6004358252601285528282206001600160a01b03909116825284522054604051911615158152f35b503461027f57604036600319011261027f57611acc611b93565b6024359081151590818303611235577fbbe72b7d9dcb594ee398a4a617885aba53d833e2aad601c813ce9df99fdeb49b91611b30602092611b0b611bf0565b60018060a01b03169485875260078452604087209060ff801983541691151516179055565b604051908152a280f35b9050346118ce5760203660031901126118ce5760043563ffffffff60e01b8116809103611b8f5760209250637965db0b60e01b8114908115611b7e575b5015158152f35b6301ffc9a760e01b14905038611b77565b8280fd5b600435906001600160a01b0382168203610da457565b602435906001600160a01b0382168203610da457565b9181601f84011215610da45782359167ffffffffffffffff8311610da4576020808501948460051b010111610da457565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205460ff1615610a215750565b80600052600060205260406000203360005260205260ff6040600020541615610a215750565b60ff60015416611c5c57565b60405163d93c066560e01b8152600490fd5b60ff6001541615611c7b57565b604051638dfc202b60e01b8152600490fd5b6080810190811067ffffffffffffffff821117611ca957604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff821117611ca957604052565b90601f8019910116810190811067ffffffffffffffff821117611ca957604052565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117611ca957611d5692604052611d58565b565b906000602091828151910182855af115611db4576000513d611dab57506001600160a01b0381163b155b611d895750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611d82565b6040513d6000823e3d90fd5b9190820180921161053c57565b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152611d5691611e0682611c8d565b611d58565b6002805414611e1a5760028055565b604051633ee5aeb560e01b8152600490fd5b600019811461053c5760010190565b9190811015611e7d5760051b81013590601e1981360301821215610da457019081359167ffffffffffffffff8311610da4576020018236038113610da4579190565b634e487b7160e01b600052603260045260246000fd5b939091926005928360135403612107578285036120f557600385106120e3578385116120d157600093845b868610611ecf575050505050505050565b85821b830135906001600160a01b039081831690818403610da45782168111156120bf576000818152600080516020612671833981519152602090815260409182902054919390929160ff16156120ae578b93929190853b1561200957508190611f3a8b8b8b611e3b565b939085519283809281630b135d3f60e11b9889825260049b8c8301528a602483015280604483015280606493848401376000828201840152601f01601f191681010301915afa918215611ffe57600092611fc0575b50506001600160e01b03191603611fb3575050611fad905b95611e2c565b94611ebe565b51638baa579f60e01b8152fd5b81813d8311611ff7575b611fd48183611cdb565b810103126118ce5751906001600160e01b03198216820361027f57503880611f8f565b503d611fca565b84513d6000823e3d90fd5b919093506120188a8a8a611e3b565b919067ffffffffffffffff8311611ca95784519161203f601f8501601f1916820184611cdb565b8383523684830111610da457836120619460009383860137830101528c612119565b509390916004948581101561209957159283159361208c575b505050611fb3575050611fad90611fa7565b161415905038808061207a565b602186634e487b7160e01b6000525260246000fd5b8351632057875960e21b8152600490fd5b604051634485151760e01b8152600490fd5b6040516322e5ce4360e21b8152600490fd5b604051633724e34360e11b8152600490fd5b60405163d83b5d6960e01b8152600490fd5b604051633ba6f5db60e01b8152600490fd5b815191906041830361214a5761214392506020820151906060604084015193015160001a90612155565b9192909190565b505060009160029190565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084116121cd57926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa15610db05780516001600160a01b038116156121c457918190565b50809160019190565b50505060009160039190565b97959293969490966040519760208901997fc05b5f09504d53005991a79dccbf18b7456345b4285c08bf9584c29d49ef7d398b5260408a015260018060a01b039586948580931660608c015260808b01521660a089015260c08801521660e08601521661010084015261012083015261014090818301528152610160810181811067ffffffffffffffff821117611ca95760405251902090565b906040519060208201927f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f84527f64c5a5c8ad7acc1c1edbf5acc6973cc76cb6e4ad36df078cfe4f07d34a558b3960408401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060840152608083015260018060a01b031660a082015260a0815261230b81611cbf565b5190209060405190602082019261190160f01b8452602283015260428201526042815261233781611c8d565b51902090565b6001600160a01b0381166000818152600080516020612671833981519152602052604081205460ff161592909183806123d7575b6123c1575b50612380906123df565b91806123b9575b61238f575090565b60135490600182018092116123a5575060135590565b634e487b7160e01b81526011600452602490fd5b506001612387565b156103a957600560135410156103bb5738612376565b506001612371565b6001600160a01b0316600081815260008051602061267183398151915260205260408120549091906000805160206126518339815191529060ff1661246857808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054161560001461246857808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b90600090828252816020526040822060018060a01b038216835260205261251560ff60408420541691846125db565b928161253c575b50612525575090565b6013546000198101919082116123a5575060135590565b6000805160206126518339815191529150143861251c565b6001600160a01b0316600081815260008051602061267183398151915260205260408120549091906000805160206126518339815191529060ff16156124685780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054166000146124685780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a460019056fee2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70059f08e7d7ba1c82eddc57afae67f80df851baf38a099607a779825038c3ce5ba264697066735822122099ca6e103d886543095caeb3d74c31adb89f2891f9c890735be317b02bfe1d6264736f6c63430008140033

Deployed Bytecode

0x608080604052600436101561001357600080fd5b600090813560e01c90816301ffc9a714611b3a575080630c6a753f14611ab25780631091f80a14611a695780631a1fe73514611a305780632156529b1461198457806324763d0714611968578063248a9ca31461193c5780632803212f146118d257806328d40eab146114f45780632a29156b146114bb5780632f2ff15d146113ce57806336568abe146113865780633f4ba83a1461132e578063404aed5d14610fdd578063446692d414610fa45780634518da2c14610f005780634d4617b714610ec457806352e4051a14610ea85780635c975abb14610e8557806366168bd714610dfb57806368c4ac2614610dbc5780636b2d853d146109355780636b470fa414610d275780636dbed08314610ceb5780637ca548c614610ccd5780638456cb5914610c7357806388ba16ab14610c4457806391d1485414610bf9578063926d7d7f14610bbe578063a1ebf35d14610b95578063a217fddf14610b79578063a8ae520714610a3f578063aa9b58a714610971578063affed0e014610953578063b8a4e15114610935578063c1e05ebd146108fc578063c4d20842146108bd578063c72ab95214610884578063c9e145901461081a578063cdae6f4c14610727578063cdfceeba14610709578063d547741f146106c8578063de4b4aa01461056c578063e3d9109f1461041f578063e70125bf146103f6578063e8008a8f146103cd578063eb12d61e146102f4578063ebced90c146102bb578063f1a3eed5146102825763f3d162971461024757600080fd5b3461027f57602036600319011261027f576020906040906001600160a01b0361026e611b93565b168152600983522054604051908152f35b80fd5b503461027f57602036600319011261027f576020906040906001600160a01b036102aa611b93565b168152600683522054604051908152f35b503461027f57602036600319011261027f576020906040906001600160a01b036102e3611b93565b168152600a83522054604051908152f35b503461027f57602036600319011261027f5761030e611b93565b610316611bf0565b600560135410156103bb576001600160a01b0381169081156103a957600080516020612651833981519152835282602052604083208260005260205260ff60406000205416610397576103689061233d565b507ffcaa24b1276bfa7dbf77797c0a984b9df924acbeaabd48cd2f1b0eca379b78fa602060405160018152a280f35b604051630e1857b360e21b8152600490fd5b604051632057875960e21b8152600490fd5b6040516331460d4560e01b8152600490fd5b503461027f578060031936011261027f576011546040516001600160a01b039091168152602090f35b503461027f578060031936011261027f576014546040516001600160a01b039091168152602090f35b503461027f57604036600319011261027f57610439611b93565b610441611ba9565b9061044a611bf0565b6001600160a01b03828116929083156103a95760008051602061265183398151915291828652602093868552604087209281169283600052855260ff604060002054161561055a578387528685526040872086600052855260ff604060002054166103975784936000526000845260406000208360005284526104d560ff6040600020541691612554565b5080610552575b610521575b6104ea9061233d565b506040518581527ffcaa24b1276bfa7dbf77797c0a984b9df924acbeaabd48cd2f1b0eca379b78fa938491a260405160018152a280f35b9150601354600019810190811161053c5760135582916104e1565b634e487b7160e01b600052601160045260246000fd5b5060016104dc565b60405163d244b30760e01b8152600490fd5b503461027f5760a036600319011261027f57610586611b93565b61058e611ba9565b6044356064359267ffffffffffffffff938481116106c4576105b4903690600401611bbf565b9190946084359081116106c0576105cf903690600401611bbf565b9490956105da611c6e565b6001600160a01b038281169790969088156106ae57601654946040519860208a01917f76450e933f6bc2efef8f360dc557e0674b931f9f522e594a13aa1d2240d8db85835216988960408201528a60608201528860808201528660a082015260a0815261064681611cbf565b519020610654903046612273565b9561065f9387611e93565b8361066983611e2c565b6016556106769186611dcd565b6040519283526020830152604082015260607fe5b70312aca5e61fbf87aa9080081337eaa504eb2818194ad1874f2dd99e4ea491a380f35b604051634e46966960e11b8152600490fd5b8680fd5b8580fd5b503461027f57604036600319011261027f576107056004356106e8611ba9565b90808452836020526107006001604086200154611c2a565b6124e6565b5080f35b503461027f578060031936011261027f576020601054604051908152f35b503461027f57604036600319011261027f57600435610744611ba9565b61074c611bf0565b8115610808576001600160a01b03169081156107f65780601055816bffffffffffffffffffffffff60a01b601154161760115581817fba1fb6f05f592f36f10c1f40caf37b79d645c42a6fd9847098206fe73e9a7d3f8580a3808352601260205260408320826000526020526040600020600160ff198254161790557f4c1362d861a094545fedb3c8c04110af5d951927c251e9b30f27c1f36d955e62602060405160018152a380f35b604051634868985960e01b8152600490fd5b604051633259f62760e11b8152600490fd5b503461027f57602036600319011261027f57610834611b93565b61083c611bf0565b6001600160a01b031680156107f657601480546001600160a01b031916821790557f52229bc2aaba108c21350a7a91a62cb728b568c61c2259dc33768772c13a94ec8280a280f35b503461027f57602036600319011261027f576020906040906001600160a01b036108ac611b93565b168152600583522054604051908152f35b503461027f57602036600319011261027f5760209060ff906040906001600160a01b036108e8611b93565b168152600f84522054166040519015158152f35b503461027f57602036600319011261027f576020906040906001600160a01b03610924611b93565b168152600c83522054604051908152f35b503461027f578060031936011261027f576020601654604051908152f35b503461027f578060031936011261027f576020601554604051908152f35b503461027f57602036600319011261027f573360009081526000805160206126718339815191526020526040902054600435906000805160206126518339815191529060ff1615610a215750808252600360205260ff604083205416610a0f57808252600360205260408220805460ff191660011790557f56e6a506924693294c9b398179d3922fbf3f3d5029292de8eee7801d6df8eefb8280a280f35b60405163752eea4f60e01b8152600490fd5b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b503461027f57604036600319011261027f57610a59611b93565b610a61611ba9565b610a69611bf0565b6001600160a01b03918216808452600f602090815260408520549192909160ff16610b675782158015610b5d575b610b4b57831692838552600e8252604085205416610b3957818452600d8152604084206bffffffffffffffffffffffff60a01b908482825416179055838552600e8252826040862091825416179055818452600f81526007604085209160ff199260018482541617905584865252600160408520918254161790557f671ac0b13072855923042cd2fb5cbf09cc99fb0f6c937113b61907adc6f6e3678380a380f35b604051634673723f60e01b8152600490fd5b604051630403fe5760e11b8152600490fd5b5083811615610a97565b6040516351ca5fd360e11b8152600490fd5b503461027f578060031936011261027f57602090604051908152f35b503461027f578060031936011261027f5760206040516000805160206126518339815191528152f35b503461027f578060031936011261027f5760206040517fe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc48152f35b503461027f57604036600319011261027f576040610c15611ba9565b91600435815280602052209060018060a01b0316600052602052602060ff604060002054166040519015158152f35b503461027f57602036600319011261027f5760ff60406020926004358152600384522054166040519015158152f35b503461027f578060031936011261027f57610c8c611bf0565b610c94611c50565b600160ff19815416176001557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a180f35b503461027f578060031936011261027f576020601354604051908152f35b503461027f57602036600319011261027f576020906001600160a01b039060409082610d15611b93565b168152600d8452205416604051908152f35b503461027f576020908160031936011261027f576024826001600160a01b03610d4e611b93565b16604051928380926370a0823160e01b82523060048301525afa918215610db05791610d7e575b50604051908152f35b90508181813d8311610da9575b610d958183611cdb565b81010312610da4575138610d75565b600080fd5b503d610d8b565b604051903d90823e3d90fd5b503461027f57602036600319011261027f5760209060ff906040906001600160a01b03610de7611b93565b168152600784522054166040519015158152f35b503461027f57604036600319011261027f57610e15611b93565b6001600160a01b031680825260076020526040822054602435919060ff1615610e7357610e4482303384611cfd565b6040519182527ff1444b5cad7ce70cb018d1b8edc8618fe303f3c7f034d8d572a6e27facbf2bef60203393a380f35b604051633dd1b30560e01b8152600490fd5b503461027f578060031936011261027f57602060ff600154166040519015158152f35b503461027f578060031936011261027f57602060405160058152f35b503461027f57602036600319011261027f576020906001600160a01b039060409082610eee611b93565b168152600e8452205416604051908152f35b503461027f57606036600319011261027f57600435610f1d611ba9565b906044359182151590818403610da457610f35611bf0565b8215610808576001600160a01b03169283156107f6577f4c1362d861a094545fedb3c8c04110af5d951927c251e9b30f27c1f36d955e6291610f9a602092858852601284526040882087600052845260406000209060ff801983541691151516179055565b604051908152a380f35b503461027f57602036600319011261027f576020906040906001600160a01b03610fcc611b93565b168152600b83522054604051908152f35b503461027f57608036600319011261027f57610ff7611b93565b610fff611ba9565b6064359060443561100e611c50565b611016611e0b565b6010548015801561131b575b61130957855260209260128452604086209060018060a01b039182601154168852855260ff604088205416156112f7578184169586156106ae57828116948589526007875260ff60408a20541615610e735784156112e55785895260088752604089205480151590816112db575b506112c95785895260098752604089205480151590816112bf575b506112ad57620151804204868a52600c885260408a20548111611294575b50600a8752604089205415158061126f575b61125d57858952600b8752604089206110f5868254611dc0565b90554283111561124b578360145416156112395788906111178630338a611cfd565b60105461113d61113686898960115416956015549889888830466121d9565b8383612273565b956014541690813b15611235578361014492604051968795869463108c774360e11b86524660048701523060248701526044860152606485015260848401528a60a48401528c60c48401528960e484015287610104840152886101248401525af1801561122a576111fc575b506111f1956015549560405194855284015260408301526060820152827f44cb72580ca917f9b1c2f49c854cf7e2f9ff5074d62190280e3fd2c73f8ae85a60803393a4611e2c565b601555600160025580f35b67ffffffffffffffff8111611216576040526111f16111a9565b634e487b7160e01b88526041600452602488fd5b6040513d8a823e3d90fd5b8380fd5b6040516306238f6360e01b8152600490fd5b604051631ab7da6b60e01b8152600490fd5b604051630652f4c560e21b8152600490fd5b50600b87526112828560408b2054611dc0565b868a52600a885260408a2054106110db565b600b8852896040812055600c885260408a2055386110c9565b6040516306886b9160e01b8152600490fd5b90508511386110ab565b6040516333cbecaf60e01b8152600490fd5b9050851038611090565b6040516365e52d5160e11b8152600490fd5b6040516309d9f3d760e01b8152600490fd5b6040516322bb3bab60e21b8152600490fd5b506011546001600160a01b031615611022565b503461027f578060031936011261027f57611347611bf0565b61134f611c6e565b60ff19600154166001557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a180f35b503461027f57604036600319011261027f576113a0611ba9565b336001600160a01b038216036113bc57610705906004356124e6565b60405163334bd91960e11b8152600490fd5b503461027f57604036600319011261027f576004356113eb611ba9565b90808352826020526114036001604085200154611c2a565b808352602083815260408085206001600160a01b038516808752925284205460ff1615929083806114a4575b61148e575b5061143f908261246d565b5081611476575b5061144e5780f35b601354600181018091116114625760135580f35b634e487b7160e01b82526011600452602482fd5b60008051602061265183398151915291501438611446565b156103a957600560135410156103bb5738611434565b50600080516020612651833981519152831461142f565b503461027f57602036600319011261027f576020906040906001600160a01b036114e3611b93565b168152600883522054604051908152f35b503461027f5761014036600319011261027f5761150f611ba9565b6064356001600160a01b03811690036118ce576084356001600160a01b03811690036118ce5767ffffffffffffffff6101043581811161123557611557903690600401611bbf565b929091610124359081116118ca57611573903690600401611bbf565b9161157c611c50565b611584611e0b565b6084356001600160a01b03161580156118b6575b6106ae576064356001600160a01b031686526007602052604086205460ff1615610e735760a435156112e55760043586526012602090815260408088206001600160a01b038416895290915286205460ff16156112f75760c435421161124b5760e43542116118a45760c43560e43511611892576040516370a0823160e01b81523060048201526020816024816064356001600160a01b03165afa908115611887578791611855575b5060a43511611843576064356001600160a01b0316865260056020526040862054620151804204908111611828575b50600460205261168660a4356040882054611dc0565b6064356001600160a01b03168752600660205260408720541061125d576001600160a01b036064358181168852600e60205260408820546116f3936116ec939092911680611820575b5060c4359160a435916084359160443590309046906004356121d9565b3046612273565b93848652600360205260ff604087205416610a0f576117649361175f60405160208101907f35487897f847a5e4fa4b0d24b9c945b1b25c4283bb34be71d9522fb70f423069825288604082015260e43560608201526060815261175581611c8d565b5190203046612273565b611e93565b808252600360205260408220600160ff1982541617905560018060a01b0360643516825260046020526040822061179e60a4358254611dc0565b90556117ba60a4356084356064356001600160a01b0316611dcd565b6040519060a435825260c435602083015260e4356040830152606082015260018060a01b03608435169060018060a01b0360643516907f6702b1136862f32efec1175df1974987e1e69b9381a26f90751e108dae6f39c5608060443592a4600160025580f35b9050386116cf565b60046020528660408120556005602052604087205538611670565b604051632f1cd18160e21b8152600490fd5b90506020813d60201161187f575b8161187060209383611cdb565b810103126106c0575138611641565b3d9150611863565b6040513d89823e3d90fd5b604051630b21a8f760e21b8152600490fd5b604051630819bdcd60e01b8152600490fd5b506084356001600160a01b03163014611598565b8480fd5b5080fd5b503461027f57604036600319011261027f576118ec611b93565b7f074424510750f675220b94bac388bff82d6407b38f341b0226af2ab45af33dc260206024359261191b611bf0565b6001600160a01b03168085526006825260408086208590555193845292a280f35b503461027f57602036600319011261027f57600160406020926004358152808452200154604051908152f35b503461027f578060031936011261027f57602060405160038152f35b503461027f57608036600319011261027f5761199e611b93565b60243590604435906064356119b1611bf0565b82841180611a27575b611a15577f074424510750f675220b94bac388bff82d6407b38f341b0226af2ab45af33dc29260209260018060a01b031694858752600884526040872055600983526040862055600a8252806040862055604051908152a280f35b60405163a883435760e01b8152600490fd5b508215156119ba565b503461027f57602036600319011261027f576020906040906001600160a01b03611a58611b93565b168152600483522054604051908152f35b503461027f57604036600319011261027f5760ff6040602092611a8a611ba9565b6004358252601285528282206001600160a01b03909116825284522054604051911615158152f35b503461027f57604036600319011261027f57611acc611b93565b6024359081151590818303611235577fbbe72b7d9dcb594ee398a4a617885aba53d833e2aad601c813ce9df99fdeb49b91611b30602092611b0b611bf0565b60018060a01b03169485875260078452604087209060ff801983541691151516179055565b604051908152a280f35b9050346118ce5760203660031901126118ce5760043563ffffffff60e01b8116809103611b8f5760209250637965db0b60e01b8114908115611b7e575b5015158152f35b6301ffc9a760e01b14905038611b77565b8280fd5b600435906001600160a01b0382168203610da457565b602435906001600160a01b0382168203610da457565b9181601f84011215610da45782359167ffffffffffffffff8311610da4576020808501948460051b010111610da457565b3360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205460ff1615610a215750565b80600052600060205260406000203360005260205260ff6040600020541615610a215750565b60ff60015416611c5c57565b60405163d93c066560e01b8152600490fd5b60ff6001541615611c7b57565b604051638dfc202b60e01b8152600490fd5b6080810190811067ffffffffffffffff821117611ca957604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff821117611ca957604052565b90601f8019910116810190811067ffffffffffffffff821117611ca957604052565b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648083019390935291815260a081019181831067ffffffffffffffff841117611ca957611d5692604052611d58565b565b906000602091828151910182855af115611db4576000513d611dab57506001600160a01b0381163b155b611d895750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415611d82565b6040513d6000823e3d90fd5b9190820180921161053c57565b60405163a9059cbb60e01b60208201526001600160a01b039092166024830152604480830193909352918152611d5691611e0682611c8d565b611d58565b6002805414611e1a5760028055565b604051633ee5aeb560e01b8152600490fd5b600019811461053c5760010190565b9190811015611e7d5760051b81013590601e1981360301821215610da457019081359167ffffffffffffffff8311610da4576020018236038113610da4579190565b634e487b7160e01b600052603260045260246000fd5b939091926005928360135403612107578285036120f557600385106120e3578385116120d157600093845b868610611ecf575050505050505050565b85821b830135906001600160a01b039081831690818403610da45782168111156120bf576000818152600080516020612671833981519152602090815260409182902054919390929160ff16156120ae578b93929190853b1561200957508190611f3a8b8b8b611e3b565b939085519283809281630b135d3f60e11b9889825260049b8c8301528a602483015280604483015280606493848401376000828201840152601f01601f191681010301915afa918215611ffe57600092611fc0575b50506001600160e01b03191603611fb3575050611fad905b95611e2c565b94611ebe565b51638baa579f60e01b8152fd5b81813d8311611ff7575b611fd48183611cdb565b810103126118ce5751906001600160e01b03198216820361027f57503880611f8f565b503d611fca565b84513d6000823e3d90fd5b919093506120188a8a8a611e3b565b919067ffffffffffffffff8311611ca95784519161203f601f8501601f1916820184611cdb565b8383523684830111610da457836120619460009383860137830101528c612119565b509390916004948581101561209957159283159361208c575b505050611fb3575050611fad90611fa7565b161415905038808061207a565b602186634e487b7160e01b6000525260246000fd5b8351632057875960e21b8152600490fd5b604051634485151760e01b8152600490fd5b6040516322e5ce4360e21b8152600490fd5b604051633724e34360e11b8152600490fd5b60405163d83b5d6960e01b8152600490fd5b604051633ba6f5db60e01b8152600490fd5b815191906041830361214a5761214392506020820151906060604084015193015160001a90612155565b9192909190565b505060009160029190565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084116121cd57926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa15610db05780516001600160a01b038116156121c457918190565b50809160019190565b50505060009160039190565b97959293969490966040519760208901997fc05b5f09504d53005991a79dccbf18b7456345b4285c08bf9584c29d49ef7d398b5260408a015260018060a01b039586948580931660608c015260808b01521660a089015260c08801521660e08601521661010084015261012083015261014090818301528152610160810181811067ffffffffffffffff821117611ca95760405251902090565b906040519060208201927f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f84527f64c5a5c8ad7acc1c1edbf5acc6973cc76cb6e4ad36df078cfe4f07d34a558b3960408401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060840152608083015260018060a01b031660a082015260a0815261230b81611cbf565b5190209060405190602082019261190160f01b8452602283015260428201526042815261233781611c8d565b51902090565b6001600160a01b0381166000818152600080516020612671833981519152602052604081205460ff161592909183806123d7575b6123c1575b50612380906123df565b91806123b9575b61238f575090565b60135490600182018092116123a5575060135590565b634e487b7160e01b81526011600452602490fd5b506001612387565b156103a957600560135410156103bb5738612376565b506001612371565b6001600160a01b0316600081815260008051602061267183398151915260205260408120549091906000805160206126518339815191529060ff1661246857808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b505090565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054161560001461246857808352826020526040832082845260205260408320600160ff198254161790557f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d339380a4600190565b90600090828252816020526040822060018060a01b038216835260205261251560ff60408420541691846125db565b928161253c575b50612525575090565b6013546000198101919082116123a5575060135590565b6000805160206126518339815191529150143861251c565b6001600160a01b0316600081815260008051602061267183398151915260205260408120549091906000805160206126518339815191529060ff16156124685780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4600190565b9060009180835282602052604083209160018060a01b03169182845260205260ff6040842054166000146124685780835282602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a460019056fee2f4eaae4a9751e85a3e4a7b9587827a877f29914755229b07a7b2da98285f70059f08e7d7ba1c82eddc57afae67f80df851baf38a099607a779825038c3ce5ba264697066735822122099ca6e103d886543095caeb3d74c31adb89f2891f9c890735be317b02bfe1d6264736f6c63430008140033

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
Loading...
Loading
[ Download: CSV Export  ]

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