{
  "address": "0xFfc0438D9E9FFf9b59f8EF9718d7C8e508D0b0CA",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "riskOracle_",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "endpoint_",
          "type": "address"
        },
        {
          "internalType": "uint32",
          "name": "layerZeroLzEid_",
          "type": "uint32"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "inputs": [],
      "name": "ConfigNotActive",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ConfigStatusUnchanged",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ExecutorStatusUnchanged",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidDebounce",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidDelegate",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidEndpointCall",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidLayerZeroEid",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidLzSendCaller",
      "type": "error"
    },
    {
      "inputs": [
        {
          "internalType": "uint16",
          "name": "optionType",
          "type": "uint16"
        }
      ],
      "name": "InvalidOptionType",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidRegisteredUpdate",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidTimelock",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidUpdateToResend",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "InvalidUpdateType",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "LzTokenUnavailable",
      "type": "error"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "eid",
          "type": "uint32"
        }
      ],
      "name": "NoPeer",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "NotAnExecutor",
      "type": "error"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "msgValue",
          "type": "uint256"
        }
      ],
      "name": "NotEnoughNative",
      "type": "error"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "eid",
          "type": "uint32"
        },
        {
          "internalType": "bytes32",
          "name": "sender",
          "type": "bytes32"
        }
      ],
      "name": "OnlyPeer",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "PauseStatusUnchanged",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "PausedError",
      "type": "error"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "RegisteredUpdateTypeExist",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "RenounceOwnershipNotAllowed",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "TransferFailed",
      "type": "error"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "sender",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "calledContract",
          "type": "address"
        },
        {
          "internalType": "string",
          "name": "methodSignature",
          "type": "string"
        }
      ],
      "name": "Unauthorized",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UnsupportedUpdateType",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UpdateAlreadyResolved",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UpdateIsExpired",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UpdateNotFound",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UpdateNotUnlocked",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UpdateTooFrequent",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "UpdateWillExpireBeforeUnlock",
      "type": "error"
    },
    {
      "inputs": [],
      "name": "ZeroAddressNotAllowed",
      "type": "error"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "updateTypeHash",
          "type": "bytes32"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "previousActive",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "active",
          "type": "bool"
        }
      ],
      "name": "ConfigActiveUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "executor",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "previousApproved",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "approved",
          "type": "bool"
        }
      ],
      "name": "ExecutorStatusUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint8",
          "name": "version",
          "type": "uint8"
        }
      ],
      "name": "Initialized",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "address",
          "name": "oldAccessControlManager",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "newAccessControlManager",
          "type": "address"
        }
      ],
      "name": "NewAccessControlManager",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferStarted",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousOwner",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "OwnershipTransferred",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "bool",
          "name": "previousPaused",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "paused",
          "type": "bool"
        }
      ],
      "name": "PauseStatusUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint32",
          "name": "eid",
          "type": "uint32"
        },
        {
          "indexed": false,
          "internalType": "bytes32",
          "name": "peer",
          "type": "bytes32"
        }
      ],
      "name": "PeerSet",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "bytes32",
          "name": "updateTypeHash",
          "type": "bytes32"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "previousRiskSteward",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "riskSteward",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "previousDebounce",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "debounce",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "previousTimelock",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "timelock",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "previousActive",
          "type": "bool"
        },
        {
          "indexed": false,
          "internalType": "bool",
          "name": "active",
          "type": "bool"
        }
      ],
      "name": "RiskParameterConfigUpdated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "receiver",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        }
      ],
      "name": "SweepNative",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "UpdateExecuted",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "UpdateExpired",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "unlockTime",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "market",
          "type": "address"
        }
      ],
      "name": "UpdateRegistered",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "UpdateRejected",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "uint32",
          "name": "destLzEid",
          "type": "uint32"
        },
        {
          "indexed": true,
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "market",
          "type": "address"
        }
      ],
      "name": "UpdateResentToDestination",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        },
        {
          "indexed": true,
          "internalType": "uint32",
          "name": "destLzEid",
          "type": "uint32"
        },
        {
          "indexed": true,
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "market",
          "type": "address"
        }
      ],
      "name": "UpdateSentToDestination",
      "type": "event"
    },
    {
      "inputs": [],
      "name": "LAYER_ZERO_EID",
      "outputs": [
        {
          "internalType": "uint32",
          "name": "",
          "type": "uint32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "RISK_ORACLE",
      "outputs": [
        {
          "internalType": "contract IRiskOracle",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "UPDATE_EXPIRATION_TIME",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "acceptOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "accessControlManager",
      "outputs": [
        {
          "internalType": "contract IAccessControlManagerV8",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "endpoint",
      "outputs": [
        {
          "internalType": "contract ILayerZeroEndpointV2",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "executeRegisteredUpdate",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "internalType": "address",
          "name": "comptroller",
          "type": "address"
        }
      ],
      "name": "getExecutableUpdates",
      "outputs": [
        {
          "internalType": "uint256[]",
          "name": "executableUpdates",
          "type": "uint256[]"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "internalType": "address",
          "name": "market",
          "type": "address"
        }
      ],
      "name": "getLastProcessedUpdate",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "internalType": "address",
          "name": "market",
          "type": "address"
        }
      ],
      "name": "getLastRegisteredUpdate",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        }
      ],
      "name": "getRiskParameterConfig",
      "outputs": [
        {
          "components": [
            {
              "internalType": "bool",
              "name": "active",
              "type": "bool"
            },
            {
              "internalType": "uint256",
              "name": "debounce",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "timelock",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "riskSteward",
              "type": "address"
            }
          ],
          "internalType": "struct IRiskStewardReceiver.RiskParamConfig",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "acm_",
          "type": "address"
        },
        {
          "internalType": "address",
          "name": "delegate_",
          "type": "address"
        }
      ],
      "name": "initialize",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "isUpdateExecutable",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "market",
          "type": "address"
        }
      ],
      "name": "lastProcessedUpdate",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "market",
          "type": "address"
        }
      ],
      "name": "lastRegisteredUpdate",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "dstEid",
          "type": "uint32"
        },
        {
          "components": [
            {
              "internalType": "string",
              "name": "referenceId",
              "type": "string"
            },
            {
              "internalType": "uint256",
              "name": "updateId",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "market",
              "type": "address"
            },
            {
              "internalType": "string",
              "name": "updateType",
              "type": "string"
            },
            {
              "internalType": "bytes32",
              "name": "updateTypeKey",
              "type": "bytes32"
            },
            {
              "internalType": "bytes",
              "name": "newValue",
              "type": "bytes"
            },
            {
              "internalType": "bytes",
              "name": "previousValue",
              "type": "bytes"
            },
            {
              "internalType": "uint256",
              "name": "timestamp",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "publisher",
              "type": "address"
            },
            {
              "internalType": "uint96",
              "name": "poolId",
              "type": "uint96"
            },
            {
              "internalType": "uint32",
              "name": "destLzEid",
              "type": "uint32"
            },
            {
              "internalType": "bytes",
              "name": "additionalData",
              "type": "bytes"
            }
          ],
          "internalType": "struct RiskParameterUpdate",
          "name": "update",
          "type": "tuple"
        },
        {
          "internalType": "bytes",
          "name": "options",
          "type": "bytes"
        },
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "nativeFee",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "lzTokenFee",
              "type": "uint256"
            }
          ],
          "internalType": "struct MessagingFee",
          "name": "fee",
          "type": "tuple"
        },
        {
          "internalType": "address",
          "name": "refundAddress",
          "type": "address"
        }
      ],
      "name": "lzSend",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "oAppVersion",
      "outputs": [
        {
          "internalType": "uint64",
          "name": "senderVersion",
          "type": "uint64"
        },
        {
          "internalType": "uint64",
          "name": "receiverVersion",
          "type": "uint64"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "owner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "paused",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "_eid",
          "type": "uint32"
        }
      ],
      "name": "peers",
      "outputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "pendingOwner",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "processUpdate",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "string",
              "name": "referenceId",
              "type": "string"
            },
            {
              "internalType": "uint256",
              "name": "updateId",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "market",
              "type": "address"
            },
            {
              "internalType": "string",
              "name": "updateType",
              "type": "string"
            },
            {
              "internalType": "bytes32",
              "name": "updateTypeKey",
              "type": "bytes32"
            },
            {
              "internalType": "bytes",
              "name": "newValue",
              "type": "bytes"
            },
            {
              "internalType": "bytes",
              "name": "previousValue",
              "type": "bytes"
            },
            {
              "internalType": "uint256",
              "name": "timestamp",
              "type": "uint256"
            },
            {
              "internalType": "address",
              "name": "publisher",
              "type": "address"
            },
            {
              "internalType": "uint96",
              "name": "poolId",
              "type": "uint96"
            },
            {
              "internalType": "uint32",
              "name": "destLzEid",
              "type": "uint32"
            },
            {
              "internalType": "bytes",
              "name": "additionalData",
              "type": "bytes"
            }
          ],
          "internalType": "struct RiskParameterUpdate",
          "name": "update",
          "type": "tuple"
        },
        {
          "internalType": "bytes",
          "name": "options",
          "type": "bytes"
        },
        {
          "internalType": "bool",
          "name": "payInLzToken",
          "type": "bool"
        }
      ],
      "name": "quote",
      "outputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "nativeFee",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "lzTokenFee",
              "type": "uint256"
            }
          ],
          "internalType": "struct MessagingFee",
          "name": "fee",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "rejectUpdate",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "renounceOwnership",
      "outputs": [],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        },
        {
          "internalType": "bytes",
          "name": "options",
          "type": "bytes"
        }
      ],
      "name": "resendRemoteUpdate",
      "outputs": [],
      "stateMutability": "payable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "riskParameterConfigs",
      "outputs": [
        {
          "internalType": "bool",
          "name": "active",
          "type": "bool"
        },
        {
          "internalType": "uint256",
          "name": "debounce",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "timelock",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "riskSteward",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "accessControlManager_",
          "type": "address"
        }
      ],
      "name": "setAccessControlManager",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "internalType": "bool",
          "name": "active",
          "type": "bool"
        }
      ],
      "name": "setConfigActive",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_delegate",
          "type": "address"
        }
      ],
      "name": "setDelegate",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bool",
          "name": "paused_",
          "type": "bool"
        }
      ],
      "name": "setPaused",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "_eid",
          "type": "uint32"
        },
        {
          "internalType": "bytes32",
          "name": "_peer",
          "type": "bytes32"
        }
      ],
      "name": "setPeer",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "string",
          "name": "updateType",
          "type": "string"
        },
        {
          "internalType": "address",
          "name": "riskSteward",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "debounce",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "timelock",
          "type": "uint256"
        }
      ],
      "name": "setRiskParameterConfig",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "executor",
          "type": "address"
        },
        {
          "internalType": "bool",
          "name": "approved",
          "type": "bool"
        }
      ],
      "name": "setWhitelistedExecutor",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "sweepNative",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "newOwner",
          "type": "address"
        }
      ],
      "name": "transferOwnership",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        }
      ],
      "name": "updates",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "updateId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "unlockTime",
          "type": "uint256"
        },
        {
          "internalType": "enum IRiskStewardReceiver.UpdateStatus",
          "name": "status",
          "type": "uint8"
        },
        {
          "internalType": "address",
          "name": "executor",
          "type": "address"
        },
        {
          "internalType": "uint256",
          "name": "executedAt",
          "type": "uint256"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "name": "whitelistedExecutors",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "stateMutability": "payable",
      "type": "receive"
    }
  ],
  "transactionHash": "0xb358ff54ea547c3c18cfde857d22d94e4c6021ff8bc493b6e476d3c94a482d54",
  "receipt": {
    "to": null,
    "from": "0xe2a089cA69a90f1E27E723EFD339Cff4c4701AcC",
    "contractAddress": "0xFfc0438D9E9FFf9b59f8EF9718d7C8e508D0b0CA",
    "transactionIndex": 0,
    "gasUsed": "4238594",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "blockHash": "0xf099b9c3060b970b76ce81cee57769a6d10cf02d72013429e540935a52408416",
    "transactionHash": "0xb358ff54ea547c3c18cfde857d22d94e4c6021ff8bc493b6e476d3c94a482d54",
    "logs": [
      {
        "transactionIndex": 0,
        "blockNumber": 82070415,
        "transactionHash": "0xb358ff54ea547c3c18cfde857d22d94e4c6021ff8bc493b6e476d3c94a482d54",
        "address": "0xFfc0438D9E9FFf9b59f8EF9718d7C8e508D0b0CA",
        "topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
        "data": "0x00000000000000000000000000000000000000000000000000000000000000ff",
        "logIndex": 0,
        "blockHash": "0xf099b9c3060b970b76ce81cee57769a6d10cf02d72013429e540935a52408416"
      }
    ],
    "blockNumber": 82070415,
    "cumulativeGasUsed": "4238594",
    "status": 1,
    "byzantium": true
  },
  "args": ["0x4DEA4D1A9F6101D4adacE89f16064D780D2F241d", "0x6EDCE65403992e310A62460808c4b910D972f10f", 40102],
  "numDeployments": 1,
  "solcInputHash": "ef867994c77f736f1fd15a815fef639a",
  "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"riskOracle_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"endpoint_\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"layerZeroLzEid_\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ConfigNotActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ConfigStatusUnchanged\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExecutorStatusUnchanged\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidDebounce\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidDelegate\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidEndpointCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidLayerZeroEid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidLzSendCaller\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"optionType\",\"type\":\"uint16\"}],\"name\":\"InvalidOptionType\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidRegisteredUpdate\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTimelock\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidUpdateToResend\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidUpdateType\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LzTokenUnavailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"eid\",\"type\":\"uint32\"}],\"name\":\"NoPeer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotAnExecutor\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"msgValue\",\"type\":\"uint256\"}],\"name\":\"NotEnoughNative\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"eid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"sender\",\"type\":\"bytes32\"}],\"name\":\"OnlyPeer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PauseStatusUnchanged\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PausedError\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"RegisteredUpdateTypeExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"RenounceOwnershipNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"calledContract\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"methodSignature\",\"type\":\"string\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnsupportedUpdateType\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpdateAlreadyResolved\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpdateIsExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpdateNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpdateNotUnlocked\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpdateTooFrequent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UpdateWillExpireBeforeUnlock\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddressNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateTypeHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"previousActive\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"name\":\"ConfigActiveUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"previousApproved\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ExecutorStatusUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAccessControlManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAccessControlManager\",\"type\":\"address\"}],\"name\":\"NewAccessControlManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"previousPaused\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"name\":\"PauseStatusUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"eid\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"peer\",\"type\":\"bytes32\"}],\"name\":\"PeerSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateTypeHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousRiskSteward\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"riskSteward\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousDebounce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"debounce\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousTimelock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timelock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"previousActive\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"name\":\"RiskParameterConfigUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"SweepNative\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"UpdateExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"UpdateExpired\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unlockTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"UpdateRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"UpdateRejected\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"destLzEid\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"UpdateResentToDestination\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"destLzEid\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"UpdateSentToDestination\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"LAYER_ZERO_EID\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"RISK_ORACLE\",\"outputs\":[{\"internalType\":\"contract IRiskOracle\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UPDATE_EXPIRATION_TIME\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlManager\",\"outputs\":[{\"internalType\":\"contract IAccessControlManagerV8\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"endpoint\",\"outputs\":[{\"internalType\":\"contract ILayerZeroEndpointV2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"executeRegisteredUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"comptroller\",\"type\":\"address\"}],\"name\":\"getExecutableUpdates\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"executableUpdates\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"getLastProcessedUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"getLastRegisteredUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"}],\"name\":\"getRiskParameterConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"debounce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timelock\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"riskSteward\",\"type\":\"address\"}],\"internalType\":\"struct IRiskStewardReceiver.RiskParamConfig\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"acm_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"delegate_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"isUpdateExecutable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"lastProcessedUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"lastRegisteredUpdate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"referenceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"updateTypeKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"newValue\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"previousValue\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"publisher\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"poolId\",\"type\":\"uint96\"},{\"internalType\":\"uint32\",\"name\":\"destLzEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"additionalData\",\"type\":\"bytes\"}],\"internalType\":\"struct RiskParameterUpdate\",\"name\":\"update\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"options\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"fee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"refundAddress\",\"type\":\"address\"}],\"name\":\"lzSend\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oAppVersion\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"senderVersion\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"receiverVersion\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_eid\",\"type\":\"uint32\"}],\"name\":\"peers\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"processUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"referenceId\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"updateTypeKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"newValue\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"previousValue\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"publisher\",\"type\":\"address\"},{\"internalType\":\"uint96\",\"name\":\"poolId\",\"type\":\"uint96\"},{\"internalType\":\"uint32\",\"name\":\"destLzEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"additionalData\",\"type\":\"bytes\"}],\"internalType\":\"struct RiskParameterUpdate\",\"name\":\"update\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"options\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"payInLzToken\",\"type\":\"bool\"}],\"name\":\"quote\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"fee\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"rejectUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"options\",\"type\":\"bytes\"}],\"name\":\"resendRemoteUpdate\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"riskParameterConfigs\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"debounce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timelock\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"riskSteward\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlManager_\",\"type\":\"address\"}],\"name\":\"setAccessControlManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"}],\"name\":\"setConfigActive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_delegate\",\"type\":\"address\"}],\"name\":\"setDelegate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"paused_\",\"type\":\"bool\"}],\"name\":\"setPaused\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_eid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"_peer\",\"type\":\"bytes32\"}],\"name\":\"setPeer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"updateType\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"riskSteward\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"debounce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timelock\",\"type\":\"uint256\"}],\"name\":\"setRiskParameterConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setWhitelistedExecutor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sweepNative\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"}],\"name\":\"updates\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"updateId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockTime\",\"type\":\"uint256\"},{\"internalType\":\"enum IRiskStewardReceiver.UpdateStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"executedAt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"whitelistedExecutors\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"Venus\",\"custom:security-contact\":\"https://github.com/VenusProtocol/governance-contracts#discussion\",\"errors\":{\"TransferFailed()\":[{\"custom:error\":\"TransferFailed\"}]},\"events\":{\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"PauseStatusUpdated(bool,bool)\":{\"params\":{\"paused\":\"Current pause state\",\"previousPaused\":\"Previous pause state\"}}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\",\"params\":{\"endpoint_\":\"The LayerZero endpoint contract used by the underlying `OAppUpgradeable`.\",\"layerZeroLzEid_\":\"The LayerZero endpoint ID (EID) for this chain.\",\"riskOracle_\":\"The address of the Risk Oracle contract.\"}},\"executeRegisteredUpdate(uint256)\":{\"custom:access\":\"Only whitelisted executors can call this function\",\"custom:error\":\"Throws NotAnExecutor if the caller is not a whitelisted executorThrows InvalidRegisteredUpdate if the update was never registeredThrows UpdateAlreadyResolved if the update was already executed or rejectedThrows UpdateIsExpired if the update has expiredThrows ConfigNotActive if the config is not activeThrows UpdateNotUnlocked if the unlock time has not passed\",\"custom:event\":\"Emits UpdateExecuted with the oracle update ID\",\"params\":{\"updateId\":\"The oracle update ID of the update to execute\"}},\"getExecutableUpdates(string,address)\":{\"params\":{\"comptroller\":\"The address of the Comptroller (either Core Pool or Isolated Pools) that manages the markets\",\"updateType\":\"The human\\u2011readable identifier of the update type to filter by\"},\"returns\":{\"executableUpdates\":\"Array of update IDs that are ready to be executed\"}},\"getLastProcessedUpdate(string,address)\":{\"params\":{\"market\":\"The address of the market\",\"updateType\":\"The human-readable identifier of the update type\"},\"returns\":{\"_0\":\"The last processed update ID\"}},\"getLastRegisteredUpdate(string,address)\":{\"params\":{\"market\":\"The address of the market\",\"updateType\":\"The human-readable identifier of the update type\"},\"returns\":{\"_0\":\"The last registered update ID\"}},\"getRiskParameterConfig(string)\":{\"params\":{\"updateType\":\"The human-readable identifier of the update type\"},\"returns\":{\"_0\":\"The risk parameter configuration\"}},\"initialize(address,address)\":{\"params\":{\"acm_\":\"The address of the Access Control Manager\",\"delegate_\":\"The address of the OApp owner passed to `__OApp_init`.\"}},\"isUpdateExecutable(uint256)\":{\"params\":{\"updateId\":\"The oracle update ID to query\"},\"returns\":{\"_0\":\"True if the update is pending, not expired, active, and past its timelock\"}},\"lzSend(uint32,(string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,(uint256,uint256),address)\":{\"custom:error\":\"InvalidLzSendCaller if called by any address other than this contract\",\"params\":{\"dstEid\":\"Destination chain endpoint ID\",\"fee\":\"Messaging fee structure returned by `quote`\",\"options\":\"LayerZero message options; if empty, a default executor option is used\",\"refundAddress\":\"Address to receive any surplus fee refunds\",\"update\":\"The risk parameter update payload to send\"}},\"oAppVersion()\":{\"details\":\"Providing 0 as the default for OAppReceiver version. Indicates that the OAppReceiver is not implemented. ie. this is a SEND only OApp.If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions\",\"returns\":{\"receiverVersion\":\"The version of the OAppReceiver.sol contract.\",\"senderVersion\":\"The version of the OAppSender.sol contract.\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"peers(uint32)\":{\"params\":{\"_eid\":\"The endpoint ID.\"},\"returns\":{\"_0\":\"peer The address of the peer associated with the specified endpoint.\"}},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"processUpdate(uint256)\":{\"custom:error\":\"Throws UpdateAlreadyResolved if the update was already processedThrows UpdateIsExpired if the update has expiredThrows ConfigNotActive if the config is not activeThrows UpdateTooFrequent if the debounce period has not passedThrows RegisteredUpdateTypeExist if there is a non-expired pending update of the same type\",\"custom:event\":\"Emits UpdateRegistered, UpdateExecuted, or UpdateSentToDestination depending on the update type\",\"params\":{\"updateId\":\"The update ID from the oracle's perspective\"}},\"quote((string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,bool)\":{\"params\":{\"options\":\"Message execution options (e.g., for sending gas to the destination)\",\"payInLzToken\":\"Whether to return the fee in ZRO token instead of native gas\",\"update\":\"The risk parameter update payload to be sent\"},\"returns\":{\"fee\":\"A `MessagingFee` struct containing the calculated gas fee\"}},\"rejectUpdate(uint256)\":{\"custom:access\":\"Only whitelisted executors can call this function\",\"custom:error\":\"Throws UpdateAlreadyResolved if the update was already executed or rejected\",\"custom:event\":\"Emits UpdateRejected with the oracle update ID\",\"params\":{\"updateId\":\"The oracle update ID of the update to reject\"}},\"renounceOwnership()\":{\"custom:error\":\"Throws RenounceOwnershipNotAllowed\"},\"resendRemoteUpdate(uint256,bytes)\":{\"custom:access\":\"Only whitelisted executors can call this function\",\"custom:error\":\"Throws NotAnExecutor if the caller is not a whitelisted executorThrows InvalidUpdateToResend if the update status is not SENT_TO_DESTINATIONThrows UpdateIsExpired if the update has expired\",\"custom:event\":\"Emits UpdateResentToDestination with the update ID, destination chain ID, update type, and market\",\"details\":\"Duplicate update rejection is handled in the destination contract itself, so resending      the same update multiple times is safe and will be deduplicated on the destination side.\",\"params\":{\"options\":\"LayerZero message options; if empty, default executor option is used\",\"updateId\":\"The oracle update ID to resend\"}},\"setAccessControlManager(address)\":{\"custom:access\":\"Only Governance\",\"custom:event\":\"Emits NewAccessControlManager event\",\"details\":\"Admin function to set address of AccessControlManager\",\"params\":{\"accessControlManager_\":\"The new address of the AccessControlManager\"}},\"setConfigActive(string,bool)\":{\"custom:access\":\"Controlled by AccessControlManager\",\"custom:error\":\"Throws UnsupportedUpdateType if the update type is not supportedThrows ConfigStatusUnchanged if the active status is already set to the desired value\",\"custom:event\":\"Emits ConfigActiveUpdated with the update type hash, update type, previous active status, and the active status\",\"params\":{\"active\":\"The active status to set\",\"updateType\":\"The type of update to configure\"}},\"setDelegate(address)\":{\"details\":\"Only the owner/admin of the OApp can call this function.Provides the ability for a delegate to set configs, on behalf of the OApp, directly on the Endpoint contract.\",\"params\":{\"_delegate\":\"The address of the delegate to be set.\"}},\"setPaused(bool)\":{\"custom:access\":\"Controlled by AccessControlManager\",\"custom:event\":\"Emits PauseStatusUpdated\",\"params\":{\"paused_\":\"True to pause, false to unpause\"}},\"setPeer(uint32,bytes32)\":{\"details\":\"Only the owner/admin of the OApp can call this function.Indicates that the peer is trusted to send LayerZero messages to this OApp.Set this to bytes32(0) to remove the peer address.Peer is a bytes32 to accommodate non-evm chains.\",\"params\":{\"_eid\":\"The endpoint ID.\",\"_peer\":\"The address of the peer to be associated with the corresponding endpoint.\"}},\"setRiskParameterConfig(string,address,uint256,uint256)\":{\"custom:access\":\"Controlled by AccessControlManager\",\"custom:error\":\"InvalidUpdateType if the update type string is emptyThrows InvalidDebounce if the debounce is 0Throws InvalidTimelock if the timelock is greater than or equal to the expiration timeThrows ZeroAddressNotAllowed if the risk steward address is zero\",\"custom:event\":\"Emits RiskParameterConfigUpdated\",\"params\":{\"debounce\":\"The debounce period for the update\",\"riskSteward\":\"The address for the risk steward contract responsible for processing the update\",\"timelock\":\"The timelock period before the update can be executed\",\"updateType\":\"The type of update to configure\"}},\"setWhitelistedExecutor(address,bool)\":{\"custom:access\":\"Controlled by AccessControlManager\",\"custom:error\":\"Throws ZeroAddressNotAllowed if the executor address is zeroThrows ExecutorStatusUnchanged if the executor whitelist status is already set to the desired value\",\"custom:event\":\"Emits ExecutorStatusUpdated with the executor address, previous approval status, and approval status\",\"params\":{\"approved\":\"The whitelist status to set (true to whitelist, false to remove)\",\"executor\":\"The address of the executor\"}},\"sweepNative()\":{\"custom:event\":\"Emits SweepNative event.\"},\"transferOwnership(address)\":{\"details\":\"Overrides OwnableUpgradeable and Ownable2StepUpgradeable to resolve      the multiple inheritance ownership transfer conflict.\"}},\"stateVariables\":{\"__gap\":{\"details\":\"This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain. See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\"}},\"title\":\"RiskStewardReceiver\",\"version\":1},\"userdoc\":{\"errors\":{\"ConfigNotActive()\":[{\"notice\":\"Thrown if a submitted update is not active and therefore cannot be processed\"}],\"ConfigStatusUnchanged()\":[{\"notice\":\"Thrown when trying to set the same config active status\"}],\"ExecutorStatusUnchanged()\":[{\"notice\":\"Thrown when trying to set the same executor whitelist status\"}],\"InvalidDebounce()\":[{\"notice\":\"Thrown when a debounce value of 0 is set\"}],\"InvalidLayerZeroEid()\":[{\"notice\":\"Thrown when an invalid LayerZero endpoint ID is provided\"}],\"InvalidLzSendCaller()\":[{\"notice\":\"Thrown when attempting to call lzSend from an address other than this contract\"}],\"InvalidRegisteredUpdate()\":[{\"notice\":\"Thrown when trying to execute an update that was never registered\"}],\"InvalidTimelock()\":[{\"notice\":\"Thrown when a timelock value is greater than or equal to the expiration time\"}],\"InvalidUpdateToResend()\":[{\"notice\":\"Thrown when trying to resend an update that is not in SENT_TO_DESTINATION status\"}],\"InvalidUpdateType()\":[{\"notice\":\"Thrown when an empty update type string is provided\"}],\"NotAnExecutor()\":[{\"notice\":\"Thrown when an address is not an executor\"}],\"PauseStatusUnchanged()\":[{\"notice\":\"Thrown when trying to set the same pause status\"}],\"PausedError()\":[{\"notice\":\"Thrown when processUpdate is called while the contract is paused\"}],\"RegisteredUpdateTypeExist(uint256)\":[{\"notice\":\"Thrown when there is a non-expired pending update of the same type for the market\"}],\"RenounceOwnershipNotAllowed()\":[{\"notice\":\"Thrown when trying to renounce ownership\"}],\"Unauthorized(address,address,string)\":[{\"notice\":\"Thrown when the action is prohibited by AccessControlManager\"}],\"UnsupportedUpdateType()\":[{\"notice\":\"Thrown when an update type that is not supported is operated on\"}],\"UpdateAlreadyResolved()\":[{\"notice\":\"Thrown when an update has already been processed\"}],\"UpdateIsExpired()\":[{\"notice\":\"Thrown when an update was not applied within the required time frame\"}],\"UpdateNotFound()\":[{\"notice\":\"Thrown when trying to resolve an update that doesn't exist\"}],\"UpdateNotUnlocked()\":[{\"notice\":\"Thrown when update unlock time has not been reached\"}],\"UpdateTooFrequent()\":[{\"notice\":\"Thrown when the debounce period hasn't passed for applying an update to a specific market / update type\"}],\"UpdateWillExpireBeforeUnlock()\":[{\"notice\":\"Thrown when an update will expire before its timelock unlocks\"}],\"ZeroAddressNotAllowed()\":[{\"notice\":\"Thrown if the supplied address is a zero address where it is not allowed\"}]},\"events\":{\"ConfigActiveUpdated(bytes32,string,bool,bool)\":{\"notice\":\"Event emitted when a risk parameter config active status is set\"},\"ExecutorStatusUpdated(address,bool,bool)\":{\"notice\":\"Event emitted when an executor status is set\"},\"NewAccessControlManager(address,address)\":{\"notice\":\"Emitted when access control manager contract address is changed\"},\"PauseStatusUpdated(bool,bool)\":{\"notice\":\"Event emitted when the pause status changes\"},\"RiskParameterConfigUpdated(bytes32,string,address,address,uint256,uint256,uint256,uint256,bool,bool)\":{\"notice\":\"Event emitted when a risk parameter config is set\"},\"SweepNative(address,uint256)\":{\"notice\":\"Emitted when leftover native tokens are swept by owner\"},\"UpdateExecuted(uint256)\":{\"notice\":\"Event emitted when an update is successfully executed\"},\"UpdateExpired(uint256)\":{\"notice\":\"Event emitted when an update is marked as expired\"},\"UpdateRegistered(uint256,uint256,string,address)\":{\"notice\":\"Event emitted when an update is registered\"},\"UpdateRejected(uint256)\":{\"notice\":\"Event emitted when an update is rejected\"},\"UpdateResentToDestination(uint256,uint32,string,address)\":{\"notice\":\"Event emitted when an update is resent to a destination chain\"},\"UpdateSentToDestination(uint256,uint32,string,address)\":{\"notice\":\"Event emitted when an update is sent to a destination chain\"}},\"kind\":\"user\",\"methods\":{\"LAYER_ZERO_EID()\":{\"notice\":\"Source chain LayerZero endpoint ID\"},\"RISK_ORACLE()\":{\"notice\":\"The Risk Oracle contract address\"},\"UPDATE_EXPIRATION_TIME()\":{\"notice\":\"Period after which a proposed update becomes expired and can no longer be applied\"},\"accessControlManager()\":{\"notice\":\"Returns the address of the access control manager contract\"},\"constructor\":{\"notice\":\"Disables initializers and sets the Risk Oracle and LayerZero configuration.\"},\"endpoint()\":{\"notice\":\"Retrieves the LayerZero endpoint associated with the OApp.\"},\"executeRegisteredUpdate(uint256)\":{\"notice\":\"Executes a registered update. Only whitelisted executors can call this function.         This function can be used for updates that have completed their timelock and are ready to execute.\"},\"getExecutableUpdates(string,address)\":{\"notice\":\"Returns an array of update IDs for executable registered updates for a given update type and comptroller.\"},\"getLastProcessedUpdate(string,address)\":{\"notice\":\"Returns the last processed update ID for a given update type and market\"},\"getLastRegisteredUpdate(string,address)\":{\"notice\":\"Returns the last registered update ID for a given update type and market\"},\"getRiskParameterConfig(string)\":{\"notice\":\"Returns the risk parameter configuration for a given update type\"},\"initialize(address,address)\":{\"notice\":\"Initializes the contract with the Access Control Manager and OApp owner.\"},\"isUpdateExecutable(uint256)\":{\"notice\":\"Returns whether a registered update is ready to be executed.\"},\"lastProcessedUpdate(bytes32,address)\":{\"notice\":\"Track last processed update ID per (updateTypeKey, market)\"},\"lastRegisteredUpdate(bytes32,address)\":{\"notice\":\"Track the current registered update per (updateType, market) to avoid registering multiple updates\"},\"lzSend(uint32,(string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,(uint256,uint256),address)\":{\"notice\":\"Sends a `RiskParameterUpdate` to a destination chain via LayerZero.\"},\"oAppVersion()\":{\"notice\":\"Retrieves the OApp version information.\"},\"paused()\":{\"notice\":\"Pause flag\"},\"peers(uint32)\":{\"notice\":\"Returns the peer address (OApp instance) associated with a specific endpoint.\"},\"processUpdate(uint256)\":{\"notice\":\"Processes an update from the Risk Oracle. Validates, registers the update, and either executes immediately, registers with timelock, or forwards cross-chain.\"},\"quote((string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,bool)\":{\"notice\":\"Quotes the gas fee needed to pay for the full omnichain transaction in native gas or ZRO token.\"},\"rejectUpdate(uint256)\":{\"notice\":\"Rejects a registered update\"},\"renounceOwnership()\":{\"notice\":\"Disables renounceOwnership function\"},\"resendRemoteUpdate(uint256,bytes)\":{\"notice\":\"Resends a remote update to the destination chain. This function is useful in case of bridge failures.\"},\"riskParameterConfigs(bytes32)\":{\"notice\":\"Mapping of supported risk configurations and their validation parameters (keyed by hashed updateType)\"},\"setAccessControlManager(address)\":{\"notice\":\"Sets the address of AccessControlManager\"},\"setConfigActive(string,bool)\":{\"notice\":\"Sets the active status of a risk parameter config\"},\"setDelegate(address)\":{\"notice\":\"Sets the delegate address for the OApp.\"},\"setPaused(bool)\":{\"notice\":\"Sets the pause status for `processUpdate`.\"},\"setPeer(uint32,bytes32)\":{\"notice\":\"Sets the peer address (OApp instance) for a corresponding endpoint.\"},\"setRiskParameterConfig(string,address,uint256,uint256)\":{\"notice\":\"Sets the risk parameter config for a given update type\"},\"setWhitelistedExecutor(address,bool)\":{\"notice\":\"Manages the whitelist of executors that are allowed to execute timelocked registered updates.\"},\"sweepNative()\":{\"notice\":\"Allows the owner to sweep leftover native tokens (e.g., BNB) from the contract.\"},\"updates(uint256)\":{\"notice\":\"Master storage of all registered updates by update ID\"},\"whitelistedExecutors(address)\":{\"notice\":\"Mapping from executor address to whitelist status\"}},\"notice\":\"Contract that reads updates from a Risk Oracle, validates them with timelock and debounce,         and either executes them locally via the configured RiskSteward or forwards them cross\\u2011chain.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/RiskSteward/RiskStewardReceiver.sol\":\"RiskStewardReceiver\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"@layerzerolabs/lz-evm-messagelib-v2/contracts/libs/ExecutorOptions.sol\":{\"content\":\"// SPDX-License-Identifier: LZBL-1.2\\n\\npragma solidity ^0.8.20;\\n\\nimport \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/libs/CalldataBytesLib.sol\\\";\\n\\nlibrary ExecutorOptions {\\n    using CalldataBytesLib for bytes;\\n\\n    uint8 internal constant WORKER_ID = 1;\\n\\n    uint8 internal constant OPTION_TYPE_LZRECEIVE = 1;\\n    uint8 internal constant OPTION_TYPE_NATIVE_DROP = 2;\\n    uint8 internal constant OPTION_TYPE_LZCOMPOSE = 3;\\n    uint8 internal constant OPTION_TYPE_ORDERED_EXECUTION = 4;\\n    uint8 internal constant OPTION_TYPE_LZREAD = 5;\\n\\n    error Executor_InvalidLzReceiveOption();\\n    error Executor_InvalidNativeDropOption();\\n    error Executor_InvalidLzComposeOption();\\n    error Executor_InvalidLzReadOption();\\n\\n    /// @dev decode the next executor option from the options starting from the specified cursor\\n    /// @param _options [executor_id][executor_option][executor_id][executor_option]...\\n    ///        executor_option = [option_size][option_type][option]\\n    ///        option_size = len(option_type) + len(option)\\n    ///        executor_id: uint8, option_size: uint16, option_type: uint8, option: bytes\\n    /// @param _cursor the cursor to start decoding from\\n    /// @return optionType the type of the option\\n    /// @return option the option of the executor\\n    /// @return cursor the cursor to start decoding the next executor option\\n    function nextExecutorOption(\\n        bytes calldata _options,\\n        uint256 _cursor\\n    ) internal pure returns (uint8 optionType, bytes calldata option, uint256 cursor) {\\n        unchecked {\\n            // skip worker id\\n            cursor = _cursor + 1;\\n\\n            // read option size\\n            uint16 size = _options.toU16(cursor);\\n            cursor += 2;\\n\\n            // read option type\\n            optionType = _options.toU8(cursor);\\n\\n            // startCursor and endCursor are used to slice the option from _options\\n            uint256 startCursor = cursor + 1; // skip option type\\n            uint256 endCursor = cursor + size;\\n            option = _options[startCursor:endCursor];\\n            cursor += size;\\n        }\\n    }\\n\\n    function decodeLzReceiveOption(bytes calldata _option) internal pure returns (uint128 gas, uint128 value) {\\n        if (_option.length != 16 && _option.length != 32) revert Executor_InvalidLzReceiveOption();\\n        gas = _option.toU128(0);\\n        value = _option.length == 32 ? _option.toU128(16) : 0;\\n    }\\n\\n    function decodeNativeDropOption(bytes calldata _option) internal pure returns (uint128 amount, bytes32 receiver) {\\n        if (_option.length != 48) revert Executor_InvalidNativeDropOption();\\n        amount = _option.toU128(0);\\n        receiver = _option.toB32(16);\\n    }\\n\\n    function decodeLzComposeOption(\\n        bytes calldata _option\\n    ) internal pure returns (uint16 index, uint128 gas, uint128 value) {\\n        if (_option.length != 18 && _option.length != 34) revert Executor_InvalidLzComposeOption();\\n        index = _option.toU16(0);\\n        gas = _option.toU128(2);\\n        value = _option.length == 34 ? _option.toU128(18) : 0;\\n    }\\n\\n    function decodeLzReadOption(\\n        bytes calldata _option\\n    ) internal pure returns (uint128 gas, uint32 calldataSize, uint128 value) {\\n        if (_option.length != 20 && _option.length != 36) revert Executor_InvalidLzReadOption();\\n        gas = _option.toU128(0);\\n        calldataSize = _option.toU32(16);\\n        value = _option.length == 36 ? _option.toU128(20) : 0;\\n    }\\n\\n    function encodeLzReceiveOption(uint128 _gas, uint128 _value) internal pure returns (bytes memory) {\\n        return _value == 0 ? abi.encodePacked(_gas) : abi.encodePacked(_gas, _value);\\n    }\\n\\n    function encodeNativeDropOption(uint128 _amount, bytes32 _receiver) internal pure returns (bytes memory) {\\n        return abi.encodePacked(_amount, _receiver);\\n    }\\n\\n    function encodeLzComposeOption(uint16 _index, uint128 _gas, uint128 _value) internal pure returns (bytes memory) {\\n        return _value == 0 ? abi.encodePacked(_index, _gas) : abi.encodePacked(_index, _gas, _value);\\n    }\\n\\n    function encodeLzReadOption(\\n        uint128 _gas,\\n        uint32 _calldataSize,\\n        uint128 _value\\n    ) internal pure returns (bytes memory) {\\n        return _value == 0 ? abi.encodePacked(_gas, _calldataSize) : abi.encodePacked(_gas, _calldataSize, _value);\\n    }\\n}\\n\",\"keccak256\":\"0x441b723f2f597be2ec2bb361fcf3f11852c23534db1cfa7d2ffff7e61d228e3c\",\"license\":\"LZBL-1.2\"},\"@layerzerolabs/lz-evm-messagelib-v2/contracts/uln/libs/DVNOptions.sol\":{\"content\":\"// SPDX-License-Identifier: LZBL-1.2\\n\\npragma solidity ^0.8.20;\\n\\nimport { BytesLib } from \\\"solidity-bytes-utils/contracts/BytesLib.sol\\\";\\n\\nimport { BitMap256 } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/BitMaps.sol\\\";\\nimport { CalldataBytesLib } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/libs/CalldataBytesLib.sol\\\";\\n\\nlibrary DVNOptions {\\n    using CalldataBytesLib for bytes;\\n    using BytesLib for bytes;\\n\\n    uint8 internal constant WORKER_ID = 2;\\n    uint8 internal constant OPTION_TYPE_PRECRIME = 1;\\n\\n    error DVN_InvalidDVNIdx();\\n    error DVN_InvalidDVNOptions(uint256 cursor);\\n\\n    /// @dev group dvn options by its idx\\n    /// @param _options [dvn_id][dvn_option][dvn_id][dvn_option]...\\n    ///        dvn_option = [option_size][dvn_idx][option_type][option]\\n    ///        option_size = len(dvn_idx) + len(option_type) + len(option)\\n    ///        dvn_id: uint8, dvn_idx: uint8, option_size: uint16, option_type: uint8, option: bytes\\n    /// @return dvnOptions the grouped options, still share the same format of _options\\n    /// @return dvnIndices the dvn indices\\n    function groupDVNOptionsByIdx(\\n        bytes memory _options\\n    ) internal pure returns (bytes[] memory dvnOptions, uint8[] memory dvnIndices) {\\n        if (_options.length == 0) return (dvnOptions, dvnIndices);\\n\\n        uint8 numDVNs = getNumDVNs(_options);\\n\\n        // if there is only 1 dvn, we can just return the whole options\\n        if (numDVNs == 1) {\\n            dvnOptions = new bytes[](1);\\n            dvnOptions[0] = _options;\\n\\n            dvnIndices = new uint8[](1);\\n            dvnIndices[0] = _options.toUint8(3); // dvn idx\\n            return (dvnOptions, dvnIndices);\\n        }\\n\\n        // otherwise, we need to group the options by dvn_idx\\n        dvnIndices = new uint8[](numDVNs);\\n        dvnOptions = new bytes[](numDVNs);\\n        unchecked {\\n            uint256 cursor = 0;\\n            uint256 start = 0;\\n            uint8 lastDVNIdx = 255; // 255 is an invalid dvn_idx\\n\\n            while (cursor < _options.length) {\\n                ++cursor; // skip worker_id\\n\\n                // optionLength asserted in getNumDVNs (skip check)\\n                uint16 optionLength = _options.toUint16(cursor);\\n                cursor += 2;\\n\\n                // dvnIdx asserted in getNumDVNs (skip check)\\n                uint8 dvnIdx = _options.toUint8(cursor);\\n\\n                // dvnIdx must equal to the lastDVNIdx for the first option\\n                // so it is always skipped in the first option\\n                // this operation slices out options whenever the scan finds a different lastDVNIdx\\n                if (lastDVNIdx == 255) {\\n                    lastDVNIdx = dvnIdx;\\n                } else if (dvnIdx != lastDVNIdx) {\\n                    uint256 len = cursor - start - 3; // 3 is for worker_id and option_length\\n                    bytes memory opt = _options.slice(start, len);\\n                    _insertDVNOptions(dvnOptions, dvnIndices, lastDVNIdx, opt);\\n\\n                    // reset the start and lastDVNIdx\\n                    start += len;\\n                    lastDVNIdx = dvnIdx;\\n                }\\n\\n                cursor += optionLength;\\n            }\\n\\n            // skip check the cursor here because the cursor is asserted in getNumDVNs\\n            // if we have reached the end of the options, we need to process the last dvn\\n            uint256 size = cursor - start;\\n            bytes memory op = _options.slice(start, size);\\n            _insertDVNOptions(dvnOptions, dvnIndices, lastDVNIdx, op);\\n\\n            // revert dvnIndices to start from 0\\n            for (uint8 i = 0; i < numDVNs; ++i) {\\n                --dvnIndices[i];\\n            }\\n        }\\n    }\\n\\n    function _insertDVNOptions(\\n        bytes[] memory _dvnOptions,\\n        uint8[] memory _dvnIndices,\\n        uint8 _dvnIdx,\\n        bytes memory _newOptions\\n    ) internal pure {\\n        // dvnIdx starts from 0 but default value of dvnIndices is 0,\\n        // so we tell if the slot is empty by adding 1 to dvnIdx\\n        if (_dvnIdx == 255) revert DVN_InvalidDVNIdx();\\n        uint8 dvnIdxAdj = _dvnIdx + 1;\\n\\n        for (uint256 j = 0; j < _dvnIndices.length; ++j) {\\n            uint8 index = _dvnIndices[j];\\n            if (dvnIdxAdj == index) {\\n                _dvnOptions[j] = abi.encodePacked(_dvnOptions[j], _newOptions);\\n                break;\\n            } else if (index == 0) {\\n                // empty slot, that means it is the first time we see this dvn\\n                _dvnIndices[j] = dvnIdxAdj;\\n                _dvnOptions[j] = _newOptions;\\n                break;\\n            }\\n        }\\n    }\\n\\n    /// @dev get the number of unique dvns\\n    /// @param _options the format is the same as groupDVNOptionsByIdx\\n    function getNumDVNs(bytes memory _options) internal pure returns (uint8 numDVNs) {\\n        uint256 cursor = 0;\\n        BitMap256 bitmap;\\n\\n        // find number of unique dvn_idx\\n        unchecked {\\n            while (cursor < _options.length) {\\n                ++cursor; // skip worker_id\\n\\n                uint16 optionLength = _options.toUint16(cursor);\\n                cursor += 2;\\n                if (optionLength < 2) revert DVN_InvalidDVNOptions(cursor); // at least 1 byte for dvn_idx and 1 byte for option_type\\n\\n                uint8 dvnIdx = _options.toUint8(cursor);\\n\\n                // if dvnIdx is not set, increment numDVNs\\n                // max num of dvns is 255, 255 is an invalid dvn_idx\\n                // The order of the dvnIdx is not required to be sequential, as enforcing the order may weaken\\n                // the composability of the options. e.g. if we refrain from enforcing the order, an OApp that has\\n                // already enforced certain options can append additional options to the end of the enforced\\n                // ones without restrictions.\\n                if (dvnIdx == 255) revert DVN_InvalidDVNIdx();\\n                if (!bitmap.get(dvnIdx)) {\\n                    ++numDVNs;\\n                    bitmap = bitmap.set(dvnIdx);\\n                }\\n\\n                cursor += optionLength;\\n            }\\n        }\\n        if (cursor != _options.length) revert DVN_InvalidDVNOptions(cursor);\\n    }\\n\\n    /// @dev decode the next dvn option from _options starting from the specified cursor\\n    /// @param _options the format is the same as groupDVNOptionsByIdx\\n    /// @param _cursor the cursor to start decoding\\n    /// @return optionType the type of the option\\n    /// @return option the option\\n    /// @return cursor the cursor to start decoding the next option\\n    function nextDVNOption(\\n        bytes calldata _options,\\n        uint256 _cursor\\n    ) internal pure returns (uint8 optionType, bytes calldata option, uint256 cursor) {\\n        unchecked {\\n            // skip worker id\\n            cursor = _cursor + 1;\\n\\n            // read option size\\n            uint16 size = _options.toU16(cursor);\\n            cursor += 2;\\n\\n            // read option type\\n            optionType = _options.toU8(cursor + 1); // skip dvn_idx\\n\\n            // startCursor and endCursor are used to slice the option from _options\\n            uint256 startCursor = cursor + 2; // skip option type and dvn_idx\\n            uint256 endCursor = cursor + size;\\n            option = _options[startCursor:endCursor];\\n            cursor += size;\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x2beee03cdf59a9bc72e94d08b69cb2e908725f4ceabb48651494938100e21e35\",\"license\":\"LZBL-1.2\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\nimport { IMessageLibManager } from \\\"./IMessageLibManager.sol\\\";\\nimport { IMessagingComposer } from \\\"./IMessagingComposer.sol\\\";\\nimport { IMessagingChannel } from \\\"./IMessagingChannel.sol\\\";\\nimport { IMessagingContext } from \\\"./IMessagingContext.sol\\\";\\n\\nstruct MessagingParams {\\n    uint32 dstEid;\\n    bytes32 receiver;\\n    bytes message;\\n    bytes options;\\n    bool payInLzToken;\\n}\\n\\nstruct MessagingReceipt {\\n    bytes32 guid;\\n    uint64 nonce;\\n    MessagingFee fee;\\n}\\n\\nstruct MessagingFee {\\n    uint256 nativeFee;\\n    uint256 lzTokenFee;\\n}\\n\\nstruct Origin {\\n    uint32 srcEid;\\n    bytes32 sender;\\n    uint64 nonce;\\n}\\n\\ninterface ILayerZeroEndpointV2 is IMessageLibManager, IMessagingComposer, IMessagingChannel, IMessagingContext {\\n    event PacketSent(bytes encodedPayload, bytes options, address sendLibrary);\\n\\n    event PacketVerified(Origin origin, address receiver, bytes32 payloadHash);\\n\\n    event PacketDelivered(Origin origin, address receiver);\\n\\n    event LzReceiveAlert(\\n        address indexed receiver,\\n        address indexed executor,\\n        Origin origin,\\n        bytes32 guid,\\n        uint256 gas,\\n        uint256 value,\\n        bytes message,\\n        bytes extraData,\\n        bytes reason\\n    );\\n\\n    event LzTokenSet(address token);\\n\\n    event DelegateSet(address sender, address delegate);\\n\\n    function quote(MessagingParams calldata _params, address _sender) external view returns (MessagingFee memory);\\n\\n    function send(\\n        MessagingParams calldata _params,\\n        address _refundAddress\\n    ) external payable returns (MessagingReceipt memory);\\n\\n    function verify(Origin calldata _origin, address _receiver, bytes32 _payloadHash) external;\\n\\n    function verifiable(Origin calldata _origin, address _receiver) external view returns (bool);\\n\\n    function initializable(Origin calldata _origin, address _receiver) external view returns (bool);\\n\\n    function lzReceive(\\n        Origin calldata _origin,\\n        address _receiver,\\n        bytes32 _guid,\\n        bytes calldata _message,\\n        bytes calldata _extraData\\n    ) external payable;\\n\\n    // oapp can burn messages partially by calling this function with its own business logic if messages are verified in order\\n    function clear(address _oapp, Origin calldata _origin, bytes32 _guid, bytes calldata _message) external;\\n\\n    function setLzToken(address _lzToken) external;\\n\\n    function lzToken() external view returns (address);\\n\\n    function nativeToken() external view returns (address);\\n\\n    function setDelegate(address _delegate) external;\\n}\\n\",\"keccak256\":\"0xf7f941bee89ea6369950fe54e8ac476ae6478b958b20fc0e8a83e8ff1364eac3\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\nstruct SetConfigParam {\\n    uint32 eid;\\n    uint32 configType;\\n    bytes config;\\n}\\n\\ninterface IMessageLibManager {\\n    struct Timeout {\\n        address lib;\\n        uint256 expiry;\\n    }\\n\\n    event LibraryRegistered(address newLib);\\n    event DefaultSendLibrarySet(uint32 eid, address newLib);\\n    event DefaultReceiveLibrarySet(uint32 eid, address newLib);\\n    event DefaultReceiveLibraryTimeoutSet(uint32 eid, address oldLib, uint256 expiry);\\n    event SendLibrarySet(address sender, uint32 eid, address newLib);\\n    event ReceiveLibrarySet(address receiver, uint32 eid, address newLib);\\n    event ReceiveLibraryTimeoutSet(address receiver, uint32 eid, address oldLib, uint256 timeout);\\n\\n    function registerLibrary(address _lib) external;\\n\\n    function isRegisteredLibrary(address _lib) external view returns (bool);\\n\\n    function getRegisteredLibraries() external view returns (address[] memory);\\n\\n    function setDefaultSendLibrary(uint32 _eid, address _newLib) external;\\n\\n    function defaultSendLibrary(uint32 _eid) external view returns (address);\\n\\n    function setDefaultReceiveLibrary(uint32 _eid, address _newLib, uint256 _gracePeriod) external;\\n\\n    function defaultReceiveLibrary(uint32 _eid) external view returns (address);\\n\\n    function setDefaultReceiveLibraryTimeout(uint32 _eid, address _lib, uint256 _expiry) external;\\n\\n    function defaultReceiveLibraryTimeout(uint32 _eid) external view returns (address lib, uint256 expiry);\\n\\n    function isSupportedEid(uint32 _eid) external view returns (bool);\\n\\n    function isValidReceiveLibrary(address _receiver, uint32 _eid, address _lib) external view returns (bool);\\n\\n    /// ------------------- OApp interfaces -------------------\\n    function setSendLibrary(address _oapp, uint32 _eid, address _newLib) external;\\n\\n    function getSendLibrary(address _sender, uint32 _eid) external view returns (address lib);\\n\\n    function isDefaultSendLibrary(address _sender, uint32 _eid) external view returns (bool);\\n\\n    function setReceiveLibrary(address _oapp, uint32 _eid, address _newLib, uint256 _gracePeriod) external;\\n\\n    function getReceiveLibrary(address _receiver, uint32 _eid) external view returns (address lib, bool isDefault);\\n\\n    function setReceiveLibraryTimeout(address _oapp, uint32 _eid, address _lib, uint256 _expiry) external;\\n\\n    function receiveLibraryTimeout(address _receiver, uint32 _eid) external view returns (address lib, uint256 expiry);\\n\\n    function setConfig(address _oapp, address _lib, SetConfigParam[] calldata _params) external;\\n\\n    function getConfig(\\n        address _oapp,\\n        address _lib,\\n        uint32 _eid,\\n        uint32 _configType\\n    ) external view returns (bytes memory config);\\n}\\n\",\"keccak256\":\"0x919b37133adff4dc528e3061deb2789c3149971b530c61e556fb3d09ab315dfc\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface IMessagingChannel {\\n    event InboundNonceSkipped(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce);\\n    event PacketNilified(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);\\n    event PacketBurnt(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);\\n\\n    function eid() external view returns (uint32);\\n\\n    // this is an emergency function if a message cannot be verified for some reasons\\n    // required to provide _nextNonce to avoid race condition\\n    function skip(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce) external;\\n\\n    function nilify(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;\\n\\n    function burn(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;\\n\\n    function nextGuid(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (bytes32);\\n\\n    function inboundNonce(address _receiver, uint32 _srcEid, bytes32 _sender) external view returns (uint64);\\n\\n    function outboundNonce(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (uint64);\\n\\n    function inboundPayloadHash(\\n        address _receiver,\\n        uint32 _srcEid,\\n        bytes32 _sender,\\n        uint64 _nonce\\n    ) external view returns (bytes32);\\n\\n    function lazyInboundNonce(address _receiver, uint32 _srcEid, bytes32 _sender) external view returns (uint64);\\n}\\n\",\"keccak256\":\"0x0878f64dffebf58c4165569416372f40860fab546b88cd926eba0d5cb6d8d972\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface IMessagingComposer {\\n    event ComposeSent(address from, address to, bytes32 guid, uint16 index, bytes message);\\n    event ComposeDelivered(address from, address to, bytes32 guid, uint16 index);\\n    event LzComposeAlert(\\n        address indexed from,\\n        address indexed to,\\n        address indexed executor,\\n        bytes32 guid,\\n        uint16 index,\\n        uint256 gas,\\n        uint256 value,\\n        bytes message,\\n        bytes extraData,\\n        bytes reason\\n    );\\n\\n    function composeQueue(\\n        address _from,\\n        address _to,\\n        bytes32 _guid,\\n        uint16 _index\\n    ) external view returns (bytes32 messageHash);\\n\\n    function sendCompose(address _to, bytes32 _guid, uint16 _index, bytes calldata _message) external;\\n\\n    function lzCompose(\\n        address _from,\\n        address _to,\\n        bytes32 _guid,\\n        uint16 _index,\\n        bytes calldata _message,\\n        bytes calldata _extraData\\n    ) external payable;\\n}\\n\",\"keccak256\":\"0x85bc7090134529ec474866dc4bb1c48692d518c756eb0a961c82574829c51901\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface IMessagingContext {\\n    function isSendingMessage() external view returns (bool);\\n\\n    function getSendContext() external view returns (uint32 dstEid, address sender);\\n}\\n\",\"keccak256\":\"0xff0c546c2813dae3e440882f46b377375f7461b0714efd80bd3f0c6e5cb8da4e\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/libs/CalldataBytesLib.sol\":{\"content\":\"// SPDX-License-Identifier: LZBL-1.2\\n\\npragma solidity ^0.8.20;\\n\\nlibrary CalldataBytesLib {\\n    function toU8(bytes calldata _bytes, uint256 _start) internal pure returns (uint8) {\\n        return uint8(_bytes[_start]);\\n    }\\n\\n    function toU16(bytes calldata _bytes, uint256 _start) internal pure returns (uint16) {\\n        unchecked {\\n            uint256 end = _start + 2;\\n            return uint16(bytes2(_bytes[_start:end]));\\n        }\\n    }\\n\\n    function toU32(bytes calldata _bytes, uint256 _start) internal pure returns (uint32) {\\n        unchecked {\\n            uint256 end = _start + 4;\\n            return uint32(bytes4(_bytes[_start:end]));\\n        }\\n    }\\n\\n    function toU64(bytes calldata _bytes, uint256 _start) internal pure returns (uint64) {\\n        unchecked {\\n            uint256 end = _start + 8;\\n            return uint64(bytes8(_bytes[_start:end]));\\n        }\\n    }\\n\\n    function toU128(bytes calldata _bytes, uint256 _start) internal pure returns (uint128) {\\n        unchecked {\\n            uint256 end = _start + 16;\\n            return uint128(bytes16(_bytes[_start:end]));\\n        }\\n    }\\n\\n    function toU256(bytes calldata _bytes, uint256 _start) internal pure returns (uint256) {\\n        unchecked {\\n            uint256 end = _start + 32;\\n            return uint256(bytes32(_bytes[_start:end]));\\n        }\\n    }\\n\\n    function toAddr(bytes calldata _bytes, uint256 _start) internal pure returns (address) {\\n        unchecked {\\n            uint256 end = _start + 20;\\n            return address(bytes20(_bytes[_start:end]));\\n        }\\n    }\\n\\n    function toB32(bytes calldata _bytes, uint256 _start) internal pure returns (bytes32) {\\n        unchecked {\\n            uint256 end = _start + 32;\\n            return bytes32(_bytes[_start:end]);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x5c0db161cef6603c3b256d4220f489419e7478ef775e52a80056654129c61875\",\"license\":\"LZBL-1.2\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/BitMaps.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\n// modified from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/BitMaps.sol\\npragma solidity ^0.8.20;\\n\\ntype BitMap256 is uint256;\\n\\nusing BitMaps for BitMap256 global;\\n\\nlibrary BitMaps {\\n    /**\\n     * @dev Returns whether the bit at `index` is set.\\n     */\\n    function get(BitMap256 bitmap, uint8 index) internal pure returns (bool) {\\n        uint256 mask = 1 << index;\\n        return BitMap256.unwrap(bitmap) & mask != 0;\\n    }\\n\\n    /**\\n     * @dev Sets the bit at `index`.\\n     */\\n    function set(BitMap256 bitmap, uint8 index) internal pure returns (BitMap256) {\\n        uint256 mask = 1 << index;\\n        return BitMap256.wrap(BitMap256.unwrap(bitmap) | mask);\\n    }\\n}\\n\",\"keccak256\":\"0xaad3c72ef43480d2253fd48b394e8fb7286d009991d2bc4e61be58ce48ac5ee9\",\"license\":\"MIT\"},\"@layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppCoreUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { OwnableUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport { IOAppCore, ILayerZeroEndpointV2 } from \\\"@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppCore.sol\\\";\\n\\n/**\\n * @title OAppCore\\n * @dev Abstract contract implementing the IOAppCore interface with basic OApp configurations.\\n */\\nabstract contract OAppCoreUpgradeable is IOAppCore, OwnableUpgradeable {\\n    struct OAppCoreStorage {\\n        mapping(uint32 => bytes32) peers;\\n    }\\n\\n    // keccak256(abi.encode(uint256(keccak256(\\\"layerzerov2.storage.oappcore\\\")) - 1)) & ~bytes32(uint256(0xff))\\n    bytes32 private constant OAPP_CORE_STORAGE_LOCATION =\\n        0x72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900;\\n\\n    function _getOAppCoreStorage() internal pure returns (OAppCoreStorage storage $) {\\n        assembly {\\n            $.slot := OAPP_CORE_STORAGE_LOCATION\\n        }\\n    }\\n\\n    // The LayerZero endpoint associated with the given OApp\\n    ILayerZeroEndpointV2 public immutable endpoint;\\n\\n    /**\\n     * @dev Constructor to initialize the OAppCore with the provided endpoint and delegate.\\n     * @param _endpoint The address of the LOCAL Layer Zero endpoint.\\n     */\\n    constructor(address _endpoint) {\\n        endpoint = ILayerZeroEndpointV2(_endpoint);\\n    }\\n\\n    /**\\n     * @dev Initializes the OAppCore with the provided delegate.\\n     * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.\\n     *\\n     * @dev The delegate typically should be set as the owner of the contract.\\n     * @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to\\n     * accommodate the different version of Ownable.\\n     */\\n    function __OAppCore_init(address _delegate) internal onlyInitializing {\\n        __OAppCore_init_unchained(_delegate);\\n    }\\n\\n    function __OAppCore_init_unchained(address _delegate) internal onlyInitializing {\\n        if (_delegate == address(0)) revert InvalidDelegate();\\n        endpoint.setDelegate(_delegate);\\n    }\\n\\n    /**\\n     * @notice Returns the peer address (OApp instance) associated with a specific endpoint.\\n     * @param _eid The endpoint ID.\\n     * @return peer The address of the peer associated with the specified endpoint.\\n     */\\n    function peers(uint32 _eid) public view override returns (bytes32) {\\n        OAppCoreStorage storage $ = _getOAppCoreStorage();\\n        return $.peers[_eid];\\n    }\\n\\n    /**\\n     * @notice Sets the peer address (OApp instance) for a corresponding endpoint.\\n     * @param _eid The endpoint ID.\\n     * @param _peer The address of the peer to be associated with the corresponding endpoint.\\n     *\\n     * @dev Only the owner/admin of the OApp can call this function.\\n     * @dev Indicates that the peer is trusted to send LayerZero messages to this OApp.\\n     * @dev Set this to bytes32(0) to remove the peer address.\\n     * @dev Peer is a bytes32 to accommodate non-evm chains.\\n     */\\n    function setPeer(uint32 _eid, bytes32 _peer) public virtual onlyOwner {\\n        OAppCoreStorage storage $ = _getOAppCoreStorage();\\n        $.peers[_eid] = _peer;\\n        emit PeerSet(_eid, _peer);\\n    }\\n\\n    /**\\n     * @notice Internal function to get the peer address associated with a specific endpoint; reverts if NOT set.\\n     * ie. the peer is set to bytes32(0).\\n     * @param _eid The endpoint ID.\\n     * @return peer The address of the peer associated with the specified endpoint.\\n     */\\n    function _getPeerOrRevert(uint32 _eid) internal view virtual returns (bytes32) {\\n        OAppCoreStorage storage $ = _getOAppCoreStorage();\\n        bytes32 peer = $.peers[_eid];\\n        if (peer == bytes32(0)) revert NoPeer(_eid);\\n        return peer;\\n    }\\n\\n    /**\\n     * @notice Sets the delegate address for the OApp.\\n     * @param _delegate The address of the delegate to be set.\\n     *\\n     * @dev Only the owner/admin of the OApp can call this function.\\n     * @dev Provides the ability for a delegate to set configs, on behalf of the OApp, directly on the Endpoint contract.\\n     */\\n    function setDelegate(address _delegate) public onlyOwner {\\n        endpoint.setDelegate(_delegate);\\n    }\\n}\\n\",\"keccak256\":\"0xbe135fd35bf12c97aeb701caeb6c5d0c1c28c1ac2ab1d4219d15f8384951c140\",\"license\":\"MIT\"},\"@layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppSenderUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { SafeERC20, IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport { MessagingParams, MessagingFee, MessagingReceipt } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol\\\";\\nimport { OAppCoreUpgradeable } from \\\"./OAppCoreUpgradeable.sol\\\";\\n\\n/**\\n * @title OAppSender\\n * @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.\\n */\\nabstract contract OAppSenderUpgradeable is OAppCoreUpgradeable {\\n    using SafeERC20 for IERC20;\\n\\n    // Custom error messages\\n    error NotEnoughNative(uint256 msgValue);\\n    error LzTokenUnavailable();\\n\\n    // @dev The version of the OAppSender implementation.\\n    // @dev Version is bumped when changes are made to this contract.\\n    uint64 internal constant SENDER_VERSION = 1;\\n\\n    /**\\n     * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.\\n     * @dev Ownable is not initialized here on purpose. It should be initialized in the child contract to\\n     * accommodate the different version of Ownable.\\n     */\\n    function __OAppSender_init(address _delegate) internal onlyInitializing {\\n        __OAppCore_init(_delegate);\\n    }\\n\\n    function __OAppSender_init_unchained() internal onlyInitializing {}\\n\\n    /**\\n     * @notice Retrieves the OApp version information.\\n     * @return senderVersion The version of the OAppSender.sol contract.\\n     * @return receiverVersion The version of the OAppReceiver.sol contract.\\n     *\\n     * @dev Providing 0 as the default for OAppReceiver version. Indicates that the OAppReceiver is not implemented.\\n     * ie. this is a SEND only OApp.\\n     * @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions\\n     */\\n    function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {\\n        return (SENDER_VERSION, 0);\\n    }\\n\\n    /**\\n     * @dev Internal function to interact with the LayerZero EndpointV2.quote() for fee calculation.\\n     * @param _dstEid The destination endpoint ID.\\n     * @param _message The message payload.\\n     * @param _options Additional options for the message.\\n     * @param _payInLzToken Flag indicating whether to pay the fee in LZ tokens.\\n     * @return fee The calculated MessagingFee for the message.\\n     *      - nativeFee: The native fee for the message.\\n     *      - lzTokenFee: The LZ token fee for the message.\\n     */\\n    function _quote(\\n        uint32 _dstEid,\\n        bytes memory _message,\\n        bytes memory _options,\\n        bool _payInLzToken\\n    ) internal view virtual returns (MessagingFee memory fee) {\\n        return\\n            endpoint.quote(\\n                MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _payInLzToken),\\n                address(this)\\n            );\\n    }\\n\\n    /**\\n     * @dev Internal function to interact with the LayerZero EndpointV2.send() for sending a message.\\n     * @param _dstEid The destination endpoint ID.\\n     * @param _message The message payload.\\n     * @param _options Additional options for the message.\\n     * @param _fee The calculated LayerZero fee for the message.\\n     *      - nativeFee: The native fee.\\n     *      - lzTokenFee: The lzToken fee.\\n     * @param _refundAddress The address to receive any excess fee values sent to the endpoint.\\n     * @return receipt The receipt for the sent message.\\n     *      - guid: The unique identifier for the sent message.\\n     *      - nonce: The nonce of the sent message.\\n     *      - fee: The LayerZero fee incurred for the message.\\n     */\\n    function _lzSend(\\n        uint32 _dstEid,\\n        bytes memory _message,\\n        bytes memory _options,\\n        MessagingFee memory _fee,\\n        address _refundAddress\\n    ) internal virtual returns (MessagingReceipt memory receipt) {\\n        // @dev Push corresponding fees to the endpoint, any excess is sent back to the _refundAddress from the endpoint.\\n        uint256 messageValue = _payNative(_fee.nativeFee);\\n        if (_fee.lzTokenFee > 0) _payLzToken(_fee.lzTokenFee);\\n\\n        return\\n            // solhint-disable-next-line check-send-result\\n            endpoint.send{ value: messageValue }(\\n                MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _fee.lzTokenFee > 0),\\n                _refundAddress\\n            );\\n    }\\n\\n    /**\\n     * @dev Internal function to pay the native fee associated with the message.\\n     * @param _nativeFee The native fee to be paid.\\n     * @return nativeFee The amount of native currency paid.\\n     *\\n     * @dev If the OApp needs to initiate MULTIPLE LayerZero messages in a single transaction,\\n     * this will need to be overridden because msg.value would contain multiple lzFees.\\n     * @dev Should be overridden in the event the LayerZero endpoint requires a different native currency.\\n     * @dev Some EVMs use an ERC20 as a method for paying transactions/gasFees.\\n     * @dev The endpoint is EITHER/OR, ie. it will NOT support both types of native payment at a time.\\n     */\\n    function _payNative(uint256 _nativeFee) internal virtual returns (uint256 nativeFee) {\\n        if (msg.value != _nativeFee) revert NotEnoughNative(msg.value);\\n        return _nativeFee;\\n    }\\n\\n    /**\\n     * @dev Internal function to pay the LZ token fee associated with the message.\\n     * @param _lzTokenFee The LZ token fee to be paid.\\n     *\\n     * @dev If the caller is trying to pay in the specified lzToken, then the lzTokenFee is passed to the endpoint.\\n     * @dev Any excess sent, is passed back to the specified _refundAddress in the _lzSend().\\n     */\\n    function _payLzToken(uint256 _lzTokenFee) internal virtual {\\n        // @dev Cannot cache the token because it is not immutable in the endpoint.\\n        address lzToken = endpoint.lzToken();\\n        if (lzToken == address(0)) revert LzTokenUnavailable();\\n\\n        // Pay LZ token fee by sending tokens to the endpoint.\\n        IERC20(lzToken).safeTransferFrom(msg.sender, address(endpoint), _lzTokenFee);\\n    }\\n}\\n\",\"keccak256\":\"0x4e13557c5dc7c983f69d32911572efdbddea071a03bf2fc50e1cad92ddf0ef49\",\"license\":\"MIT\"},\"@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppCore.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { ILayerZeroEndpointV2 } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol\\\";\\n\\n/**\\n * @title IOAppCore\\n */\\ninterface IOAppCore {\\n    // Custom error messages\\n    error OnlyPeer(uint32 eid, bytes32 sender);\\n    error NoPeer(uint32 eid);\\n    error InvalidEndpointCall();\\n    error InvalidDelegate();\\n\\n    // Event emitted when a peer (OApp) is set for a corresponding endpoint\\n    event PeerSet(uint32 eid, bytes32 peer);\\n\\n    /**\\n     * @notice Retrieves the OApp version information.\\n     * @return senderVersion The version of the OAppSender.sol contract.\\n     * @return receiverVersion The version of the OAppReceiver.sol contract.\\n     */\\n    function oAppVersion() external view returns (uint64 senderVersion, uint64 receiverVersion);\\n\\n    /**\\n     * @notice Retrieves the LayerZero endpoint associated with the OApp.\\n     * @return iEndpoint The LayerZero endpoint as an interface.\\n     */\\n    function endpoint() external view returns (ILayerZeroEndpointV2 iEndpoint);\\n\\n    /**\\n     * @notice Retrieves the peer (OApp) associated with a corresponding endpoint.\\n     * @param _eid The endpoint ID.\\n     * @return peer The peer address (OApp instance) associated with the corresponding endpoint.\\n     */\\n    function peers(uint32 _eid) external view returns (bytes32 peer);\\n\\n    /**\\n     * @notice Sets the peer address (OApp instance) for a corresponding endpoint.\\n     * @param _eid The endpoint ID.\\n     * @param _peer The address of the peer to be associated with the corresponding endpoint.\\n     */\\n    function setPeer(uint32 _eid, bytes32 _peer) external;\\n\\n    /**\\n     * @notice Sets the delegate address for the OApp Core.\\n     * @param _delegate The address of the delegate to be set.\\n     */\\n    function setDelegate(address _delegate) external;\\n}\\n\",\"keccak256\":\"0x40e49f2de74506e1da5dcaed53a39853f691647f4ceb0fccc8f49a68d3f47c58\",\"license\":\"MIT\"},\"@layerzerolabs/oapp-evm/contracts/oapp/libs/OptionsBuilder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { BytesLib } from \\\"solidity-bytes-utils/contracts/BytesLib.sol\\\";\\nimport { SafeCast } from \\\"@openzeppelin/contracts/utils/math/SafeCast.sol\\\";\\n\\nimport { ExecutorOptions } from \\\"@layerzerolabs/lz-evm-messagelib-v2/contracts/libs/ExecutorOptions.sol\\\";\\nimport { DVNOptions } from \\\"@layerzerolabs/lz-evm-messagelib-v2/contracts/uln/libs/DVNOptions.sol\\\";\\n\\n/**\\n * @title OptionsBuilder\\n * @dev Library for building and encoding various message options.\\n */\\nlibrary OptionsBuilder {\\n    using SafeCast for uint256;\\n    using BytesLib for bytes;\\n\\n    // Constants for options types\\n    uint16 internal constant TYPE_1 = 1; // legacy options type 1\\n    uint16 internal constant TYPE_2 = 2; // legacy options type 2\\n    uint16 internal constant TYPE_3 = 3;\\n\\n    // Custom error message\\n    error InvalidSize(uint256 max, uint256 actual);\\n    error InvalidOptionType(uint16 optionType);\\n\\n    // Modifier to ensure only options of type 3 are used\\n    modifier onlyType3(bytes memory _options) {\\n        if (_options.toUint16(0) != TYPE_3) revert InvalidOptionType(_options.toUint16(0));\\n        _;\\n    }\\n\\n    /**\\n     * @dev Creates a new options container with type 3.\\n     * @return options The newly created options container.\\n     */\\n    function newOptions() internal pure returns (bytes memory) {\\n        return abi.encodePacked(TYPE_3);\\n    }\\n\\n    /**\\n     * @dev Adds an executor LZ receive option to the existing options.\\n     * @param _options The existing options container.\\n     * @param _gas The gasLimit used on the lzReceive() function in the OApp.\\n     * @param _value The msg.value passed to the lzReceive() function in the OApp.\\n     * @return options The updated options container.\\n     *\\n     * @dev When multiples of this option are added, they are summed by the executor\\n     * eg. if (_gas: 200k, and _value: 1 ether) AND (_gas: 100k, _value: 0.5 ether) are sent in an option to the LayerZeroEndpoint,\\n     * that becomes (300k, 1.5 ether) when the message is executed on the remote lzReceive() function.\\n     */\\n    function addExecutorLzReceiveOption(\\n        bytes memory _options,\\n        uint128 _gas,\\n        uint128 _value\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        bytes memory option = ExecutorOptions.encodeLzReceiveOption(_gas, _value);\\n        return addExecutorOption(_options, ExecutorOptions.OPTION_TYPE_LZRECEIVE, option);\\n    }\\n\\n    /**\\n     * @dev Adds an executor native drop option to the existing options.\\n     * @param _options The existing options container.\\n     * @param _amount The amount for the native value that is airdropped to the 'receiver'.\\n     * @param _receiver The receiver address for the native drop option.\\n     * @return options The updated options container.\\n     *\\n     * @dev When multiples of this option are added, they are summed by the executor on the remote chain.\\n     */\\n    function addExecutorNativeDropOption(\\n        bytes memory _options,\\n        uint128 _amount,\\n        bytes32 _receiver\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        bytes memory option = ExecutorOptions.encodeNativeDropOption(_amount, _receiver);\\n        return addExecutorOption(_options, ExecutorOptions.OPTION_TYPE_NATIVE_DROP, option);\\n    }\\n\\n    // /**\\n    //  * @dev Adds an executor native drop option to the existing options.\\n    //  * @param _options The existing options container.\\n    //  * @param _amount The amount for the native value that is airdropped to the 'receiver'.\\n    //  * @param _receiver The receiver address for the native drop option.\\n    //  * @return options The updated options container.\\n    //  *\\n    //  * @dev When multiples of this option are added, they are summed by the executor on the remote chain.\\n    //  */\\n    function addExecutorLzReadOption(\\n        bytes memory _options,\\n        uint128 _gas,\\n        uint32 _size,\\n        uint128 _value\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        bytes memory option = ExecutorOptions.encodeLzReadOption(_gas, _size, _value);\\n        return addExecutorOption(_options, ExecutorOptions.OPTION_TYPE_LZREAD, option);\\n    }\\n\\n    /**\\n     * @dev Adds an executor LZ compose option to the existing options.\\n     * @param _options The existing options container.\\n     * @param _index The index for the lzCompose() function call.\\n     * @param _gas The gasLimit for the lzCompose() function call.\\n     * @param _value The msg.value for the lzCompose() function call.\\n     * @return options The updated options container.\\n     *\\n     * @dev When multiples of this option are added, they are summed PER index by the executor on the remote chain.\\n     * @dev If the OApp sends N lzCompose calls on the remote, you must provide N incremented indexes starting with 0.\\n     * ie. When your remote OApp composes (N = 3) messages, you must set this option for index 0,1,2\\n     */\\n    function addExecutorLzComposeOption(\\n        bytes memory _options,\\n        uint16 _index,\\n        uint128 _gas,\\n        uint128 _value\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        bytes memory option = ExecutorOptions.encodeLzComposeOption(_index, _gas, _value);\\n        return addExecutorOption(_options, ExecutorOptions.OPTION_TYPE_LZCOMPOSE, option);\\n    }\\n\\n    /**\\n     * @dev Adds an executor ordered execution option to the existing options.\\n     * @param _options The existing options container.\\n     * @return options The updated options container.\\n     */\\n    function addExecutorOrderedExecutionOption(\\n        bytes memory _options\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        return addExecutorOption(_options, ExecutorOptions.OPTION_TYPE_ORDERED_EXECUTION, bytes(\\\"\\\"));\\n    }\\n\\n    /**\\n     * @dev Adds a DVN pre-crime option to the existing options.\\n     * @param _options The existing options container.\\n     * @param _dvnIdx The DVN index for the pre-crime option.\\n     * @return options The updated options container.\\n     */\\n    function addDVNPreCrimeOption(\\n        bytes memory _options,\\n        uint8 _dvnIdx\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        return addDVNOption(_options, _dvnIdx, DVNOptions.OPTION_TYPE_PRECRIME, bytes(\\\"\\\"));\\n    }\\n\\n    /**\\n     * @dev Adds an executor option to the existing options.\\n     * @param _options The existing options container.\\n     * @param _optionType The type of the executor option.\\n     * @param _option The encoded data for the executor option.\\n     * @return options The updated options container.\\n     */\\n    function addExecutorOption(\\n        bytes memory _options,\\n        uint8 _optionType,\\n        bytes memory _option\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        return\\n            abi.encodePacked(\\n                _options,\\n                ExecutorOptions.WORKER_ID,\\n                _option.length.toUint16() + 1, // +1 for optionType\\n                _optionType,\\n                _option\\n            );\\n    }\\n\\n    /**\\n     * @dev Adds a DVN option to the existing options.\\n     * @param _options The existing options container.\\n     * @param _dvnIdx The DVN index for the DVN option.\\n     * @param _optionType The type of the DVN option.\\n     * @param _option The encoded data for the DVN option.\\n     * @return options The updated options container.\\n     */\\n    function addDVNOption(\\n        bytes memory _options,\\n        uint8 _dvnIdx,\\n        uint8 _optionType,\\n        bytes memory _option\\n    ) internal pure onlyType3(_options) returns (bytes memory) {\\n        return\\n            abi.encodePacked(\\n                _options,\\n                DVNOptions.WORKER_ID,\\n                _option.length.toUint16() + 2, // +2 for optionType and dvnIdx\\n                _dvnIdx,\\n                _optionType,\\n                _option\\n            );\\n    }\\n\\n    /**\\n     * @dev Encodes legacy options of type 1.\\n     * @param _executionGas The gasLimit value passed to lzReceive().\\n     * @return legacyOptions The encoded legacy options.\\n     */\\n    function encodeLegacyOptionsType1(uint256 _executionGas) internal pure returns (bytes memory) {\\n        if (_executionGas > type(uint128).max) revert InvalidSize(type(uint128).max, _executionGas);\\n        return abi.encodePacked(TYPE_1, _executionGas);\\n    }\\n\\n    /**\\n     * @dev Encodes legacy options of type 2.\\n     * @param _executionGas The gasLimit value passed to lzReceive().\\n     * @param _nativeForDst The amount of native air dropped to the receiver.\\n     * @param _receiver The _nativeForDst receiver address.\\n     * @return legacyOptions The encoded legacy options of type 2.\\n     */\\n    function encodeLegacyOptionsType2(\\n        uint256 _executionGas,\\n        uint256 _nativeForDst,\\n        bytes memory _receiver // @dev Use bytes instead of bytes32 in legacy type 2 for _receiver.\\n    ) internal pure returns (bytes memory) {\\n        if (_executionGas > type(uint128).max) revert InvalidSize(type(uint128).max, _executionGas);\\n        if (_nativeForDst > type(uint128).max) revert InvalidSize(type(uint128).max, _nativeForDst);\\n        if (_receiver.length > 32) revert InvalidSize(32, _receiver.length);\\n        return abi.encodePacked(TYPE_2, _executionGas, _nativeForDst, _receiver);\\n    }\\n}\\n\",\"keccak256\":\"0xd40d91e8173cdb5bb821b4594f806b99344d5fd605bc6f2cf0fb21d5ab2500e3\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n    function __Ownable2Step_init() internal onlyInitializing {\\n        __Ownable_init_unchained();\\n    }\\n\\n    function __Ownable2Step_init_unchained() internal onlyInitializing {\\n    }\\n    address private _pendingOwner;\\n\\n    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n    /**\\n     * @dev Returns the address of the pending owner.\\n     */\\n    function pendingOwner() public view virtual returns (address) {\\n        return _pendingOwner;\\n    }\\n\\n    /**\\n     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n     * Can only be called by the current owner.\\n     */\\n    function transferOwnership(address newOwner) public virtual override onlyOwner {\\n        _pendingOwner = newOwner;\\n        emit OwnershipTransferStarted(owner(), newOwner);\\n    }\\n\\n    /**\\n     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n     * Internal function without access restriction.\\n     */\\n    function _transferOwnership(address newOwner) internal virtual override {\\n        delete _pendingOwner;\\n        super._transferOwnership(newOwner);\\n    }\\n\\n    /**\\n     * @dev The new owner accepts the ownership transfer.\\n     */\\n    function acceptOwnership() external {\\n        address sender = _msgSender();\\n        require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n        _transferOwnership(sender);\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xd712fb45b3ea0ab49679164e3895037adc26ce12879d5184feb040e01c1c07a9\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n    address private _owner;\\n\\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n    /**\\n     * @dev Initializes the contract setting the deployer as the initial owner.\\n     */\\n    function __Ownable_init() internal onlyInitializing {\\n        __Ownable_init_unchained();\\n    }\\n\\n    function __Ownable_init_unchained() internal onlyInitializing {\\n        _transferOwnership(_msgSender());\\n    }\\n\\n    /**\\n     * @dev Throws if called by any account other than the owner.\\n     */\\n    modifier onlyOwner() {\\n        _checkOwner();\\n        _;\\n    }\\n\\n    /**\\n     * @dev Returns the address of the current owner.\\n     */\\n    function owner() public view virtual returns (address) {\\n        return _owner;\\n    }\\n\\n    /**\\n     * @dev Throws if the sender is not the owner.\\n     */\\n    function _checkOwner() internal view virtual {\\n        require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n    }\\n\\n    /**\\n     * @dev Leaves the contract without owner. It will not be possible to call\\n     * `onlyOwner` functions anymore. Can only be called by the current owner.\\n     *\\n     * NOTE: Renouncing ownership will leave the contract without an owner,\\n     * thereby removing any functionality that is only available to the owner.\\n     */\\n    function renounceOwnership() public virtual onlyOwner {\\n        _transferOwnership(address(0));\\n    }\\n\\n    /**\\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n     * Can only be called by the current owner.\\n     */\\n    function transferOwnership(address newOwner) public virtual onlyOwner {\\n        require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n        _transferOwnership(newOwner);\\n    }\\n\\n    /**\\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n     * Internal function without access restriction.\\n     */\\n    function _transferOwnership(address newOwner) internal virtual {\\n        address oldOwner = _owner;\\n        _owner = newOwner;\\n        emit OwnershipTransferred(oldOwner, newOwner);\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x247c62047745915c0af6b955470a72d1696ebad4352d7d3011aef1a2463cd888\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n *     function initialize() initializer public {\\n *         __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n *     }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n *     function initializeV2() reinitializer(2) public {\\n *         __ERC20Permit_init(\\\"MyToken\\\");\\n *     }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n *     _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n    /**\\n     * @dev Indicates that the contract has been initialized.\\n     * @custom:oz-retyped-from bool\\n     */\\n    uint8 private _initialized;\\n\\n    /**\\n     * @dev Indicates that the contract is in the process of being initialized.\\n     */\\n    bool private _initializing;\\n\\n    /**\\n     * @dev Triggered when the contract has been initialized or reinitialized.\\n     */\\n    event Initialized(uint8 version);\\n\\n    /**\\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n     * `onlyInitializing` functions can be used to initialize parent contracts.\\n     *\\n     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n     * constructor.\\n     *\\n     * Emits an {Initialized} event.\\n     */\\n    modifier initializer() {\\n        bool isTopLevelCall = !_initializing;\\n        require(\\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n            \\\"Initializable: contract is already initialized\\\"\\n        );\\n        _initialized = 1;\\n        if (isTopLevelCall) {\\n            _initializing = true;\\n        }\\n        _;\\n        if (isTopLevelCall) {\\n            _initializing = false;\\n            emit Initialized(1);\\n        }\\n    }\\n\\n    /**\\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n     * used to initialize parent contracts.\\n     *\\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n     * are added through upgrades and that require initialization.\\n     *\\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\\n     *\\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n     * a contract, executing them in the right order is up to the developer or operator.\\n     *\\n     * WARNING: setting the version to 255 will prevent any future reinitialization.\\n     *\\n     * Emits an {Initialized} event.\\n     */\\n    modifier reinitializer(uint8 version) {\\n        require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n        _initialized = version;\\n        _initializing = true;\\n        _;\\n        _initializing = false;\\n        emit Initialized(version);\\n    }\\n\\n    /**\\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n     */\\n    modifier onlyInitializing() {\\n        require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n        _;\\n    }\\n\\n    /**\\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n     * through proxies.\\n     *\\n     * Emits an {Initialized} event the first time it is successfully executed.\\n     */\\n    function _disableInitializers() internal virtual {\\n        require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n        if (_initialized < type(uint8).max) {\\n            _initialized = type(uint8).max;\\n            emit Initialized(type(uint8).max);\\n        }\\n    }\\n\\n    /**\\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n     */\\n    function _getInitializedVersion() internal view returns (uint8) {\\n        return _initialized;\\n    }\\n\\n    /**\\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n     */\\n    function _isInitializing() internal view returns (bool) {\\n        return _initializing;\\n    }\\n}\\n\",\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n    /**\\n     * @dev Returns true if `account` is a contract.\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * It is unsafe to assume that an address for which this function returns\\n     * false is an externally-owned account (EOA) and not a contract.\\n     *\\n     * Among others, `isContract` will return false for the following\\n     * types of addresses:\\n     *\\n     *  - an externally-owned account\\n     *  - a contract in construction\\n     *  - an address where a contract will be created\\n     *  - an address where a contract lived, but was destroyed\\n     * ====\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n     *\\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n     * constructor.\\n     * ====\\n     */\\n    function isContract(address account) internal view returns (bool) {\\n        // This method relies on extcodesize/address.code.length, which returns 0\\n        // for contracts in construction, since the code is only stored at the end\\n        // of the constructor execution.\\n\\n        return account.code.length > 0;\\n    }\\n\\n    /**\\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n     * `recipient`, forwarding all available gas and reverting on errors.\\n     *\\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n     * imposed by `transfer`, making them unable to receive funds via\\n     * `transfer`. {sendValue} removes this limitation.\\n     *\\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n     *\\n     * IMPORTANT: because control is transferred to `recipient`, care must be\\n     * taken to not create reentrancy vulnerabilities. Consider using\\n     * {ReentrancyGuard} or the\\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n     */\\n    function sendValue(address payable recipient, uint256 amount) internal {\\n        require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n        (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n        require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n    }\\n\\n    /**\\n     * @dev Performs a Solidity function call using a low level `call`. A\\n     * plain `call` is an unsafe replacement for a function call: use this\\n     * function instead.\\n     *\\n     * If `target` reverts with a revert reason, it is bubbled up by this\\n     * function (like regular Solidity function calls).\\n     *\\n     * Returns the raw returned data. To convert to the expected return value,\\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n     *\\n     * Requirements:\\n     *\\n     * - `target` must be a contract.\\n     * - calling `target` with `data` must not revert.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n     * `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but also transferring `value` wei to `target`.\\n     *\\n     * Requirements:\\n     *\\n     * - the calling contract must have an ETH balance of at least `value`.\\n     * - the called Solidity function must be `payable`.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n        return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        (bool success, bytes memory returndata) = target.staticcall(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n     *\\n     * _Available since v4.8._\\n     */\\n    function verifyCallResultFromTarget(\\n        address target,\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        if (success) {\\n            if (returndata.length == 0) {\\n                // only check isContract if the call was successful and the return data is empty\\n                // otherwise we already know that it was a contract\\n                require(isContract(target), \\\"Address: call to non-contract\\\");\\n            }\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n     * revert reason or using the provided one.\\n     *\\n     * _Available since v4.3._\\n     */\\n    function verifyCallResult(\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal pure returns (bytes memory) {\\n        if (success) {\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n        // Look for revert reason and bubble it up if present\\n        if (returndata.length > 0) {\\n            // The easiest way to bubble the revert reason is using memory via assembly\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                let returndata_size := mload(returndata)\\n                revert(add(32, returndata), returndata_size)\\n            }\\n        } else {\\n            revert(errorMessage);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n    function __Context_init() internal onlyInitializing {\\n    }\\n\\n    function __Context_init_unchained() internal onlyInitializing {\\n    }\\n    function _msgSender() internal view virtual returns (address) {\\n        return msg.sender;\\n    }\\n\\n    function _msgData() internal view virtual returns (bytes calldata) {\\n        return msg.data;\\n    }\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n    /**\\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n     *\\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n     * {RoleAdminChanged} not being emitted signaling this.\\n     *\\n     * _Available since v3.1._\\n     */\\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n    /**\\n     * @dev Emitted when `account` is granted `role`.\\n     *\\n     * `sender` is the account that originated the contract call, an admin role\\n     * bearer except when using {AccessControl-_setupRole}.\\n     */\\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n    /**\\n     * @dev Emitted when `account` is revoked `role`.\\n     *\\n     * `sender` is the account that originated the contract call:\\n     *   - if using `revokeRole`, it is the admin role bearer\\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n     */\\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n    /**\\n     * @dev Returns `true` if `account` has been granted `role`.\\n     */\\n    function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n    /**\\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\\n     * {revokeRole}.\\n     *\\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n     */\\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n    /**\\n     * @dev Grants `role` to `account`.\\n     *\\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     */\\n    function grantRole(bytes32 role, address account) external;\\n\\n    /**\\n     * @dev Revokes `role` from `account`.\\n     *\\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must have ``role``'s admin role.\\n     */\\n    function revokeRole(bytes32 role, address account) external;\\n\\n    /**\\n     * @dev Revokes `role` from the calling account.\\n     *\\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n     * purpose is to provide a mechanism for accounts to lose their privileges\\n     * if they are compromised (such as when a trusted device is misplaced).\\n     *\\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\\n     * event.\\n     *\\n     * Requirements:\\n     *\\n     * - the caller must be `account`.\\n     */\\n    function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n    /**\\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n     * another (`to`).\\n     *\\n     * Note that `value` may be zero.\\n     */\\n    event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n    /**\\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n     * a call to {approve}. `value` is the new allowance.\\n     */\\n    event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n    /**\\n     * @dev Returns the amount of tokens in existence.\\n     */\\n    function totalSupply() external view returns (uint256);\\n\\n    /**\\n     * @dev Returns the amount of tokens owned by `account`.\\n     */\\n    function balanceOf(address account) external view returns (uint256);\\n\\n    /**\\n     * @dev Moves `amount` tokens from the caller's account to `to`.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transfer(address to, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Returns the remaining number of tokens that `spender` will be\\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n     * zero by default.\\n     *\\n     * This value changes when {approve} or {transferFrom} are called.\\n     */\\n    function allowance(address owner, address spender) external view returns (uint256);\\n\\n    /**\\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n     * that someone may use both the old and the new allowance by unfortunate\\n     * transaction ordering. One possible solution to mitigate this race\\n     * condition is to first reduce the spender's allowance to 0 and set the\\n     * desired value afterwards:\\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n     *\\n     * Emits an {Approval} event.\\n     */\\n    function approve(address spender, uint256 amount) external returns (bool);\\n\\n    /**\\n     * @dev Moves `amount` tokens from `from` to `to` using the\\n     * allowance mechanism. `amount` is then deducted from the caller's\\n     * allowance.\\n     *\\n     * Returns a boolean value indicating whether the operation succeeded.\\n     *\\n     * Emits a {Transfer} event.\\n     */\\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * ==== Security Considerations\\n *\\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\\n * generally recommended is:\\n *\\n * ```solidity\\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\\n *     doThing(..., value);\\n * }\\n *\\n * function doThing(..., uint256 value) public {\\n *     token.safeTransferFrom(msg.sender, address(this), value);\\n *     ...\\n * }\\n * ```\\n *\\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\\n * {SafeERC20-safeTransferFrom}).\\n *\\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\\n * contracts should have entry points that don't rely on permit.\\n */\\ninterface IERC20Permit {\\n    /**\\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n     * given ``owner``'s signed approval.\\n     *\\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n     * ordering also apply here.\\n     *\\n     * Emits an {Approval} event.\\n     *\\n     * Requirements:\\n     *\\n     * - `spender` cannot be the zero address.\\n     * - `deadline` must be a timestamp in the future.\\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n     * over the EIP712-formatted function arguments.\\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\\n     *\\n     * For more information on the signature format, see the\\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n     * section].\\n     *\\n     * CAUTION: See Security Considerations above.\\n     */\\n    function permit(\\n        address owner,\\n        address spender,\\n        uint256 value,\\n        uint256 deadline,\\n        uint8 v,\\n        bytes32 r,\\n        bytes32 s\\n    ) external;\\n\\n    /**\\n     * @dev Returns the current nonce for `owner`. This value must be\\n     * included whenever a signature is generated for {permit}.\\n     *\\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n     * prevents a signature from being used multiple times.\\n     */\\n    function nonces(address owner) external view returns (uint256);\\n\\n    /**\\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n     */\\n    // solhint-disable-next-line func-name-mixedcase\\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n    using Address for address;\\n\\n    /**\\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful.\\n     */\\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n    }\\n\\n    /**\\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n     */\\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n    }\\n\\n    /**\\n     * @dev Deprecated. This function has issues similar to the ones found in\\n     * {IERC20-approve}, and its usage is discouraged.\\n     *\\n     * Whenever possible, use {safeIncreaseAllowance} and\\n     * {safeDecreaseAllowance} instead.\\n     */\\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n        // safeApprove should only be called when setting an initial allowance,\\n        // or when resetting it to zero. To increase and decrease it, use\\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n        require(\\n            (value == 0) || (token.allowance(address(this), spender) == 0),\\n            \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n        );\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n    }\\n\\n    /**\\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful.\\n     */\\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n        uint256 oldAllowance = token.allowance(address(this), spender);\\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n    }\\n\\n    /**\\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful.\\n     */\\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n        unchecked {\\n            uint256 oldAllowance = token.allowance(address(this), spender);\\n            require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n        }\\n    }\\n\\n    /**\\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\\n     * to be set to zero before setting it to a non-zero value, such as USDT.\\n     */\\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n        if (!_callOptionalReturnBool(token, approvalCall)) {\\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n            _callOptionalReturn(token, approvalCall);\\n        }\\n    }\\n\\n    /**\\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n     * Revert on invalid signature.\\n     */\\n    function safePermit(\\n        IERC20Permit token,\\n        address owner,\\n        address spender,\\n        uint256 value,\\n        uint256 deadline,\\n        uint8 v,\\n        bytes32 r,\\n        bytes32 s\\n    ) internal {\\n        uint256 nonceBefore = token.nonces(owner);\\n        token.permit(owner, spender, value, deadline, v, r, s);\\n        uint256 nonceAfter = token.nonces(owner);\\n        require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n    }\\n\\n    /**\\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\\n     * @param token The token targeted by the call.\\n     * @param data The call data (encoded using abi.encode or one of its variants).\\n     */\\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n        // the target address contains contract code and also asserts for success in the low-level call.\\n\\n        bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n    }\\n\\n    /**\\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\\n     * @param token The token targeted by the call.\\n     * @param data The call data (encoded using abi.encode or one of its variants).\\n     *\\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n     */\\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n        // and not revert is the subcall reverts.\\n\\n        (bool success, bytes memory returndata) = address(token).call(data);\\n        return\\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\\n    }\\n}\\n\",\"keccak256\":\"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n    /**\\n     * @dev Returns true if `account` is a contract.\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * It is unsafe to assume that an address for which this function returns\\n     * false is an externally-owned account (EOA) and not a contract.\\n     *\\n     * Among others, `isContract` will return false for the following\\n     * types of addresses:\\n     *\\n     *  - an externally-owned account\\n     *  - a contract in construction\\n     *  - an address where a contract will be created\\n     *  - an address where a contract lived, but was destroyed\\n     *\\n     * Furthermore, `isContract` will also return true if the target contract within\\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n     * which only has an effect at the end of a transaction.\\n     * ====\\n     *\\n     * [IMPORTANT]\\n     * ====\\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n     *\\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n     * constructor.\\n     * ====\\n     */\\n    function isContract(address account) internal view returns (bool) {\\n        // This method relies on extcodesize/address.code.length, which returns 0\\n        // for contracts in construction, since the code is only stored at the end\\n        // of the constructor execution.\\n\\n        return account.code.length > 0;\\n    }\\n\\n    /**\\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n     * `recipient`, forwarding all available gas and reverting on errors.\\n     *\\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n     * imposed by `transfer`, making them unable to receive funds via\\n     * `transfer`. {sendValue} removes this limitation.\\n     *\\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n     *\\n     * IMPORTANT: because control is transferred to `recipient`, care must be\\n     * taken to not create reentrancy vulnerabilities. Consider using\\n     * {ReentrancyGuard} or the\\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n     */\\n    function sendValue(address payable recipient, uint256 amount) internal {\\n        require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n        (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n        require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n    }\\n\\n    /**\\n     * @dev Performs a Solidity function call using a low level `call`. A\\n     * plain `call` is an unsafe replacement for a function call: use this\\n     * function instead.\\n     *\\n     * If `target` reverts with a revert reason, it is bubbled up by this\\n     * function (like regular Solidity function calls).\\n     *\\n     * Returns the raw returned data. To convert to the expected return value,\\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n     *\\n     * Requirements:\\n     *\\n     * - `target` must be a contract.\\n     * - calling `target` with `data` must not revert.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n     * `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, 0, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but also transferring `value` wei to `target`.\\n     *\\n     * Requirements:\\n     *\\n     * - the calling contract must have an ETH balance of at least `value`.\\n     * - the called Solidity function must be `payable`.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n        return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\\n     *\\n     * _Available since v3.1._\\n     */\\n    function functionCallWithValue(\\n        address target,\\n        bytes memory data,\\n        uint256 value,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n        return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a static call.\\n     *\\n     * _Available since v3.3._\\n     */\\n    function functionStaticCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        (bool success, bytes memory returndata) = target.staticcall(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n     * but performing a delegate call.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n        return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n    }\\n\\n    /**\\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n     * but performing a delegate call.\\n     *\\n     * _Available since v3.4._\\n     */\\n    function functionDelegateCall(\\n        address target,\\n        bytes memory data,\\n        string memory errorMessage\\n    ) internal returns (bytes memory) {\\n        (bool success, bytes memory returndata) = target.delegatecall(data);\\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n     *\\n     * _Available since v4.8._\\n     */\\n    function verifyCallResultFromTarget(\\n        address target,\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal view returns (bytes memory) {\\n        if (success) {\\n            if (returndata.length == 0) {\\n                // only check isContract if the call was successful and the return data is empty\\n                // otherwise we already know that it was a contract\\n                require(isContract(target), \\\"Address: call to non-contract\\\");\\n            }\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    /**\\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n     * revert reason or using the provided one.\\n     *\\n     * _Available since v4.3._\\n     */\\n    function verifyCallResult(\\n        bool success,\\n        bytes memory returndata,\\n        string memory errorMessage\\n    ) internal pure returns (bytes memory) {\\n        if (success) {\\n            return returndata;\\n        } else {\\n            _revert(returndata, errorMessage);\\n        }\\n    }\\n\\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n        // Look for revert reason and bubble it up if present\\n        if (returndata.length > 0) {\\n            // The easiest way to bubble the revert reason is using memory via assembly\\n            /// @solidity memory-safe-assembly\\n            assembly {\\n                let returndata_size := mload(returndata)\\n                revert(add(32, returndata), returndata_size)\\n            }\\n        } else {\\n            revert(errorMessage);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n *\\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\\n * all math on `uint256` and `int256` and then downcasting.\\n */\\nlibrary SafeCast {\\n    /**\\n     * @dev Returns the downcasted uint248 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint248).\\n     *\\n     * Counterpart to Solidity's `uint248` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 248 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint248(uint256 value) internal pure returns (uint248) {\\n        require(value <= type(uint248).max, \\\"SafeCast: value doesn't fit in 248 bits\\\");\\n        return uint248(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint240 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint240).\\n     *\\n     * Counterpart to Solidity's `uint240` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 240 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint240(uint256 value) internal pure returns (uint240) {\\n        require(value <= type(uint240).max, \\\"SafeCast: value doesn't fit in 240 bits\\\");\\n        return uint240(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint232 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint232).\\n     *\\n     * Counterpart to Solidity's `uint232` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 232 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint232(uint256 value) internal pure returns (uint232) {\\n        require(value <= type(uint232).max, \\\"SafeCast: value doesn't fit in 232 bits\\\");\\n        return uint232(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint224 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint224).\\n     *\\n     * Counterpart to Solidity's `uint224` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 224 bits\\n     *\\n     * _Available since v4.2._\\n     */\\n    function toUint224(uint256 value) internal pure returns (uint224) {\\n        require(value <= type(uint224).max, \\\"SafeCast: value doesn't fit in 224 bits\\\");\\n        return uint224(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint216 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint216).\\n     *\\n     * Counterpart to Solidity's `uint216` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 216 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint216(uint256 value) internal pure returns (uint216) {\\n        require(value <= type(uint216).max, \\\"SafeCast: value doesn't fit in 216 bits\\\");\\n        return uint216(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint208 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint208).\\n     *\\n     * Counterpart to Solidity's `uint208` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 208 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint208(uint256 value) internal pure returns (uint208) {\\n        require(value <= type(uint208).max, \\\"SafeCast: value doesn't fit in 208 bits\\\");\\n        return uint208(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint200 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint200).\\n     *\\n     * Counterpart to Solidity's `uint200` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 200 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint200(uint256 value) internal pure returns (uint200) {\\n        require(value <= type(uint200).max, \\\"SafeCast: value doesn't fit in 200 bits\\\");\\n        return uint200(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint192 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint192).\\n     *\\n     * Counterpart to Solidity's `uint192` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 192 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint192(uint256 value) internal pure returns (uint192) {\\n        require(value <= type(uint192).max, \\\"SafeCast: value doesn't fit in 192 bits\\\");\\n        return uint192(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint184 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint184).\\n     *\\n     * Counterpart to Solidity's `uint184` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 184 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint184(uint256 value) internal pure returns (uint184) {\\n        require(value <= type(uint184).max, \\\"SafeCast: value doesn't fit in 184 bits\\\");\\n        return uint184(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint176 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint176).\\n     *\\n     * Counterpart to Solidity's `uint176` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 176 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint176(uint256 value) internal pure returns (uint176) {\\n        require(value <= type(uint176).max, \\\"SafeCast: value doesn't fit in 176 bits\\\");\\n        return uint176(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint168 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint168).\\n     *\\n     * Counterpart to Solidity's `uint168` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 168 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint168(uint256 value) internal pure returns (uint168) {\\n        require(value <= type(uint168).max, \\\"SafeCast: value doesn't fit in 168 bits\\\");\\n        return uint168(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint160 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint160).\\n     *\\n     * Counterpart to Solidity's `uint160` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 160 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint160(uint256 value) internal pure returns (uint160) {\\n        require(value <= type(uint160).max, \\\"SafeCast: value doesn't fit in 160 bits\\\");\\n        return uint160(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint152 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint152).\\n     *\\n     * Counterpart to Solidity's `uint152` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 152 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint152(uint256 value) internal pure returns (uint152) {\\n        require(value <= type(uint152).max, \\\"SafeCast: value doesn't fit in 152 bits\\\");\\n        return uint152(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint144 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint144).\\n     *\\n     * Counterpart to Solidity's `uint144` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 144 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint144(uint256 value) internal pure returns (uint144) {\\n        require(value <= type(uint144).max, \\\"SafeCast: value doesn't fit in 144 bits\\\");\\n        return uint144(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint136 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint136).\\n     *\\n     * Counterpart to Solidity's `uint136` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 136 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint136(uint256 value) internal pure returns (uint136) {\\n        require(value <= type(uint136).max, \\\"SafeCast: value doesn't fit in 136 bits\\\");\\n        return uint136(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint128 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint128).\\n     *\\n     * Counterpart to Solidity's `uint128` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 128 bits\\n     *\\n     * _Available since v2.5._\\n     */\\n    function toUint128(uint256 value) internal pure returns (uint128) {\\n        require(value <= type(uint128).max, \\\"SafeCast: value doesn't fit in 128 bits\\\");\\n        return uint128(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint120 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint120).\\n     *\\n     * Counterpart to Solidity's `uint120` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 120 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint120(uint256 value) internal pure returns (uint120) {\\n        require(value <= type(uint120).max, \\\"SafeCast: value doesn't fit in 120 bits\\\");\\n        return uint120(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint112 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint112).\\n     *\\n     * Counterpart to Solidity's `uint112` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 112 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint112(uint256 value) internal pure returns (uint112) {\\n        require(value <= type(uint112).max, \\\"SafeCast: value doesn't fit in 112 bits\\\");\\n        return uint112(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint104 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint104).\\n     *\\n     * Counterpart to Solidity's `uint104` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 104 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint104(uint256 value) internal pure returns (uint104) {\\n        require(value <= type(uint104).max, \\\"SafeCast: value doesn't fit in 104 bits\\\");\\n        return uint104(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint96 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint96).\\n     *\\n     * Counterpart to Solidity's `uint96` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 96 bits\\n     *\\n     * _Available since v4.2._\\n     */\\n    function toUint96(uint256 value) internal pure returns (uint96) {\\n        require(value <= type(uint96).max, \\\"SafeCast: value doesn't fit in 96 bits\\\");\\n        return uint96(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint88 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint88).\\n     *\\n     * Counterpart to Solidity's `uint88` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 88 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint88(uint256 value) internal pure returns (uint88) {\\n        require(value <= type(uint88).max, \\\"SafeCast: value doesn't fit in 88 bits\\\");\\n        return uint88(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint80 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint80).\\n     *\\n     * Counterpart to Solidity's `uint80` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 80 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint80(uint256 value) internal pure returns (uint80) {\\n        require(value <= type(uint80).max, \\\"SafeCast: value doesn't fit in 80 bits\\\");\\n        return uint80(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint72 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint72).\\n     *\\n     * Counterpart to Solidity's `uint72` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 72 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint72(uint256 value) internal pure returns (uint72) {\\n        require(value <= type(uint72).max, \\\"SafeCast: value doesn't fit in 72 bits\\\");\\n        return uint72(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint64 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint64).\\n     *\\n     * Counterpart to Solidity's `uint64` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 64 bits\\n     *\\n     * _Available since v2.5._\\n     */\\n    function toUint64(uint256 value) internal pure returns (uint64) {\\n        require(value <= type(uint64).max, \\\"SafeCast: value doesn't fit in 64 bits\\\");\\n        return uint64(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint56 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint56).\\n     *\\n     * Counterpart to Solidity's `uint56` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 56 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint56(uint256 value) internal pure returns (uint56) {\\n        require(value <= type(uint56).max, \\\"SafeCast: value doesn't fit in 56 bits\\\");\\n        return uint56(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint48 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint48).\\n     *\\n     * Counterpart to Solidity's `uint48` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 48 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint48(uint256 value) internal pure returns (uint48) {\\n        require(value <= type(uint48).max, \\\"SafeCast: value doesn't fit in 48 bits\\\");\\n        return uint48(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint40 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint40).\\n     *\\n     * Counterpart to Solidity's `uint40` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 40 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint40(uint256 value) internal pure returns (uint40) {\\n        require(value <= type(uint40).max, \\\"SafeCast: value doesn't fit in 40 bits\\\");\\n        return uint40(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint32 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint32).\\n     *\\n     * Counterpart to Solidity's `uint32` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 32 bits\\n     *\\n     * _Available since v2.5._\\n     */\\n    function toUint32(uint256 value) internal pure returns (uint32) {\\n        require(value <= type(uint32).max, \\\"SafeCast: value doesn't fit in 32 bits\\\");\\n        return uint32(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint24 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint24).\\n     *\\n     * Counterpart to Solidity's `uint24` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 24 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toUint24(uint256 value) internal pure returns (uint24) {\\n        require(value <= type(uint24).max, \\\"SafeCast: value doesn't fit in 24 bits\\\");\\n        return uint24(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint16 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint16).\\n     *\\n     * Counterpart to Solidity's `uint16` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 16 bits\\n     *\\n     * _Available since v2.5._\\n     */\\n    function toUint16(uint256 value) internal pure returns (uint16) {\\n        require(value <= type(uint16).max, \\\"SafeCast: value doesn't fit in 16 bits\\\");\\n        return uint16(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted uint8 from uint256, reverting on\\n     * overflow (when the input is greater than largest uint8).\\n     *\\n     * Counterpart to Solidity's `uint8` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 8 bits\\n     *\\n     * _Available since v2.5._\\n     */\\n    function toUint8(uint256 value) internal pure returns (uint8) {\\n        require(value <= type(uint8).max, \\\"SafeCast: value doesn't fit in 8 bits\\\");\\n        return uint8(value);\\n    }\\n\\n    /**\\n     * @dev Converts a signed int256 into an unsigned uint256.\\n     *\\n     * Requirements:\\n     *\\n     * - input must be greater than or equal to 0.\\n     *\\n     * _Available since v3.0._\\n     */\\n    function toUint256(int256 value) internal pure returns (uint256) {\\n        require(value >= 0, \\\"SafeCast: value must be positive\\\");\\n        return uint256(value);\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int248 from int256, reverting on\\n     * overflow (when the input is less than smallest int248 or\\n     * greater than largest int248).\\n     *\\n     * Counterpart to Solidity's `int248` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 248 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n        downcasted = int248(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 248 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int240 from int256, reverting on\\n     * overflow (when the input is less than smallest int240 or\\n     * greater than largest int240).\\n     *\\n     * Counterpart to Solidity's `int240` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 240 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n        downcasted = int240(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 240 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int232 from int256, reverting on\\n     * overflow (when the input is less than smallest int232 or\\n     * greater than largest int232).\\n     *\\n     * Counterpart to Solidity's `int232` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 232 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n        downcasted = int232(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 232 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int224 from int256, reverting on\\n     * overflow (when the input is less than smallest int224 or\\n     * greater than largest int224).\\n     *\\n     * Counterpart to Solidity's `int224` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 224 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n        downcasted = int224(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 224 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int216 from int256, reverting on\\n     * overflow (when the input is less than smallest int216 or\\n     * greater than largest int216).\\n     *\\n     * Counterpart to Solidity's `int216` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 216 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n        downcasted = int216(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 216 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int208 from int256, reverting on\\n     * overflow (when the input is less than smallest int208 or\\n     * greater than largest int208).\\n     *\\n     * Counterpart to Solidity's `int208` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 208 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n        downcasted = int208(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 208 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int200 from int256, reverting on\\n     * overflow (when the input is less than smallest int200 or\\n     * greater than largest int200).\\n     *\\n     * Counterpart to Solidity's `int200` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 200 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n        downcasted = int200(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 200 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int192 from int256, reverting on\\n     * overflow (when the input is less than smallest int192 or\\n     * greater than largest int192).\\n     *\\n     * Counterpart to Solidity's `int192` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 192 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n        downcasted = int192(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 192 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int184 from int256, reverting on\\n     * overflow (when the input is less than smallest int184 or\\n     * greater than largest int184).\\n     *\\n     * Counterpart to Solidity's `int184` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 184 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n        downcasted = int184(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 184 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int176 from int256, reverting on\\n     * overflow (when the input is less than smallest int176 or\\n     * greater than largest int176).\\n     *\\n     * Counterpart to Solidity's `int176` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 176 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n        downcasted = int176(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 176 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int168 from int256, reverting on\\n     * overflow (when the input is less than smallest int168 or\\n     * greater than largest int168).\\n     *\\n     * Counterpart to Solidity's `int168` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 168 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n        downcasted = int168(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 168 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int160 from int256, reverting on\\n     * overflow (when the input is less than smallest int160 or\\n     * greater than largest int160).\\n     *\\n     * Counterpart to Solidity's `int160` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 160 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n        downcasted = int160(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 160 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int152 from int256, reverting on\\n     * overflow (when the input is less than smallest int152 or\\n     * greater than largest int152).\\n     *\\n     * Counterpart to Solidity's `int152` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 152 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n        downcasted = int152(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 152 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int144 from int256, reverting on\\n     * overflow (when the input is less than smallest int144 or\\n     * greater than largest int144).\\n     *\\n     * Counterpart to Solidity's `int144` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 144 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n        downcasted = int144(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 144 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int136 from int256, reverting on\\n     * overflow (when the input is less than smallest int136 or\\n     * greater than largest int136).\\n     *\\n     * Counterpart to Solidity's `int136` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 136 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n        downcasted = int136(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 136 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int128 from int256, reverting on\\n     * overflow (when the input is less than smallest int128 or\\n     * greater than largest int128).\\n     *\\n     * Counterpart to Solidity's `int128` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 128 bits\\n     *\\n     * _Available since v3.1._\\n     */\\n    function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n        downcasted = int128(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 128 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int120 from int256, reverting on\\n     * overflow (when the input is less than smallest int120 or\\n     * greater than largest int120).\\n     *\\n     * Counterpart to Solidity's `int120` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 120 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n        downcasted = int120(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 120 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int112 from int256, reverting on\\n     * overflow (when the input is less than smallest int112 or\\n     * greater than largest int112).\\n     *\\n     * Counterpart to Solidity's `int112` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 112 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n        downcasted = int112(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 112 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int104 from int256, reverting on\\n     * overflow (when the input is less than smallest int104 or\\n     * greater than largest int104).\\n     *\\n     * Counterpart to Solidity's `int104` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 104 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n        downcasted = int104(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 104 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int96 from int256, reverting on\\n     * overflow (when the input is less than smallest int96 or\\n     * greater than largest int96).\\n     *\\n     * Counterpart to Solidity's `int96` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 96 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n        downcasted = int96(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 96 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int88 from int256, reverting on\\n     * overflow (when the input is less than smallest int88 or\\n     * greater than largest int88).\\n     *\\n     * Counterpart to Solidity's `int88` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 88 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n        downcasted = int88(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 88 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int80 from int256, reverting on\\n     * overflow (when the input is less than smallest int80 or\\n     * greater than largest int80).\\n     *\\n     * Counterpart to Solidity's `int80` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 80 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n        downcasted = int80(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 80 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int72 from int256, reverting on\\n     * overflow (when the input is less than smallest int72 or\\n     * greater than largest int72).\\n     *\\n     * Counterpart to Solidity's `int72` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 72 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n        downcasted = int72(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 72 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int64 from int256, reverting on\\n     * overflow (when the input is less than smallest int64 or\\n     * greater than largest int64).\\n     *\\n     * Counterpart to Solidity's `int64` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 64 bits\\n     *\\n     * _Available since v3.1._\\n     */\\n    function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n        downcasted = int64(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 64 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int56 from int256, reverting on\\n     * overflow (when the input is less than smallest int56 or\\n     * greater than largest int56).\\n     *\\n     * Counterpart to Solidity's `int56` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 56 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n        downcasted = int56(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 56 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int48 from int256, reverting on\\n     * overflow (when the input is less than smallest int48 or\\n     * greater than largest int48).\\n     *\\n     * Counterpart to Solidity's `int48` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 48 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n        downcasted = int48(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 48 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int40 from int256, reverting on\\n     * overflow (when the input is less than smallest int40 or\\n     * greater than largest int40).\\n     *\\n     * Counterpart to Solidity's `int40` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 40 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n        downcasted = int40(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 40 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int32 from int256, reverting on\\n     * overflow (when the input is less than smallest int32 or\\n     * greater than largest int32).\\n     *\\n     * Counterpart to Solidity's `int32` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 32 bits\\n     *\\n     * _Available since v3.1._\\n     */\\n    function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n        downcasted = int32(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 32 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int24 from int256, reverting on\\n     * overflow (when the input is less than smallest int24 or\\n     * greater than largest int24).\\n     *\\n     * Counterpart to Solidity's `int24` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 24 bits\\n     *\\n     * _Available since v4.7._\\n     */\\n    function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n        downcasted = int24(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 24 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int16 from int256, reverting on\\n     * overflow (when the input is less than smallest int16 or\\n     * greater than largest int16).\\n     *\\n     * Counterpart to Solidity's `int16` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 16 bits\\n     *\\n     * _Available since v3.1._\\n     */\\n    function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n        downcasted = int16(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 16 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Returns the downcasted int8 from int256, reverting on\\n     * overflow (when the input is less than smallest int8 or\\n     * greater than largest int8).\\n     *\\n     * Counterpart to Solidity's `int8` operator.\\n     *\\n     * Requirements:\\n     *\\n     * - input must fit into 8 bits\\n     *\\n     * _Available since v3.1._\\n     */\\n    function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n        downcasted = int8(value);\\n        require(downcasted == value, \\\"SafeCast: value doesn't fit in 8 bits\\\");\\n    }\\n\\n    /**\\n     * @dev Converts an unsigned uint256 into a signed int256.\\n     *\\n     * Requirements:\\n     *\\n     * - input must be less than or equal to maxInt256.\\n     *\\n     * _Available since v3.0._\\n     */\\n    function toInt256(uint256 value) internal pure returns (int256) {\\n        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n        require(value <= uint256(type(int256).max), \\\"SafeCast: value doesn't fit in an int256\\\");\\n        return int256(value);\\n    }\\n}\\n\",\"keccak256\":\"0x52a8cfb0f5239d11b457dcdd1b326992ef672714ca8da71a157255bddd13f3ad\",\"license\":\"MIT\"},\"@venusprotocol/solidity-utilities/contracts/validators.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\n/// @notice Thrown if the supplied address is a zero address where it is not allowed\\nerror ZeroAddressNotAllowed();\\n\\n/// @notice Thrown if the supplied value is 0 where it is not allowed\\nerror ZeroValueNotAllowed();\\n\\n/// @notice Checks if the provided address is nonzero, reverts otherwise\\n/// @param address_ Address to check\\n/// @custom:error ZeroAddressNotAllowed is thrown if the provided address is a zero address\\nfunction ensureNonzeroAddress(address address_) pure {\\n    if (address_ == address(0)) {\\n        revert ZeroAddressNotAllowed();\\n    }\\n}\\n\\n/// @notice Checks if the provided value is nonzero, reverts otherwise\\n/// @param value_ Value to check\\n/// @custom:error ZeroValueNotAllowed is thrown if the provided value is 0\\nfunction ensureNonzeroValue(uint256 value_) pure {\\n    if (value_ == 0) {\\n        revert ZeroValueNotAllowed();\\n    }\\n}\\n\",\"keccak256\":\"0xdb88e14d50dd21889ca3329d755673d022c47e8da005b6a545c7f69c2c4b7b86\",\"license\":\"BSD-3-Clause\"},\"contracts/Governance/AccessControlledV8.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\nimport \\\"./IAccessControlManagerV8.sol\\\";\\n\\n/**\\n * @title AccessControlledV8\\n * @author Venus\\n * @notice This contract is helper between access control manager and actual contract. This contract further inherited by other contract (using solidity 0.8.13)\\n * to integrate access controlled mechanism. It provides initialise methods and verifying access methods.\\n */\\nabstract contract AccessControlledV8 is Initializable, Ownable2StepUpgradeable {\\n    /// @notice Access control manager contract\\n    IAccessControlManagerV8 internal _accessControlManager;\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[49] private __gap;\\n\\n    /// @notice Emitted when access control manager contract address is changed\\n    event NewAccessControlManager(address oldAccessControlManager, address newAccessControlManager);\\n\\n    /// @notice Thrown when the action is prohibited by AccessControlManager\\n    error Unauthorized(address sender, address calledContract, string methodSignature);\\n\\n    function __AccessControlled_init(address accessControlManager_) internal onlyInitializing {\\n        __Ownable2Step_init();\\n        __AccessControlled_init_unchained(accessControlManager_);\\n    }\\n\\n    function __AccessControlled_init_unchained(address accessControlManager_) internal onlyInitializing {\\n        _setAccessControlManager(accessControlManager_);\\n    }\\n\\n    /**\\n     * @notice Sets the address of AccessControlManager\\n     * @dev Admin function to set address of AccessControlManager\\n     * @param accessControlManager_ The new address of the AccessControlManager\\n     * @custom:event Emits NewAccessControlManager event\\n     * @custom:access Only Governance\\n     */\\n    function setAccessControlManager(address accessControlManager_) external onlyOwner {\\n        _setAccessControlManager(accessControlManager_);\\n    }\\n\\n    /**\\n     * @notice Returns the address of the access control manager contract\\n     */\\n    function accessControlManager() external view returns (IAccessControlManagerV8) {\\n        return _accessControlManager;\\n    }\\n\\n    /**\\n     * @dev Internal function to set address of AccessControlManager\\n     * @param accessControlManager_ The new address of the AccessControlManager\\n     */\\n    function _setAccessControlManager(address accessControlManager_) internal {\\n        require(address(accessControlManager_) != address(0), \\\"invalid acess control manager address\\\");\\n        address oldAccessControlManager = address(_accessControlManager);\\n        _accessControlManager = IAccessControlManagerV8(accessControlManager_);\\n        emit NewAccessControlManager(oldAccessControlManager, accessControlManager_);\\n    }\\n\\n    /**\\n     * @notice Reverts if the call is not allowed by AccessControlManager\\n     * @param signature Method signature\\n     */\\n    function _checkAccessAllowed(string memory signature) internal view {\\n        bool isAllowedToCall = _accessControlManager.isAllowedToCall(msg.sender, signature);\\n\\n        if (!isAllowedToCall) {\\n            revert Unauthorized(msg.sender, address(this), signature);\\n        }\\n    }\\n}\\n\",\"keccak256\":\"0xfe0fd441c84ac907cabc88db69ef04f6d7532d770c7e6a1dfe6e7d6305debb49\",\"license\":\"BSD-3-Clause\"},\"contracts/Governance/IAccessControlManagerV8.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity ^0.8.25;\\n\\nimport \\\"@openzeppelin/contracts/access/IAccessControl.sol\\\";\\n\\n/**\\n * @title IAccessControlManagerV8\\n * @author Venus\\n * @notice Interface implemented by the `AccessControlManagerV8` contract.\\n */\\ninterface IAccessControlManagerV8 is IAccessControl {\\n    function giveCallPermission(address contractAddress, string calldata functionSig, address accountToPermit) external;\\n\\n    function revokeCallPermission(\\n        address contractAddress,\\n        string calldata functionSig,\\n        address accountToRevoke\\n    ) external;\\n\\n    function isAllowedToCall(address account, string calldata functionSig) external view returns (bool);\\n\\n    function hasPermission(\\n        address account,\\n        address contractAddress,\\n        string calldata functionSig\\n    ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xaa29b098440d0b3a131c5ecdf25ce548790c1b5ac7bf9b5c0264b6af6f7a1e0b\",\"license\":\"BSD-3-Clause\"},\"contracts/RiskSteward/Interfaces/IRiskOracle.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.25;\\n\\n/**\\n * @notice Struct representing a risk parameter update published by the Risk Oracle\\n * @param referenceId External reference ID, potentially linking to a document or off-chain data\\n * @param updateId Unique identifier for this specific update\\n * @param market Address of the market for which the parameter update applies\\n * @param updateType Classification of the update type for validation purposes (human-readable)\\n * @param updateTypeKey Keccak256 hash of updateType for efficient comparisons\\n * @param newValue Encoded new value of the risk parameter, flexible for various data types\\n * @param previousValue Previous value of the parameter for historical comparison\\n * @param timestamp Block timestamp when the update was published\\n * @param publisher Address of the account that published this update\\n * @param poolId Pool identifier for eMode-style collateral configuration (0 for regular markets)\\n * @param destLzEid LayerZero endpoint ID of the destination chain (0 for local execution)\\n * @param additionalData Additional metadata or data associated with the update\\n */\\nstruct RiskParameterUpdate {\\n    string referenceId;\\n    uint256 updateId;\\n    address market;\\n    string updateType;\\n    bytes32 updateTypeKey;\\n    bytes newValue;\\n    bytes previousValue;\\n    uint256 timestamp;\\n    address publisher;\\n    uint96 poolId;\\n    uint32 destLzEid;\\n    bytes additionalData;\\n}\\n\\n/**\\n * @title IRiskOracle\\n * @author Venus\\n * @notice Interface for Risk Oracle contract that manages and publishes risk parameter updates\\n */\\ninterface IRiskOracle {\\n    /// @notice Event emitted when a risk parameter update is published\\n    event UpdatePublished(\\n        string referenceId,\\n        uint256 indexed updateId,\\n        address indexed market,\\n        string indexed updateType,\\n        bytes newValue,\\n        bytes previousValue,\\n        uint256 timestamp,\\n        address publisher,\\n        bytes additionalData\\n    );\\n\\n    /// @notice Event emitted when a new authorized sender is added\\n    event AuthorizedSenderAdded(address indexed sender);\\n\\n    /// @notice Event emitted when an authorized sender is removed\\n    event AuthorizedSenderRemoved(address indexed sender);\\n\\n    /// @notice Event emitted when a new update type is added\\n    event UpdateTypeAdded(string indexed updateType);\\n\\n    /// @notice Event emitted when an update type's active status is changed\\n    event UpdateTypeActiveStatusChanged(string indexed updateType, bool previousActive, bool active);\\n\\n    /// @notice Thrown when sender is not authorized\\n    error SenderNotAuthorized();\\n\\n    /// @notice Thrown when sender is already authorized\\n    error SenderAlreadyAuthorized();\\n\\n    /// @notice Thrown when update type string is invalid\\n    error InvalidUpdateTypeString();\\n\\n    /// @notice Thrown when update type already exists\\n    error UpdateTypeAlreadyExists();\\n\\n    /// @notice Thrown when update type doesn't exist\\n    error UpdateTypeNotFound();\\n\\n    /// @notice Thrown when update type active status is already set to the desired value\\n    error UpdateTypeStatusUnchanged();\\n\\n    /// @notice Thrown when update type is not active\\n    error UpdateTypeNotActive();\\n\\n    /// @notice Thrown when no update is found\\n    error NoUpdateFound();\\n\\n    /// @notice Thrown when update ID is invalid\\n    error InvalidUpdateId();\\n\\n    /// @notice Thrown when array lengths don't match in bulk operations\\n    error ArrayLengthMismatch();\\n\\n    /// @notice Thrown when trying to renounce ownership\\n    error RenounceOwnershipNotAllowed();\\n\\n    /**\\n     * @notice Returns the update type string at the given index in the allUpdateTypes array\\n     * @param index The index in the allUpdateTypes array\\n     * @return The update type string at the specified index\\n     */\\n    function allUpdateTypes(uint256 index) external view returns (string memory);\\n\\n    /**\\n     * @notice Returns the total number of update types in the allUpdateTypes array\\n     * @return The length of the allUpdateTypes array\\n     */\\n    function allUpdateTypesLength() external view returns (uint256);\\n\\n    /**\\n     * @notice Returns all update types in the allUpdateTypes array\\n     * @return An array of all update type strings\\n     */\\n    function getAllUpdateTypes() external view returns (string[] memory);\\n\\n    /**\\n     * @notice Checks if a given update type is currently active\\n     * @param updateType The update type string to check\\n     * @return True if the update type is active, false otherwise\\n     */\\n    function getActiveUpdateTypes(string memory updateType) external view returns (bool);\\n\\n    /**\\n     * @notice Checks if a given update type is currently active\\n     * @param updateTypeKey The keccak256 hash of the update type string\\n     * @return True if the update type key is active, false otherwise\\n     */\\n    function activeUpdateTypes(bytes32 updateTypeKey) external view returns (bool);\\n\\n    /**\\n     * @notice Checks if an address is authorized to publish updates\\n     * @param sender The address to check for authorization\\n     * @return True if the address is authorized, false otherwise\\n     */\\n    function authorizedSenders(address sender) external view returns (bool);\\n\\n    /**\\n     * @notice Gets the latest update ID for a specific market and update type combination\\n     * @param updateTypeKey The keccak256 hash of the update type string\\n     * @param market The market address\\n     * @return The latest update ID for the given market and update type key, or 0 if none exists\\n     */\\n    function latestUpdateIdByMarketAndType(bytes32 updateTypeKey, address market) external view returns (uint256);\\n\\n    /**\\n     * @notice Returns the total number of updates that have been published\\n     * @return The current update counter value\\n     */\\n    function updateCounter() external view returns (uint256);\\n\\n    /**\\n     * @notice Fetches the most recent update for a specific parameter type in a specific market\\n     * @param updateType The update type identifier\\n     * @param market The market address\\n     * @return The most recent RiskParameterUpdate for the specified parameter and market\\n     * @custom:error NoUpdateFound Thrown if no update exists for the specified parameter and market\\n     */\\n    function getLatestUpdateByTypeAndMarket(\\n        string memory updateType,\\n        address market\\n    ) external view returns (RiskParameterUpdate memory);\\n\\n    /**\\n     * @notice Gets the latest update ID for a specific market and update type (string) combination\\n     * @param updateType The update type identifier\\n     * @param market The market address\\n     * @return The latest update ID for the given market and update type, or 0 if none exists\\n     */\\n    function getLatestUpdateIdByTypeAndMarket(string memory updateType, address market) external view returns (uint256);\\n\\n    /**\\n     * @notice Fetches the update for a provided update ID\\n     * @param updateId The unique update ID\\n     * @return The RiskParameterUpdate struct for the specified update ID\\n     * @custom:error InvalidUpdateId Thrown if updateId is 0 or greater than updateCounter\\n     */\\n    function getUpdateById(uint256 updateId) external view returns (RiskParameterUpdate memory);\\n\\n    /**\\n     * @notice Adds a new address to the list of authorized senders who can publish updates\\n     * @param sender Address to be authorized\\n     * @custom:error ZeroAddressNotAllowed Thrown if sender is the zero address\\n     * @custom:error SenderAlreadyAuthorized Thrown if sender is already authorized\\n     * @custom:error Unauthorized Thrown if caller is not allowed by AccessControlManager\\n     * @custom:event AuthorizedSenderAdded Emitted when sender is successfully added\\n     */\\n    function addAuthorizedSender(address sender) external;\\n\\n    /**\\n     * @notice Removes an address from the list of authorized senders\\n     * @param sender Address to be removed from authorization\\n     * @custom:error SenderNotAuthorized Thrown if sender is not currently authorized\\n     * @custom:error Unauthorized Thrown if caller is not allowed by AccessControlManager\\n     * @custom:event AuthorizedSenderRemoved Emitted when sender is successfully removed\\n     */\\n    function removeAuthorizedSender(address sender) external;\\n\\n    /**\\n     * @notice Adds a new update type to the list of authorized update types\\n     * @param newUpdateType New update type string to allow (must be non-empty and <= 64 characters)\\n     * @custom:error InvalidUpdateTypeString Thrown if update type string is empty or exceeds 64 characters\\n     * @custom:error UpdateTypeAlreadyExists Thrown if update type already exists\\n     * @custom:error Unauthorized Thrown if caller is not allowed by AccessControlManager\\n     * @custom:event UpdateTypeAdded Emitted when update type is successfully added\\n     */\\n    function addUpdateType(string memory newUpdateType) external;\\n\\n    /**\\n     * @notice Sets the active status of an existing update type\\n     * @param updateType The update type to set active status for\\n     * @param active True to activate the update type, false to deactivate it\\n     * @custom:error UpdateTypeNotFound Thrown if update type doesn't exist\\n     * @custom:error UpdateTypeStatusUnchanged Thrown if status is already set to the desired value\\n     * @custom:error Unauthorized Thrown if caller is not allowed by AccessControlManager\\n     * @custom:event UpdateTypeActiveStatusChanged Emitted when status is successfully changed\\n     */\\n    function setUpdateTypeActive(string memory updateType, bool active) external;\\n\\n    /**\\n     * @notice Publishes a new risk parameter update.\\n     * @param referenceId An external reference ID associated with the update\\n     * @param newValue The new value of the risk parameter being updated (encoded as bytes)\\n     * @param updateType Type of update performed, must be an active update type\\n     * @param market Address of the market for which the parameter update applies\\n     * @param poolId Pool identifier for eMode-style collateral configuration (0 for regular markets)\\n     * @param dstEid Destination endpoint ID for cross-chain routing\\n     * @param additionalData Additional data or metadata for the update\\n     * @custom:error SenderNotAuthorized Thrown if caller is not an authorized sender\\n     * @custom:error UpdateTypeNotActive Thrown if update type is not active\\n     * @custom:error ZeroAddressNotAllowed Thrown if market is the zero address\\n     * @custom:event UpdatePublished Emitted when the update is successfully published\\n     */\\n    function publishRiskParameterUpdate(\\n        string memory referenceId,\\n        bytes memory newValue,\\n        string memory updateType,\\n        address market,\\n        uint96 poolId,\\n        uint32 dstEid,\\n        bytes memory additionalData\\n    ) external;\\n\\n    /**\\n     * @notice Publishes multiple risk parameter updates in a single transaction.\\n     * @param referenceIds Array of external reference IDs, one for each update\\n     * @param newValues Array of new values for each update (encoded as bytes)\\n     * @param updateTypes Array of update types, all must be active update types\\n     * @param markets Array of market addresses for each update\\n     * @param poolIds Array of pool identifiers for eMode-style collateral configuration (0 for regular markets)\\n     * @param dstEid Array of destination endpoint IDs for cross-chain routing\\n     * @param additionalData Array of additional data for each update\\n     * @custom:error SenderNotAuthorized Thrown if caller is not an authorized sender\\n     * @custom:error ArrayLengthMismatch Thrown if all arrays don't have the same length\\n     * @custom:error UpdateTypeNotActive Thrown if any update type is not active\\n     * @custom:error ZeroAddressNotAllowed Thrown if any market is the zero address\\n     * @custom:event UpdatePublished Emitted for each successfully published update\\n     */\\n    function publishBulkRiskParameterUpdates(\\n        string[] memory referenceIds,\\n        bytes[] memory newValues,\\n        string[] memory updateTypes,\\n        address[] memory markets,\\n        uint96[] memory poolIds,\\n        uint32[] memory dstEid,\\n        bytes[] memory additionalData\\n    ) external;\\n}\\n\",\"keccak256\":\"0x8a30b030d5be3cefabf55d889d0a06447613a9ada5a917730b7ec833bda167cd\",\"license\":\"MIT\"},\"contracts/RiskSteward/Interfaces/IRiskSteward.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\nimport { RiskParameterUpdate } from \\\"./IRiskOracle.sol\\\";\\nimport { IRiskStewardReceiver } from \\\"./IRiskStewardReceiver.sol\\\";\\n\\n/**\\n * @title IRiskSteward\\n * @author Venus\\n * @notice Interface for risk stewards that validate and apply risk parameter updates\\n */\\ninterface IRiskSteward {\\n    /**\\n     * @notice Returns the `IRiskStewardReceiver` associated with this steward.\\n     * @return The risk steward receiver contract\\n     */\\n    function RISK_STEWARD_RECEIVER() external view returns (IRiskStewardReceiver);\\n\\n    /**\\n     * @notice Checks whether an update is safe for direct execution (no timelock required).\\n     * @param update The risk parameter update to evaluate\\n     * @return True if update is safe for direct execution, false if timelock is required\\n     */\\n    function isSafeForDirectExecution(RiskParameterUpdate calldata update) external view returns (bool);\\n\\n    /**\\n     * @notice Applies a validated risk parameter update.\\n     * @param update The risk parameter update to apply\\n     */\\n    function applyUpdate(RiskParameterUpdate calldata update) external;\\n}\\n\",\"keccak256\":\"0x6438497d6fd62f5e8c224a01e626a92ae2ebbe736852749862ff2f040a25b069\",\"license\":\"BSD-3-Clause\"},\"contracts/RiskSteward/Interfaces/IRiskStewardReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\ninterface IRiskStewardReceiver {\\n    /**\\n     * @notice Status of an update\\n     */\\n    enum UpdateStatus {\\n        None,\\n        Pending,\\n        Executed,\\n        Rejected,\\n        Expired,\\n        SENT_TO_DESTINATION\\n    }\\n\\n    /**\\n     * @notice Configuration for a risk parameter update type\\n     * @param active Whether this update type configuration is currently active\\n     * @param debounce Minimum delay between consecutive update executions for the same (updateType, market) pair\\n     * @param timelock Period that must pass after registration before an update can be executed\\n     * @param riskSteward Address of the risk steward contract responsible for processing this update type\\n     */\\n    struct RiskParamConfig {\\n        bool active;\\n        uint256 debounce;\\n        uint256 timelock;\\n        address riskSteward;\\n    }\\n\\n    /**\\n     * @notice Registered update structure with timelock and execution information\\n     * @param updateId Update ID from the Risk Oracle\\n     * @param unlockTime Timestamp when this update can be executed (calculated as registration time + timelock)\\n     * @param status Current status of the update (Pending, Executed, Rejected, Expired, etc.)\\n     * @param executor Address of the executor who executed this update (address(0) if not executed yet)\\n     * @param executedAt Timestamp when this update was executed (0 if not executed yet)\\n     */\\n    struct RegisteredUpdate {\\n        uint256 updateId;\\n        uint256 unlockTime;\\n        UpdateStatus status;\\n        address executor;\\n        uint256 executedAt;\\n    }\\n\\n    /**\\n     * @notice Event emitted when a risk parameter config is set\\n     */\\n    event RiskParameterConfigUpdated(\\n        bytes32 indexed updateTypeHash,\\n        string updateType,\\n        address indexed previousRiskSteward,\\n        address indexed riskSteward,\\n        uint256 previousDebounce,\\n        uint256 debounce,\\n        uint256 previousTimelock,\\n        uint256 timelock,\\n        bool previousActive,\\n        bool active\\n    );\\n\\n    /**\\n     * @notice Event emitted when a risk parameter config active status is set\\n     */\\n    event ConfigActiveUpdated(bytes32 indexed updateTypeHash, string updateType, bool previousActive, bool active);\\n\\n    /**\\n     * @notice Event emitted when an update is successfully executed\\n     */\\n    event UpdateExecuted(uint256 indexed updateId);\\n\\n    /**\\n     * @notice Event emitted when an update is rejected\\n     */\\n    event UpdateRejected(uint256 indexed updateId);\\n\\n    /**\\n     * @notice Event emitted when an update is marked as expired\\n     */\\n    event UpdateExpired(uint256 indexed updateId);\\n\\n    /**\\n     * @notice Event emitted when an executor status is set\\n     */\\n    event ExecutorStatusUpdated(address indexed executor, bool previousApproved, bool approved);\\n\\n    /**\\n     * @notice Event emitted when an update is registered\\n     */\\n    event UpdateRegistered(uint256 indexed updateId, uint256 unlockTime, string updateType, address indexed market);\\n\\n    /**\\n     * @notice Event emitted when an update is sent to a destination chain\\n     */\\n    event UpdateSentToDestination(\\n        uint256 updateId,\\n        uint32 indexed destLzEid,\\n        string indexed updateType,\\n        address indexed market\\n    );\\n\\n    /**\\n     * @notice Event emitted when an update is resent to a destination chain\\n     */\\n    event UpdateResentToDestination(\\n        uint256 updateId,\\n        uint32 indexed destLzEid,\\n        string indexed updateType,\\n        address indexed market\\n    );\\n\\n    /**\\n     * @notice Emitted when leftover native tokens are swept by owner\\n     */\\n    event SweepNative(address indexed receiver, uint256 amount);\\n\\n    /**\\n     * @notice Event emitted when the pause status changes\\n     * @param previousPaused Previous pause state\\n     * @param paused Current pause state\\n     */\\n    event PauseStatusUpdated(bool previousPaused, bool paused);\\n\\n    /**\\n     * @custom:error TransferFailed\\n     */\\n    error TransferFailed();\\n\\n    /**\\n     * @notice Thrown if a submitted update is not active and therefore cannot be processed\\n     */\\n    error ConfigNotActive();\\n\\n    /**\\n     * @notice Thrown when an update was not applied within the required time frame\\n     */\\n    error UpdateIsExpired();\\n\\n    /**\\n     * @notice Thrown when an update has already been processed\\n     */\\n    error UpdateAlreadyResolved();\\n\\n    /**\\n     * @notice Thrown when the debounce period hasn't passed for applying an update to a specific market / update type\\n     */\\n    error UpdateTooFrequent();\\n\\n    /**\\n     * @notice Thrown when an update type that is not supported is operated on\\n     */\\n    error UnsupportedUpdateType();\\n\\n    /**\\n     * @notice Thrown when an empty update type string is provided\\n     */\\n    error InvalidUpdateType();\\n\\n    /**\\n     * @notice Thrown when a debounce value of 0 is set\\n     */\\n    error InvalidDebounce();\\n\\n    /**\\n     * @notice Thrown when a timelock value is greater than or equal to the expiration time\\n     */\\n    error InvalidTimelock();\\n\\n    /**\\n     * @notice Thrown when update unlock time has not been reached\\n     */\\n    error UpdateNotUnlocked();\\n\\n    /**\\n     * @notice Thrown when trying to resolve an update that doesn't exist\\n     */\\n    error UpdateNotFound();\\n\\n    /**\\n     * @notice Thrown when an address is not an executor\\n     */\\n    error NotAnExecutor();\\n\\n    /**\\n     * @notice Thrown when there is a non-expired pending update of the same type for the market\\n     */\\n    error RegisteredUpdateTypeExist(uint256);\\n\\n    /**\\n     * @notice Thrown when trying to resend an update that is not in SENT_TO_DESTINATION status\\n     */\\n    error InvalidUpdateToResend();\\n\\n    /**\\n     * @notice Thrown when trying to execute an update that was never registered\\n     */\\n    error InvalidRegisteredUpdate();\\n\\n    /**\\n     * @notice Thrown when attempting to call lzSend from an address other than this contract\\n     */\\n    error InvalidLzSendCaller();\\n\\n    /**\\n     * @notice Thrown when trying to renounce ownership\\n     */\\n    error RenounceOwnershipNotAllowed();\\n\\n    /**\\n     * @notice Thrown when processUpdate is called while the contract is paused\\n     */\\n    error PausedError();\\n\\n    /**\\n     * @notice Thrown when an invalid LayerZero endpoint ID is provided\\n     */\\n    error InvalidLayerZeroEid();\\n\\n    /**\\n     * @notice Thrown when trying to set the same pause status\\n     */\\n    error PauseStatusUnchanged();\\n\\n    /**\\n     * @notice Thrown when trying to set the same config active status\\n     */\\n    error ConfigStatusUnchanged();\\n\\n    /**\\n     * @notice Thrown when trying to set the same executor whitelist status\\n     */\\n    error ExecutorStatusUnchanged();\\n\\n    /**\\n     * @notice Thrown when an update will expire before its timelock unlocks\\n     */\\n    error UpdateWillExpireBeforeUnlock();\\n\\n    function getRiskParameterConfig(string calldata updateType) external view returns (RiskParamConfig memory);\\n\\n    function getLastProcessedUpdate(string calldata updateType, address market) external view returns (uint256);\\n\\n    function getLastRegisteredUpdate(string calldata updateType, address market) external view returns (uint256);\\n\\n    function setRiskParameterConfig(\\n        string calldata updateType,\\n        address riskSteward,\\n        uint256 debounce,\\n        uint256 timelock\\n    ) external;\\n\\n    function setConfigActive(string calldata updateType, bool active) external;\\n\\n    function setWhitelistedExecutor(address executor, bool approved) external;\\n\\n    function processUpdate(uint256 updateId) external;\\n\\n    function executeRegisteredUpdate(uint256 updateId) external;\\n\\n    function rejectUpdate(uint256 updateId) external;\\n\\n    function resendRemoteUpdate(uint256 updateId, bytes calldata options) external payable;\\n\\n    function getExecutableUpdates(\\n        string calldata updateType,\\n        address comptroller\\n    ) external view returns (uint256[] memory executableUpdates);\\n\\n    function isUpdateExecutable(uint256 updateId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x206b4763cfe62155718edb4b53ee48d6e5204b81cbfac705808d2ffd3225bb12\",\"license\":\"BSD-3-Clause\"},\"contracts/RiskSteward/RiskStewardReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\nimport { OwnableUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { IRiskSteward } from \\\"./Interfaces/IRiskSteward.sol\\\";\\nimport { IRiskOracle, RiskParameterUpdate } from \\\"./Interfaces/IRiskOracle.sol\\\";\\nimport { IRiskStewardReceiver } from \\\"./Interfaces/IRiskStewardReceiver.sol\\\";\\nimport { AccessControlledV8 } from \\\"../Governance/AccessControlledV8.sol\\\";\\nimport { ensureNonzeroAddress } from \\\"@venusprotocol/solidity-utilities/contracts/validators.sol\\\";\\nimport { ICorePoolComptroller } from \\\"../interfaces/ICorePoolComptroller.sol\\\";\\nimport { OAppSenderUpgradeable, MessagingFee } from \\\"@layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppSenderUpgradeable.sol\\\";\\nimport { OptionsBuilder } from \\\"@layerzerolabs/oapp-evm/contracts/oapp/libs/OptionsBuilder.sol\\\";\\nimport { OAppCoreUpgradeable } from \\\"@layerzerolabs/oapp-evm-upgradeable/contracts/oapp/OAppCoreUpgradeable.sol\\\";\\n\\n/**\\n * @title RiskStewardReceiver\\n * @author Venus\\n * @notice Contract that reads updates from a Risk Oracle, validates them with timelock and debounce,\\n *         and either executes them locally via the configured RiskSteward or forwards them cross\\u2011chain.\\n * @custom:security-contact https://github.com/VenusProtocol/governance-contracts#discussion\\n */\\ncontract RiskStewardReceiver is IRiskStewardReceiver, AccessControlledV8, OAppSenderUpgradeable {\\n    using OptionsBuilder for bytes;\\n\\n    /**\\n     * @notice Period after which a proposed update becomes expired and can no longer be applied\\n     */\\n    uint256 public constant UPDATE_EXPIRATION_TIME = 2 days;\\n\\n    /**\\n     * @notice Source chain LayerZero endpoint ID\\n     */\\n    uint32 public immutable LAYER_ZERO_EID;\\n\\n    /**\\n     * @notice The Risk Oracle contract address\\n     */\\n    IRiskOracle public immutable RISK_ORACLE;\\n\\n    /**\\n     * @notice Pause flag\\n     */\\n    bool public paused;\\n\\n    /**\\n     * @notice Mapping of supported risk configurations and their validation parameters (keyed by hashed updateType)\\n     */\\n    mapping(bytes32 => RiskParamConfig) public riskParameterConfigs;\\n\\n    /**\\n     * @notice Master storage of all registered updates by update ID\\n     */\\n    mapping(uint256 updateId => RegisteredUpdate) public updates;\\n\\n    /**\\n     * @notice Track last processed update ID per (updateTypeKey, market)\\n     */\\n    mapping(bytes32 => mapping(address market => uint256)) public lastProcessedUpdate;\\n\\n    /**\\n     * @notice Track the current registered update per (updateType, market) to avoid registering multiple updates\\n     */\\n    mapping(bytes32 => mapping(address market => uint256)) public lastRegisteredUpdate;\\n\\n    /**\\n     * @notice Mapping from executor address to whitelist status\\n     */\\n    mapping(address => bool) public whitelistedExecutors;\\n\\n    /**\\n     * @dev This empty reserved space is put in place to allow future versions to add new\\n     * variables without shifting down storage in the inheritance chain.\\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n     */\\n    uint256[44] private __gap;\\n\\n    /**\\n     * @dev Ensures the caller is a whitelisted executor.\\n     */\\n    modifier onlyWhitelistedExecutors() {\\n        if (!whitelistedExecutors[msg.sender]) {\\n            revert NotAnExecutor();\\n        }\\n        _;\\n    }\\n\\n    /**\\n     * @dev Ensures the contract is not paused.\\n     */\\n    modifier whenNotPaused() {\\n        if (paused) {\\n            revert PausedError();\\n        }\\n        _;\\n    }\\n\\n    /**\\n     * @notice Disables initializers and sets the Risk Oracle and LayerZero configuration.\\n     * @param riskOracle_ The address of the Risk Oracle contract.\\n     * @param endpoint_ The LayerZero endpoint contract used by the underlying `OAppUpgradeable`.\\n     * @param layerZeroLzEid_ The LayerZero endpoint ID (EID) for this chain.\\n     * @custom:oz-upgrades-unsafe-allow constructor\\n     */\\n    constructor(address riskOracle_, address endpoint_, uint32 layerZeroLzEid_) OAppCoreUpgradeable(endpoint_) {\\n        _disableInitializers();\\n        ensureNonzeroAddress(riskOracle_);\\n        ensureNonzeroAddress(endpoint_);\\n        if (layerZeroLzEid_ == 0) revert InvalidLayerZeroEid();\\n\\n        RISK_ORACLE = IRiskOracle(riskOracle_);\\n        LAYER_ZERO_EID = layerZeroLzEid_;\\n    }\\n\\n    /**\\n     * @notice Initializes the contract with the Access Control Manager and OApp owner.\\n     * @param acm_ The address of the Access Control Manager\\n     * @param delegate_ The address of the OApp owner passed to `__OApp_init`.\\n     */\\n    function initialize(address acm_, address delegate_) external initializer {\\n        __AccessControlled_init(acm_);\\n        __OAppSender_init(delegate_);\\n    }\\n\\n    /**\\n     * @notice Accepts native tokens (e.g., BNB) sent to this contract.\\n     */\\n    receive() external payable {}\\n\\n    /**\\n     * @notice Allows the owner to sweep leftover native tokens (e.g., BNB) from the contract.\\n     * @custom:event Emits SweepNative event.\\n     */\\n    function sweepNative() external onlyOwner {\\n        uint256 balance = address(this).balance;\\n        if (balance > 0) {\\n            (bool success, ) = payable(owner()).call{ value: balance }(\\\"\\\");\\n            if (!success) revert TransferFailed();\\n            emit SweepNative(owner(), balance);\\n        }\\n    }\\n\\n    /**\\n     * @notice Sets the pause status for `processUpdate`.\\n     * @param paused_ True to pause, false to unpause\\n     * @custom:access Controlled by AccessControlManager\\n     * @custom:event Emits PauseStatusUpdated\\n     */\\n    function setPaused(bool paused_) external {\\n        _checkAccessAllowed(\\\"setPaused(bool)\\\");\\n        if (paused == paused_) {\\n            revert PauseStatusUnchanged();\\n        }\\n        emit PauseStatusUpdated(paused, paused_);\\n        paused = paused_;\\n    }\\n\\n    /**\\n     * @notice Sets the risk parameter config for a given update type\\n     * @param updateType The type of update to configure\\n     * @param riskSteward The address for the risk steward contract responsible for processing the update\\n     * @param debounce The debounce period for the update\\n     * @param timelock The timelock period before the update can be executed\\n     * @custom:access Controlled by AccessControlManager\\n     * @custom:event Emits RiskParameterConfigUpdated\\n     * @custom:error InvalidUpdateType if the update type string is empty\\n     * @custom:error Throws InvalidDebounce if the debounce is 0\\n     * @custom:error Throws InvalidTimelock if the timelock is greater than or equal to the expiration time\\n     * @custom:error Throws ZeroAddressNotAllowed if the risk steward address is zero\\n     */\\n    function setRiskParameterConfig(\\n        string calldata updateType,\\n        address riskSteward,\\n        uint256 debounce,\\n        uint256 timelock\\n    ) external {\\n        _checkAccessAllowed(\\\"setRiskParameterConfig(string,address,uint256,uint256)\\\");\\n        ensureNonzeroAddress(riskSteward);\\n\\n        if (bytes(updateType).length == 0 || bytes(updateType).length > 64) {\\n            revert InvalidUpdateType();\\n        }\\n        if (debounce == 0) {\\n            revert InvalidDebounce();\\n        }\\n        if (timelock >= UPDATE_EXPIRATION_TIME) {\\n            revert InvalidTimelock();\\n        }\\n\\n        bytes32 key = keccak256(bytes(updateType));\\n        RiskParamConfig memory previousConfig = riskParameterConfigs[key];\\n\\n        riskParameterConfigs[key] = RiskParamConfig({\\n            active: true,\\n            riskSteward: riskSteward,\\n            debounce: debounce,\\n            timelock: timelock\\n        });\\n\\n        emit RiskParameterConfigUpdated(\\n            key,\\n            updateType,\\n            previousConfig.riskSteward,\\n            riskSteward,\\n            previousConfig.debounce,\\n            debounce,\\n            previousConfig.timelock,\\n            timelock,\\n            previousConfig.active,\\n            true\\n        );\\n    }\\n\\n    /**\\n     * @notice Sets the active status of a risk parameter config\\n     * @param updateType The type of update to configure\\n     * @param active The active status to set\\n     * @custom:access Controlled by AccessControlManager\\n     * @custom:event Emits ConfigActiveUpdated with the update type hash, update type, previous active status, and the active status\\n     * @custom:error Throws UnsupportedUpdateType if the update type is not supported\\n     * @custom:error Throws ConfigStatusUnchanged if the active status is already set to the desired value\\n     */\\n    function setConfigActive(string calldata updateType, bool active) external {\\n        _checkAccessAllowed(\\\"setConfigActive(string,bool)\\\");\\n        bytes32 key = keccak256(bytes(updateType));\\n\\n        if (riskParameterConfigs[key].riskSteward == address(0)) {\\n            revert UnsupportedUpdateType();\\n        }\\n\\n        bool previousActive = riskParameterConfigs[key].active;\\n        if (previousActive == active) {\\n            revert ConfigStatusUnchanged();\\n        }\\n\\n        riskParameterConfigs[key].active = active;\\n        emit ConfigActiveUpdated(key, updateType, previousActive, active);\\n    }\\n\\n    /**\\n     * @notice Manages the whitelist of executors that are allowed to execute timelocked registered updates.\\n     * @param executor The address of the executor\\n     * @param approved The whitelist status to set (true to whitelist, false to remove)\\n     * @custom:access Controlled by AccessControlManager\\n     * @custom:event Emits ExecutorStatusUpdated with the executor address, previous approval status, and approval status\\n     * @custom:error Throws ZeroAddressNotAllowed if the executor address is zero\\n     * @custom:error Throws ExecutorStatusUnchanged if the executor whitelist status is already set to the desired value\\n     */\\n    function setWhitelistedExecutor(address executor, bool approved) external {\\n        _checkAccessAllowed(\\\"setWhitelistedExecutor(address,bool)\\\");\\n        ensureNonzeroAddress(executor);\\n\\n        bool previousApproved = whitelistedExecutors[executor];\\n        if (previousApproved == approved) {\\n            revert ExecutorStatusUnchanged();\\n        }\\n\\n        whitelistedExecutors[executor] = approved;\\n        emit ExecutorStatusUpdated(executor, previousApproved, approved);\\n    }\\n\\n    /**\\n     * @notice Processes an update from the Risk Oracle. Validates, registers the update,\\n     * and either executes immediately, registers with timelock, or forwards cross-chain.\\n     * @param updateId The update ID from the oracle's perspective\\n     * @custom:event Emits UpdateRegistered, UpdateExecuted, or UpdateSentToDestination depending on the update type\\n     * @custom:error Throws UpdateAlreadyResolved if the update was already processed\\n     * @custom:error Throws UpdateIsExpired if the update has expired\\n     * @custom:error Throws ConfigNotActive if the config is not active\\n     * @custom:error Throws UpdateTooFrequent if the debounce period has not passed\\n     * @custom:error Throws RegisteredUpdateTypeExist if there is a non-expired pending update of the same type\\n     */\\n    function processUpdate(uint256 updateId) external whenNotPaused {\\n        RiskParameterUpdate memory update = RISK_ORACLE.getUpdateById(updateId);\\n        RiskParamConfig storage config = riskParameterConfigs[update.updateTypeKey];\\n        bool isRemoteUpdate = update.destLzEid != 0 && update.destLzEid != LAYER_ZERO_EID;\\n\\n        // Skip active update check for remote updates since they are sent immediately and not registered locally\\n        if (!isRemoteUpdate) _ensureNoActiveUpdate(update);\\n        _validateRegisterUpdate(update, config, isRemoteUpdate);\\n\\n        IRiskSteward riskSteward = IRiskSteward(config.riskSteward);\\n        bool safeForDirectExecution = isRemoteUpdate ? false : riskSteward.isSafeForDirectExecution(update);\\n        _registerUpdate(update, config, safeForDirectExecution || isRemoteUpdate);\\n\\n        if (isRemoteUpdate) {\\n            _sendRemoteUpdate(update, \\\"\\\", 0);\\n        } else if (safeForDirectExecution) {\\n            _executeUpdate(update, riskSteward);\\n        }\\n    }\\n\\n    /**\\n     * @notice Executes a registered update. Only whitelisted executors can call this function.\\n     *         This function can be used for updates that have completed their timelock and are ready to execute.\\n     * @param updateId The oracle update ID of the update to execute\\n     * @custom:access Only whitelisted executors can call this function\\n     * @custom:event Emits UpdateExecuted with the oracle update ID\\n     * @custom:error Throws NotAnExecutor if the caller is not a whitelisted executor\\n     * @custom:error Throws InvalidRegisteredUpdate if the update was never registered\\n     * @custom:error Throws UpdateAlreadyResolved if the update was already executed or rejected\\n     * @custom:error Throws UpdateIsExpired if the update has expired\\n     * @custom:error Throws ConfigNotActive if the config is not active\\n     * @custom:error Throws UpdateNotUnlocked if the unlock time has not passed\\n     */\\n    function executeRegisteredUpdate(uint256 updateId) external onlyWhitelistedExecutors {\\n        RegisteredUpdate storage registeredUpdate = updates[updateId];\\n        RiskParameterUpdate memory update = RISK_ORACLE.getUpdateById(updateId);\\n        RiskParamConfig storage config = riskParameterConfigs[update.updateTypeKey];\\n\\n        _validateExecuteUpdate(registeredUpdate, update, config);\\n        _executeUpdate(update, IRiskSteward(config.riskSteward));\\n    }\\n\\n    /**\\n     * @notice Rejects a registered update\\n     * @param updateId The oracle update ID of the update to reject\\n     * @custom:access Only whitelisted executors can call this function\\n     * @custom:event Emits UpdateRejected with the oracle update ID\\n     * @custom:error Throws UpdateAlreadyResolved if the update was already executed or rejected\\n     */\\n    function rejectUpdate(uint256 updateId) external onlyWhitelistedExecutors {\\n        RegisteredUpdate storage registeredUpdate = updates[updateId];\\n\\n        if (registeredUpdate.status != UpdateStatus.Pending) {\\n            revert UpdateAlreadyResolved();\\n        }\\n\\n        registeredUpdate.status = UpdateStatus.Rejected;\\n        emit UpdateRejected(updateId);\\n    }\\n\\n    /**\\n     * @notice Resends a remote update to the destination chain. This function is useful in case of bridge failures.\\n     * @dev Duplicate update rejection is handled in the destination contract itself, so resending\\n     *      the same update multiple times is safe and will be deduplicated on the destination side.\\n     * @param updateId The oracle update ID to resend\\n     * @param options LayerZero message options; if empty, default executor option is used\\n     * @custom:access Only whitelisted executors can call this function\\n     * @custom:event Emits UpdateResentToDestination with the update ID, destination chain ID, update type, and market\\n     * @custom:error Throws NotAnExecutor if the caller is not a whitelisted executor\\n     * @custom:error Throws InvalidUpdateToResend if the update status is not SENT_TO_DESTINATION\\n     * @custom:error Throws UpdateIsExpired if the update has expired\\n     */\\n    function resendRemoteUpdate(uint256 updateId, bytes calldata options) external payable onlyWhitelistedExecutors {\\n        RegisteredUpdate storage registeredUpdate = updates[updateId];\\n        if (registeredUpdate.status != UpdateStatus.SENT_TO_DESTINATION) {\\n            revert InvalidUpdateToResend();\\n        }\\n\\n        RiskParameterUpdate memory update = RISK_ORACLE.getUpdateById(updateId);\\n\\n        // Check if update is expired\\n        if (update.timestamp + UPDATE_EXPIRATION_TIME < block.timestamp) {\\n            revert UpdateIsExpired();\\n        }\\n\\n        _sendRemoteUpdate(update, options, msg.value);\\n        emit UpdateResentToDestination(update.updateId, update.destLzEid, update.updateType, update.market);\\n    }\\n\\n    /**\\n     * @notice Returns an array of update IDs for executable registered updates for a given update type and comptroller.\\n     * @param updateType The human\\u2011readable identifier of the update type to filter by\\n     * @param comptroller The address of the Comptroller (either Core Pool or Isolated Pools) that manages the markets\\n     * @return executableUpdates Array of update IDs that are ready to be executed\\n     */\\n    function getExecutableUpdates(\\n        string calldata updateType,\\n        address comptroller\\n    ) external view returns (uint256[] memory executableUpdates) {\\n        bytes32 updateTypeKey = keccak256(bytes(updateType));\\n        // Both Core and Isolated Pools comptrollers expose the same signature\\n        address[] memory markets = ICorePoolComptroller(comptroller).getAllMarkets();\\n        uint256 maxUpdates = markets.length;\\n        uint256[] memory tempArray = new uint256[](maxUpdates);\\n        uint256 count = 0;\\n\\n        for (uint256 i = 0; i < maxUpdates; ++i) {\\n            uint256 registeredUpdateId = lastRegisteredUpdate[updateTypeKey][markets[i]];\\n            if (!_isUpdateExecutable(registeredUpdateId)) continue;\\n            tempArray[count] = registeredUpdateId;\\n            count++;\\n        }\\n\\n        // shrink array to real size\\n        executableUpdates = new uint256[](count);\\n        for (uint256 i = 0; i < count; ++i) {\\n            executableUpdates[i] = tempArray[i];\\n        }\\n    }\\n\\n    /**\\n     * @notice Returns whether a registered update is ready to be executed.\\n     * @param updateId The oracle update ID to query\\n     * @return True if the update is pending, not expired, active, and past its timelock\\n     */\\n    function isUpdateExecutable(uint256 updateId) external view returns (bool) {\\n        return _isUpdateExecutable(updateId);\\n    }\\n\\n    /**\\n     * @notice Returns the risk parameter configuration for a given update type\\n     * @param updateType The human-readable identifier of the update type\\n     * @return The risk parameter configuration\\n     */\\n    function getRiskParameterConfig(string calldata updateType) external view returns (RiskParamConfig memory) {\\n        bytes32 key = keccak256(bytes(updateType));\\n        return riskParameterConfigs[key];\\n    }\\n\\n    /**\\n     * @notice Returns the last processed update ID for a given update type and market\\n     * @param updateType The human-readable identifier of the update type\\n     * @param market The address of the market\\n     * @return The last processed update ID\\n     */\\n    function getLastProcessedUpdate(string calldata updateType, address market) external view returns (uint256) {\\n        bytes32 key = keccak256(bytes(updateType));\\n        return lastProcessedUpdate[key][market];\\n    }\\n\\n    /**\\n     * @notice Returns the last registered update ID for a given update type and market\\n     * @param updateType The human-readable identifier of the update type\\n     * @param market The address of the market\\n     * @return The last registered update ID\\n     */\\n    function getLastRegisteredUpdate(string calldata updateType, address market) external view returns (uint256) {\\n        bytes32 key = keccak256(bytes(updateType));\\n        return lastRegisteredUpdate[key][market];\\n    }\\n\\n    /**\\n     * @notice Quotes the gas fee needed to pay for the full omnichain transaction in native gas or ZRO token.\\n     * @param update The risk parameter update payload to be sent\\n     * @param options Message execution options (e.g., for sending gas to the destination)\\n     * @param payInLzToken Whether to return the fee in ZRO token instead of native gas\\n     * @return fee A `MessagingFee` struct containing the calculated gas fee\\n     */\\n    function quote(\\n        RiskParameterUpdate memory update,\\n        bytes memory options,\\n        bool payInLzToken\\n    ) public view returns (MessagingFee memory fee) {\\n        bytes memory payload = abi.encode(update);\\n        fee = _quote(update.destLzEid, payload, options, payInLzToken);\\n    }\\n\\n    /**\\n     * @notice Sends a `RiskParameterUpdate` to a destination chain via LayerZero.\\n     * @param dstEid Destination chain endpoint ID\\n     * @param update The risk parameter update payload to send\\n     * @param options LayerZero message options; if empty, a default executor option is used\\n     * @param fee Messaging fee structure returned by `quote`\\n     * @param refundAddress Address to receive any surplus fee refunds\\n     * @custom:error InvalidLzSendCaller if called by any address other than this contract\\n     */\\n    function lzSend(\\n        uint32 dstEid,\\n        RiskParameterUpdate memory update,\\n        bytes memory options,\\n        MessagingFee memory fee,\\n        address refundAddress\\n    ) public payable {\\n        if (msg.sender != address(this)) {\\n            revert InvalidLzSendCaller();\\n        }\\n\\n        bytes memory payload = abi.encode(update);\\n        _lzSend(dstEid, payload, options, fee, refundAddress);\\n    }\\n\\n    /**\\n     * @dev Overrides OwnableUpgradeable and Ownable2StepUpgradeable to resolve\\n     *      the multiple inheritance ownership transfer conflict.\\n     */\\n    function transferOwnership(\\n        address newOwner\\n    ) public override(OwnableUpgradeable, Ownable2StepUpgradeable) onlyOwner {\\n        Ownable2StepUpgradeable.transferOwnership(newOwner);\\n    }\\n\\n    /**\\n     * @dev Internal hook to finalize ownership transfer, resolving the\\n     *      OwnableUpgradeable and Ownable2StepUpgradeable inheritance conflict.\\n     */\\n    function _transferOwnership(address newOwner) internal override(OwnableUpgradeable, Ownable2StepUpgradeable) {\\n        Ownable2StepUpgradeable._transferOwnership(newOwner);\\n    }\\n\\n    /**\\n     * @notice Registers an update from the Risk Oracle with a timelock.\\n     * @param update The risk parameter update from the Risk Oracle to register\\n     * @param config The risk parameter configuration for this update type containing timelock\\n     * @param useImmediateUnlock Whether to unlock the update immediately or use timelock\\n     * @custom:event Emits UpdateRegistered with the oracle update ID, unlock time, update type, and market\\n     */\\n    function _registerUpdate(\\n        RiskParameterUpdate memory update,\\n        RiskParamConfig memory config,\\n        bool useImmediateUnlock\\n    ) internal {\\n        uint256 updateId = update.updateId;\\n        uint256 unlockTime = useImmediateUnlock ? block.timestamp : block.timestamp + config.timelock;\\n\\n        updates[updateId] = RegisteredUpdate({\\n            updateId: updateId,\\n            unlockTime: unlockTime,\\n            status: UpdateStatus.Pending,\\n            executor: address(0),\\n            executedAt: 0\\n        });\\n\\n        lastRegisteredUpdate[update.updateTypeKey][update.market] = updateId;\\n        emit UpdateRegistered(updateId, unlockTime, update.updateType, update.market);\\n    }\\n\\n    /**\\n     * @notice Executes a validated update via the risk steward and records its execution metadata.\\n     *         Updates the registered update storage, last processed tracking, and emits the execution event.\\n     *         Preserves the unlockTime that was set during registration.\\n     * @param update The risk parameter update to execute\\n     * @param steward The risk steward contract that will process the update\\n     * @custom:event Emits UpdateExecuted with the oracle update ID\\n     */\\n    function _executeUpdate(RiskParameterUpdate memory update, IRiskSteward steward) internal {\\n        uint256 updateId = update.updateId;\\n        uint256 timestamp = block.timestamp;\\n        RegisteredUpdate storage registeredUpdate = updates[updateId];\\n\\n        registeredUpdate.status = UpdateStatus.Executed;\\n        registeredUpdate.executor = address(msg.sender);\\n        registeredUpdate.executedAt = timestamp;\\n        lastProcessedUpdate[update.updateTypeKey][update.market] = updateId;\\n\\n        steward.applyUpdate(update);\\n        emit UpdateExecuted(updateId);\\n    }\\n\\n    /**\\n     * @notice Sends a risk parameter update to a destination chain via LayerZero and records it as sent.\\n     *         The update should already be registered before calling this function.\\n     * @param update The risk parameter update to send to the destination chain\\n     * @param options LayerZero message options; if empty, default executor option is used\\n     * @param nativeFee Native tokens supplied to cover the bridge fee (0 to use the quoted amount)\\n     * @custom:event Emits UpdateSentToDestination with the update ID, destination endpoint ID, update type, and market\\n     */\\n    function _sendRemoteUpdate(RiskParameterUpdate memory update, bytes memory options, uint256 nativeFee) internal {\\n        bytes memory option = options.length == 0\\n            ? OptionsBuilder.newOptions().addExecutorLzReceiveOption(1_000_000, 0)\\n            : options;\\n\\n        MessagingFee memory fee;\\n\\n        if (nativeFee == 0) {\\n            fee = quote(update, option, false);\\n        } else {\\n            fee = MessagingFee(nativeFee, 0);\\n        }\\n\\n        this.lzSend{ value: fee.nativeFee }(update.destLzEid, update, option, fee, address(this));\\n\\n        RegisteredUpdate storage registeredUpdate = updates[update.updateId];\\n        registeredUpdate.status = UpdateStatus.SENT_TO_DESTINATION;\\n        registeredUpdate.executor = address(msg.sender);\\n        registeredUpdate.executedAt = block.timestamp;\\n\\n        bytes32 updateTypeKey = update.updateTypeKey;\\n        lastProcessedUpdate[updateTypeKey][update.market] = update.updateId;\\n\\n        emit UpdateSentToDestination(update.updateId, update.destLzEid, update.updateType, update.market);\\n    }\\n\\n    /**\\n     * @notice Ensures there is no other pending registered update of the same type for the same market.\\n     *         If a pending update exists and is expired, it is marked as expired and a new update can proceed.\\n     *         If a pending update exists and is not expired, the call reverts to prevent overlapping updates.\\n     * @param update The risk parameter update being registered\\n     * @custom:event Emits UpdateExpired with the ID of the previously pending update if it is found to be expired\\n     * @custom:error RegisteredUpdateTypeExist if there is a non\\u2011expired pending update of the same type for the market\\n     */\\n    function _ensureNoActiveUpdate(RiskParameterUpdate memory update) internal {\\n        uint256 registeredUpdateId = lastRegisteredUpdate[update.updateTypeKey][update.market];\\n        if (registeredUpdateId == 0) return; // no prior update of this type for this market\\n\\n        RegisteredUpdate storage existing = updates[registeredUpdateId];\\n        if (existing.status != UpdateStatus.Pending) return;\\n\\n        // Check expiration\\n        RiskParameterUpdate memory existingUpdate = RISK_ORACLE.getUpdateById(registeredUpdateId);\\n        bool expired = existingUpdate.timestamp + UPDATE_EXPIRATION_TIME < block.timestamp;\\n\\n        if (expired) {\\n            existing.status = UpdateStatus.Expired;\\n            emit UpdateExpired(registeredUpdateId);\\n            return;\\n        }\\n\\n        // If still pending & not expired reject new update\\n        revert RegisteredUpdateTypeExist(registeredUpdateId);\\n    }\\n\\n    /**\\n     * @notice Validates an oracle update before registration.\\n     * @param update The risk parameter update to validate\\n     * @param config The configuration for this update type\\n     * @param isRemoteUpdate Whether the update is destined for a remote chain\\n     * @custom:error UpdateAlreadyResolved if the update was already registered\\n     * @custom:error ConfigNotActive if the configuration for the update type is not active\\n     * @custom:error UpdateIsExpired if the update has expired or is not the latest for the given market and type\\n     * @custom:error UpdateWillExpireBeforeUnlock if the update will expire before its timelock unlocks\\n     * @custom:error UpdateTooFrequent if the debounce period has not passed for the given market and type (only for local updates)\\n     */\\n    function _validateRegisterUpdate(\\n        RiskParameterUpdate memory update,\\n        RiskParamConfig storage config,\\n        bool isRemoteUpdate\\n    ) internal view {\\n        // Check if this update was already registered\\n        if (updates[update.updateId].status != UpdateStatus.None) {\\n            revert UpdateAlreadyResolved();\\n        }\\n\\n        // Check if config is active\\n        if (!config.active) {\\n            revert ConfigNotActive();\\n        }\\n\\n        // Check if this is the latest update for this market and type\\n        uint256 latestUpdateIdForMarketAndType = RISK_ORACLE.getLatestUpdateIdByTypeAndMarket(\\n            update.updateType,\\n            update.market\\n        );\\n        if (latestUpdateIdForMarketAndType != update.updateId) {\\n            revert UpdateIsExpired();\\n        }\\n\\n        uint256 currentTime = block.timestamp;\\n        uint256 expirationTime = update.timestamp + UPDATE_EXPIRATION_TIME;\\n\\n        // Check expiration\\n        if (expirationTime < currentTime) {\\n            revert UpdateIsExpired();\\n        }\\n\\n        // Check if update will still be valid when timelock unlocks\\n        if (expirationTime < currentTime + config.timelock) {\\n            revert UpdateWillExpireBeforeUnlock();\\n        }\\n\\n        // Check debounce (only for local updates)\\n        if (!isRemoteUpdate) {\\n            uint256 lastProcessedId = lastProcessedUpdate[update.updateTypeKey][update.market];\\n            uint256 lastExecutionTime = updates[lastProcessedId].executedAt;\\n            if (lastExecutionTime != 0 && (lastExecutionTime + config.debounce > currentTime)) {\\n                revert UpdateTooFrequent();\\n            }\\n        }\\n    }\\n\\n    /**\\n     * @notice Validates a registered update before execution.\\n     * @param registeredUpdate The stored registered update metadata\\n     * @param update The risk parameter update fetched from the oracle\\n     * @param config The configuration for this update type\\n     * @custom:error ConfigNotActive if the configuration for the update type is not active\\n     * @custom:error InvalidRegisteredUpdate if the update was never registered\\n     * @custom:error UpdateAlreadyResolved if the update was already executed or rejected\\n     * @custom:error UpdateIsExpired if the update has expired\\n     * @custom:error UpdateNotUnlocked if the unlock time has not passed\\n     */\\n    function _validateExecuteUpdate(\\n        RegisteredUpdate storage registeredUpdate,\\n        RiskParameterUpdate memory update,\\n        RiskParamConfig storage config\\n    ) internal view {\\n        if (!config.active) {\\n            revert ConfigNotActive();\\n        }\\n\\n        if (registeredUpdate.status == UpdateStatus.None) {\\n            revert InvalidRegisteredUpdate();\\n        }\\n\\n        if (registeredUpdate.status != UpdateStatus.Pending) {\\n            revert UpdateAlreadyResolved();\\n        }\\n\\n        if (update.timestamp + UPDATE_EXPIRATION_TIME < block.timestamp) {\\n            revert UpdateIsExpired();\\n        }\\n\\n        if (block.timestamp < registeredUpdate.unlockTime) {\\n            revert UpdateNotUnlocked();\\n        }\\n    }\\n\\n    /**\\n     * @notice Checks if an update has completed all conditions to be executed.\\n     * @param updateId The oracle update ID to query\\n     * @return True if the update is pending, not expired, active, and past its timelock\\n     */\\n    function _isUpdateExecutable(uint256 updateId) internal view returns (bool) {\\n        RegisteredUpdate storage registeredUpdate = updates[updateId];\\n        if (registeredUpdate.status != UpdateStatus.Pending) {\\n            return false;\\n        }\\n\\n        RiskParameterUpdate memory update = RISK_ORACLE.getUpdateById(updateId);\\n        RiskParamConfig storage config = riskParameterConfigs[update.updateTypeKey];\\n\\n        if (!config.active) {\\n            return false;\\n        }\\n\\n        // Check expiration\\n        if (update.timestamp + UPDATE_EXPIRATION_TIME < block.timestamp) {\\n            return false;\\n        }\\n\\n        // Check UnlockTime\\n        return block.timestamp >= registeredUpdate.unlockTime;\\n    }\\n\\n    /**\\n     * @notice Disables renounceOwnership function\\n     * @custom:error Throws RenounceOwnershipNotAllowed\\n     */\\n    function renounceOwnership() public pure override {\\n        revert RenounceOwnershipNotAllowed();\\n    }\\n}\\n\",\"keccak256\":\"0x00a20011ab517b6f8b17792a7670a3eb0cc9bbb2c092c3200dd719dc878ce1c6\",\"license\":\"BSD-3-Clause\"},\"contracts/interfaces/ICorePoolComptroller.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\ninterface ICorePoolComptroller {\\n    function borrowCaps(address) external view returns (uint256);\\n\\n    function supplyCaps(address) external view returns (uint256);\\n\\n    function _setMarketSupplyCaps(address[] calldata, uint256[] calldata) external;\\n\\n    function _setMarketBorrowCaps(address[] calldata, uint256[] calldata) external;\\n\\n    function setMarketSupplyCaps(address[] calldata, uint256[] calldata) external;\\n\\n    function setMarketBorrowCaps(address[] calldata, uint256[] calldata) external;\\n\\n    function getAllMarkets() external view returns (address[] memory);\\n\\n    function setCollateralFactor(\\n        uint96 poolId,\\n        address vToken,\\n        uint256 newCollateralFactorMantissa,\\n        uint256 newLiquidizationThresholdMantissa\\n    ) external returns (uint256);\\n\\n    function setCollateralFactor(\\n        address vToken,\\n        uint256 newCollateralFactorMantissa,\\n        uint256 newLiquidationThresholdMantissa\\n    ) external returns (uint256);\\n\\n    function markets(\\n        address\\n    )\\n        external\\n        view\\n        returns (\\n            bool isListed,\\n            uint256 collateralFactorMantissa,\\n            bool isVenus,\\n            uint256 liquidationThresholdMantissa,\\n            uint256 liquidationIncentiveMantissa,\\n            uint96 marketPoolId,\\n            bool isBorrowAllowed\\n        );\\n\\n    function poolMarkets(\\n        uint96 poolId,\\n        address vToken\\n    )\\n        external\\n        view\\n        returns (\\n            bool isListed,\\n            uint256 collateralFactorMantissa,\\n            bool isVenus,\\n            uint256 liquidationThresholdMantissa,\\n            uint256 liquidationIncentiveMantissa,\\n            uint96 marketPoolId,\\n            bool isBorrowAllowed\\n        );\\n}\\n\",\"keccak256\":\"0xf1d900d58474417ee7de59cbb72df84fe1cd4512f3b265bb66ffabddbcca53b6\",\"license\":\"BSD-3-Clause\"},\"solidity-bytes-utils/contracts/BytesLib.sol\":{\"content\":\"// SPDX-License-Identifier: Unlicense\\n/*\\n * @title Solidity Bytes Arrays Utils\\n * @author Gon\\u00e7alo S\\u00e1 <goncalo.sa@consensys.net>\\n *\\n * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.\\n *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.\\n */\\npragma solidity >=0.8.0 <0.9.0;\\n\\n\\nlibrary BytesLib {\\n    function concat(\\n        bytes memory _preBytes,\\n        bytes memory _postBytes\\n    )\\n        internal\\n        pure\\n        returns (bytes memory)\\n    {\\n        bytes memory tempBytes;\\n\\n        assembly {\\n            // Get a location of some free memory and store it in tempBytes as\\n            // Solidity does for memory variables.\\n            tempBytes := mload(0x40)\\n\\n            // Store the length of the first bytes array at the beginning of\\n            // the memory for tempBytes.\\n            let length := mload(_preBytes)\\n            mstore(tempBytes, length)\\n\\n            // Maintain a memory counter for the current write location in the\\n            // temp bytes array by adding the 32 bytes for the array length to\\n            // the starting location.\\n            let mc := add(tempBytes, 0x20)\\n            // Stop copying when the memory counter reaches the length of the\\n            // first bytes array.\\n            let end := add(mc, length)\\n\\n            for {\\n                // Initialize a copy counter to the start of the _preBytes data,\\n                // 32 bytes into its memory.\\n                let cc := add(_preBytes, 0x20)\\n            } lt(mc, end) {\\n                // Increase both counters by 32 bytes each iteration.\\n                mc := add(mc, 0x20)\\n                cc := add(cc, 0x20)\\n            } {\\n                // Write the _preBytes data into the tempBytes memory 32 bytes\\n                // at a time.\\n                mstore(mc, mload(cc))\\n            }\\n\\n            // Add the length of _postBytes to the current length of tempBytes\\n            // and store it as the new length in the first 32 bytes of the\\n            // tempBytes memory.\\n            length := mload(_postBytes)\\n            mstore(tempBytes, add(length, mload(tempBytes)))\\n\\n            // Move the memory counter back from a multiple of 0x20 to the\\n            // actual end of the _preBytes data.\\n            mc := end\\n            // Stop copying when the memory counter reaches the new combined\\n            // length of the arrays.\\n            end := add(mc, length)\\n\\n            for {\\n                let cc := add(_postBytes, 0x20)\\n            } lt(mc, end) {\\n                mc := add(mc, 0x20)\\n                cc := add(cc, 0x20)\\n            } {\\n                mstore(mc, mload(cc))\\n            }\\n\\n            // Update the free-memory pointer by padding our last write location\\n            // to 32 bytes: add 31 bytes to the end of tempBytes to move to the\\n            // next 32 byte block, then round down to the nearest multiple of\\n            // 32. If the sum of the length of the two arrays is zero then add\\n            // one before rounding down to leave a blank 32 bytes (the length block with 0).\\n            mstore(0x40, and(\\n              add(add(end, iszero(add(length, mload(_preBytes)))), 31),\\n              not(31) // Round down to the nearest 32 bytes.\\n            ))\\n        }\\n\\n        return tempBytes;\\n    }\\n\\n    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {\\n        assembly {\\n            // Read the first 32 bytes of _preBytes storage, which is the length\\n            // of the array. (We don't need to use the offset into the slot\\n            // because arrays use the entire slot.)\\n            let fslot := sload(_preBytes.slot)\\n            // Arrays of 31 bytes or less have an even value in their slot,\\n            // while longer arrays have an odd value. The actual length is\\n            // the slot divided by two for odd values, and the lowest order\\n            // byte divided by two for even values.\\n            // If the slot is even, bitwise and the slot with 255 and divide by\\n            // two to get the length. If the slot is odd, bitwise and the slot\\n            // with -1 and divide by two.\\n            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)\\n            let mlength := mload(_postBytes)\\n            let newlength := add(slength, mlength)\\n            // slength can contain both the length and contents of the array\\n            // if length < 32 bytes so let's prepare for that\\n            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage\\n            switch add(lt(slength, 32), lt(newlength, 32))\\n            case 2 {\\n                // Since the new array still fits in the slot, we just need to\\n                // update the contents of the slot.\\n                // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length\\n                sstore(\\n                    _preBytes.slot,\\n                    // all the modifications to the slot are inside this\\n                    // next block\\n                    add(\\n                        // we can just add to the slot contents because the\\n                        // bytes we want to change are the LSBs\\n                        fslot,\\n                        add(\\n                            mul(\\n                                div(\\n                                    // load the bytes from memory\\n                                    mload(add(_postBytes, 0x20)),\\n                                    // zero all bytes to the right\\n                                    exp(0x100, sub(32, mlength))\\n                                ),\\n                                // and now shift left the number of bytes to\\n                                // leave space for the length in the slot\\n                                exp(0x100, sub(32, newlength))\\n                            ),\\n                            // increase length by the double of the memory\\n                            // bytes length\\n                            mul(mlength, 2)\\n                        )\\n                    )\\n                )\\n            }\\n            case 1 {\\n                // The stored value fits in the slot, but the combined value\\n                // will exceed it.\\n                // get the keccak hash to get the contents of the array\\n                mstore(0x0, _preBytes.slot)\\n                let sc := add(keccak256(0x0, 0x20), div(slength, 32))\\n\\n                // save new length\\n                sstore(_preBytes.slot, add(mul(newlength, 2), 1))\\n\\n                // The contents of the _postBytes array start 32 bytes into\\n                // the structure. Our first read should obtain the `submod`\\n                // bytes that can fit into the unused space in the last word\\n                // of the stored array. To get this, we read 32 bytes starting\\n                // from `submod`, so the data we read overlaps with the array\\n                // contents by `submod` bytes. Masking the lowest-order\\n                // `submod` bytes allows us to add that value directly to the\\n                // stored value.\\n\\n                let submod := sub(32, slength)\\n                let mc := add(_postBytes, submod)\\n                let end := add(_postBytes, mlength)\\n                let mask := sub(exp(0x100, submod), 1)\\n\\n                sstore(\\n                    sc,\\n                    add(\\n                        and(\\n                            fslot,\\n                            0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00\\n                        ),\\n                        and(mload(mc), mask)\\n                    )\\n                )\\n\\n                for {\\n                    mc := add(mc, 0x20)\\n                    sc := add(sc, 1)\\n                } lt(mc, end) {\\n                    sc := add(sc, 1)\\n                    mc := add(mc, 0x20)\\n                } {\\n                    sstore(sc, mload(mc))\\n                }\\n\\n                mask := exp(0x100, sub(mc, end))\\n\\n                sstore(sc, mul(div(mload(mc), mask), mask))\\n            }\\n            default {\\n                // get the keccak hash to get the contents of the array\\n                mstore(0x0, _preBytes.slot)\\n                // Start copying to the last used word of the stored array.\\n                let sc := add(keccak256(0x0, 0x20), div(slength, 32))\\n\\n                // save new length\\n                sstore(_preBytes.slot, add(mul(newlength, 2), 1))\\n\\n                // Copy over the first `submod` bytes of the new data as in\\n                // case 1 above.\\n                let slengthmod := mod(slength, 32)\\n                let mlengthmod := mod(mlength, 32)\\n                let submod := sub(32, slengthmod)\\n                let mc := add(_postBytes, submod)\\n                let end := add(_postBytes, mlength)\\n                let mask := sub(exp(0x100, submod), 1)\\n\\n                sstore(sc, add(sload(sc), and(mload(mc), mask)))\\n\\n                for {\\n                    sc := add(sc, 1)\\n                    mc := add(mc, 0x20)\\n                } lt(mc, end) {\\n                    sc := add(sc, 1)\\n                    mc := add(mc, 0x20)\\n                } {\\n                    sstore(sc, mload(mc))\\n                }\\n\\n                mask := exp(0x100, sub(mc, end))\\n\\n                sstore(sc, mul(div(mload(mc), mask), mask))\\n            }\\n        }\\n    }\\n\\n    function slice(\\n        bytes memory _bytes,\\n        uint256 _start,\\n        uint256 _length\\n    )\\n        internal\\n        pure\\n        returns (bytes memory)\\n    {\\n        // We're using the unchecked block below because otherwise execution ends \\n        // with the native overflow error code.\\n        unchecked {\\n            require(_length + 31 >= _length, \\\"slice_overflow\\\");\\n        }\\n        require(_bytes.length >= _start + _length, \\\"slice_outOfBounds\\\");\\n\\n        bytes memory tempBytes;\\n\\n        assembly {\\n            switch iszero(_length)\\n            case 0 {\\n                // Get a location of some free memory and store it in tempBytes as\\n                // Solidity does for memory variables.\\n                tempBytes := mload(0x40)\\n\\n                // The first word of the slice result is potentially a partial\\n                // word read from the original array. To read it, we calculate\\n                // the length of that partial word and start copying that many\\n                // bytes into the array. The first word we copy will start with\\n                // data we don't care about, but the last `lengthmod` bytes will\\n                // land at the beginning of the contents of the new array. When\\n                // we're done copying, we overwrite the full first word with\\n                // the actual length of the slice.\\n                let lengthmod := and(_length, 31)\\n\\n                // The multiplication in the next line is necessary\\n                // because when slicing multiples of 32 bytes (lengthmod == 0)\\n                // the following copy loop was copying the origin's length\\n                // and then ending prematurely not copying everything it should.\\n                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))\\n                let end := add(mc, _length)\\n\\n                for {\\n                    // The multiplication in the next line has the same exact purpose\\n                    // as the one above.\\n                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)\\n                } lt(mc, end) {\\n                    mc := add(mc, 0x20)\\n                    cc := add(cc, 0x20)\\n                } {\\n                    mstore(mc, mload(cc))\\n                }\\n\\n                mstore(tempBytes, _length)\\n\\n                //update free-memory pointer\\n                //allocating the array padded to 32 bytes like the compiler does now\\n                mstore(0x40, and(add(mc, 31), not(31)))\\n            }\\n            //if we want a zero-length slice let's just return a zero-length array\\n            default {\\n                tempBytes := mload(0x40)\\n                //zero out the 32 bytes slice we are about to return\\n                //we need to do it because Solidity does not garbage collect\\n                mstore(tempBytes, 0)\\n\\n                mstore(0x40, add(tempBytes, 0x20))\\n            }\\n        }\\n\\n        return tempBytes;\\n    }\\n\\n    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {\\n        require(_bytes.length >= _start + 20, \\\"toAddress_outOfBounds\\\");\\n        address tempAddress;\\n\\n        assembly {\\n            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)\\n        }\\n\\n        return tempAddress;\\n    }\\n\\n    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {\\n        require(_bytes.length >= _start + 1 , \\\"toUint8_outOfBounds\\\");\\n        uint8 tempUint;\\n\\n        assembly {\\n            tempUint := mload(add(add(_bytes, 0x1), _start))\\n        }\\n\\n        return tempUint;\\n    }\\n\\n    function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {\\n        require(_bytes.length >= _start + 2, \\\"toUint16_outOfBounds\\\");\\n        uint16 tempUint;\\n\\n        assembly {\\n            tempUint := mload(add(add(_bytes, 0x2), _start))\\n        }\\n\\n        return tempUint;\\n    }\\n\\n    function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {\\n        require(_bytes.length >= _start + 4, \\\"toUint32_outOfBounds\\\");\\n        uint32 tempUint;\\n\\n        assembly {\\n            tempUint := mload(add(add(_bytes, 0x4), _start))\\n        }\\n\\n        return tempUint;\\n    }\\n\\n    function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {\\n        require(_bytes.length >= _start + 8, \\\"toUint64_outOfBounds\\\");\\n        uint64 tempUint;\\n\\n        assembly {\\n            tempUint := mload(add(add(_bytes, 0x8), _start))\\n        }\\n\\n        return tempUint;\\n    }\\n\\n    function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {\\n        require(_bytes.length >= _start + 12, \\\"toUint96_outOfBounds\\\");\\n        uint96 tempUint;\\n\\n        assembly {\\n            tempUint := mload(add(add(_bytes, 0xc), _start))\\n        }\\n\\n        return tempUint;\\n    }\\n\\n    function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {\\n        require(_bytes.length >= _start + 16, \\\"toUint128_outOfBounds\\\");\\n        uint128 tempUint;\\n\\n        assembly {\\n            tempUint := mload(add(add(_bytes, 0x10), _start))\\n        }\\n\\n        return tempUint;\\n    }\\n\\n    function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {\\n        require(_bytes.length >= _start + 32, \\\"toUint256_outOfBounds\\\");\\n        uint256 tempUint;\\n\\n        assembly {\\n            tempUint := mload(add(add(_bytes, 0x20), _start))\\n        }\\n\\n        return tempUint;\\n    }\\n\\n    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {\\n        require(_bytes.length >= _start + 32, \\\"toBytes32_outOfBounds\\\");\\n        bytes32 tempBytes32;\\n\\n        assembly {\\n            tempBytes32 := mload(add(add(_bytes, 0x20), _start))\\n        }\\n\\n        return tempBytes32;\\n    }\\n\\n    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {\\n        bool success = true;\\n\\n        assembly {\\n            let length := mload(_preBytes)\\n\\n            // if lengths don't match the arrays are not equal\\n            switch eq(length, mload(_postBytes))\\n            case 1 {\\n                // cb is a circuit breaker in the for loop since there's\\n                //  no said feature for inline assembly loops\\n                // cb = 1 - don't breaker\\n                // cb = 0 - break\\n                let cb := 1\\n\\n                let mc := add(_preBytes, 0x20)\\n                let end := add(mc, length)\\n\\n                for {\\n                    let cc := add(_postBytes, 0x20)\\n                // the next line is the loop condition:\\n                // while(uint256(mc < end) + cb == 2)\\n                } eq(add(lt(mc, end), cb), 2) {\\n                    mc := add(mc, 0x20)\\n                    cc := add(cc, 0x20)\\n                } {\\n                    // if any of these checks fails then arrays are not equal\\n                    if iszero(eq(mload(mc), mload(cc))) {\\n                        // unsuccess:\\n                        success := 0\\n                        cb := 0\\n                    }\\n                }\\n            }\\n            default {\\n                // unsuccess:\\n                success := 0\\n            }\\n        }\\n\\n        return success;\\n    }\\n\\n    function equalStorage(\\n        bytes storage _preBytes,\\n        bytes memory _postBytes\\n    )\\n        internal\\n        view\\n        returns (bool)\\n    {\\n        bool success = true;\\n\\n        assembly {\\n            // we know _preBytes_offset is 0\\n            let fslot := sload(_preBytes.slot)\\n            // Decode the length of the stored array like in concatStorage().\\n            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)\\n            let mlength := mload(_postBytes)\\n\\n            // if lengths don't match the arrays are not equal\\n            switch eq(slength, mlength)\\n            case 1 {\\n                // slength can contain both the length and contents of the array\\n                // if length < 32 bytes so let's prepare for that\\n                // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage\\n                if iszero(iszero(slength)) {\\n                    switch lt(slength, 32)\\n                    case 1 {\\n                        // blank the last byte which is the length\\n                        fslot := mul(div(fslot, 0x100), 0x100)\\n\\n                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {\\n                            // unsuccess:\\n                            success := 0\\n                        }\\n                    }\\n                    default {\\n                        // cb is a circuit breaker in the for loop since there's\\n                        //  no said feature for inline assembly loops\\n                        // cb = 1 - don't breaker\\n                        // cb = 0 - break\\n                        let cb := 1\\n\\n                        // get the keccak hash to get the contents of the array\\n                        mstore(0x0, _preBytes.slot)\\n                        let sc := keccak256(0x0, 0x20)\\n\\n                        let mc := add(_postBytes, 0x20)\\n                        let end := add(mc, mlength)\\n\\n                        // the next line is the loop condition:\\n                        // while(uint256(mc < end) + cb == 2)\\n                        for {} eq(add(lt(mc, end), cb), 2) {\\n                            sc := add(sc, 1)\\n                            mc := add(mc, 0x20)\\n                        } {\\n                            if iszero(eq(sload(sc), mload(mc))) {\\n                                // unsuccess:\\n                                success := 0\\n                                cb := 0\\n                            }\\n                        }\\n                    }\\n                }\\n            }\\n            default {\\n                // unsuccess:\\n                success := 0\\n            }\\n        }\\n\\n        return success;\\n    }\\n}\\n\",\"keccak256\":\"0xf4b07e5d8f69407bb43c6db224adfcf6c73b512dd64e85008ac3c222910c3555\",\"license\":\"Unlicense\"}},\"version\":1}",
  "bytecode": "0x60e060405234801561001057600080fd5b50604051614e0b380380614e0b83398101604081905261002f916101a0565b6001600160a01b03821660805261004461009a565b61004d8361015a565b6100568261015a565b8063ffffffff1660000361007d576040516349961c7360e11b815260040160405180910390fd5b6001600160a01b0390921660c0525063ffffffff1660a0526101f0565b600054610100900460ff16156101065760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161015610158576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6001600160a01b038116610181576040516342bcdf7f60e11b815260040160405180910390fd5b50565b80516001600160a01b038116811461019b57600080fd5b919050565b6000806000606084860312156101b557600080fd5b6101be84610184565b92506101cc60208501610184565b9150604084015163ffffffff811681146101e557600080fd5b809150509250925092565b60805160a05160c051614b986102736000396000818161060c01528181611033015281816113f301528181611d81015281816122b001528181612576015261272601526000818161048301526110d801526000818161053e01528181611a2f01528181611e6b0152818161217a01528181612ff601526130c80152614b986000f3fe6080604052600436106102895760003560e01c8063715018a611610153578063bb0b6a53116100cb578063f2fde38b1161007f578063f75875ad11610064578063f75875ad14610890578063f8ce6ac2146108b0578063fe2b3502146108d057600080fd5b8063f2fde38b14610843578063f63106e41461086357600080fd5b8063c3e10deb116100b0578063c3e10deb146107e5578063ca5eb5e114610805578063e30c39781461082557600080fd5b8063bb0b6a5314610773578063c2a23c84146107c557600080fd5b80638da5cb5b11610122578063af9e0fd311610107578063af9e0fd314610674578063b4a0bdf3146106ee578063b4c2f7271461070c57600080fd5b80638da5cb5b14610641578063ab803a761461065f57600080fd5b8063715018a6146105d057806379ba5097146105e55780637dd8f522146105fa57806385a7602f1461062e57600080fd5b80633aed7f3111610201578063595bd377116101b55780635e280f111161019a5780635e280f111461052c57806362656e631461057857806365bd691c1461059857600080fd5b8063595bd377146104f25780635c975abb1461051257600080fd5b8063485cc955116101e6578063485cc955146104515780634c21344914610471578063513602e8146104ba57600080fd5b80633aed7f3114610411578063438653fe1461043157600080fd5b80631d1c362011610258578063282071411161023d578063282071411461036357806333bde2ca146103c15780633400288b146103f157600080fd5b80631d1c362014610311578063233dd0da1461033e57600080fd5b806305687c19146102955780630e32cb86146102aa57806316c38b3c146102ca57806317442b70146102ea57600080fd5b3661029057005b600080fd5b6102a86102a3366004613cf6565b610900565b005b3480156102b657600080fd5b506102a86102c5366004613dcd565b610973565b3480156102d657600080fd5b506102a86102e5366004613df8565b610987565b3480156102f657600080fd5b50604080516001815260006020820152015b60405180910390f35b34801561031d57600080fd5b5061033161032c366004613e15565b610a5f565b6040516103089190613e8d565b34801561034a57600080fd5b506103556202a30081565b604051908152602001610308565b34801561036f57600080fd5b5061038361037e366004613eed565b610ab1565b604051610308919081511515815260208083015190820152604080830151908201526060918201516001600160a01b03169181019190915260800190565b3480156103cd57600080fd5b506103e16103dc366004613f2f565b610b44565b6040519015158152602001610308565b3480156103fd57600080fd5b506102a861040c366004613f48565b610b4f565b34801561041d57600080fd5b506102a861042c366004613f74565b610bce565b34801561043d57600080fd5b506102a861044c366004613fad565b610cb7565b34801561045d57600080fd5b506102a861046c366004613ff9565b610e16565b34801561047d57600080fd5b506104a57f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff9091168152602001610308565b3480156104c657600080fd5b506103556104d5366004614027565b60cc60209081526000928352604080842090915290825290205481565b3480156104fe57600080fd5b5061035561050d36600461404c565b610f7d565b34801561051e57600080fd5b5060c9546103e19060ff1681565b34801561053857600080fd5b506105607f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610308565b34801561058457600080fd5b506102a8610593366004613f2f565b610fc4565b3480156105a457600080fd5b506103556105b3366004614027565b60cd60209081526000928352604080842090915290825290205481565b3480156105dc57600080fd5b506102a861125b565b3480156105f157600080fd5b506102a861128d565b34801561060657600080fd5b506105607f000000000000000000000000000000000000000000000000000000000000000081565b6102a861063c366004614098565b611318565b34801561064d57600080fd5b506033546001600160a01b0316610560565b34801561066b57600080fd5b506102a8611572565b34801561068057600080fd5b506106c361068f366004613f2f565b60ca60205260009081526040902080546001820154600283015460039093015460ff9092169290916001600160a01b031684565b6040805194151585526020850193909352918301526001600160a01b03166060820152608001610308565b3480156106fa57600080fd5b506097546001600160a01b0316610560565b34801561071857600080fd5b50610762610727366004613f2f565b60cb6020526000908152604090208054600182015460028301546003909301549192909160ff82169161010090046001600160a01b03169085565b604051610308959493929190614113565b34801561077f57600080fd5b5061035561078e36600461417d565b63ffffffff1660009081527f72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900602052604090205490565b3480156107d157600080fd5b506102a86107e036600461419a565b611671565b3480156107f157600080fd5b506102a8610800366004613f2f565b611908565b34801561081157600080fd5b506102a8610820366004613dcd565b6119ef565b34801561083157600080fd5b506065546001600160a01b0316610560565b34801561084f57600080fd5b506102a861085e366004613dcd565b611a8e565b34801561086f57600080fd5b5061088361087e36600461404c565b611a9f565b6040516103089190614201565b34801561089c57600080fd5b506103556108ab36600461404c565b611cb1565b3480156108bc57600080fd5b506102a86108cb366004613f2f565b611cf8565b3480156108dc57600080fd5b506103e16108eb366004613dcd565b60ce6020526000908152604090205460ff1681565b333014610939576040517f22d1fc8000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008460405160200161094c9190614394565b604051602081830303815290604052905061096a8682868686611e38565b50505050505050565b61097b611f43565b61098481611f9f565b50565b6109c56040518060400160405280600f81526020017f73657450617573656428626f6f6c290000000000000000000000000000000000815250612094565b60c95481151560ff909116151503610a09576040517f3f855e3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60c9546040805160ff9092161515825282151560208301527f91691e0294d292cac1a26c64dd4130c61d6690edeac415bc1fb307d64d3732a1910160405180910390a160c9805460ff1916911515919091179055565b6040805180820190915260008082526020820152600084604051602001610a869190614394565b6040516020818303038152906040529050610aa8856101400151828686612164565b95945050505050565b60408051608081018252600080825260208201819052918101829052606081019190915260008383604051610ae79291906143a7565b60408051918290038220600090815260ca602090815290829020608084018352805460ff1615158452600181015491840191909152600281015491830191909152600301546001600160a01b031660608201529150505b92915050565b6000610b3e82612247565b610b57611f43565b63ffffffff821660008181527f72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900602081815260409283902085905582519384528301849052917f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b91015b60405180910390a1505050565b610bef604051806060016040528060248152602001614b0960249139612094565b610bf882612386565b6001600160a01b038216600090815260ce602052604090205460ff1681151581151503610c51576040517f8eee990d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260ce6020908152604091829020805460ff191686151590811790915582518515158152918201527f10c0e7519c24c8e42dbd4d2405e9976e893c51df86614145b2758289f197ec3b910160405180910390a2505050565b610cf56040518060400160405280601c81526020017f736574436f6e66696741637469766528737472696e672c626f6f6c2900000000815250612094565b60008383604051610d079291906143a7565b6040805191829003909120600081815260ca60205291909120600301549091506001600160a01b0316610d66576040517f80919d7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260ca602052604090205460ff1682151581151503610db5576040517f01e852dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260ca602052604090819020805460ff19168515151790555182907fcba816b2fc5cd49700523a79b6e6c7dda19292fbb932cca77f7bccb1e500479290610e079088908890869089906143e2565b60405180910390a25050505050565b600054610100900460ff1615808015610e365750600054600160ff909116105b80610e505750303b158015610e50575060005460ff166001145b610ec75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b6000805460ff191660011790558015610f0757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610f10836123c6565b610f1982612454565b8015610f7857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001610bc1565b505050565b6000808484604051610f909291906143a7565b6040805191829003909120600090815260cd60209081528282206001600160a01b0387168352905220549150509392505050565b60c95460ff1615611001576040517feced32bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa158015611082573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110aa9190810190614474565b6080810151600090815260ca602052604081206101408301519293509163ffffffff161580159061110c57507f000000000000000000000000000000000000000000000000000000000000000063ffffffff1683610140015163ffffffff1614155b90508061111c5761111c836124da565b611127838383612684565b60038201546001600160a01b03166000826111c7576040517f42b7cfbd0000000000000000000000000000000000000000000000000000000081526001600160a01b038316906342b7cfbd90611181908890600401614394565b602060405180830381865afa15801561119e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c291906145db565b6111ca565b60005b60408051608081018252865460ff16151581526001870154602082015260028701549181019190915260038601546001600160a01b0316606082015290915061121d90869083806112185750855b612933565b82156112435761123e85604051806020016040528060008152506000612a86565b611253565b8015611253576112538583612c98565b505050505050565b6040517f96c553eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60655433906001600160a01b0316811461130f5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610ebe565b61098481612db6565b33600090815260ce602052604090205460ff16611361576040517f341f61ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260cb602052604090206005600282015460ff16600581111561138a5761138a6140e4565b146113c1576040517f9aafae6500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018590526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa158015611442573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261146a9190810190614474565b9050426202a3008260e001516114809190614627565b10156114b8576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114fa8185858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250612a86915050565b80604001516001600160a01b0316816060015160405161151a919061463a565b604051809103902082610140015163ffffffff167f315a04917a98179e57c69a0b2808641e45e218e5402d9d3c7da753ea76c70322846020015160405161156391815260200190565b60405180910390a45050505050565b61157a611f43565b4780156109845760006115956033546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146115df576040519150601f19603f3d011682016040523d82523d6000602084013e6115e4565b606091505b505090508061161f576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6033546001600160a01b03166001600160a01b03167f0a1dd7c5bdc40ecbdefc1bfda22f1dfb98c8fc3e3940aab73ad7fba37720d0a08360405161166591815260200190565b60405180910390a25050565b611692604051806060016040528060368152602001614b2d60369139612094565b61169b83612386565b8315806116a85750604084115b156116de576040517e64280000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003611718576040517ff6ea4e0600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6202a3008110611754576040517ff8d10e8200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600085856040516117669291906143a7565b60405180910390209050600060ca60008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1615151515815260200160018201548152602001600282015481526020016003820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152505090506040518060800160405280600115158152602001858152602001848152602001866001600160a01b031681525060ca600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550905050846001600160a01b031681606001516001600160a01b0316837fed1dcf396500587db779d729bcafd22d1cc4827708623e27189eb6687a6962448a8a86602001518a88604001518b8a6000015160016040516118f7989796959493929190614656565b60405180910390a450505050505050565b33600090815260ce602052604090205460ff16611951576040517f341f61ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260cb602052604090206001600282015460ff16600581111561197a5761197a6140e4565b146119b1576040517fdefe2c2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028101805460ff1916600317905560405182907f0a4273908b9362e571cacd5610879e3dfd7ddc7c9b3ce1d7ea7ea8b41869116490600090a25050565b6119f7611f43565b6040517fca5eb5e10000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063ca5eb5e190602401600060405180830381600087803b158015611a7357600080fd5b505af1158015611a87573d6000803e3d6000fd5b5050505050565b611a96611f43565b61098481612dbf565b606060008484604051611ab39291906143a7565b604051809103902090506000836001600160a01b031663b0772d0b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611afd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b2591908101906146a0565b805190915060008167ffffffffffffffff811115611b4557611b45613a3a565b604051908082528060200260200182016040528015611b6e578160200160208202803683370190505b5090506000805b83811015611c1457600086815260cd6020526040812086518290889085908110611ba157611ba1614752565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549050611bd581612247565b611bdf5750611c0c565b80848481518110611bf257611bf2614752565b602090810291909101015282611c0781614781565b935050505b600101611b75565b508067ffffffffffffffff811115611c2e57611c2e613a3a565b604051908082528060200260200182016040528015611c57578160200160208202803683370190505b50955060005b81811015611ca457828181518110611c7757611c77614752565b6020026020010151878281518110611c9157611c91614752565b6020908102919091010152600101611c5d565b5050505050509392505050565b6000808484604051611cc49291906143a7565b6040805191829003909120600090815260cc60209081528282206001600160a01b0387168352905220549150509392505050565b33600090815260ce602052604090205460ff16611d41576040517f341f61ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260cb602052604080822090517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018490529091907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa158015611dd0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611df89190810190614474565b6080810151600090815260ca60205260409020909150611e19838383612e48565b6003810154611e329083906001600160a01b0316612c98565b50505050565b611e406139d0565b6000611e4f8460000151612fb1565b602085015190915015611e6957611e698460200151612ff2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632637a450826040518060a001604052808b63ffffffff168152602001611eb98c6130ed565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b8152600401611ef59291906147b9565b60806040518083038185885af1158015611f13573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611f389190614880565b979650505050505050565b6033546001600160a01b03163314611f9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebe565b565b6001600160a01b03811661201b5760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610ebe565b609780546001600160a01b038381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b6097546040517f18c5e8ab0000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906318c5e8ab906120e090339086906004016148f2565b602060405180830381865afa1580156120fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212191906145db565b905080612160573330836040517f4a3fa293000000000000000000000000000000000000000000000000000000008152600401610ebe93929190614914565b5050565b60408051808201909152600080825260208201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ddc28c586040518060a001604052808863ffffffff1681526020016121c7896130ed565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b81526004016121fc9291906147b9565b6040805180830381865afa158015612218573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223c9190614940565b90505b949350505050565b600081815260cb602052604081206001600282015460ff166005811115612270576122706140e4565b1461227e5750600092915050565b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018490526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa1580156122ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526123279190810190614474565b6080810151600090815260ca6020526040902080549192509060ff1661235257506000949350505050565b426202a3008360e001516123669190614627565b101561237757506000949350505050565b50506001015442101592915050565b6001600160a01b038116610984576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600054610100900460ff166124435760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b61244b61316a565b610984816131ef565b600054610100900460ff166124d15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b6109848161326c565b6080810151600090815260cd60209081526040808320818501516001600160a01b0316845290915281205490819003612511575050565b600081815260cb602052604090206001600282015460ff16600581111561253a5761253a6140e4565b1461254457505050565b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018390526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa1580156125c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125ed9190810190614474565b90506000426202a3008360e001516126059190614627565b109050801561264f5760028301805460ff1916600417905560405184907f204a9e3c713ee1071c1d59b7caa015e0d7a583ebde2caf4cf34bb9d5d626cabb90600090a25050505050565b6040517fedba5e0700000000000000000000000000000000000000000000000000000000815260048101859052602401610ebe565b602083810151600090815260cb909152604081206002015460ff1660058111156126b0576126b06140e4565b146126e7576040517fdefe2c2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b815460ff16612722576040517fdea2a21200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166334496b5a856060015186604001516040518363ffffffff1660e01b815260040161277a92919061495c565b602060405180830381865afa158015612797573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bb9190614987565b9050836020015181146127fa576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60e08401514290600090612812906202a30090614627565b90508181101561284e576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600285015461285d9083614627565b811015612896576040517f31289af400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83611253576080860151600090815260cc60209081526040808320818a01516001600160a01b0316845282528083205480845260cb9092529091206003015480158015906128f25750838760010154826128f09190614627565b115b15612929576040517f53f7a6ee00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050505050565b602083015160008261295357604084015161294e9042614627565b612955565b425b6040805160a081018252848152602080820184815260018385018181526000606086018190526080860181905289815260cb90945294909220835181559051818301559251600284018054959650929490929160ff19909116908360058111156129c1576129c16140e4565b02179055506060828101516002830180547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101006001600160a01b039384160217905560809384015160039093019290925591870151600090815260cd60209081526040808320818b0180518616855292529182902086905551928801519051929091169184917f1a61d230e613ab7202720dc7c24765ae456c59f31401ae23e29a5397829af5ec91612a779186916149a0565b60405180910390a35050505050565b60008251600014612a975782612ae8565b612ae8620f42406000612ae1604080517e03000000000000000000000000000000000000000000000000000000000000602082015281516002818303018152602290910190915290565b91906132f2565b9050612b07604051806040016040528060008152602001600081525090565b82600003612b2257612b1b85836000610a5f565b9050612b38565b5060408051808201909152828152600060208201525b80516101408601516040517f05687c1900000000000000000000000000000000000000000000000000000000815230926305687c19929091612b8591908a908890889088906004016149b9565b6000604051808303818588803b158015612b9e57600080fd5b505af1158015612bb2573d6000803e3d6000fd5b5050505060208681018051600090815260cb8352604080822060028101805461010033027fffffffffffffffffffffff00000000000000000000000000000000000000000090911617600517905542600382015560808b0151935184845260cc8652828420838d0180516001600160a01b039081168752919097529383902055935160608b0151915194955092939290911691612c4f919061463a565b604051809103902088610140015163ffffffff167f7e5ab31b9063f36db8513c1ec8170e50aaad7cff84901c17758cc09ba40f38a38a602001516040516118f791815260200190565b602082810151600081815260cb83526040808220600280820180547fffffffffffffffffffffff00000000000000000000000000000000000000000016336101000217909117905542600382018190556080880151845260cc8652828420838901516001600160a01b03908116865296529282902084905590517fbf63783900000000000000000000000000000000000000000000000000000000815292939192909185169063bf63783990612d52908890600401614394565b600060405180830381600087803b158015612d6c57600080fd5b505af1158015612d80573d6000803e3d6000fd5b50506040518592507f88dcce5c07c8daf9e03fa70df64b98c8598df462a55510b7a987dadbf84db1099150600090a25050505050565b61098481613373565b612dc7611f43565b606580546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612e106033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b805460ff16612e83576040517fdea2a21200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600284015460ff166005811115612e9e57612e9e6140e4565b03612ed5576040517f9c58a61900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600284015460ff166005811115612ef057612ef06140e4565b14612f27576040517fdefe2c2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426202a3008360e00151612f3b9190614627565b1015612f73576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260010154421015610f78576040517f05f5f49800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000813414612fee576040517f9f704120000000000000000000000000000000000000000000000000000000008152346004820152602401610ebe565b5090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015613052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130769190614a1d565b90506001600160a01b0381166130b8576040517f5373352a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121606001600160a01b038216337f0000000000000000000000000000000000000000000000000000000000000000856133a4565b63ffffffff811660009081527f72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f9006020819052604082205480613163576040517ff6ff4fb700000000000000000000000000000000000000000000000000000000815263ffffffff85166004820152602401610ebe565b9392505050565b600054610100900460ff166131e75760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b611f9d61342c565b600054610100900460ff1661097b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b600054610100900460ff166132e95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b610984816134b2565b606083600361330282600061356f565b61ffff161461334f5761331681600061356f565b6040517f3a51740d00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152602401610ebe565b600061335b85856135d5565b905061336986600183613686565b9695505050505050565b606580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610984816136f1565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611e3290859061375b565b600054610100900460ff166134a95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b611f9d33612db6565b600054610100900460ff1661352f5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b6001600160a01b0381166119f7576040517fb586360400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061357c826002614627565b835110156135cc5760405162461bcd60e51b815260206004820152601460248201527f746f55696e7431365f6f75744f66426f756e64730000000000000000000000006044820152606401610ebe565b50016002015190565b60606fffffffffffffffffffffffffffffffff82161561363e57604080517fffffffffffffffffffffffffffffffff00000000000000000000000000000000608086811b8216602084015285901b16603082015201604051602081830303815290604052613163565b6040517fffffffffffffffffffffffffffffffff00000000000000000000000000000000608085901b1660208201526030016040516020818303038152906040529392505050565b606083600361369682600061356f565b61ffff16146136aa5761331681600061356f565b8460016136b78551613843565b6136c2906001614a3a565b86866040516020016136d8959493929190614a5c565b6040516020818303038152906040529150509392505050565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006137b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138bd9092919063ffffffff16565b90508051600014806137d15750808060200190518101906137d191906145db565b610f785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ebe565b600061ffff821115612fee5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f36206269747300000000000000000000000000000000000000000000000000006064820152608401610ebe565b606061223f848460008585600080866001600160a01b031685876040516138e4919061463a565b60006040518083038185875af1925050503d8060008114613921576040519150601f19603f3d011682016040523d82523d6000602084013e613926565b606091505b5091509150611f3887838387606083156139a157825160000361399a576001600160a01b0385163b61399a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ebe565b508161223f565b61223f83838151156139b65781518083602001fd5b8060405162461bcd60e51b8152600401610ebe9190614af5565b604051806060016040528060008019168152602001600067ffffffffffffffff168152602001613a13604051806040016040528060008152602001600081525090565b905290565b63ffffffff8116811461098457600080fd5b8035613a3581613a18565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610180810167ffffffffffffffff81118282101715613a8d57613a8d613a3a565b60405290565b6040805190810167ffffffffffffffff81118282101715613a8d57613a8d613a3a565b604051601f8201601f1916810167ffffffffffffffff81118282101715613adf57613adf613a3a565b604052919050565b600067ffffffffffffffff821115613b0157613b01613a3a565b50601f01601f191660200190565b600082601f830112613b2057600080fd5b8135613b33613b2e82613ae7565b613ab6565b818152846020838601011115613b4857600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160a01b038116811461098457600080fd5b8035613a3581613b65565b6bffffffffffffffffffffffff8116811461098457600080fd5b8035613a3581613b85565b60006101808284031215613bbd57600080fd5b613bc5613a69565b9050813567ffffffffffffffff80821115613bdf57600080fd5b613beb85838601613b0f565b835260208401356020840152613c0360408501613b7a565b60408401526060840135915080821115613c1c57600080fd5b613c2885838601613b0f565b60608401526080840135608084015260a0840135915080821115613c4b57600080fd5b613c5785838601613b0f565b60a084015260c0840135915080821115613c7057600080fd5b613c7c85838601613b0f565b60c084015260e084013560e08401526101009150613c9b828501613b7a565b828401526101209150613caf828501613b9f565b828401526101409150613cc3828501613a2a565b8284015261016091508184013581811115613cdd57600080fd5b613ce986828701613b0f565b8385015250505092915050565b600080600080600085870360c0811215613d0f57600080fd5b8635613d1a81613a18565b9550602087013567ffffffffffffffff80821115613d3757600080fd5b613d438a838b01613baa565b96506040890135915080821115613d5957600080fd5b50613d6689828a01613b0f565b94505060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa082011215613d9957600080fd5b50613da2613a93565b60608701358152608087013560208201529150613dc160a08701613b7a565b90509295509295909350565b600060208284031215613ddf57600080fd5b813561316381613b65565b801515811461098457600080fd5b600060208284031215613e0a57600080fd5b813561316381613dea565b600080600060608486031215613e2a57600080fd5b833567ffffffffffffffff80821115613e4257600080fd5b613e4e87838801613baa565b94506020860135915080821115613e6457600080fd5b50613e7186828701613b0f565b9250506040840135613e8281613dea565b809150509250925092565b815181526020808301519082015260408101610b3e565b60008083601f840112613eb657600080fd5b50813567ffffffffffffffff811115613ece57600080fd5b602083019150836020828501011115613ee657600080fd5b9250929050565b60008060208385031215613f0057600080fd5b823567ffffffffffffffff811115613f1757600080fd5b613f2385828601613ea4565b90969095509350505050565b600060208284031215613f4157600080fd5b5035919050565b60008060408385031215613f5b57600080fd5b8235613f6681613a18565b946020939093013593505050565b60008060408385031215613f8757600080fd5b8235613f9281613b65565b91506020830135613fa281613dea565b809150509250929050565b600080600060408486031215613fc257600080fd5b833567ffffffffffffffff811115613fd957600080fd5b613fe586828701613ea4565b9094509250506020840135613e8281613dea565b6000806040838503121561400c57600080fd5b823561401781613b65565b91506020830135613fa281613b65565b6000806040838503121561403a57600080fd5b823591506020830135613fa281613b65565b60008060006040848603121561406157600080fd5b833567ffffffffffffffff81111561407857600080fd5b61408486828701613ea4565b9094509250506020840135613e8281613b65565b6000806000604084860312156140ad57600080fd5b83359250602084013567ffffffffffffffff8111156140cb57600080fd5b6140d786828701613ea4565b9497909650939450505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8581526020810185905260a0810160068510614158577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8460408301526001600160a01b03841660608301528260808301529695505050505050565b60006020828403121561418f57600080fd5b813561316381613a18565b6000806000806000608086880312156141b257600080fd5b853567ffffffffffffffff8111156141c957600080fd5b6141d588828901613ea4565b90965094505060208601356141e981613b65565b94979396509394604081013594506060013592915050565b6020808252825182820181905260009190848201906040850190845b818110156142395783518352928401929184019160010161421d565b50909695505050505050565b60005b83811015614260578181015183820152602001614248565b50506000910152565b60008151808452614281816020860160208601614245565b601f01601f19169290920160200192915050565b600061018082518185526142ab82860182614269565b9150506020830151602085015260408301516142d260408601826001600160a01b03169052565b50606083015184820360608601526142ea8282614269565b9150506080830151608085015260a083015184820360a086015261430e8282614269565b91505060c083015184820360c08601526143288282614269565b91505060e083015160e085015261010080840151614350828701826001600160a01b03169052565b5050610120838101516bffffffffffffffffffffffff16908501526101408084015163ffffffff169085015261016080840151858303828701526133698382614269565b6020815260006131636020830184614295565b8183823760009101908152919050565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b6060815260006143f66060830186886143b7565b93151560208301525090151560409091015292915050565b600082601f83011261441f57600080fd5b815161442d613b2e82613ae7565b81815284602083860101111561444257600080fd5b61223f826020830160208701614245565b8051613a3581613b65565b8051613a3581613b85565b8051613a3581613a18565b60006020828403121561448657600080fd5b815167ffffffffffffffff8082111561449e57600080fd5b9083019061018082860312156144b357600080fd5b6144bb613a69565b8251828111156144ca57600080fd5b6144d68782860161440e565b825250602083015160208201526144ef60408401614453565b604082015260608301518281111561450657600080fd5b6145128782860161440e565b6060830152506080830151608082015260a08301518281111561453457600080fd5b6145408782860161440e565b60a08301525060c08301518281111561455857600080fd5b6145648782860161440e565b60c08301525060e083015160e0820152610100614582818501614453565b9082015261012061459484820161445e565b908201526101406145a6848201614469565b9082015261016083810151838111156145be57600080fd5b6145ca8882870161440e565b918301919091525095945050505050565b6000602082840312156145ed57600080fd5b815161316381613dea565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610b3e57610b3e6145f8565b6000825161464c818460208701614245565b9190910192915050565b60e08152600061466a60e083018a8c6143b7565b602083019890985250604081019590955260608501939093526080840191909152151560a0830152151560c09091015292915050565b600060208083850312156146b357600080fd5b825167ffffffffffffffff808211156146cb57600080fd5b818501915085601f8301126146df57600080fd5b8151818111156146f1576146f1613a3a565b8060051b9150614702848301613ab6565b818152918301840191848101908884111561471c57600080fd5b938501935b83851015614746578451925061473683613b65565b8282529385019390850190614721565b98975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147b2576147b26145f8565b5060010190565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a060808401526147ef60e0840182614269565b905060608501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08483030160a085015261482a8282614269565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b60006040828403121561486257600080fd5b61486a613a93565b9050815181526020820151602082015292915050565b60006080828403121561489257600080fd5b6040516060810167ffffffffffffffff82821081831117156148b6576148b6613a3a565b81604052845183526020850151915080821682146148d357600080fd5b5060208201526148e68460408501614850565b60408201529392505050565b6001600160a01b038316815260406020820152600061223f6040830184614269565b60006001600160a01b0380861683528085166020840152506060604083015261223c6060830184614269565b60006040828403121561495257600080fd5b6131638383614850565b60408152600061496f6040830185614269565b90506001600160a01b03831660208301529392505050565b60006020828403121561499957600080fd5b5051919050565b82815260406020820152600061223f6040830184614269565b63ffffffff8616815260c0602082015260006149d860c0830187614295565b82810360408401526149ea8187614269565b85516060850152602086015160808501529150614a049050565b6001600160a01b03831660a08301529695505050505050565b600060208284031215614a2f57600080fd5b815161316381613b65565b61ffff818116838216019080821115614a5557614a556145f8565b5092915050565b60008651614a6e818460208b01614245565b80830190507fff00000000000000000000000000000000000000000000000000000000000000808860f81b1682527fffff0000000000000000000000000000000000000000000000000000000000008760f01b166001830152808660f81b166003830152508351614ae6816004840160208801614245565b01600401979650505050505050565b602081526000613163602083018461426956fe73657457686974656c69737465644578656375746f7228616464726573732c626f6f6c297365745269736b506172616d65746572436f6e66696728737472696e672c616464726573732c75696e743235362c75696e7432353629a264697066735822122026cd0073b7bba0223787c6ec766ac42b86169a4aceaeb076b6ddd211b33572aa64736f6c63430008190033",
  "deployedBytecode": "0x6080604052600436106102895760003560e01c8063715018a611610153578063bb0b6a53116100cb578063f2fde38b1161007f578063f75875ad11610064578063f75875ad14610890578063f8ce6ac2146108b0578063fe2b3502146108d057600080fd5b8063f2fde38b14610843578063f63106e41461086357600080fd5b8063c3e10deb116100b0578063c3e10deb146107e5578063ca5eb5e114610805578063e30c39781461082557600080fd5b8063bb0b6a5314610773578063c2a23c84146107c557600080fd5b80638da5cb5b11610122578063af9e0fd311610107578063af9e0fd314610674578063b4a0bdf3146106ee578063b4c2f7271461070c57600080fd5b80638da5cb5b14610641578063ab803a761461065f57600080fd5b8063715018a6146105d057806379ba5097146105e55780637dd8f522146105fa57806385a7602f1461062e57600080fd5b80633aed7f3111610201578063595bd377116101b55780635e280f111161019a5780635e280f111461052c57806362656e631461057857806365bd691c1461059857600080fd5b8063595bd377146104f25780635c975abb1461051257600080fd5b8063485cc955116101e6578063485cc955146104515780634c21344914610471578063513602e8146104ba57600080fd5b80633aed7f3114610411578063438653fe1461043157600080fd5b80631d1c362011610258578063282071411161023d578063282071411461036357806333bde2ca146103c15780633400288b146103f157600080fd5b80631d1c362014610311578063233dd0da1461033e57600080fd5b806305687c19146102955780630e32cb86146102aa57806316c38b3c146102ca57806317442b70146102ea57600080fd5b3661029057005b600080fd5b6102a86102a3366004613cf6565b610900565b005b3480156102b657600080fd5b506102a86102c5366004613dcd565b610973565b3480156102d657600080fd5b506102a86102e5366004613df8565b610987565b3480156102f657600080fd5b50604080516001815260006020820152015b60405180910390f35b34801561031d57600080fd5b5061033161032c366004613e15565b610a5f565b6040516103089190613e8d565b34801561034a57600080fd5b506103556202a30081565b604051908152602001610308565b34801561036f57600080fd5b5061038361037e366004613eed565b610ab1565b604051610308919081511515815260208083015190820152604080830151908201526060918201516001600160a01b03169181019190915260800190565b3480156103cd57600080fd5b506103e16103dc366004613f2f565b610b44565b6040519015158152602001610308565b3480156103fd57600080fd5b506102a861040c366004613f48565b610b4f565b34801561041d57600080fd5b506102a861042c366004613f74565b610bce565b34801561043d57600080fd5b506102a861044c366004613fad565b610cb7565b34801561045d57600080fd5b506102a861046c366004613ff9565b610e16565b34801561047d57600080fd5b506104a57f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff9091168152602001610308565b3480156104c657600080fd5b506103556104d5366004614027565b60cc60209081526000928352604080842090915290825290205481565b3480156104fe57600080fd5b5061035561050d36600461404c565b610f7d565b34801561051e57600080fd5b5060c9546103e19060ff1681565b34801561053857600080fd5b506105607f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610308565b34801561058457600080fd5b506102a8610593366004613f2f565b610fc4565b3480156105a457600080fd5b506103556105b3366004614027565b60cd60209081526000928352604080842090915290825290205481565b3480156105dc57600080fd5b506102a861125b565b3480156105f157600080fd5b506102a861128d565b34801561060657600080fd5b506105607f000000000000000000000000000000000000000000000000000000000000000081565b6102a861063c366004614098565b611318565b34801561064d57600080fd5b506033546001600160a01b0316610560565b34801561066b57600080fd5b506102a8611572565b34801561068057600080fd5b506106c361068f366004613f2f565b60ca60205260009081526040902080546001820154600283015460039093015460ff9092169290916001600160a01b031684565b6040805194151585526020850193909352918301526001600160a01b03166060820152608001610308565b3480156106fa57600080fd5b506097546001600160a01b0316610560565b34801561071857600080fd5b50610762610727366004613f2f565b60cb6020526000908152604090208054600182015460028301546003909301549192909160ff82169161010090046001600160a01b03169085565b604051610308959493929190614113565b34801561077f57600080fd5b5061035561078e36600461417d565b63ffffffff1660009081527f72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900602052604090205490565b3480156107d157600080fd5b506102a86107e036600461419a565b611671565b3480156107f157600080fd5b506102a8610800366004613f2f565b611908565b34801561081157600080fd5b506102a8610820366004613dcd565b6119ef565b34801561083157600080fd5b506065546001600160a01b0316610560565b34801561084f57600080fd5b506102a861085e366004613dcd565b611a8e565b34801561086f57600080fd5b5061088361087e36600461404c565b611a9f565b6040516103089190614201565b34801561089c57600080fd5b506103556108ab36600461404c565b611cb1565b3480156108bc57600080fd5b506102a86108cb366004613f2f565b611cf8565b3480156108dc57600080fd5b506103e16108eb366004613dcd565b60ce6020526000908152604090205460ff1681565b333014610939576040517f22d1fc8000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008460405160200161094c9190614394565b604051602081830303815290604052905061096a8682868686611e38565b50505050505050565b61097b611f43565b61098481611f9f565b50565b6109c56040518060400160405280600f81526020017f73657450617573656428626f6f6c290000000000000000000000000000000000815250612094565b60c95481151560ff909116151503610a09576040517f3f855e3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60c9546040805160ff9092161515825282151560208301527f91691e0294d292cac1a26c64dd4130c61d6690edeac415bc1fb307d64d3732a1910160405180910390a160c9805460ff1916911515919091179055565b6040805180820190915260008082526020820152600084604051602001610a869190614394565b6040516020818303038152906040529050610aa8856101400151828686612164565b95945050505050565b60408051608081018252600080825260208201819052918101829052606081019190915260008383604051610ae79291906143a7565b60408051918290038220600090815260ca602090815290829020608084018352805460ff1615158452600181015491840191909152600281015491830191909152600301546001600160a01b031660608201529150505b92915050565b6000610b3e82612247565b610b57611f43565b63ffffffff821660008181527f72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f900602081815260409283902085905582519384528301849052917f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b91015b60405180910390a1505050565b610bef604051806060016040528060248152602001614b0960249139612094565b610bf882612386565b6001600160a01b038216600090815260ce602052604090205460ff1681151581151503610c51576040517f8eee990d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260ce6020908152604091829020805460ff191686151590811790915582518515158152918201527f10c0e7519c24c8e42dbd4d2405e9976e893c51df86614145b2758289f197ec3b910160405180910390a2505050565b610cf56040518060400160405280601c81526020017f736574436f6e66696741637469766528737472696e672c626f6f6c2900000000815250612094565b60008383604051610d079291906143a7565b6040805191829003909120600081815260ca60205291909120600301549091506001600160a01b0316610d66576040517f80919d7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260ca602052604090205460ff1682151581151503610db5576040517f01e852dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260ca602052604090819020805460ff19168515151790555182907fcba816b2fc5cd49700523a79b6e6c7dda19292fbb932cca77f7bccb1e500479290610e079088908890869089906143e2565b60405180910390a25050505050565b600054610100900460ff1615808015610e365750600054600160ff909116105b80610e505750303b158015610e50575060005460ff166001145b610ec75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b6000805460ff191660011790558015610f0757600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610f10836123c6565b610f1982612454565b8015610f7857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001610bc1565b505050565b6000808484604051610f909291906143a7565b6040805191829003909120600090815260cd60209081528282206001600160a01b0387168352905220549150509392505050565b60c95460ff1615611001576040517feced32bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa158015611082573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110aa9190810190614474565b6080810151600090815260ca602052604081206101408301519293509163ffffffff161580159061110c57507f000000000000000000000000000000000000000000000000000000000000000063ffffffff1683610140015163ffffffff1614155b90508061111c5761111c836124da565b611127838383612684565b60038201546001600160a01b03166000826111c7576040517f42b7cfbd0000000000000000000000000000000000000000000000000000000081526001600160a01b038316906342b7cfbd90611181908890600401614394565b602060405180830381865afa15801561119e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c291906145db565b6111ca565b60005b60408051608081018252865460ff16151581526001870154602082015260028701549181019190915260038601546001600160a01b0316606082015290915061121d90869083806112185750855b612933565b82156112435761123e85604051806020016040528060008152506000612a86565b611253565b8015611253576112538583612c98565b505050505050565b6040517f96c553eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60655433906001600160a01b0316811461130f5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610ebe565b61098481612db6565b33600090815260ce602052604090205460ff16611361576040517f341f61ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260cb602052604090206005600282015460ff16600581111561138a5761138a6140e4565b146113c1576040517f9aafae6500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018590526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa158015611442573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261146a9190810190614474565b9050426202a3008260e001516114809190614627565b10156114b8576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114fa8185858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250612a86915050565b80604001516001600160a01b0316816060015160405161151a919061463a565b604051809103902082610140015163ffffffff167f315a04917a98179e57c69a0b2808641e45e218e5402d9d3c7da753ea76c70322846020015160405161156391815260200190565b60405180910390a45050505050565b61157a611f43565b4780156109845760006115956033546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d80600081146115df576040519150601f19603f3d011682016040523d82523d6000602084013e6115e4565b606091505b505090508061161f576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6033546001600160a01b03166001600160a01b03167f0a1dd7c5bdc40ecbdefc1bfda22f1dfb98c8fc3e3940aab73ad7fba37720d0a08360405161166591815260200190565b60405180910390a25050565b611692604051806060016040528060368152602001614b2d60369139612094565b61169b83612386565b8315806116a85750604084115b156116de576040517e64280000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003611718576040517ff6ea4e0600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6202a3008110611754576040517ff8d10e8200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600085856040516117669291906143a7565b60405180910390209050600060ca60008381526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff1615151515815260200160018201548152602001600282015481526020016003820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152505090506040518060800160405280600115158152602001858152602001848152602001866001600160a01b031681525060ca600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550905050846001600160a01b031681606001516001600160a01b0316837fed1dcf396500587db779d729bcafd22d1cc4827708623e27189eb6687a6962448a8a86602001518a88604001518b8a6000015160016040516118f7989796959493929190614656565b60405180910390a450505050505050565b33600090815260ce602052604090205460ff16611951576040517f341f61ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260cb602052604090206001600282015460ff16600581111561197a5761197a6140e4565b146119b1576040517fdefe2c2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028101805460ff1916600317905560405182907f0a4273908b9362e571cacd5610879e3dfd7ddc7c9b3ce1d7ea7ea8b41869116490600090a25050565b6119f7611f43565b6040517fca5eb5e10000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063ca5eb5e190602401600060405180830381600087803b158015611a7357600080fd5b505af1158015611a87573d6000803e3d6000fd5b5050505050565b611a96611f43565b61098481612dbf565b606060008484604051611ab39291906143a7565b604051809103902090506000836001600160a01b031663b0772d0b6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611afd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b2591908101906146a0565b805190915060008167ffffffffffffffff811115611b4557611b45613a3a565b604051908082528060200260200182016040528015611b6e578160200160208202803683370190505b5090506000805b83811015611c1457600086815260cd6020526040812086518290889085908110611ba157611ba1614752565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549050611bd581612247565b611bdf5750611c0c565b80848481518110611bf257611bf2614752565b602090810291909101015282611c0781614781565b935050505b600101611b75565b508067ffffffffffffffff811115611c2e57611c2e613a3a565b604051908082528060200260200182016040528015611c57578160200160208202803683370190505b50955060005b81811015611ca457828181518110611c7757611c77614752565b6020026020010151878281518110611c9157611c91614752565b6020908102919091010152600101611c5d565b5050505050509392505050565b6000808484604051611cc49291906143a7565b6040805191829003909120600090815260cc60209081528282206001600160a01b0387168352905220549150509392505050565b33600090815260ce602052604090205460ff16611d41576040517f341f61ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260cb602052604080822090517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018490529091907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa158015611dd0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611df89190810190614474565b6080810151600090815260ca60205260409020909150611e19838383612e48565b6003810154611e329083906001600160a01b0316612c98565b50505050565b611e406139d0565b6000611e4f8460000151612fb1565b602085015190915015611e6957611e698460200151612ff2565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632637a450826040518060a001604052808b63ffffffff168152602001611eb98c6130ed565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b8152600401611ef59291906147b9565b60806040518083038185885af1158015611f13573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611f389190614880565b979650505050505050565b6033546001600160a01b03163314611f9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebe565b565b6001600160a01b03811661201b5760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610ebe565b609780546001600160a01b038381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0910160405180910390a15050565b6097546040517f18c5e8ab0000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906318c5e8ab906120e090339086906004016148f2565b602060405180830381865afa1580156120fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212191906145db565b905080612160573330836040517f4a3fa293000000000000000000000000000000000000000000000000000000008152600401610ebe93929190614914565b5050565b60408051808201909152600080825260208201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ddc28c586040518060a001604052808863ffffffff1681526020016121c7896130ed565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b81526004016121fc9291906147b9565b6040805180830381865afa158015612218573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223c9190614940565b90505b949350505050565b600081815260cb602052604081206001600282015460ff166005811115612270576122706140e4565b1461227e5750600092915050565b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018490526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa1580156122ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526123279190810190614474565b6080810151600090815260ca6020526040902080549192509060ff1661235257506000949350505050565b426202a3008360e001516123669190614627565b101561237757506000949350505050565b50506001015442101592915050565b6001600160a01b038116610984576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600054610100900460ff166124435760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b61244b61316a565b610984816131ef565b600054610100900460ff166124d15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b6109848161326c565b6080810151600090815260cd60209081526040808320818501516001600160a01b0316845290915281205490819003612511575050565b600081815260cb602052604090206001600282015460ff16600581111561253a5761253a6140e4565b1461254457505050565b6040517f37759b9a000000000000000000000000000000000000000000000000000000008152600481018390526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906337759b9a90602401600060405180830381865afa1580156125c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125ed9190810190614474565b90506000426202a3008360e001516126059190614627565b109050801561264f5760028301805460ff1916600417905560405184907f204a9e3c713ee1071c1d59b7caa015e0d7a583ebde2caf4cf34bb9d5d626cabb90600090a25050505050565b6040517fedba5e0700000000000000000000000000000000000000000000000000000000815260048101859052602401610ebe565b602083810151600090815260cb909152604081206002015460ff1660058111156126b0576126b06140e4565b146126e7576040517fdefe2c2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b815460ff16612722576040517fdea2a21200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166334496b5a856060015186604001516040518363ffffffff1660e01b815260040161277a92919061495c565b602060405180830381865afa158015612797573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bb9190614987565b9050836020015181146127fa576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60e08401514290600090612812906202a30090614627565b90508181101561284e576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600285015461285d9083614627565b811015612896576040517f31289af400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83611253576080860151600090815260cc60209081526040808320818a01516001600160a01b0316845282528083205480845260cb9092529091206003015480158015906128f25750838760010154826128f09190614627565b115b15612929576040517f53f7a6ee00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050505050565b602083015160008261295357604084015161294e9042614627565b612955565b425b6040805160a081018252848152602080820184815260018385018181526000606086018190526080860181905289815260cb90945294909220835181559051818301559251600284018054959650929490929160ff19909116908360058111156129c1576129c16140e4565b02179055506060828101516002830180547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101006001600160a01b039384160217905560809384015160039093019290925591870151600090815260cd60209081526040808320818b0180518616855292529182902086905551928801519051929091169184917f1a61d230e613ab7202720dc7c24765ae456c59f31401ae23e29a5397829af5ec91612a779186916149a0565b60405180910390a35050505050565b60008251600014612a975782612ae8565b612ae8620f42406000612ae1604080517e03000000000000000000000000000000000000000000000000000000000000602082015281516002818303018152602290910190915290565b91906132f2565b9050612b07604051806040016040528060008152602001600081525090565b82600003612b2257612b1b85836000610a5f565b9050612b38565b5060408051808201909152828152600060208201525b80516101408601516040517f05687c1900000000000000000000000000000000000000000000000000000000815230926305687c19929091612b8591908a908890889088906004016149b9565b6000604051808303818588803b158015612b9e57600080fd5b505af1158015612bb2573d6000803e3d6000fd5b5050505060208681018051600090815260cb8352604080822060028101805461010033027fffffffffffffffffffffff00000000000000000000000000000000000000000090911617600517905542600382015560808b0151935184845260cc8652828420838d0180516001600160a01b039081168752919097529383902055935160608b0151915194955092939290911691612c4f919061463a565b604051809103902088610140015163ffffffff167f7e5ab31b9063f36db8513c1ec8170e50aaad7cff84901c17758cc09ba40f38a38a602001516040516118f791815260200190565b602082810151600081815260cb83526040808220600280820180547fffffffffffffffffffffff00000000000000000000000000000000000000000016336101000217909117905542600382018190556080880151845260cc8652828420838901516001600160a01b03908116865296529282902084905590517fbf63783900000000000000000000000000000000000000000000000000000000815292939192909185169063bf63783990612d52908890600401614394565b600060405180830381600087803b158015612d6c57600080fd5b505af1158015612d80573d6000803e3d6000fd5b50506040518592507f88dcce5c07c8daf9e03fa70df64b98c8598df462a55510b7a987dadbf84db1099150600090a25050505050565b61098481613373565b612dc7611f43565b606580546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612e106033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b805460ff16612e83576040517fdea2a21200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600284015460ff166005811115612e9e57612e9e6140e4565b03612ed5576040517f9c58a61900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600284015460ff166005811115612ef057612ef06140e4565b14612f27576040517fdefe2c2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426202a3008360e00151612f3b9190614627565b1015612f73576040517fc2a16f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8260010154421015610f78576040517f05f5f49800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000813414612fee576040517f9f704120000000000000000000000000000000000000000000000000000000008152346004820152602401610ebe565b5090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015613052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130769190614a1d565b90506001600160a01b0381166130b8576040517f5373352a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121606001600160a01b038216337f0000000000000000000000000000000000000000000000000000000000000000856133a4565b63ffffffff811660009081527f72ab1bc1039b79dc4724ffca13de82c96834302d3c7e0d4252232d4b2dd8f9006020819052604082205480613163576040517ff6ff4fb700000000000000000000000000000000000000000000000000000000815263ffffffff85166004820152602401610ebe565b9392505050565b600054610100900460ff166131e75760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b611f9d61342c565b600054610100900460ff1661097b5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b600054610100900460ff166132e95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b610984816134b2565b606083600361330282600061356f565b61ffff161461334f5761331681600061356f565b6040517f3a51740d00000000000000000000000000000000000000000000000000000000815261ffff9091166004820152602401610ebe565b600061335b85856135d5565b905061336986600183613686565b9695505050505050565b606580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610984816136f1565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611e3290859061375b565b600054610100900460ff166134a95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b611f9d33612db6565b600054610100900460ff1661352f5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610ebe565b6001600160a01b0381166119f7576040517fb586360400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061357c826002614627565b835110156135cc5760405162461bcd60e51b815260206004820152601460248201527f746f55696e7431365f6f75744f66426f756e64730000000000000000000000006044820152606401610ebe565b50016002015190565b60606fffffffffffffffffffffffffffffffff82161561363e57604080517fffffffffffffffffffffffffffffffff00000000000000000000000000000000608086811b8216602084015285901b16603082015201604051602081830303815290604052613163565b6040517fffffffffffffffffffffffffffffffff00000000000000000000000000000000608085901b1660208201526030016040516020818303038152906040529392505050565b606083600361369682600061356f565b61ffff16146136aa5761331681600061356f565b8460016136b78551613843565b6136c2906001614a3a565b86866040516020016136d8959493929190614a5c565b6040516020818303038152906040529150509392505050565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006137b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138bd9092919063ffffffff16565b90508051600014806137d15750808060200190518101906137d191906145db565b610f785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610ebe565b600061ffff821115612fee5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f36206269747300000000000000000000000000000000000000000000000000006064820152608401610ebe565b606061223f848460008585600080866001600160a01b031685876040516138e4919061463a565b60006040518083038185875af1925050503d8060008114613921576040519150601f19603f3d011682016040523d82523d6000602084013e613926565b606091505b5091509150611f3887838387606083156139a157825160000361399a576001600160a01b0385163b61399a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ebe565b508161223f565b61223f83838151156139b65781518083602001fd5b8060405162461bcd60e51b8152600401610ebe9190614af5565b604051806060016040528060008019168152602001600067ffffffffffffffff168152602001613a13604051806040016040528060008152602001600081525090565b905290565b63ffffffff8116811461098457600080fd5b8035613a3581613a18565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610180810167ffffffffffffffff81118282101715613a8d57613a8d613a3a565b60405290565b6040805190810167ffffffffffffffff81118282101715613a8d57613a8d613a3a565b604051601f8201601f1916810167ffffffffffffffff81118282101715613adf57613adf613a3a565b604052919050565b600067ffffffffffffffff821115613b0157613b01613a3a565b50601f01601f191660200190565b600082601f830112613b2057600080fd5b8135613b33613b2e82613ae7565b613ab6565b818152846020838601011115613b4857600080fd5b816020850160208301376000918101602001919091529392505050565b6001600160a01b038116811461098457600080fd5b8035613a3581613b65565b6bffffffffffffffffffffffff8116811461098457600080fd5b8035613a3581613b85565b60006101808284031215613bbd57600080fd5b613bc5613a69565b9050813567ffffffffffffffff80821115613bdf57600080fd5b613beb85838601613b0f565b835260208401356020840152613c0360408501613b7a565b60408401526060840135915080821115613c1c57600080fd5b613c2885838601613b0f565b60608401526080840135608084015260a0840135915080821115613c4b57600080fd5b613c5785838601613b0f565b60a084015260c0840135915080821115613c7057600080fd5b613c7c85838601613b0f565b60c084015260e084013560e08401526101009150613c9b828501613b7a565b828401526101209150613caf828501613b9f565b828401526101409150613cc3828501613a2a565b8284015261016091508184013581811115613cdd57600080fd5b613ce986828701613b0f565b8385015250505092915050565b600080600080600085870360c0811215613d0f57600080fd5b8635613d1a81613a18565b9550602087013567ffffffffffffffff80821115613d3757600080fd5b613d438a838b01613baa565b96506040890135915080821115613d5957600080fd5b50613d6689828a01613b0f565b94505060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa082011215613d9957600080fd5b50613da2613a93565b60608701358152608087013560208201529150613dc160a08701613b7a565b90509295509295909350565b600060208284031215613ddf57600080fd5b813561316381613b65565b801515811461098457600080fd5b600060208284031215613e0a57600080fd5b813561316381613dea565b600080600060608486031215613e2a57600080fd5b833567ffffffffffffffff80821115613e4257600080fd5b613e4e87838801613baa565b94506020860135915080821115613e6457600080fd5b50613e7186828701613b0f565b9250506040840135613e8281613dea565b809150509250925092565b815181526020808301519082015260408101610b3e565b60008083601f840112613eb657600080fd5b50813567ffffffffffffffff811115613ece57600080fd5b602083019150836020828501011115613ee657600080fd5b9250929050565b60008060208385031215613f0057600080fd5b823567ffffffffffffffff811115613f1757600080fd5b613f2385828601613ea4565b90969095509350505050565b600060208284031215613f4157600080fd5b5035919050565b60008060408385031215613f5b57600080fd5b8235613f6681613a18565b946020939093013593505050565b60008060408385031215613f8757600080fd5b8235613f9281613b65565b91506020830135613fa281613dea565b809150509250929050565b600080600060408486031215613fc257600080fd5b833567ffffffffffffffff811115613fd957600080fd5b613fe586828701613ea4565b9094509250506020840135613e8281613dea565b6000806040838503121561400c57600080fd5b823561401781613b65565b91506020830135613fa281613b65565b6000806040838503121561403a57600080fd5b823591506020830135613fa281613b65565b60008060006040848603121561406157600080fd5b833567ffffffffffffffff81111561407857600080fd5b61408486828701613ea4565b9094509250506020840135613e8281613b65565b6000806000604084860312156140ad57600080fd5b83359250602084013567ffffffffffffffff8111156140cb57600080fd5b6140d786828701613ea4565b9497909650939450505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8581526020810185905260a0810160068510614158577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8460408301526001600160a01b03841660608301528260808301529695505050505050565b60006020828403121561418f57600080fd5b813561316381613a18565b6000806000806000608086880312156141b257600080fd5b853567ffffffffffffffff8111156141c957600080fd5b6141d588828901613ea4565b90965094505060208601356141e981613b65565b94979396509394604081013594506060013592915050565b6020808252825182820181905260009190848201906040850190845b818110156142395783518352928401929184019160010161421d565b50909695505050505050565b60005b83811015614260578181015183820152602001614248565b50506000910152565b60008151808452614281816020860160208601614245565b601f01601f19169290920160200192915050565b600061018082518185526142ab82860182614269565b9150506020830151602085015260408301516142d260408601826001600160a01b03169052565b50606083015184820360608601526142ea8282614269565b9150506080830151608085015260a083015184820360a086015261430e8282614269565b91505060c083015184820360c08601526143288282614269565b91505060e083015160e085015261010080840151614350828701826001600160a01b03169052565b5050610120838101516bffffffffffffffffffffffff16908501526101408084015163ffffffff169085015261016080840151858303828701526133698382614269565b6020815260006131636020830184614295565b8183823760009101908152919050565b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b6060815260006143f66060830186886143b7565b93151560208301525090151560409091015292915050565b600082601f83011261441f57600080fd5b815161442d613b2e82613ae7565b81815284602083860101111561444257600080fd5b61223f826020830160208701614245565b8051613a3581613b65565b8051613a3581613b85565b8051613a3581613a18565b60006020828403121561448657600080fd5b815167ffffffffffffffff8082111561449e57600080fd5b9083019061018082860312156144b357600080fd5b6144bb613a69565b8251828111156144ca57600080fd5b6144d68782860161440e565b825250602083015160208201526144ef60408401614453565b604082015260608301518281111561450657600080fd5b6145128782860161440e565b6060830152506080830151608082015260a08301518281111561453457600080fd5b6145408782860161440e565b60a08301525060c08301518281111561455857600080fd5b6145648782860161440e565b60c08301525060e083015160e0820152610100614582818501614453565b9082015261012061459484820161445e565b908201526101406145a6848201614469565b9082015261016083810151838111156145be57600080fd5b6145ca8882870161440e565b918301919091525095945050505050565b6000602082840312156145ed57600080fd5b815161316381613dea565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610b3e57610b3e6145f8565b6000825161464c818460208701614245565b9190910192915050565b60e08152600061466a60e083018a8c6143b7565b602083019890985250604081019590955260608501939093526080840191909152151560a0830152151560c09091015292915050565b600060208083850312156146b357600080fd5b825167ffffffffffffffff808211156146cb57600080fd5b818501915085601f8301126146df57600080fd5b8151818111156146f1576146f1613a3a565b8060051b9150614702848301613ab6565b818152918301840191848101908884111561471c57600080fd5b938501935b83851015614746578451925061473683613b65565b8282529385019390850190614721565b98975050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147b2576147b26145f8565b5060010190565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a060808401526147ef60e0840182614269565b905060608501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08483030160a085015261482a8282614269565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b60006040828403121561486257600080fd5b61486a613a93565b9050815181526020820151602082015292915050565b60006080828403121561489257600080fd5b6040516060810167ffffffffffffffff82821081831117156148b6576148b6613a3a565b81604052845183526020850151915080821682146148d357600080fd5b5060208201526148e68460408501614850565b60408201529392505050565b6001600160a01b038316815260406020820152600061223f6040830184614269565b60006001600160a01b0380861683528085166020840152506060604083015261223c6060830184614269565b60006040828403121561495257600080fd5b6131638383614850565b60408152600061496f6040830185614269565b90506001600160a01b03831660208301529392505050565b60006020828403121561499957600080fd5b5051919050565b82815260406020820152600061223f6040830184614269565b63ffffffff8616815260c0602082015260006149d860c0830187614295565b82810360408401526149ea8187614269565b85516060850152602086015160808501529150614a049050565b6001600160a01b03831660a08301529695505050505050565b600060208284031215614a2f57600080fd5b815161316381613b65565b61ffff818116838216019080821115614a5557614a556145f8565b5092915050565b60008651614a6e818460208b01614245565b80830190507fff00000000000000000000000000000000000000000000000000000000000000808860f81b1682527fffff0000000000000000000000000000000000000000000000000000000000008760f01b166001830152808660f81b166003830152508351614ae6816004840160208801614245565b01600401979650505050505050565b602081526000613163602083018461426956fe73657457686974656c69737465644578656375746f7228616464726573732c626f6f6c297365745269736b506172616d65746572436f6e66696728737472696e672c616464726573732c75696e743235362c75696e7432353629a264697066735822122026cd0073b7bba0223787c6ec766ac42b86169a4aceaeb076b6ddd211b33572aa64736f6c63430008190033",
  "devdoc": {
    "author": "Venus",
    "custom:security-contact": "https://github.com/VenusProtocol/governance-contracts#discussion",
    "errors": {
      "TransferFailed()": [
        {
          "custom:error": "TransferFailed"
        }
      ]
    },
    "events": {
      "Initialized(uint8)": {
        "details": "Triggered when the contract has been initialized or reinitialized."
      },
      "PauseStatusUpdated(bool,bool)": {
        "params": {
          "paused": "Current pause state",
          "previousPaused": "Previous pause state"
        }
      }
    },
    "kind": "dev",
    "methods": {
      "acceptOwnership()": {
        "details": "The new owner accepts the ownership transfer."
      },
      "constructor": {
        "custom:oz-upgrades-unsafe-allow": "constructor",
        "params": {
          "endpoint_": "The LayerZero endpoint contract used by the underlying `OAppUpgradeable`.",
          "layerZeroLzEid_": "The LayerZero endpoint ID (EID) for this chain.",
          "riskOracle_": "The address of the Risk Oracle contract."
        }
      },
      "executeRegisteredUpdate(uint256)": {
        "custom:access": "Only whitelisted executors can call this function",
        "custom:error": "Throws NotAnExecutor if the caller is not a whitelisted executorThrows InvalidRegisteredUpdate if the update was never registeredThrows UpdateAlreadyResolved if the update was already executed or rejectedThrows UpdateIsExpired if the update has expiredThrows ConfigNotActive if the config is not activeThrows UpdateNotUnlocked if the unlock time has not passed",
        "custom:event": "Emits UpdateExecuted with the oracle update ID",
        "params": {
          "updateId": "The oracle update ID of the update to execute"
        }
      },
      "getExecutableUpdates(string,address)": {
        "params": {
          "comptroller": "The address of the Comptroller (either Core Pool or Isolated Pools) that manages the markets",
          "updateType": "The human‑readable identifier of the update type to filter by"
        },
        "returns": {
          "executableUpdates": "Array of update IDs that are ready to be executed"
        }
      },
      "getLastProcessedUpdate(string,address)": {
        "params": {
          "market": "The address of the market",
          "updateType": "The human-readable identifier of the update type"
        },
        "returns": {
          "_0": "The last processed update ID"
        }
      },
      "getLastRegisteredUpdate(string,address)": {
        "params": {
          "market": "The address of the market",
          "updateType": "The human-readable identifier of the update type"
        },
        "returns": {
          "_0": "The last registered update ID"
        }
      },
      "getRiskParameterConfig(string)": {
        "params": {
          "updateType": "The human-readable identifier of the update type"
        },
        "returns": {
          "_0": "The risk parameter configuration"
        }
      },
      "initialize(address,address)": {
        "params": {
          "acm_": "The address of the Access Control Manager",
          "delegate_": "The address of the OApp owner passed to `__OApp_init`."
        }
      },
      "isUpdateExecutable(uint256)": {
        "params": {
          "updateId": "The oracle update ID to query"
        },
        "returns": {
          "_0": "True if the update is pending, not expired, active, and past its timelock"
        }
      },
      "lzSend(uint32,(string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,(uint256,uint256),address)": {
        "custom:error": "InvalidLzSendCaller if called by any address other than this contract",
        "params": {
          "dstEid": "Destination chain endpoint ID",
          "fee": "Messaging fee structure returned by `quote`",
          "options": "LayerZero message options; if empty, a default executor option is used",
          "refundAddress": "Address to receive any surplus fee refunds",
          "update": "The risk parameter update payload to send"
        }
      },
      "oAppVersion()": {
        "details": "Providing 0 as the default for OAppReceiver version. Indicates that the OAppReceiver is not implemented. ie. this is a SEND only OApp.If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions",
        "returns": {
          "receiverVersion": "The version of the OAppReceiver.sol contract.",
          "senderVersion": "The version of the OAppSender.sol contract."
        }
      },
      "owner()": {
        "details": "Returns the address of the current owner."
      },
      "peers(uint32)": {
        "params": {
          "_eid": "The endpoint ID."
        },
        "returns": {
          "_0": "peer The address of the peer associated with the specified endpoint."
        }
      },
      "pendingOwner()": {
        "details": "Returns the address of the pending owner."
      },
      "processUpdate(uint256)": {
        "custom:error": "Throws UpdateAlreadyResolved if the update was already processedThrows UpdateIsExpired if the update has expiredThrows ConfigNotActive if the config is not activeThrows UpdateTooFrequent if the debounce period has not passedThrows RegisteredUpdateTypeExist if there is a non-expired pending update of the same type",
        "custom:event": "Emits UpdateRegistered, UpdateExecuted, or UpdateSentToDestination depending on the update type",
        "params": {
          "updateId": "The update ID from the oracle's perspective"
        }
      },
      "quote((string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,bool)": {
        "params": {
          "options": "Message execution options (e.g., for sending gas to the destination)",
          "payInLzToken": "Whether to return the fee in ZRO token instead of native gas",
          "update": "The risk parameter update payload to be sent"
        },
        "returns": {
          "fee": "A `MessagingFee` struct containing the calculated gas fee"
        }
      },
      "rejectUpdate(uint256)": {
        "custom:access": "Only whitelisted executors can call this function",
        "custom:error": "Throws UpdateAlreadyResolved if the update was already executed or rejected",
        "custom:event": "Emits UpdateRejected with the oracle update ID",
        "params": {
          "updateId": "The oracle update ID of the update to reject"
        }
      },
      "renounceOwnership()": {
        "custom:error": "Throws RenounceOwnershipNotAllowed"
      },
      "resendRemoteUpdate(uint256,bytes)": {
        "custom:access": "Only whitelisted executors can call this function",
        "custom:error": "Throws NotAnExecutor if the caller is not a whitelisted executorThrows InvalidUpdateToResend if the update status is not SENT_TO_DESTINATIONThrows UpdateIsExpired if the update has expired",
        "custom:event": "Emits UpdateResentToDestination with the update ID, destination chain ID, update type, and market",
        "details": "Duplicate update rejection is handled in the destination contract itself, so resending      the same update multiple times is safe and will be deduplicated on the destination side.",
        "params": {
          "options": "LayerZero message options; if empty, default executor option is used",
          "updateId": "The oracle update ID to resend"
        }
      },
      "setAccessControlManager(address)": {
        "custom:access": "Only Governance",
        "custom:event": "Emits NewAccessControlManager event",
        "details": "Admin function to set address of AccessControlManager",
        "params": {
          "accessControlManager_": "The new address of the AccessControlManager"
        }
      },
      "setConfigActive(string,bool)": {
        "custom:access": "Controlled by AccessControlManager",
        "custom:error": "Throws UnsupportedUpdateType if the update type is not supportedThrows ConfigStatusUnchanged if the active status is already set to the desired value",
        "custom:event": "Emits ConfigActiveUpdated with the update type hash, update type, previous active status, and the active status",
        "params": {
          "active": "The active status to set",
          "updateType": "The type of update to configure"
        }
      },
      "setDelegate(address)": {
        "details": "Only the owner/admin of the OApp can call this function.Provides the ability for a delegate to set configs, on behalf of the OApp, directly on the Endpoint contract.",
        "params": {
          "_delegate": "The address of the delegate to be set."
        }
      },
      "setPaused(bool)": {
        "custom:access": "Controlled by AccessControlManager",
        "custom:event": "Emits PauseStatusUpdated",
        "params": {
          "paused_": "True to pause, false to unpause"
        }
      },
      "setPeer(uint32,bytes32)": {
        "details": "Only the owner/admin of the OApp can call this function.Indicates that the peer is trusted to send LayerZero messages to this OApp.Set this to bytes32(0) to remove the peer address.Peer is a bytes32 to accommodate non-evm chains.",
        "params": {
          "_eid": "The endpoint ID.",
          "_peer": "The address of the peer to be associated with the corresponding endpoint."
        }
      },
      "setRiskParameterConfig(string,address,uint256,uint256)": {
        "custom:access": "Controlled by AccessControlManager",
        "custom:error": "InvalidUpdateType if the update type string is emptyThrows InvalidDebounce if the debounce is 0Throws InvalidTimelock if the timelock is greater than or equal to the expiration timeThrows ZeroAddressNotAllowed if the risk steward address is zero",
        "custom:event": "Emits RiskParameterConfigUpdated",
        "params": {
          "debounce": "The debounce period for the update",
          "riskSteward": "The address for the risk steward contract responsible for processing the update",
          "timelock": "The timelock period before the update can be executed",
          "updateType": "The type of update to configure"
        }
      },
      "setWhitelistedExecutor(address,bool)": {
        "custom:access": "Controlled by AccessControlManager",
        "custom:error": "Throws ZeroAddressNotAllowed if the executor address is zeroThrows ExecutorStatusUnchanged if the executor whitelist status is already set to the desired value",
        "custom:event": "Emits ExecutorStatusUpdated with the executor address, previous approval status, and approval status",
        "params": {
          "approved": "The whitelist status to set (true to whitelist, false to remove)",
          "executor": "The address of the executor"
        }
      },
      "sweepNative()": {
        "custom:event": "Emits SweepNative event."
      },
      "transferOwnership(address)": {
        "details": "Overrides OwnableUpgradeable and Ownable2StepUpgradeable to resolve      the multiple inheritance ownership transfer conflict."
      }
    },
    "stateVariables": {
      "__gap": {
        "details": "This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain. See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps"
      }
    },
    "title": "RiskStewardReceiver",
    "version": 1
  },
  "userdoc": {
    "errors": {
      "ConfigNotActive()": [
        {
          "notice": "Thrown if a submitted update is not active and therefore cannot be processed"
        }
      ],
      "ConfigStatusUnchanged()": [
        {
          "notice": "Thrown when trying to set the same config active status"
        }
      ],
      "ExecutorStatusUnchanged()": [
        {
          "notice": "Thrown when trying to set the same executor whitelist status"
        }
      ],
      "InvalidDebounce()": [
        {
          "notice": "Thrown when a debounce value of 0 is set"
        }
      ],
      "InvalidLayerZeroEid()": [
        {
          "notice": "Thrown when an invalid LayerZero endpoint ID is provided"
        }
      ],
      "InvalidLzSendCaller()": [
        {
          "notice": "Thrown when attempting to call lzSend from an address other than this contract"
        }
      ],
      "InvalidRegisteredUpdate()": [
        {
          "notice": "Thrown when trying to execute an update that was never registered"
        }
      ],
      "InvalidTimelock()": [
        {
          "notice": "Thrown when a timelock value is greater than or equal to the expiration time"
        }
      ],
      "InvalidUpdateToResend()": [
        {
          "notice": "Thrown when trying to resend an update that is not in SENT_TO_DESTINATION status"
        }
      ],
      "InvalidUpdateType()": [
        {
          "notice": "Thrown when an empty update type string is provided"
        }
      ],
      "NotAnExecutor()": [
        {
          "notice": "Thrown when an address is not an executor"
        }
      ],
      "PauseStatusUnchanged()": [
        {
          "notice": "Thrown when trying to set the same pause status"
        }
      ],
      "PausedError()": [
        {
          "notice": "Thrown when processUpdate is called while the contract is paused"
        }
      ],
      "RegisteredUpdateTypeExist(uint256)": [
        {
          "notice": "Thrown when there is a non-expired pending update of the same type for the market"
        }
      ],
      "RenounceOwnershipNotAllowed()": [
        {
          "notice": "Thrown when trying to renounce ownership"
        }
      ],
      "Unauthorized(address,address,string)": [
        {
          "notice": "Thrown when the action is prohibited by AccessControlManager"
        }
      ],
      "UnsupportedUpdateType()": [
        {
          "notice": "Thrown when an update type that is not supported is operated on"
        }
      ],
      "UpdateAlreadyResolved()": [
        {
          "notice": "Thrown when an update has already been processed"
        }
      ],
      "UpdateIsExpired()": [
        {
          "notice": "Thrown when an update was not applied within the required time frame"
        }
      ],
      "UpdateNotFound()": [
        {
          "notice": "Thrown when trying to resolve an update that doesn't exist"
        }
      ],
      "UpdateNotUnlocked()": [
        {
          "notice": "Thrown when update unlock time has not been reached"
        }
      ],
      "UpdateTooFrequent()": [
        {
          "notice": "Thrown when the debounce period hasn't passed for applying an update to a specific market / update type"
        }
      ],
      "UpdateWillExpireBeforeUnlock()": [
        {
          "notice": "Thrown when an update will expire before its timelock unlocks"
        }
      ],
      "ZeroAddressNotAllowed()": [
        {
          "notice": "Thrown if the supplied address is a zero address where it is not allowed"
        }
      ]
    },
    "events": {
      "ConfigActiveUpdated(bytes32,string,bool,bool)": {
        "notice": "Event emitted when a risk parameter config active status is set"
      },
      "ExecutorStatusUpdated(address,bool,bool)": {
        "notice": "Event emitted when an executor status is set"
      },
      "NewAccessControlManager(address,address)": {
        "notice": "Emitted when access control manager contract address is changed"
      },
      "PauseStatusUpdated(bool,bool)": {
        "notice": "Event emitted when the pause status changes"
      },
      "RiskParameterConfigUpdated(bytes32,string,address,address,uint256,uint256,uint256,uint256,bool,bool)": {
        "notice": "Event emitted when a risk parameter config is set"
      },
      "SweepNative(address,uint256)": {
        "notice": "Emitted when leftover native tokens are swept by owner"
      },
      "UpdateExecuted(uint256)": {
        "notice": "Event emitted when an update is successfully executed"
      },
      "UpdateExpired(uint256)": {
        "notice": "Event emitted when an update is marked as expired"
      },
      "UpdateRegistered(uint256,uint256,string,address)": {
        "notice": "Event emitted when an update is registered"
      },
      "UpdateRejected(uint256)": {
        "notice": "Event emitted when an update is rejected"
      },
      "UpdateResentToDestination(uint256,uint32,string,address)": {
        "notice": "Event emitted when an update is resent to a destination chain"
      },
      "UpdateSentToDestination(uint256,uint32,string,address)": {
        "notice": "Event emitted when an update is sent to a destination chain"
      }
    },
    "kind": "user",
    "methods": {
      "LAYER_ZERO_EID()": {
        "notice": "Source chain LayerZero endpoint ID"
      },
      "RISK_ORACLE()": {
        "notice": "The Risk Oracle contract address"
      },
      "UPDATE_EXPIRATION_TIME()": {
        "notice": "Period after which a proposed update becomes expired and can no longer be applied"
      },
      "accessControlManager()": {
        "notice": "Returns the address of the access control manager contract"
      },
      "constructor": {
        "notice": "Disables initializers and sets the Risk Oracle and LayerZero configuration."
      },
      "endpoint()": {
        "notice": "Retrieves the LayerZero endpoint associated with the OApp."
      },
      "executeRegisteredUpdate(uint256)": {
        "notice": "Executes a registered update. Only whitelisted executors can call this function.         This function can be used for updates that have completed their timelock and are ready to execute."
      },
      "getExecutableUpdates(string,address)": {
        "notice": "Returns an array of update IDs for executable registered updates for a given update type and comptroller."
      },
      "getLastProcessedUpdate(string,address)": {
        "notice": "Returns the last processed update ID for a given update type and market"
      },
      "getLastRegisteredUpdate(string,address)": {
        "notice": "Returns the last registered update ID for a given update type and market"
      },
      "getRiskParameterConfig(string)": {
        "notice": "Returns the risk parameter configuration for a given update type"
      },
      "initialize(address,address)": {
        "notice": "Initializes the contract with the Access Control Manager and OApp owner."
      },
      "isUpdateExecutable(uint256)": {
        "notice": "Returns whether a registered update is ready to be executed."
      },
      "lastProcessedUpdate(bytes32,address)": {
        "notice": "Track last processed update ID per (updateTypeKey, market)"
      },
      "lastRegisteredUpdate(bytes32,address)": {
        "notice": "Track the current registered update per (updateType, market) to avoid registering multiple updates"
      },
      "lzSend(uint32,(string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,(uint256,uint256),address)": {
        "notice": "Sends a `RiskParameterUpdate` to a destination chain via LayerZero."
      },
      "oAppVersion()": {
        "notice": "Retrieves the OApp version information."
      },
      "paused()": {
        "notice": "Pause flag"
      },
      "peers(uint32)": {
        "notice": "Returns the peer address (OApp instance) associated with a specific endpoint."
      },
      "processUpdate(uint256)": {
        "notice": "Processes an update from the Risk Oracle. Validates, registers the update, and either executes immediately, registers with timelock, or forwards cross-chain."
      },
      "quote((string,uint256,address,string,bytes32,bytes,bytes,uint256,address,uint96,uint32,bytes),bytes,bool)": {
        "notice": "Quotes the gas fee needed to pay for the full omnichain transaction in native gas or ZRO token."
      },
      "rejectUpdate(uint256)": {
        "notice": "Rejects a registered update"
      },
      "renounceOwnership()": {
        "notice": "Disables renounceOwnership function"
      },
      "resendRemoteUpdate(uint256,bytes)": {
        "notice": "Resends a remote update to the destination chain. This function is useful in case of bridge failures."
      },
      "riskParameterConfigs(bytes32)": {
        "notice": "Mapping of supported risk configurations and their validation parameters (keyed by hashed updateType)"
      },
      "setAccessControlManager(address)": {
        "notice": "Sets the address of AccessControlManager"
      },
      "setConfigActive(string,bool)": {
        "notice": "Sets the active status of a risk parameter config"
      },
      "setDelegate(address)": {
        "notice": "Sets the delegate address for the OApp."
      },
      "setPaused(bool)": {
        "notice": "Sets the pause status for `processUpdate`."
      },
      "setPeer(uint32,bytes32)": {
        "notice": "Sets the peer address (OApp instance) for a corresponding endpoint."
      },
      "setRiskParameterConfig(string,address,uint256,uint256)": {
        "notice": "Sets the risk parameter config for a given update type"
      },
      "setWhitelistedExecutor(address,bool)": {
        "notice": "Manages the whitelist of executors that are allowed to execute timelocked registered updates."
      },
      "sweepNative()": {
        "notice": "Allows the owner to sweep leftover native tokens (e.g., BNB) from the contract."
      },
      "updates(uint256)": {
        "notice": "Master storage of all registered updates by update ID"
      },
      "whitelistedExecutors(address)": {
        "notice": "Mapping from executor address to whitelist status"
      }
    },
    "notice": "Contract that reads updates from a Risk Oracle, validates them with timelock and debounce,         and either executes them locally via the configured RiskSteward or forwards them cross‑chain.",
    "version": 1
  },
  "storageLayout": {
    "storage": [
      {
        "astId": 3140,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "_initialized",
        "offset": 0,
        "slot": "0",
        "type": "t_uint8"
      },
      {
        "astId": 3143,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "_initializing",
        "offset": 1,
        "slot": "0",
        "type": "t_bool"
      },
      {
        "astId": 3627,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "__gap",
        "offset": 0,
        "slot": "1",
        "type": "t_array(t_uint256)50_storage"
      },
      {
        "astId": 3012,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "_owner",
        "offset": 0,
        "slot": "51",
        "type": "t_address"
      },
      {
        "astId": 3132,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "__gap",
        "offset": 0,
        "slot": "52",
        "type": "t_array(t_uint256)49_storage"
      },
      {
        "astId": 2921,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "_pendingOwner",
        "offset": 0,
        "slot": "101",
        "type": "t_address"
      },
      {
        "astId": 3000,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "__gap",
        "offset": 0,
        "slot": "102",
        "type": "t_array(t_uint256)49_storage"
      },
      {
        "astId": 6194,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "_accessControlManager",
        "offset": 0,
        "slot": "151",
        "type": "t_contract(IAccessControlManagerV8)6379"
      },
      {
        "astId": 6199,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "__gap",
        "offset": 0,
        "slot": "152",
        "type": "t_array(t_uint256)49_storage"
      },
      {
        "astId": 10299,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "paused",
        "offset": 0,
        "slot": "201",
        "type": "t_bool"
      },
      {
        "astId": 10305,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "riskParameterConfigs",
        "offset": 0,
        "slot": "202",
        "type": "t_mapping(t_bytes32,t_struct(RiskParamConfig)8792_storage)"
      },
      {
        "astId": 10311,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "updates",
        "offset": 0,
        "slot": "203",
        "type": "t_mapping(t_uint256,t_struct(RegisteredUpdate)8805_storage)"
      },
      {
        "astId": 10318,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "lastProcessedUpdate",
        "offset": 0,
        "slot": "204",
        "type": "t_mapping(t_bytes32,t_mapping(t_address,t_uint256))"
      },
      {
        "astId": 10325,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "lastRegisteredUpdate",
        "offset": 0,
        "slot": "205",
        "type": "t_mapping(t_bytes32,t_mapping(t_address,t_uint256))"
      },
      {
        "astId": 10330,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "whitelistedExecutors",
        "offset": 0,
        "slot": "206",
        "type": "t_mapping(t_address,t_bool)"
      },
      {
        "astId": 10335,
        "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
        "label": "__gap",
        "offset": 0,
        "slot": "207",
        "type": "t_array(t_uint256)44_storage"
      }
    ],
    "types": {
      "t_address": {
        "encoding": "inplace",
        "label": "address",
        "numberOfBytes": "20"
      },
      "t_array(t_uint256)44_storage": {
        "base": "t_uint256",
        "encoding": "inplace",
        "label": "uint256[44]",
        "numberOfBytes": "1408"
      },
      "t_array(t_uint256)49_storage": {
        "base": "t_uint256",
        "encoding": "inplace",
        "label": "uint256[49]",
        "numberOfBytes": "1568"
      },
      "t_array(t_uint256)50_storage": {
        "base": "t_uint256",
        "encoding": "inplace",
        "label": "uint256[50]",
        "numberOfBytes": "1600"
      },
      "t_bool": {
        "encoding": "inplace",
        "label": "bool",
        "numberOfBytes": "1"
      },
      "t_bytes32": {
        "encoding": "inplace",
        "label": "bytes32",
        "numberOfBytes": "32"
      },
      "t_contract(IAccessControlManagerV8)6379": {
        "encoding": "inplace",
        "label": "contract IAccessControlManagerV8",
        "numberOfBytes": "20"
      },
      "t_enum(UpdateStatus)8782": {
        "encoding": "inplace",
        "label": "enum IRiskStewardReceiver.UpdateStatus",
        "numberOfBytes": "1"
      },
      "t_mapping(t_address,t_bool)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => bool)",
        "numberOfBytes": "32",
        "value": "t_bool"
      },
      "t_mapping(t_address,t_uint256)": {
        "encoding": "mapping",
        "key": "t_address",
        "label": "mapping(address => uint256)",
        "numberOfBytes": "32",
        "value": "t_uint256"
      },
      "t_mapping(t_bytes32,t_mapping(t_address,t_uint256))": {
        "encoding": "mapping",
        "key": "t_bytes32",
        "label": "mapping(bytes32 => mapping(address => uint256))",
        "numberOfBytes": "32",
        "value": "t_mapping(t_address,t_uint256)"
      },
      "t_mapping(t_bytes32,t_struct(RiskParamConfig)8792_storage)": {
        "encoding": "mapping",
        "key": "t_bytes32",
        "label": "mapping(bytes32 => struct IRiskStewardReceiver.RiskParamConfig)",
        "numberOfBytes": "32",
        "value": "t_struct(RiskParamConfig)8792_storage"
      },
      "t_mapping(t_uint256,t_struct(RegisteredUpdate)8805_storage)": {
        "encoding": "mapping",
        "key": "t_uint256",
        "label": "mapping(uint256 => struct IRiskStewardReceiver.RegisteredUpdate)",
        "numberOfBytes": "32",
        "value": "t_struct(RegisteredUpdate)8805_storage"
      },
      "t_struct(RegisteredUpdate)8805_storage": {
        "encoding": "inplace",
        "label": "struct IRiskStewardReceiver.RegisteredUpdate",
        "members": [
          {
            "astId": 8795,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "updateId",
            "offset": 0,
            "slot": "0",
            "type": "t_uint256"
          },
          {
            "astId": 8797,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "unlockTime",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          },
          {
            "astId": 8800,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "status",
            "offset": 0,
            "slot": "2",
            "type": "t_enum(UpdateStatus)8782"
          },
          {
            "astId": 8802,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "executor",
            "offset": 1,
            "slot": "2",
            "type": "t_address"
          },
          {
            "astId": 8804,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "executedAt",
            "offset": 0,
            "slot": "3",
            "type": "t_uint256"
          }
        ],
        "numberOfBytes": "128"
      },
      "t_struct(RiskParamConfig)8792_storage": {
        "encoding": "inplace",
        "label": "struct IRiskStewardReceiver.RiskParamConfig",
        "members": [
          {
            "astId": 8785,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "active",
            "offset": 0,
            "slot": "0",
            "type": "t_bool"
          },
          {
            "astId": 8787,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "debounce",
            "offset": 0,
            "slot": "1",
            "type": "t_uint256"
          },
          {
            "astId": 8789,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "timelock",
            "offset": 0,
            "slot": "2",
            "type": "t_uint256"
          },
          {
            "astId": 8791,
            "contract": "contracts/RiskSteward/RiskStewardReceiver.sol:RiskStewardReceiver",
            "label": "riskSteward",
            "offset": 0,
            "slot": "3",
            "type": "t_address"
          }
        ],
        "numberOfBytes": "128"
      },
      "t_uint256": {
        "encoding": "inplace",
        "label": "uint256",
        "numberOfBytes": "32"
      },
      "t_uint8": {
        "encoding": "inplace",
        "label": "uint8",
        "numberOfBytes": "1"
      }
    }
  }
}
