[
  {
    "inputs": [],
    "name": "crossDomainMessageContext",
    "outputs": [
      {
        "internalType": "address",
        "name": "sender_",
        "type": "address"
      },
      {
        "internalType": "uint256",
        "name": "source_",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "crossDomainMessageSender",
    "outputs": [
      {
        "internalType": "address",
        "name": "sender_",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "crossDomainMessageSource",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "source_",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "messageNonce",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "messageVersion",
    "outputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "components": [
          {
            "internalType": "address",
            "name": "origin",
            "type": "address"
          },
          {
            "internalType": "uint256",
            "name": "blockNumber",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "logIndex",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "timestamp",
            "type": "uint256"
          },
          {
            "internalType": "uint256",
            "name": "chainId",
            "type": "uint256"
          }
        ],
        "internalType": "struct Identifier",
        "name": "_id",
        "type": "tuple"
      },
      {
        "internalType": "bytes",
        "name": "_sentMessage",
        "type": "bytes"
      }
    ],
    "name": "relayMessage",
    "outputs": [],
    "stateMutability": "payable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint256",
        "name": "_destination",
        "type": "uint256"
      },
      {
        "internalType": "address",
        "name": "_target",
        "type": "address"
      },
      {
        "internalType": "bytes",
        "name": "_message",
        "type": "bytes"
      }
    ],
    "name": "sendMessage",
    "outputs": [
      {
        "internalType": "bytes32",
        "name": "",
        "type": "bytes32"
      }
    ],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "",
        "type": "bytes32"
      }
    ],
    "name": "successfulMessages",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "version",
    "outputs": [
      {
        "internalType": "string",
        "name": "",
        "type": "string"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "source",
        "type": "uint256"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "messageNonce",
        "type": "uint256"
      },
      {
        "indexed": true,
        "internalType": "bytes32",
        "name": "messageHash",
        "type": "bytes32"
      }
    ],
    "name": "RelayedMessage",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "destination",
        "type": "uint256"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "target",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint256",
        "name": "messageNonce",
        "type": "uint256"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "sender",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "bytes",
        "name": "message",
        "type": "bytes"
      }
    ],
    "name": "SentMessage",
    "type": "event"
  },
  {
    "inputs": [],
    "name": "EventPayloadNotSentMessage",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "IdOriginNotL2ToL2CrossDomainMessenger",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "InvalidChainId",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MessageAlreadyRelayed",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MessageDestinationNotRelayChain",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MessageDestinationSameChain",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MessageTargetCrossL2Inbox",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "MessageTargetL2ToL2CrossDomainMessenger",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "NotEntered",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "ReentrantCall",
    "type": "error"
  },
  {
    "inputs": [],
    "name": "TargetCallFailed",
    "type": "error"
  }
]