ETH Price: $2,571.62 (-2.55%)

Contract

0xb69B7C90A11bC5D8979c770B7A8EFD9464A841db
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DeTrustMultisigOnchainModel_Free

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 12 : DeTrustMultisigOnchainModel_Free.sol
// SPDX-Licence-Identifier: MIT
// UBD Network DeTrustMultisigOnchainModel_Free
pragma solidity 0.8.26;

import "./MultisigOnchainBase_01.sol";

/**
 * @dev This is a  trust model onchain multisig implementation.
 * Upon creation the addresses of the heirs(co-signers) could be set
 * 
 * !!! This is implementation contract for proxy conatract creation
 */
contract DeTrustMultisigOnchainModel_Free is MultisigOnchainBase_01 {

    
    /////////////////////////////////////////////////////
    /// OpenZepelin Pattern for Proxy initialize      ///
    /////////////////////////////////////////////////////
    function initialize(
        uint8 _threshold,
        address[] calldata _cosignersAddresses,
        uint64[] calldata _validFrom,
        address _feeToken,
        uint256 _feeAmount,
        address _feeBeneficiary,
        uint64 _feePrepaidPeriod
       
    ) public initializer
    {
        
        // supress solc warnings
        _validFrom;
        _feeToken;
        _feeAmount;
        _feeBeneficiary;
        _feePrepaidPeriod;

        // in this model all _validFrom must be zero so just replace 
        // original with zero array
        uint64[] memory dummyArray = new uint64[](_cosignersAddresses.length);
        __MultisigOnchainBase_01_init(
            _threshold, _cosignersAddresses, dummyArray
        );
    }


    /**
     * @dev Add signer
     * @param _newSigner new signer address
     * @param _newPeriod new signer time param(dends on implementation)
     */ 
    function addSigner(address _newSigner, uint64 _newPeriod) 
        public
        override 
        returns(uint8 signersCount)
    {
        _newPeriod;
        return super.addSigner(_newSigner, uint64(0));
    }

    function editSignerDate(address _coSigner, uint64 _newPeriod) 
        public 
        pure
        override
    {
        _coSigner;
        _newPeriod;
        revert("Disable in this model");
    }

}

File 2 of 12 : MultisigOnchainBase_01.sol
// SPDX-License-Identifier: MIT
// Onchain Multisig 
pragma solidity 0.8.26;

import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {ContextUpgradeable, Initializable} from "@Uopenzeppelin/contracts/utils/ContextUpgradeable.sol";
import "@Uopenzeppelin/contracts/utils/cryptography/EIP712Upgradeable.sol"; 
 import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; 

/**
 * @dev This is abstract contract with ONCHAIN multisig wallet functions
 * Upon creation the address of the heir(s) and  the time for each co-signer
 * after which he(she) will be able to sign tx.  
 * 
 * !!! This is implementation contract for proxy conatract creation
 */
abstract contract MultisigOnchainBase_01 is 
    Initializable, 
    ContextUpgradeable
{

    enum TxStatus {WaitingForSigners, Executed, Rejected}


    struct Signer {
        address signer;
        uint64 validFrom;
    }

    struct Operation {
        address target;
        uint256 value;
        bytes metaTx;
        address[] signedBy;
        TxStatus status;

    }
    /// @custom:storage-location erc7201:ubdn.storage.MultisigOnchainBase_01_Storage
    struct MultisigOnchainBase_01_Storage {
        uint8 threshold;
        Signer[] cosigners;
        Operation[] ops;

    }

    uint8  public constant MAX_COSIGNERS_NUMBER = 100; // Including creator

    // keccak256(abi.encode(uint256(keccak256("ubdn.storage.MultisigOnchainBase_01_Storage")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant MultisigOnchainBase_01_StorageLocation =  0xf486b49c0fd95e99c95d211c0814e0c85bb59e07a1a40077b7a34b255b307200;    
    
    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    //error OwnableUnauthorizedAccount(address account);
    
    error ActionDeniedForThisStatus(TxStatus status);
    error CoSignerAlreadyExist(address signer);
    error CoSignerNotValid(address signer);
    error CoSignerNotExist(address signer);
    error ExecutionDenied(TxStatus status, uint8 signaturesNumber);

    event SignatureAdded(uint256 indexed nonce, address signer, uint256 totalSignaturesCollected);
    event SignatureRevoked(uint256 indexed nonce, address signer, uint256 totalSignaturesCollected);
    event TxExecuted(uint256 indexed nonce, address sender);
    event TxRejected(uint256 indexed nonce, address sender);
    event SignerAdded(Signer signer, uint8 newCosignersNumber);
    event SignerRemoved(Signer signer, uint8 newCosignersNumber);
    event SignerChanged(address  signer, uint64 oldDate, uint64 newDate);
    event ThresholdChanged(uint8 thresholdOld, uint8 thresholdNew);

    event EtherTransfer(address sender, uint256 value);

    /**
     * @dev Throws if called by any account other than this contract or proxy
     */
    modifier onlySelfSender(){
        require(_msgSender() == address(this), "Only Self Signed");
        _;
    }

    constructor() {
      _disableInitializers();
    }

    /**
     * @dev The contract should be able to receive Eth.
     */
    receive() external payable virtual {
        emit EtherTransfer(msg.sender, msg.value);
    }

    /////////////////////////////////////////////////////
    /// OpenZepelin Pattern for Proxy initialize      ///
    /////////////////////////////////////////////////////

    /*
    // This is initializer code example. Must be implemented once in inheritor

    function initialize(
        uint8 _threshold,
        address[] calldata _cosignersAddresses,
        uint64[] calldata _validFrom
       
    ) public initializer
    {
        __MultisigOnchainBase_01_init(
            _threshold, _cosignersAddresses, _validFrom
        );
         __EIP712_init("Iber Onchain Multisig", "0.0.1");

    }
    */

    function __MultisigOnchainBase_01_init(
        uint8 _threshold,
        address[] memory _cosignersAddresses,
        uint64[] memory  _validFrom
    ) internal onlyInitializing 
    {
        __MultisigOnchainBase_01_init_unchained(
             _threshold, _cosignersAddresses, _validFrom
        );
    }

    
    /**
     * @dev Main init functionality
     */
    function __MultisigOnchainBase_01_init_unchained(
        uint8 _threshold,
        address[] memory _cosignersAddresses,
        uint64[] memory  _validFrom
        
    ) internal onlyInitializing 
    {
        require(_cosignersAddresses.length <= MAX_COSIGNERS_NUMBER, "Too much inheritors");
        require(_cosignersAddresses.length == _validFrom.length, "Arrays must be equal");
        require(_threshold <= _cosignersAddresses.length, "Not greater then signers count");
        require(_cosignersAddresses.length >= 2, "At least two signers");
        //require(_cosignersAddresses.length > 1, "At least one signer");
        require(_threshold > 0 , "No zero threshold");

        // Check for no doubles
        for (uint256 i = 0; i < _cosignersAddresses.length; ++ i) {
            for (uint256 j = i + 1; j < _cosignersAddresses.length; ++ j){
                require(_cosignersAddresses[i] != _cosignersAddresses[j],
                    "No double cosigners"
                );
            }
        }

        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        $.threshold = _threshold;
        for (uint8 i; i < _cosignersAddresses.length; ++ i) {
            require(_cosignersAddresses[i] != address(0), "No Zero address");
            $.cosigners.push(Signer(_cosignersAddresses[i], _validFrom[i]));
        }
    }

    /**
     * @dev Storage Getter for access contract state
     */
    function _getMultisigOnchainBase_01_Storage() 
        private pure returns (MultisigOnchainBase_01_Storage storage $) 
    {
        assembly {
            $.slot := MultisigOnchainBase_01_StorageLocation
        }
    }
    /////////////////////////////////////////////////////////////////////////////////////

    /**
     * @dev Use this method to change multisig threshold. 
     * @param _newThreshold !!! must be less or equal current cosigners number
     */
    function changeThreshold(uint8 _newThreshold) external onlySelfSender {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();

        require(_newThreshold <= $.cosigners.length, "New Threshold more than co-signers count");
        require(_newThreshold > 0 , "No zero threshold");
        emit ThresholdChanged($.threshold, _newThreshold);
        $.threshold = _newThreshold;

    }

    /**
     * @dev Add signer
     * @param _newSigner new signer address
     * @param _newPeriod new signer time param(dends on implementation)
     */ 
    function addSigner(address _newSigner, uint64 _newPeriod) 
        public
        virtual 
        onlySelfSender
        returns(uint8 signersCount)
    {
        require(_newSigner != address(0), "No Zero address");
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        
        // increase count for succesfull tx (GAS SAFE)
        signersCount = uint8($.cosigners.length + 1);
        require(signersCount <= MAX_COSIGNERS_NUMBER, "Too much inheritors");

        // check no double
        for (uint256 i = 0; i < signersCount - 1; ++ i) {
            if ($.cosigners[i].signer == _newSigner) {
                revert CoSignerAlreadyExist(_newSigner);
            }
        }
        $.cosigners.push(Signer(_newSigner, _newPeriod));
        emit SignerAdded(Signer(_newSigner, _newPeriod), signersCount);
    }

    function editSignerDate(address _coSigner, uint64 _newPeriod) 
        public 
        virtual
        onlySelfSender
    {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        
        // check no double
        for (uint256 i = 0; i < $.cosigners.length - 1; ++ i) {
            if ($.cosigners[i].signer == _coSigner) {
                require(i != 0, "Cant edit owner's period");
                emit SignerChanged(_coSigner,  $.cosigners[i].validFrom, _newPeriod);
                $.cosigners[i].validFrom = _newPeriod;
            }
        }
    }


    
    /**
     * @dev Remove signer with appropriate check
     * @param _signerIndex index of signer address in array
     */ 
    function removeSignerByIndex(uint256 _signerIndex) 
        external
        onlySelfSender  
        returns(uint8 signersCount)
    {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        // decrease count for succesfull tx (GAS SAFE)
        signersCount = uint8($.cosigners.length - 1);
        require(signersCount >= $.threshold, "New Signers count less then threshold");
        require(_signerIndex != 0, "Cant remove multisig owner(creator)");
        emit SignerRemoved($.cosigners[_signerIndex], signersCount);
        // if deleting index is not last array element then need to replace it with last
        if (_signerIndex != signersCount + 1) {
            // Because signersCount already decreased it already equal to last array element
            $.cosigners[_signerIndex] = $.cosigners[signersCount];
        }
        $.cosigners.pop();
    }
    
    /**  
     * @dev Use this method for save metaTx and make first signature onchain
     * @param _target address of dApp smart contract
     * @param _value amount of native token in tx(msg.value)
     * @param _data ABI encoded transaction payload
     */
    function createAndSign(
        address _target,
        uint256 _value,
        bytes memory _data
    ) 
        public
        virtual
        returns(uint256 nonce_)
    {
        nonce_ = _createOp(_target, _value, _data);
        _hookCheckSender(_msgSender());
    } 

    /**  
     * @dev Use this method for sign metaTx onchain and execute as well
     * @param _nonce index of saved Meta Tx
     * @param _execWhenReady if true then tx will be executed if all signatures are collected
     */
    function signAndExecute(uint256 _nonce, bool _execWhenReady) 
        public
        virtual 
        returns(uint256 signedByCount) 
    {
        signedByCount = _signMetaTx(_nonce,_execWhenReady);
        _hookCheckSender(_msgSender());
    }

    /**  
     * @dev Use this method for execute tx
     * @param _nonce index of saved Meta Tx
     */
    function executeOp(uint256 _nonce) public virtual returns(bytes memory r){
        r = _execTx(_nonce);
        _hookCheckSender(_msgSender());
    }

    /**  
     * @dev Use this method for  execute batch of well signed tx
     * @param _nonces index of saved Meta Tx
     */
    function executeOp(uint256[] memory _nonces) public virtual returns(bytes memory r){
        for (uint256 i = 0; i < _nonces.length; ++ i){
            r = _execTx(_nonces[i]);
        }
        _hookCheckSender(_msgSender());
    }

    /**  
     * @dev Use this method for  revoke signature onchain and reject as well
     * @param _nonce index of saved Meta Tx
     * @param _rejectWhenReady if true then tx will be rejected if all signatures revoked
     */
    function revokeSignature(uint256 _nonce, bool _rejectWhenReady) 
        public 
        returns(uint256 signedByCount) 
    {
        signedByCount = _revokeSignature(_nonce, _msgSender(), _rejectWhenReady);
        _hookCheckSender(_msgSender());
    }

    /**  
     * @dev Use this method for  reject tx
     * @param _nonce index of saved Meta Tx
     */
    function rejectTx(uint256 _nonce) public {
        _rejectTx(_nonce);
        _hookCheckSender(_msgSender());
    }
    
    
    ///////////////////////////////////////////////////////////////////////////
    /**
     * @dev Use this method for static call any dApps onchain
     * @param _target address of dApp smart contract
     * @param _data ABI encoded transaction payload
     */
    function staticCallOp(
        address _target,
        bytes memory _data
    )   
        external 
        view  
        virtual 
        returns (bytes memory r) 
    {
        r = Address.functionStaticCall(_target, _data);
    }


    /**
     * @dev Returns full Multisig info
     */
    function getMultisigOnchainBase_01() 
        public 
        pure
        returns(MultisigOnchainBase_01_Storage memory msig)
    {
        msig = _getMultisigOnchainBase_01_Storage();
    }


    function getMultisigSettings() 
        public 
        view 
        returns(uint8 thr, Signer[] memory sgs)
    {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        thr = $.threshold;
        sgs = $.cosigners;
    }

    function getMultisigOpByNonce(uint256 _nonce)  
        public 
        view 
        returns(Operation memory op)
    {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        op = $.ops[_nonce];
    } 

    function getMultisigLastNonce()  
        public 
        view 
        returns(uint256 nonce)
    {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        nonce = $.ops.length;
        // Actually it is not nonce  yet but array length
        require(nonce > 0, "No Operations yet"); 
        nonce -= 1;
    }
    ////////////////////////////////////////////
    ///////   Multisig internal functions    ///
    ////////////////////////////////////////////
    function _createOp(
        address _target,
        uint256 _value,
        bytes memory _data
    )
        internal
        returns(uint256 nonce_)
    {
        require(_target != address(0), "No Zero Address");
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        Operation storage op = $.ops.push();
        op.target = _target;
        op.value = _value;
        op.metaTx = _data;
        // Next asignment is not necessery because default var value
        // op.status = TxStatus.WaitingForSigners 
        nonce_ = $.ops.length -1;
        //Signer[] storage _sgnrs = $.cosigners;
        _checkSigner(_msgSender(), $.cosigners);
        _signMetaTxOp(op, _msgSender());
        emit SignatureAdded(nonce_, _msgSender(), 1);
    }

    function _signMetaTxOp(
         Operation storage _op, 
        address _signer
    ) 
        internal
        returns (uint256 signedByCount) 
    {
        if (_op.status != TxStatus.WaitingForSigners) {
            revert ActionDeniedForThisStatus(_op.status); 
        }
        // Check that not signed before
        for (uint256 i; i < _op.signedBy.length; ++ i) {
            if (_op.signedBy[i] == _signer) {
                revert CoSignerAlreadyExist(_signer);
            }
        }
        _op.signedBy.push(_signer);
        signedByCount = _op.signedBy.length; 
    }

    function _signMetaTx(uint256 _nonce, bool _execWhenReady) 
        internal
        returns (uint256 signedByCount) 
    {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        _checkSigner(_msgSender(), $.cosigners);
        signedByCount = _signMetaTxOp($.ops[_nonce], _msgSender());
        emit SignatureAdded(_nonce, _msgSender(), signedByCount);
        if (_execWhenReady &&  signedByCount == $.threshold){
            _execOp($.ops[_nonce], $.threshold);
            emit TxExecuted(_nonce, _msgSender());
        }

    }

    function _execTx(uint256 _nonce) internal returns(bytes memory r) {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        r =  _execOp($.ops[_nonce], $.threshold);
        emit TxExecuted(_nonce, _msgSender());
    }

    function _execOp(Operation storage _op, uint8 _threshold) 
        internal 
        returns(bytes memory r)
    {
        if (
               _op.status == TxStatus.WaitingForSigners 
               && _op.signedBy.length >= _threshold
        ) 
        {
            if (keccak256(bytes("")) == keccak256(_op.metaTx)) {
                // JUST sending ether, no call methods
                Address.sendValue(payable(_op.target), _op.value);
            } else {
                r = Address.functionCallWithValue(
                    _op.target, 
                    _op.metaTx, 
                    _op.value
                );

            }
              
            _op.status = TxStatus.Executed; 
        } else {
            revert ExecutionDenied(_op.status, uint8(_op.signedBy.length));
        }
    }

    function _rejectTx(uint256 _nonce) internal {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        _rejectOp($.ops[_nonce]);
        emit TxRejected(_nonce, _msgSender());
    }

    function _rejectOp(Operation storage _op) internal {
        if (_op.status == TxStatus.WaitingForSigners  && _op.signedBy.length == 0){
            _op.status = TxStatus.Rejected;
        } else {
            revert ActionDeniedForThisStatus(_op.status);
        }

    }
    function _revokeSignature(uint256 _nonce, address _signer, bool _rejectWhenReady) 
        internal
        returns(uint256 signedByCount)
    {
        MultisigOnchainBase_01_Storage storage $ = _getMultisigOnchainBase_01_Storage();
        // TODO GAS saving
        if ($.ops[_nonce].status == TxStatus.WaitingForSigners){
            for(uint256 i = 0; i < $.ops[_nonce].signedBy.length; ++ i){
                if ($.ops[_nonce].signedBy[i] == _signer) {
                    if (i != $.ops[_nonce].signedBy.length -1){
                        $.ops[_nonce].signedBy[i] = $.ops[_nonce].signedBy[$.ops[_nonce].signedBy.length -1];
                    }
                    $.ops[_nonce].signedBy.pop();
                } 
            }
        } else {
            revert ActionDeniedForThisStatus($.ops[_nonce].status);
        }
        
        signedByCount = $.ops[_nonce].signedBy.length;
        emit SignatureRevoked(_nonce, _signer, signedByCount);

        if (_rejectWhenReady && signedByCount == 0) {
            _rejectOp($.ops[_nonce]);
            emit TxRejected(_nonce, _msgSender());
        }
    }

    function _checkSigner(
        address _signer, 
        Signer[] storage _cosigners
    ) 
       internal 
       view
    {
        for (uint256 i = 0; i < _cosigners.length; ++ i) {
            if (_cosigners[i].signer == _signer) {
                // Use this hook for ability to change logic in inheritors
                if (_isValidSignerRecord(_cosigners[i])){
                    return;
                } else {
                    revert CoSignerNotValid(_signer);
                }
            }
        }
        revert CoSignerNotExist(_signer);
    }

  

    function _isValidSignerRecord(
        //MultisigOnchainBase_01_Storage storage st, 
        Signer storage _cosigner
    )
        internal
        virtual
        view
        returns(bool valid)
    {
        // !!!! Main signer validity rule  is here
        valid = _cosigner.validFrom <= block.timestamp;
    } 

    function _hookCheckSender(address _sender) internal virtual {
        _sender;
    }

}

File 3 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

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

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

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

File 4 of 12 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    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;
    }
}

File 5 of 12 : EIP712Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.20;

import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import {IERC5267} from "@openzeppelin/contracts/interfaces/IERC5267.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
 * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
 * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
 * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 */
abstract contract EIP712Upgradeable is Initializable, IERC5267 {
    bytes32 private constant TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    /// @custom:storage-location erc7201:openzeppelin.storage.EIP712
    struct EIP712Storage {
        /// @custom:oz-renamed-from _HASHED_NAME
        bytes32 _hashedName;
        /// @custom:oz-renamed-from _HASHED_VERSION
        bytes32 _hashedVersion;

        string _name;
        string _version;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.EIP712")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;

    function _getEIP712Storage() private pure returns (EIP712Storage storage $) {
        assembly {
            $.slot := EIP712StorageLocation
        }
    }

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    function __EIP712_init(string memory name, string memory version) internal onlyInitializing {
        __EIP712_init_unchained(name, version);
    }

    function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {
        EIP712Storage storage $ = _getEIP712Storage();
        $._name = name;
        $._version = version;

        // Reset prior values in storage if upgrading
        $._hashedName = 0;
        $._hashedVersion = 0;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        return _buildDomainSeparator();
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {IERC-5267}.
     */
    function eip712Domain()
        public
        view
        virtual
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        EIP712Storage storage $ = _getEIP712Storage();
        // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized
        // and the EIP712 domain is not reliable, as it will be missing name and version.
        require($._hashedName == 0 && $._hashedVersion == 0, "EIP712: Uninitialized");

        return (
            hex"0f", // 01111
            _EIP712Name(),
            _EIP712Version(),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }

    /**
     * @dev The name parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712Name() internal view virtual returns (string memory) {
        EIP712Storage storage $ = _getEIP712Storage();
        return $._name;
    }

    /**
     * @dev The version parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712Version() internal view virtual returns (string memory) {
        EIP712Storage storage $ = _getEIP712Storage();
        return $._version;
    }

    /**
     * @dev The hash of the name parameter for the EIP712 domain.
     *
     * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.
     */
    function _EIP712NameHash() internal view returns (bytes32) {
        EIP712Storage storage $ = _getEIP712Storage();
        string memory name = _EIP712Name();
        if (bytes(name).length > 0) {
            return keccak256(bytes(name));
        } else {
            // If the name is empty, the contract may have been upgraded without initializing the new storage.
            // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.
            bytes32 hashedName = $._hashedName;
            if (hashedName != 0) {
                return hashedName;
            } else {
                return keccak256("");
            }
        }
    }

    /**
     * @dev The hash of the version parameter for the EIP712 domain.
     *
     * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.
     */
    function _EIP712VersionHash() internal view returns (bytes32) {
        EIP712Storage storage $ = _getEIP712Storage();
        string memory version = _EIP712Version();
        if (bytes(version).length > 0) {
            return keccak256(bytes(version));
        } else {
            // If the version is empty, the contract may have been upgraded without initializing the new storage.
            // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.
            bytes32 hashedVersion = $._hashedVersion;
            if (hashedVersion != 0) {
                return hashedVersion;
            } else {
                return keccak256("");
            }
        }
    }
}

File 6 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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, RecoverError, bytes32) {
        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.
            /// @solidity memory-safe-assembly
            assembly {
                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[EIP-2098 short signatures]
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
        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, RecoverError, bytes32) {
        // 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);
        }
    }
}

File 7 of 12 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reininitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        assembly {
            $.slot := INITIALIZABLE_STORAGE
        }
    }
}

File 8 of 12 : MessageHashUtils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}

File 9 of 12 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.20;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 10 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 11 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 12 of 12 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

Settings
{
  "remappings": [
    "@Uopenzeppelin/=lib/openzeppelin-contracts-upgradeable.git/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@uniswap/=lib/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable.git/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts-upgradeable.git/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable.git/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable.git/=lib/openzeppelin-contracts-upgradeable.git/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"enum MultisigOnchainBase_01.TxStatus","name":"status","type":"uint8"}],"name":"ActionDeniedForThisStatus","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"CoSignerAlreadyExist","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"CoSignerNotExist","type":"error"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"CoSignerNotValid","type":"error"},{"inputs":[{"internalType":"enum MultisigOnchainBase_01.TxStatus","name":"status","type":"uint8"},{"internalType":"uint8","name":"signaturesNumber","type":"uint8"}],"name":"ExecutionDenied","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"EtherTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalSignaturesCollected","type":"uint256"}],"name":"SignatureAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalSignaturesCollected","type":"uint256"}],"name":"SignatureRevoked","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint64","name":"validFrom","type":"uint64"}],"indexed":false,"internalType":"struct MultisigOnchainBase_01.Signer","name":"signer","type":"tuple"},{"indexed":false,"internalType":"uint8","name":"newCosignersNumber","type":"uint8"}],"name":"SignerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"uint64","name":"oldDate","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"newDate","type":"uint64"}],"name":"SignerChanged","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint64","name":"validFrom","type":"uint64"}],"indexed":false,"internalType":"struct MultisigOnchainBase_01.Signer","name":"signer","type":"tuple"},{"indexed":false,"internalType":"uint8","name":"newCosignersNumber","type":"uint8"}],"name":"SignerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"thresholdOld","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"thresholdNew","type":"uint8"}],"name":"ThresholdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"TxExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"TxRejected","type":"event"},{"inputs":[],"name":"MAX_COSIGNERS_NUMBER","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"},{"internalType":"uint64","name":"_newPeriod","type":"uint64"}],"name":"addSigner","outputs":[{"internalType":"uint8","name":"signersCount","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_newThreshold","type":"uint8"}],"name":"changeThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"createAndSign","outputs":[{"internalType":"uint256","name":"nonce_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_coSigner","type":"address"},{"internalType":"uint64","name":"_newPeriod","type":"uint64"}],"name":"editSignerDate","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"executeOp","outputs":[{"internalType":"bytes","name":"r","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_nonces","type":"uint256[]"}],"name":"executeOp","outputs":[{"internalType":"bytes","name":"r","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getMultisigLastNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMultisigOnchainBase_01","outputs":[{"components":[{"internalType":"uint8","name":"threshold","type":"uint8"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint64","name":"validFrom","type":"uint64"}],"internalType":"struct MultisigOnchainBase_01.Signer[]","name":"cosigners","type":"tuple[]"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"metaTx","type":"bytes"},{"internalType":"address[]","name":"signedBy","type":"address[]"},{"internalType":"enum MultisigOnchainBase_01.TxStatus","name":"status","type":"uint8"}],"internalType":"struct MultisigOnchainBase_01.Operation[]","name":"ops","type":"tuple[]"}],"internalType":"struct MultisigOnchainBase_01.MultisigOnchainBase_01_Storage","name":"msig","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"getMultisigOpByNonce","outputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"metaTx","type":"bytes"},{"internalType":"address[]","name":"signedBy","type":"address[]"},{"internalType":"enum MultisigOnchainBase_01.TxStatus","name":"status","type":"uint8"}],"internalType":"struct MultisigOnchainBase_01.Operation","name":"op","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMultisigSettings","outputs":[{"internalType":"uint8","name":"thr","type":"uint8"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint64","name":"validFrom","type":"uint64"}],"internalType":"struct MultisigOnchainBase_01.Signer[]","name":"sgs","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_threshold","type":"uint8"},{"internalType":"address[]","name":"_cosignersAddresses","type":"address[]"},{"internalType":"uint64[]","name":"_validFrom","type":"uint64[]"},{"internalType":"address","name":"_feeToken","type":"address"},{"internalType":"uint256","name":"_feeAmount","type":"uint256"},{"internalType":"address","name":"_feeBeneficiary","type":"address"},{"internalType":"uint64","name":"_feePrepaidPeriod","type":"uint64"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"rejectTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_signerIndex","type":"uint256"}],"name":"removeSignerByIndex","outputs":[{"internalType":"uint8","name":"signersCount","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bool","name":"_rejectWhenReady","type":"bool"}],"name":"revokeSignature","outputs":[{"internalType":"uint256","name":"signedByCount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bool","name":"_execWhenReady","type":"bool"}],"name":"signAndExecute","outputs":[{"internalType":"uint256","name":"signedByCount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"staticCallOp","outputs":[{"internalType":"bytes","name":"r","type":"bytes"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052348015600f57600080fd5b506016601a565b60ca565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161560695760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b039081161460c75780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b612c97806100d96000396000f3fe6080604052600436106101025760003560e01c80636fad7c1811610095578063a286433511610064578063a2864335146102e9578063a7d4e01e14610309578063b7f3358d14610336578063ddf6874e14610356578063f52f56cf1461037657600080fd5b80636fad7c18146102675780637fb5e3221461028757806385c1ebff1461029c5780639bab5779146102bc57600080fd5b8063391d678b116100d1578063391d678b146101d25780633d1025b8146101f25780634ffef69c1461022457806369f4a16b1461024457600080fd5b8063012b4043146101465780631962eb5e1461016e5780631c9825fa146101905780632ab8ad9a146101b057600080fd5b3661014157604080513381523460208201527f1853ca9dc0208799379313b2b43364e45db022f073c72648fbc206dc0bacbcdc910160405180910390a1005b600080fd5b34801561015257600080fd5b5061015b610396565b6040519081526020015b60405180910390f35b34801561017a57600080fd5b5061018e610189366004612325565b61040c565b005b34801561019c57600080fd5b5061015b6101ab3660046123e3565b61059f565b3480156101bc57600080fd5b506101c56105bc565b6040516101659190612537565b3480156101de57600080fd5b5061015b6101ed3660046126d0565b61082c565b3480156101fe57600080fd5b5061021261020d366004612726565b610843565b60405160ff9091168152602001610165565b34801561023057600080fd5b5061018e61023f36600461273f565b610aae565b34801561025057600080fd5b50610259610aee565b604051610165929190612772565b34801561027357600080fd5b5061021261028236600461273f565b610b92565b34801561029357600080fd5b50610212606481565b3480156102a857600080fd5b5061015b6102b73660046123e3565b610b9f565b3480156102c857600080fd5b506102dc6102d7366004612726565b610bab565b60405161016591906127eb565b3480156102f557600080fd5b506102dc6103043660046127fe565b610bbe565b34801561031557600080fd5b50610329610324366004612726565b610bfe565b60405161016591906128ad565b34801561034257600080fd5b5061018e6103513660046128c0565b610db7565b34801561036257600080fd5b5061018e610371366004612726565b610ef4565b34801561038257600080fd5b506102dc6103913660046128db565b610f04565b600080516020612c2283398151915254600080516020612c02833981519152816103fb5760405162461bcd60e51b8152602060048201526011602482015270139bc813dc195c985d1a5bdb9cc81e595d607a1b60448201526064015b60405180910390fd5b61040660018361293e565b91505090565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156104515750825b90506000826001600160401b0316600114801561046d5750303b155b90508115801561047b575080155b156104995760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156104c357845460ff60401b1916600160401b1785555b60008c6001600160401b038111156104dd576104dd61261b565b604051908082528060200260200182016040528015610506578160200160208202803683370190505b5090506105488f8f8f80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250869250610f10915050565b50831561058f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050505050505050565b60006105ac833384610f28565b90506105b6565b50565b92915050565b6105e36040518060600160405280600060ff16815260200160608152602001606081525090565b600080516020612c0283398151915260408051606081018252825460ff16815260018301805483516020828102820181019095528181529294938086019392919060009084015b8282101561067957600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160401b03168183015282526001909201910161062a565b50505050815260200160028201805480602002602001604051908101604052809291908181526020016000905b8282101561081f5760008481526020908190206040805160a0810182526005860290920180546001600160a01b03168352600181015493830193909352600283018054929392918401916106f990612951565b80601f016020809104026020016040519081016040528092919081815260200182805461072590612951565b80156107725780601f1061074757610100808354040283529160200191610772565b820191906000526020600020905b81548152906001019060200180831161075557829003601f168201915b50505050508152602001600382018054806020026020016040519081016040528092919081815260200182805480156107d457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107b6575b5050509183525050600482015460209091019060ff1660028111156107fb576107fb612468565b600281111561080c5761080c612468565b81525050815260200190600101906106a6565b5050505081525050905090565b60006108398484846112d5565b90505b9392505050565b60003330146108645760405162461bcd60e51b81526004016103f290612985565b600080516020612c4283398151915254600080516020612c02833981519152906108909060019061293e565b815490925060ff90811690831610156108f95760405162461bcd60e51b815260206004820152602560248201527f4e6577205369676e65727320636f756e74206c657373207468656e20746872656044820152641cda1bdb1960da1b60648201526084016103f2565b826000036109555760405162461bcd60e51b815260206004820152602360248201527f43616e742072656d6f7665206d756c7469736967206f776e65722863726561746044820152626f722960e81b60648201526084016103f2565b7fab11f4642b6b70189f9b81e9063aab5060c9ecac7e6672eb042e5a1816e1765181600101848154811061098b5761098b6129af565b90600052602060002001836040516109cc92919091546001600160a01b038116835260a01c6001600160401b0316602083015260ff16604082015260600190565b60405180910390a16109df8260016129c5565b60ff168314610a7357806001018260ff1681548110610a0057610a006129af565b90600052602060002001816001018481548110610a1f57610a1f6129af565b600091825260209091208254910180546001600160a01b039092166001600160a01b031983168117825592546001600160e01b0319909216909217600160a01b918290046001600160401b03169091021790555b80600101805480610a8657610a866129de565b600082815260209020810160001990810180546001600160e01b031916905501905550919050565b60405162461bcd60e51b8152602060048201526015602482015274111a5cd8589b19481a5b881d1a1a5cc81b5bd9195b605a1b60448201526064016103f2565b600080516020612c028339815191528054600080516020612c4283398151915280546040805160208084028201810190925282815260ff9094169460609490939092909160009084015b82821015610b8757600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160401b031681830152825260019092019101610b38565b505050509150509091565b600061083c836000611453565b60006105ac8383611676565b6060610bb6826117a1565b90505b919050565b606060005b8251811015610bf857610bee838281518110610be157610be16129af565b60200260200101516117a1565b9150600101610bc3565b50919050565b610c06612253565b600080516020612c228339815191528054600080516020612c02833981519152919084908110610c3857610c386129af565b90600052602060002090600502016040518060a00160405290816000820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200160018201548152602001600282018054610c9a90612951565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc690612951565b8015610d135780601f10610ce857610100808354040283529160200191610d13565b820191906000526020600020905b815481529060010190602001808311610cf657829003601f168201915b5050505050815260200160038201805480602002602001604051908101604052809291908181526020018280548015610d7557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610d57575b5050509183525050600482015460209091019060ff166002811115610d9c57610d9c612468565b6002811115610dad57610dad612468565b9052509392505050565b333014610dd65760405162461bcd60e51b81526004016103f290612985565b600080516020612c4283398151915254600080516020612c028339815191529060ff83161115610e595760405162461bcd60e51b815260206004820152602860248201527f4e6577205468726573686f6c64206d6f7265207468616e20636f2d7369676e656044820152671c9cc818dbdd5b9d60c21b60648201526084016103f2565b60008260ff1611610ea05760405162461bcd60e51b8152602060048201526011602482015270139bc81e995c9bc81d1a1c995cda1bdb19607a1b60448201526064016103f2565b80546040805160ff928316815291841660208301527f2a855b929b9a53c6fb5b5ed248b27e502b709c088e036a5aa17620c8fc5085a9910160405180910390a1805460ff191660ff92909216919091179055565b610efd81611814565b6105b33381565b606061083c838361188b565b610f18611901565b610f2383838361194c565b505050565b600080600080516020612c0283398151915290506000816002018681548110610f5357610f536129af565b600091825260209091206004600590920201015460ff166002811115610f7b57610f7b612468565b0361119c5760005b816002018681548110610f9857610f986129af565b90600052602060002090600502016003018054905081101561119657846001600160a01b0316826002018781548110610fd357610fd36129af565b90600052602060002090600502016003018281548110610ff557610ff56129af565b6000918252602090912001546001600160a01b03160361118e576001826002018781548110611026576110266129af565b906000526020600020906005020160030180549050611045919061293e565b811461113657816002018681548110611060576110606129af565b90600052602060002090600502016003016001836002018881548110611088576110886129af565b9060005260206000209060050201600301805490506110a7919061293e565b815481106110b7576110b76129af565b6000918252602090912001546002830180546001600160a01b0390921691889081106110e5576110e56129af565b90600052602060002090600502016003018281548110611107576111076129af565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b81600201868154811061114b5761114b6129af565b906000526020600020906005020160030180548061116b5761116b6129de565b600082815260209020810160001990810180546001600160a01b03191690550190555b600101610f83565b506111e3565b8060020185815481106111b1576111b16129af565b6000918252602090912060046005909202018101546040516306de30ed60e51b81526103f29260ff90921691016129f4565b8060020185815481106111f8576111f86129af565b600091825260209182902060036005909202010154604080516001600160a01b038816815292830182905290935086917ffbbda019ddace25510873f2cf5073cc1895af4dace5fa94e134007a4a329c520910160405180910390a282801561125e575081155b156112cd5761128e81600201868154811061127b5761127b6129af565b9060005260206000209060050201611ce6565b847f9488ff0a5bab982a7a635f0b781e4ade33c40fa4ec417f0d8e34eb9a680059d0336040516001600160a01b03909116815260200160405180910390a25b509392505050565b60006001600160a01b03841661131f5760405162461bcd60e51b815260206004820152600f60248201526e4e6f205a65726f204164647265737360881b60448201526064016103f2565b600080516020612c2283398151915280546001810182556000919091526005027f59e3d282e52f36c146d456fa6c25cff65203c8bd9380de512b3322eec421510f810180546001600160a01b0387166001600160a01b03199091161781557f59e3d282e52f36c146d456fa6c25cff65203c8bd9380de512b3322eec42151108201859055600080516020612c02833981519152917f59e3d282e52f36c146d456fa6c25cff65203c8bd9380de512b3322eec4215111016113df8582612a49565b5060028201546113f19060019061293e565b92506114003383600101611d48565b61140f8133611e1d565b611e1d565b506040805133815260016020820152815185927f1705482c697891f95d7007f132e7f3365b88454c115ab0338e69c58d00b387e1928290030190a250509392505050565b60003330146114745760405162461bcd60e51b81526004016103f290612985565b6001600160a01b0383166114bc5760405162461bcd60e51b815260206004820152600f60248201526e4e6f205a65726f206164647265737360881b60448201526064016103f2565b600080516020612c4283398151915254600080516020612c02833981519152906114e7906001612b07565b9150606460ff831611156115335760405162461bcd60e51b8152602060048201526013602482015272546f6f206d75636820696e68657269746f727360681b60448201526064016103f2565b60005b611541600184612b1a565b60ff168110156115b057846001600160a01b031682600101828154811061156a5761156a6129af565b6000918252602090912001546001600160a01b0316036115a8576040516339754ae560e01b81526001600160a01b03861660048201526024016103f2565b600101611536565b506040805180820182526001600160a01b038681168083526001600160401b03878116602080860182815260018981018054918201815560009081528390209751970180549151979096166001600160e01b031990911617600160a01b9684169690960295909517909355845180860186528281528401928352845191825291519091169181019190915260ff84168183015290517f173fc22310418a30fc7c70268687e66ec12f54915a85a3e5965e65e31215e0429181900360600190a15092915050565b6000600080516020612c0283398151915261169f33600080516020612c42833981519152611d48565b6116cc8160020185815481106116b7576116b76129af565b906000526020600020906005020161140a3390565b9150837f1705482c697891f95d7007f132e7f3365b88454c115ab0338e69c58d00b387e133604080516001600160a01b039092168252602082018690520160405180910390a28280156117225750805460ff1682145b1561179a5761175a81600201858154811061173f5761173f6129af565b6000918252602090912083546005909202019060ff16611f11565b50837f5ee51e76cad23bc6a0e665e0ed4388cf033d3bc1bba5c050849550c13001598d336040516001600160a01b03909116815260200160405180910390a25b5092915050565b60606000600080516020612c0283398151915290506117ce81600201848154811061173f5761173f6129af565b9150827f5ee51e76cad23bc6a0e665e0ed4388cf033d3bc1bba5c050849550c13001598d336040516001600160a01b03909116815260200160405180910390a250919050565b600080516020612c228339815191528054600080516020612c0283398151915291611849918490811061127b5761127b6129af565b817f9488ff0a5bab982a7a635f0b781e4ade33c40fa4ec417f0d8e34eb9a680059d0336040516001600160a01b03909116815260200160405180910390a25050565b6060600080846001600160a01b0316846040516118a89190612b33565b600060405180830381855afa9150503d80600081146118e3576040519150601f19603f3d011682016040523d82523d6000602084013e6118e8565b606091505b50915091506118f885838361209a565b95945050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661194a57604051631afcd79f60e31b815260040160405180910390fd5b565b611954611901565b81516064101561199c5760405162461bcd60e51b8152602060048201526013602482015272546f6f206d75636820696e68657269746f727360681b60448201526064016103f2565b80518251146119e45760405162461bcd60e51b8152602060048201526014602482015273105c9c985e5cc81b5d5cdd08189948195c5d585b60621b60448201526064016103f2565b81518360ff161115611a385760405162461bcd60e51b815260206004820152601e60248201527f4e6f742067726561746572207468656e207369676e65727320636f756e74000060448201526064016103f2565b600282511015611a815760405162461bcd60e51b81526020600482015260146024820152734174206c656173742074776f207369676e65727360601b60448201526064016103f2565b60008360ff1611611ac85760405162461bcd60e51b8152602060048201526011602482015270139bc81e995c9bc81d1a1c995cda1bdb19607a1b60448201526064016103f2565b60005b8251811015611b87576000611ae1826001612b07565b90505b8351811015611b7e57838181518110611aff57611aff6129af565b60200260200101516001600160a01b0316848381518110611b2257611b226129af565b60200260200101516001600160a01b031603611b765760405162461bcd60e51b81526020600482015260136024820152724e6f20646f75626c6520636f7369676e65727360681b60448201526064016103f2565b600101611ae4565b50600101611acb565b50600080516020612c02833981519152805460ff191660ff851617815560005b83518160ff161015611cdf5760006001600160a01b0316848260ff1681518110611bd357611bd36129af565b60200260200101516001600160a01b031603611c235760405162461bcd60e51b815260206004820152600f60248201526e4e6f205a65726f206164647265737360881b60448201526064016103f2565b816001016040518060400160405280868460ff1681518110611c4757611c476129af565b60200260200101516001600160a01b03168152602001858460ff1681518110611c7257611c726129af565b6020908102919091018101516001600160401b0390811690925283546001810185556000948552938190208351940180549390910151909116600160a01b026001600160e01b03199092166001600160a01b0390931692909217179055611cd881612b4f565b9050611ba7565b5050505050565b6000600482015460ff166002811115611d0157611d01612468565b148015611d1057506003810154155b15611d2557600401805460ff19166002179055565b6004808201546040516306de30ed60e51b81526103f29260ff90921691016129f4565b60005b8154811015611df857826001600160a01b0316828281548110611d7057611d706129af565b6000918252602090912001546001600160a01b031603611df057611dc2828281548110611d9f57611d9f6129af565b60009182526020909120015442600160a01b9091046001600160401b0316111590565b15611dcc57505050565b60405163a9bb21d760e01b81526001600160a01b03841660048201526024016103f2565b600101611d4b565b50604051632098c49d60e01b81526001600160a01b03831660048201526024016103f2565b600080600484015460ff166002811115611e3957611e39612468565b14611e61576004808401546040516306de30ed60e51b81526103f29260ff90921691016129f4565b60005b6003840154811015611ed557826001600160a01b0316846003018281548110611e8f57611e8f6129af565b6000918252602090912001546001600160a01b031603611ecd576040516339754ae560e01b81526001600160a01b03841660048201526024016103f2565b600101611e64565b505060039190910180546001810182556000828152602090200180546001600160a01b0319166001600160a01b03909316929092179091555490565b60606000600484015460ff166002811115611f2e57611f2e612468565b148015611f425750600383015460ff831611155b156120725782600201604051611f589190612b6e565b604080519182900382206020830190915260009091527fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47003611fb35782546001840154611fae916001600160a01b0316906120f6565b61205e565b825460028401805461205b926001600160a01b03169190611fd390612951565b80601f0160208091040260200160405190810160405280929190818152602001828054611fff90612951565b801561204c5780601f106120215761010080835404028352916020019161204c565b820191906000526020600020905b81548152906001019060200180831161202f57829003601f168201915b5050505050856001015461218d565b90505b60048301805460ff191660011790556105b6565b600480840154600385015460405163198a7b8160e21b81526103f29360ff9093169201612be3565b6060826120af576120aa8261222a565b61083c565b81511580156120c657506001600160a01b0384163b155b156120ef57604051639996b31560e01b81526001600160a01b03851660048201526024016103f2565b508061083c565b804710156121195760405163cd78605960e01b81523060048201526024016103f2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612166576040519150601f19603f3d011682016040523d82523d6000602084013e61216b565b606091505b5050905080610f2357604051630a12f52160e11b815260040160405180910390fd5b6060814710156121b25760405163cd78605960e01b81523060048201526024016103f2565b600080856001600160a01b031684866040516121ce9190612b33565b60006040518083038185875af1925050503d806000811461220b576040519150601f19603f3d011682016040523d82523d6000602084013e612210565b606091505b509150915061222086838361209a565b9695505050505050565b80511561223a5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6040518060a0016040528060006001600160a01b031681526020016000815260200160608152602001606081526020016000600281111561229657612296612468565b905290565b803560ff81168114610bb957600080fd5b60008083601f8401126122be57600080fd5b5081356001600160401b038111156122d557600080fd5b6020830191508360208260051b85010111156122f057600080fd5b9250929050565b80356001600160a01b0381168114610bb957600080fd5b80356001600160401b0381168114610bb957600080fd5b600080600080600080600080600060e08a8c03121561234357600080fd5b61234c8a61229b565b985060208a01356001600160401b0381111561236757600080fd5b6123738c828d016122ac565b90995097505060408a01356001600160401b0381111561239257600080fd5b61239e8c828d016122ac565b90975095506123b1905060608b016122f7565b935060808a013592506123c660a08b016122f7565b91506123d460c08b0161230e565b90509295985092959850929598565b600080604083850312156123f657600080fd5b823591506020830135801515811461240d57600080fd5b809150509250929050565b60005b8381101561243357818101518382015260200161241b565b50506000910152565b60008151808452612454816020860160208601612418565b601f01601f19169290920160200192915050565b634e487b7160e01b600052602160045260246000fd5b6003811061249c57634e487b7160e01b600052602160045260246000fd5b9052565b60018060a01b038151168252602081015160208301526000604082015160a060408501526124d160a085018261243c565b905060608301518482036060860152818151808452602084019150602083019350600092505b808310156125225783516001600160a01b0316825260209384019360019390930192909101906124f7565b50608085015192506118f8608087018461247e565b6020808252825160ff168282015282810151606060408401528051608084018190526000929190910190829060a08501905b808310156125af5761259882855180516001600160a01b031682526020908101516001600160401b0316910152565b604082019150602084019350600183019250612569565b506040860151858203601f19016060870152805180835260209182019450818301935090600582901b83010160005b8281101561260f57601f198483030185526125fa8287516124a0565b602096870196959095019491506001016125de565b50979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156126595761265961261b565b604052919050565b600082601f83011261267257600080fd5b81356001600160401b0381111561268b5761268b61261b565b61269e601f8201601f1916602001612631565b8181528460208386010111156126b357600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156126e557600080fd5b6126ee846122f7565b92506020840135915060408401356001600160401b0381111561271057600080fd5b61271c86828701612661565b9150509250925092565b60006020828403121561273857600080fd5b5035919050565b6000806040838503121561275257600080fd5b61275b836122f7565b91506127696020840161230e565b90509250929050565b60006040820160ff851683526040602084015280845180835260608501915060208601925060005b818110156127df576127c983855180516001600160a01b031682526020908101516001600160401b0316910152565b602093909301926040929092019160010161279a565b50909695505050505050565b60208152600061083c602083018461243c565b60006020828403121561281057600080fd5b81356001600160401b0381111561282657600080fd5b8201601f8101841361283757600080fd5b80356001600160401b038111156128505761285061261b565b8060051b61286060208201612631565b9182526020818401810192908101908784111561287c57600080fd5b6020850194505b838510156128a257843580835260209586019590935090910190612883565b979650505050505050565b60208152600061083c60208301846124a0565b6000602082840312156128d257600080fd5b61083c8261229b565b600080604083850312156128ee57600080fd5b6128f7836122f7565b915060208301356001600160401b0381111561291257600080fd5b61291e85828601612661565b9150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105b6576105b6612928565b600181811c9082168061296557607f821691505b602082108103610bf857634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e4814d95b198814da59db995960821b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60ff81811683821601908111156105b6576105b6612928565b634e487b7160e01b600052603160045260246000fd5b602081016105b6828461247e565b601f821115610f2357806000526020600020601f840160051c81016020851015612a295750805b601f840160051c820191505b81811015611cdf5760008155600101612a35565b81516001600160401b03811115612a6257612a6261261b565b612a7681612a708454612951565b84612a02565b6020601f821160018114612aaa5760008315612a925750848201515b600019600385901b1c1916600184901b178455611cdf565b600084815260208120601f198516915b82811015612ada5787850151825560209485019460019092019101612aba565b5084821015612af85786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b808201808211156105b6576105b6612928565b60ff82811682821603908111156105b6576105b6612928565b60008251612b45818460208701612418565b9190910192915050565b600060ff821660ff8103612b6557612b65612928565b60010192915050565b6000808354612b7c81612951565b600182168015612b935760018114612ba857612bd8565b60ff1983168652811515820286019350612bd8565b86600052602060002060005b83811015612bd057815488820152600190910190602001612bb4565b505081860193505b509195945050505050565b60408101612bf1828561247e565b60ff83166020830152939250505056fef486b49c0fd95e99c95d211c0814e0c85bb59e07a1a40077b7a34b255b307200f486b49c0fd95e99c95d211c0814e0c85bb59e07a1a40077b7a34b255b307202f486b49c0fd95e99c95d211c0814e0c85bb59e07a1a40077b7a34b255b307201a2646970667358221220a1769fe61775373d7532f93743db3039776f6f2727c9e9afed458475e5a6b42564736f6c634300081a0033

Deployed Bytecode

0x6080604052600436106101025760003560e01c80636fad7c1811610095578063a286433511610064578063a2864335146102e9578063a7d4e01e14610309578063b7f3358d14610336578063ddf6874e14610356578063f52f56cf1461037657600080fd5b80636fad7c18146102675780637fb5e3221461028757806385c1ebff1461029c5780639bab5779146102bc57600080fd5b8063391d678b116100d1578063391d678b146101d25780633d1025b8146101f25780634ffef69c1461022457806369f4a16b1461024457600080fd5b8063012b4043146101465780631962eb5e1461016e5780631c9825fa146101905780632ab8ad9a146101b057600080fd5b3661014157604080513381523460208201527f1853ca9dc0208799379313b2b43364e45db022f073c72648fbc206dc0bacbcdc910160405180910390a1005b600080fd5b34801561015257600080fd5b5061015b610396565b6040519081526020015b60405180910390f35b34801561017a57600080fd5b5061018e610189366004612325565b61040c565b005b34801561019c57600080fd5b5061015b6101ab3660046123e3565b61059f565b3480156101bc57600080fd5b506101c56105bc565b6040516101659190612537565b3480156101de57600080fd5b5061015b6101ed3660046126d0565b61082c565b3480156101fe57600080fd5b5061021261020d366004612726565b610843565b60405160ff9091168152602001610165565b34801561023057600080fd5b5061018e61023f36600461273f565b610aae565b34801561025057600080fd5b50610259610aee565b604051610165929190612772565b34801561027357600080fd5b5061021261028236600461273f565b610b92565b34801561029357600080fd5b50610212606481565b3480156102a857600080fd5b5061015b6102b73660046123e3565b610b9f565b3480156102c857600080fd5b506102dc6102d7366004612726565b610bab565b60405161016591906127eb565b3480156102f557600080fd5b506102dc6103043660046127fe565b610bbe565b34801561031557600080fd5b50610329610324366004612726565b610bfe565b60405161016591906128ad565b34801561034257600080fd5b5061018e6103513660046128c0565b610db7565b34801561036257600080fd5b5061018e610371366004612726565b610ef4565b34801561038257600080fd5b506102dc6103913660046128db565b610f04565b600080516020612c2283398151915254600080516020612c02833981519152816103fb5760405162461bcd60e51b8152602060048201526011602482015270139bc813dc195c985d1a5bdb9cc81e595d607a1b60448201526064015b60405180910390fd5b61040660018361293e565b91505090565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff1615906001600160401b03166000811580156104515750825b90506000826001600160401b0316600114801561046d5750303b155b90508115801561047b575080155b156104995760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156104c357845460ff60401b1916600160401b1785555b60008c6001600160401b038111156104dd576104dd61261b565b604051908082528060200260200182016040528015610506578160200160208202803683370190505b5090506105488f8f8f80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250869250610f10915050565b50831561058f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b5050505050505050505050505050565b60006105ac833384610f28565b90506105b6565b50565b92915050565b6105e36040518060600160405280600060ff16815260200160608152602001606081525090565b600080516020612c0283398151915260408051606081018252825460ff16815260018301805483516020828102820181019095528181529294938086019392919060009084015b8282101561067957600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160401b03168183015282526001909201910161062a565b50505050815260200160028201805480602002602001604051908101604052809291908181526020016000905b8282101561081f5760008481526020908190206040805160a0810182526005860290920180546001600160a01b03168352600181015493830193909352600283018054929392918401916106f990612951565b80601f016020809104026020016040519081016040528092919081815260200182805461072590612951565b80156107725780601f1061074757610100808354040283529160200191610772565b820191906000526020600020905b81548152906001019060200180831161075557829003601f168201915b50505050508152602001600382018054806020026020016040519081016040528092919081815260200182805480156107d457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107b6575b5050509183525050600482015460209091019060ff1660028111156107fb576107fb612468565b600281111561080c5761080c612468565b81525050815260200190600101906106a6565b5050505081525050905090565b60006108398484846112d5565b90505b9392505050565b60003330146108645760405162461bcd60e51b81526004016103f290612985565b600080516020612c4283398151915254600080516020612c02833981519152906108909060019061293e565b815490925060ff90811690831610156108f95760405162461bcd60e51b815260206004820152602560248201527f4e6577205369676e65727320636f756e74206c657373207468656e20746872656044820152641cda1bdb1960da1b60648201526084016103f2565b826000036109555760405162461bcd60e51b815260206004820152602360248201527f43616e742072656d6f7665206d756c7469736967206f776e65722863726561746044820152626f722960e81b60648201526084016103f2565b7fab11f4642b6b70189f9b81e9063aab5060c9ecac7e6672eb042e5a1816e1765181600101848154811061098b5761098b6129af565b90600052602060002001836040516109cc92919091546001600160a01b038116835260a01c6001600160401b0316602083015260ff16604082015260600190565b60405180910390a16109df8260016129c5565b60ff168314610a7357806001018260ff1681548110610a0057610a006129af565b90600052602060002001816001018481548110610a1f57610a1f6129af565b600091825260209091208254910180546001600160a01b039092166001600160a01b031983168117825592546001600160e01b0319909216909217600160a01b918290046001600160401b03169091021790555b80600101805480610a8657610a866129de565b600082815260209020810160001990810180546001600160e01b031916905501905550919050565b60405162461bcd60e51b8152602060048201526015602482015274111a5cd8589b19481a5b881d1a1a5cc81b5bd9195b605a1b60448201526064016103f2565b600080516020612c028339815191528054600080516020612c4283398151915280546040805160208084028201810190925282815260ff9094169460609490939092909160009084015b82821015610b8757600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160401b031681830152825260019092019101610b38565b505050509150509091565b600061083c836000611453565b60006105ac8383611676565b6060610bb6826117a1565b90505b919050565b606060005b8251811015610bf857610bee838281518110610be157610be16129af565b60200260200101516117a1565b9150600101610bc3565b50919050565b610c06612253565b600080516020612c228339815191528054600080516020612c02833981519152919084908110610c3857610c386129af565b90600052602060002090600502016040518060a00160405290816000820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200160018201548152602001600282018054610c9a90612951565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc690612951565b8015610d135780601f10610ce857610100808354040283529160200191610d13565b820191906000526020600020905b815481529060010190602001808311610cf657829003601f168201915b5050505050815260200160038201805480602002602001604051908101604052809291908181526020018280548015610d7557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610d57575b5050509183525050600482015460209091019060ff166002811115610d9c57610d9c612468565b6002811115610dad57610dad612468565b9052509392505050565b333014610dd65760405162461bcd60e51b81526004016103f290612985565b600080516020612c4283398151915254600080516020612c028339815191529060ff83161115610e595760405162461bcd60e51b815260206004820152602860248201527f4e6577205468726573686f6c64206d6f7265207468616e20636f2d7369676e656044820152671c9cc818dbdd5b9d60c21b60648201526084016103f2565b60008260ff1611610ea05760405162461bcd60e51b8152602060048201526011602482015270139bc81e995c9bc81d1a1c995cda1bdb19607a1b60448201526064016103f2565b80546040805160ff928316815291841660208301527f2a855b929b9a53c6fb5b5ed248b27e502b709c088e036a5aa17620c8fc5085a9910160405180910390a1805460ff191660ff92909216919091179055565b610efd81611814565b6105b33381565b606061083c838361188b565b610f18611901565b610f2383838361194c565b505050565b600080600080516020612c0283398151915290506000816002018681548110610f5357610f536129af565b600091825260209091206004600590920201015460ff166002811115610f7b57610f7b612468565b0361119c5760005b816002018681548110610f9857610f986129af565b90600052602060002090600502016003018054905081101561119657846001600160a01b0316826002018781548110610fd357610fd36129af565b90600052602060002090600502016003018281548110610ff557610ff56129af565b6000918252602090912001546001600160a01b03160361118e576001826002018781548110611026576110266129af565b906000526020600020906005020160030180549050611045919061293e565b811461113657816002018681548110611060576110606129af565b90600052602060002090600502016003016001836002018881548110611088576110886129af565b9060005260206000209060050201600301805490506110a7919061293e565b815481106110b7576110b76129af565b6000918252602090912001546002830180546001600160a01b0390921691889081106110e5576110e56129af565b90600052602060002090600502016003018281548110611107576111076129af565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b81600201868154811061114b5761114b6129af565b906000526020600020906005020160030180548061116b5761116b6129de565b600082815260209020810160001990810180546001600160a01b03191690550190555b600101610f83565b506111e3565b8060020185815481106111b1576111b16129af565b6000918252602090912060046005909202018101546040516306de30ed60e51b81526103f29260ff90921691016129f4565b8060020185815481106111f8576111f86129af565b600091825260209182902060036005909202010154604080516001600160a01b038816815292830182905290935086917ffbbda019ddace25510873f2cf5073cc1895af4dace5fa94e134007a4a329c520910160405180910390a282801561125e575081155b156112cd5761128e81600201868154811061127b5761127b6129af565b9060005260206000209060050201611ce6565b847f9488ff0a5bab982a7a635f0b781e4ade33c40fa4ec417f0d8e34eb9a680059d0336040516001600160a01b03909116815260200160405180910390a25b509392505050565b60006001600160a01b03841661131f5760405162461bcd60e51b815260206004820152600f60248201526e4e6f205a65726f204164647265737360881b60448201526064016103f2565b600080516020612c2283398151915280546001810182556000919091526005027f59e3d282e52f36c146d456fa6c25cff65203c8bd9380de512b3322eec421510f810180546001600160a01b0387166001600160a01b03199091161781557f59e3d282e52f36c146d456fa6c25cff65203c8bd9380de512b3322eec42151108201859055600080516020612c02833981519152917f59e3d282e52f36c146d456fa6c25cff65203c8bd9380de512b3322eec4215111016113df8582612a49565b5060028201546113f19060019061293e565b92506114003383600101611d48565b61140f8133611e1d565b611e1d565b506040805133815260016020820152815185927f1705482c697891f95d7007f132e7f3365b88454c115ab0338e69c58d00b387e1928290030190a250509392505050565b60003330146114745760405162461bcd60e51b81526004016103f290612985565b6001600160a01b0383166114bc5760405162461bcd60e51b815260206004820152600f60248201526e4e6f205a65726f206164647265737360881b60448201526064016103f2565b600080516020612c4283398151915254600080516020612c02833981519152906114e7906001612b07565b9150606460ff831611156115335760405162461bcd60e51b8152602060048201526013602482015272546f6f206d75636820696e68657269746f727360681b60448201526064016103f2565b60005b611541600184612b1a565b60ff168110156115b057846001600160a01b031682600101828154811061156a5761156a6129af565b6000918252602090912001546001600160a01b0316036115a8576040516339754ae560e01b81526001600160a01b03861660048201526024016103f2565b600101611536565b506040805180820182526001600160a01b038681168083526001600160401b03878116602080860182815260018981018054918201815560009081528390209751970180549151979096166001600160e01b031990911617600160a01b9684169690960295909517909355845180860186528281528401928352845191825291519091169181019190915260ff84168183015290517f173fc22310418a30fc7c70268687e66ec12f54915a85a3e5965e65e31215e0429181900360600190a15092915050565b6000600080516020612c0283398151915261169f33600080516020612c42833981519152611d48565b6116cc8160020185815481106116b7576116b76129af565b906000526020600020906005020161140a3390565b9150837f1705482c697891f95d7007f132e7f3365b88454c115ab0338e69c58d00b387e133604080516001600160a01b039092168252602082018690520160405180910390a28280156117225750805460ff1682145b1561179a5761175a81600201858154811061173f5761173f6129af565b6000918252602090912083546005909202019060ff16611f11565b50837f5ee51e76cad23bc6a0e665e0ed4388cf033d3bc1bba5c050849550c13001598d336040516001600160a01b03909116815260200160405180910390a25b5092915050565b60606000600080516020612c0283398151915290506117ce81600201848154811061173f5761173f6129af565b9150827f5ee51e76cad23bc6a0e665e0ed4388cf033d3bc1bba5c050849550c13001598d336040516001600160a01b03909116815260200160405180910390a250919050565b600080516020612c228339815191528054600080516020612c0283398151915291611849918490811061127b5761127b6129af565b817f9488ff0a5bab982a7a635f0b781e4ade33c40fa4ec417f0d8e34eb9a680059d0336040516001600160a01b03909116815260200160405180910390a25050565b6060600080846001600160a01b0316846040516118a89190612b33565b600060405180830381855afa9150503d80600081146118e3576040519150601f19603f3d011682016040523d82523d6000602084013e6118e8565b606091505b50915091506118f885838361209a565b95945050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661194a57604051631afcd79f60e31b815260040160405180910390fd5b565b611954611901565b81516064101561199c5760405162461bcd60e51b8152602060048201526013602482015272546f6f206d75636820696e68657269746f727360681b60448201526064016103f2565b80518251146119e45760405162461bcd60e51b8152602060048201526014602482015273105c9c985e5cc81b5d5cdd08189948195c5d585b60621b60448201526064016103f2565b81518360ff161115611a385760405162461bcd60e51b815260206004820152601e60248201527f4e6f742067726561746572207468656e207369676e65727320636f756e74000060448201526064016103f2565b600282511015611a815760405162461bcd60e51b81526020600482015260146024820152734174206c656173742074776f207369676e65727360601b60448201526064016103f2565b60008360ff1611611ac85760405162461bcd60e51b8152602060048201526011602482015270139bc81e995c9bc81d1a1c995cda1bdb19607a1b60448201526064016103f2565b60005b8251811015611b87576000611ae1826001612b07565b90505b8351811015611b7e57838181518110611aff57611aff6129af565b60200260200101516001600160a01b0316848381518110611b2257611b226129af565b60200260200101516001600160a01b031603611b765760405162461bcd60e51b81526020600482015260136024820152724e6f20646f75626c6520636f7369676e65727360681b60448201526064016103f2565b600101611ae4565b50600101611acb565b50600080516020612c02833981519152805460ff191660ff851617815560005b83518160ff161015611cdf5760006001600160a01b0316848260ff1681518110611bd357611bd36129af565b60200260200101516001600160a01b031603611c235760405162461bcd60e51b815260206004820152600f60248201526e4e6f205a65726f206164647265737360881b60448201526064016103f2565b816001016040518060400160405280868460ff1681518110611c4757611c476129af565b60200260200101516001600160a01b03168152602001858460ff1681518110611c7257611c726129af565b6020908102919091018101516001600160401b0390811690925283546001810185556000948552938190208351940180549390910151909116600160a01b026001600160e01b03199092166001600160a01b0390931692909217179055611cd881612b4f565b9050611ba7565b5050505050565b6000600482015460ff166002811115611d0157611d01612468565b148015611d1057506003810154155b15611d2557600401805460ff19166002179055565b6004808201546040516306de30ed60e51b81526103f29260ff90921691016129f4565b60005b8154811015611df857826001600160a01b0316828281548110611d7057611d706129af565b6000918252602090912001546001600160a01b031603611df057611dc2828281548110611d9f57611d9f6129af565b60009182526020909120015442600160a01b9091046001600160401b0316111590565b15611dcc57505050565b60405163a9bb21d760e01b81526001600160a01b03841660048201526024016103f2565b600101611d4b565b50604051632098c49d60e01b81526001600160a01b03831660048201526024016103f2565b600080600484015460ff166002811115611e3957611e39612468565b14611e61576004808401546040516306de30ed60e51b81526103f29260ff90921691016129f4565b60005b6003840154811015611ed557826001600160a01b0316846003018281548110611e8f57611e8f6129af565b6000918252602090912001546001600160a01b031603611ecd576040516339754ae560e01b81526001600160a01b03841660048201526024016103f2565b600101611e64565b505060039190910180546001810182556000828152602090200180546001600160a01b0319166001600160a01b03909316929092179091555490565b60606000600484015460ff166002811115611f2e57611f2e612468565b148015611f425750600383015460ff831611155b156120725782600201604051611f589190612b6e565b604080519182900382206020830190915260009091527fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47003611fb35782546001840154611fae916001600160a01b0316906120f6565b61205e565b825460028401805461205b926001600160a01b03169190611fd390612951565b80601f0160208091040260200160405190810160405280929190818152602001828054611fff90612951565b801561204c5780601f106120215761010080835404028352916020019161204c565b820191906000526020600020905b81548152906001019060200180831161202f57829003601f168201915b5050505050856001015461218d565b90505b60048301805460ff191660011790556105b6565b600480840154600385015460405163198a7b8160e21b81526103f29360ff9093169201612be3565b6060826120af576120aa8261222a565b61083c565b81511580156120c657506001600160a01b0384163b155b156120ef57604051639996b31560e01b81526001600160a01b03851660048201526024016103f2565b508061083c565b804710156121195760405163cd78605960e01b81523060048201526024016103f2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612166576040519150601f19603f3d011682016040523d82523d6000602084013e61216b565b606091505b5050905080610f2357604051630a12f52160e11b815260040160405180910390fd5b6060814710156121b25760405163cd78605960e01b81523060048201526024016103f2565b600080856001600160a01b031684866040516121ce9190612b33565b60006040518083038185875af1925050503d806000811461220b576040519150601f19603f3d011682016040523d82523d6000602084013e612210565b606091505b509150915061222086838361209a565b9695505050505050565b80511561223a5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6040518060a0016040528060006001600160a01b031681526020016000815260200160608152602001606081526020016000600281111561229657612296612468565b905290565b803560ff81168114610bb957600080fd5b60008083601f8401126122be57600080fd5b5081356001600160401b038111156122d557600080fd5b6020830191508360208260051b85010111156122f057600080fd5b9250929050565b80356001600160a01b0381168114610bb957600080fd5b80356001600160401b0381168114610bb957600080fd5b600080600080600080600080600060e08a8c03121561234357600080fd5b61234c8a61229b565b985060208a01356001600160401b0381111561236757600080fd5b6123738c828d016122ac565b90995097505060408a01356001600160401b0381111561239257600080fd5b61239e8c828d016122ac565b90975095506123b1905060608b016122f7565b935060808a013592506123c660a08b016122f7565b91506123d460c08b0161230e565b90509295985092959850929598565b600080604083850312156123f657600080fd5b823591506020830135801515811461240d57600080fd5b809150509250929050565b60005b8381101561243357818101518382015260200161241b565b50506000910152565b60008151808452612454816020860160208601612418565b601f01601f19169290920160200192915050565b634e487b7160e01b600052602160045260246000fd5b6003811061249c57634e487b7160e01b600052602160045260246000fd5b9052565b60018060a01b038151168252602081015160208301526000604082015160a060408501526124d160a085018261243c565b905060608301518482036060860152818151808452602084019150602083019350600092505b808310156125225783516001600160a01b0316825260209384019360019390930192909101906124f7565b50608085015192506118f8608087018461247e565b6020808252825160ff168282015282810151606060408401528051608084018190526000929190910190829060a08501905b808310156125af5761259882855180516001600160a01b031682526020908101516001600160401b0316910152565b604082019150602084019350600183019250612569565b506040860151858203601f19016060870152805180835260209182019450818301935090600582901b83010160005b8281101561260f57601f198483030185526125fa8287516124a0565b602096870196959095019491506001016125de565b50979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156126595761265961261b565b604052919050565b600082601f83011261267257600080fd5b81356001600160401b0381111561268b5761268b61261b565b61269e601f8201601f1916602001612631565b8181528460208386010111156126b357600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156126e557600080fd5b6126ee846122f7565b92506020840135915060408401356001600160401b0381111561271057600080fd5b61271c86828701612661565b9150509250925092565b60006020828403121561273857600080fd5b5035919050565b6000806040838503121561275257600080fd5b61275b836122f7565b91506127696020840161230e565b90509250929050565b60006040820160ff851683526040602084015280845180835260608501915060208601925060005b818110156127df576127c983855180516001600160a01b031682526020908101516001600160401b0316910152565b602093909301926040929092019160010161279a565b50909695505050505050565b60208152600061083c602083018461243c565b60006020828403121561281057600080fd5b81356001600160401b0381111561282657600080fd5b8201601f8101841361283757600080fd5b80356001600160401b038111156128505761285061261b565b8060051b61286060208201612631565b9182526020818401810192908101908784111561287c57600080fd5b6020850194505b838510156128a257843580835260209586019590935090910190612883565b979650505050505050565b60208152600061083c60208301846124a0565b6000602082840312156128d257600080fd5b61083c8261229b565b600080604083850312156128ee57600080fd5b6128f7836122f7565b915060208301356001600160401b0381111561291257600080fd5b61291e85828601612661565b9150509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105b6576105b6612928565b600181811c9082168061296557607f821691505b602082108103610bf857634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f13db9b1e4814d95b198814da59db995960821b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60ff81811683821601908111156105b6576105b6612928565b634e487b7160e01b600052603160045260246000fd5b602081016105b6828461247e565b601f821115610f2357806000526020600020601f840160051c81016020851015612a295750805b601f840160051c820191505b81811015611cdf5760008155600101612a35565b81516001600160401b03811115612a6257612a6261261b565b612a7681612a708454612951565b84612a02565b6020601f821160018114612aaa5760008315612a925750848201515b600019600385901b1c1916600184901b178455611cdf565b600084815260208120601f198516915b82811015612ada5787850151825560209485019460019092019101612aba565b5084821015612af85786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b808201808211156105b6576105b6612928565b60ff82811682821603908111156105b6576105b6612928565b60008251612b45818460208701612418565b9190910192915050565b600060ff821660ff8103612b6557612b65612928565b60010192915050565b6000808354612b7c81612951565b600182168015612b935760018114612ba857612bd8565b60ff1983168652811515820286019350612bd8565b86600052602060002060005b83811015612bd057815488820152600190910190602001612bb4565b505081860193505b509195945050505050565b60408101612bf1828561247e565b60ff83166020830152939250505056fef486b49c0fd95e99c95d211c0814e0c85bb59e07a1a40077b7a34b255b307200f486b49c0fd95e99c95d211c0814e0c85bb59e07a1a40077b7a34b255b307202f486b49c0fd95e99c95d211c0814e0c85bb59e07a1a40077b7a34b255b307201a2646970667358221220a1769fe61775373d7532f93743db3039776f6f2727c9e9afed458475e5a6b42564736f6c634300081a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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.