2024-10-16 23:10:41 +03:00

1087 lines
39 KiB
JSON

{
"contractName": "BridgeBase",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "messageId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "sourceChain",
"type": "string"
}
],
"name": "MessageReceived",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "messageId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "destinationChain",
"type": "string"
}
],
"name": "MessageSent",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "processedMessages",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "destinationChain",
"type": "string"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "sendMessage",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "messageId",
"type": "bytes32"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "string",
"name": "sourceChain",
"type": "string"
}
],
"name": "receiveMessage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "messageId",
"type": "bytes32"
}
],
"name": "isMessageProcessed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"}],\"name\":\"MessageReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"destinationChain\",\"type\":\"string\"}],\"name\":\"MessageSent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"}],\"name\":\"isMessageProcessed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"processedMessages\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"sourceChain\",\"type\":\"string\"}],\"name\":\"receiveMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"destinationChain\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"sendMessage\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/BridgeBase.sol\":\"BridgeBase\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/BridgeBase.sol\":{\"keccak256\":\"0xec854c325a96abfdfcf1282c2a8a54b80ee83c118bbe4a8b45254ec31e3e6f20\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://03db0ea752ff200f79292c2922fcb58600e9af6bcebbb8db71d1390d601d46c0\",\"dweb:/ipfs/QmQnQeDVijjnxb3oa1VizL6wvguWXbp5n6JVc7jeGASX1Y\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0; // Make sure this pragma is at the top\n\nabstract contract BridgeBase {\n mapping(bytes32 => bool) public processedMessages;\n \n event MessageSent(bytes32 indexed messageId, address sender, uint256 amount, string destinationChain);\n event MessageReceived(bytes32 indexed messageId, address recipient, uint256 amount, string sourceChain);\n\n function sendMessage(string memory destinationChain, address recipient, uint256 amount) external payable virtual;\n function receiveMessage(bytes32 messageId, address sender, address recipient, uint256 amount, string memory sourceChain) external virtual;\n \n function _setMessageAsProcessed(bytes32 messageId) internal {\n processedMessages[messageId] = true;\n }\n\n function isMessageProcessed(bytes32 messageId) public view returns (bool) {\n return processedMessages[messageId];\n }\n}\n",
"sourcePath": "/home/arhan/eigenlayer-don-3/eth-contracts/contracts/BridgeBase.sol",
"ast": {
"absolutePath": "project:/contracts/BridgeBase.sol",
"exportedSymbols": {
"BridgeBase": [
278
]
},
"id": 279,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 207,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:2"
},
{
"abstract": true,
"baseContracts": [],
"canonicalName": "BridgeBase",
"contractDependencies": [],
"contractKind": "contract",
"fullyImplemented": false,
"id": 278,
"linearizedBaseContracts": [
278
],
"name": "BridgeBase",
"nameLocation": "114:10:2",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"functionSelector": "88ba16ab",
"id": 211,
"mutability": "mutable",
"name": "processedMessages",
"nameLocation": "163:17:2",
"nodeType": "VariableDeclaration",
"scope": 278,
"src": "131:49:2",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
"typeString": "mapping(bytes32 => bool)"
},
"typeName": {
"id": 210,
"keyName": "",
"keyNameLocation": "-1:-1:-1",
"keyType": {
"id": 208,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "139:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"nodeType": "Mapping",
"src": "131:24:2",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
"typeString": "mapping(bytes32 => bool)"
},
"valueName": "",
"valueNameLocation": "-1:-1:-1",
"valueType": {
"id": 209,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "150:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
}
},
"visibility": "public"
},
{
"anonymous": false,
"eventSelector": "1e2fd99e146720cc637dc68804d00fec4c8e871519c4f06f7355687d531fed42",
"id": 221,
"name": "MessageSent",
"nameLocation": "197:11:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 220,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 213,
"indexed": true,
"mutability": "mutable",
"name": "messageId",
"nameLocation": "225:9:2",
"nodeType": "VariableDeclaration",
"scope": 221,
"src": "209:25:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 212,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "209:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 215,
"indexed": false,
"mutability": "mutable",
"name": "sender",
"nameLocation": "244:6:2",
"nodeType": "VariableDeclaration",
"scope": 221,
"src": "236:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 214,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "236:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 217,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "260:6:2",
"nodeType": "VariableDeclaration",
"scope": 221,
"src": "252:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 216,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "252:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 219,
"indexed": false,
"mutability": "mutable",
"name": "destinationChain",
"nameLocation": "275:16:2",
"nodeType": "VariableDeclaration",
"scope": 221,
"src": "268:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 218,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "268:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "208:84:2"
},
"src": "191:102:2"
},
{
"anonymous": false,
"eventSelector": "8645342bb16bf17dde1d74c272a01fc207ecbed8572fc58ee8e49574fd829119",
"id": 231,
"name": "MessageReceived",
"nameLocation": "304:15:2",
"nodeType": "EventDefinition",
"parameters": {
"id": 230,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 223,
"indexed": true,
"mutability": "mutable",
"name": "messageId",
"nameLocation": "336:9:2",
"nodeType": "VariableDeclaration",
"scope": 231,
"src": "320:25:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 222,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "320:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 225,
"indexed": false,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "355:9:2",
"nodeType": "VariableDeclaration",
"scope": 231,
"src": "347:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 224,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "347:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 227,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "374:6:2",
"nodeType": "VariableDeclaration",
"scope": 231,
"src": "366:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 226,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "366:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 229,
"indexed": false,
"mutability": "mutable",
"name": "sourceChain",
"nameLocation": "389:11:2",
"nodeType": "VariableDeclaration",
"scope": 231,
"src": "382:18:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 228,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "382:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "319:82:2"
},
"src": "298:104:2"
},
{
"functionSelector": "affc215f",
"id": 240,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "sendMessage",
"nameLocation": "417:11:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 238,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 233,
"mutability": "mutable",
"name": "destinationChain",
"nameLocation": "443:16:2",
"nodeType": "VariableDeclaration",
"scope": 240,
"src": "429:30:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 232,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "429:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 235,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "469:9:2",
"nodeType": "VariableDeclaration",
"scope": 240,
"src": "461:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 234,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "461:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 237,
"mutability": "mutable",
"name": "amount",
"nameLocation": "488:6:2",
"nodeType": "VariableDeclaration",
"scope": 240,
"src": "480:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 236,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "480:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "428:67:2"
},
"returnParameters": {
"id": 239,
"nodeType": "ParameterList",
"parameters": [],
"src": "520:0:2"
},
"scope": 278,
"src": "408:113:2",
"stateMutability": "payable",
"virtual": true,
"visibility": "external"
},
{
"functionSelector": "e9e33e8b",
"id": 253,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "receiveMessage",
"nameLocation": "535:14:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 251,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 242,
"mutability": "mutable",
"name": "messageId",
"nameLocation": "558:9:2",
"nodeType": "VariableDeclaration",
"scope": 253,
"src": "550:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 241,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "550:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 244,
"mutability": "mutable",
"name": "sender",
"nameLocation": "577:6:2",
"nodeType": "VariableDeclaration",
"scope": 253,
"src": "569:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 243,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "569:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 246,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "593:9:2",
"nodeType": "VariableDeclaration",
"scope": 253,
"src": "585:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 245,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "585:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 248,
"mutability": "mutable",
"name": "amount",
"nameLocation": "612:6:2",
"nodeType": "VariableDeclaration",
"scope": 253,
"src": "604:14:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 247,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "604:7:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 250,
"mutability": "mutable",
"name": "sourceChain",
"nameLocation": "634:11:2",
"nodeType": "VariableDeclaration",
"scope": 253,
"src": "620:25:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 249,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "620:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "549:97:2"
},
"returnParameters": {
"id": 252,
"nodeType": "ParameterList",
"parameters": [],
"src": "663:0:2"
},
"scope": 278,
"src": "526:138:2",
"stateMutability": "nonpayable",
"virtual": true,
"visibility": "external"
},
{
"body": {
"id": 264,
"nodeType": "Block",
"src": "734:52:2",
"statements": [
{
"expression": {
"id": 262,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"baseExpression": {
"id": 258,
"name": "processedMessages",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 211,
"src": "744:17:2",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
"typeString": "mapping(bytes32 => bool)"
}
},
"id": 260,
"indexExpression": {
"id": 259,
"name": "messageId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 255,
"src": "762:9:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "744:28:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"hexValue": "74727565",
"id": 261,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "775:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "744:35:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 263,
"nodeType": "ExpressionStatement",
"src": "744:35:2"
}
]
},
"id": 265,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "_setMessageAsProcessed",
"nameLocation": "683:22:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 256,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 255,
"mutability": "mutable",
"name": "messageId",
"nameLocation": "714:9:2",
"nodeType": "VariableDeclaration",
"scope": 265,
"src": "706:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 254,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "706:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "705:19:2"
},
"returnParameters": {
"id": 257,
"nodeType": "ParameterList",
"parameters": [],
"src": "734:0:2"
},
"scope": 278,
"src": "674:112:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 276,
"nodeType": "Block",
"src": "866:52:2",
"statements": [
{
"expression": {
"baseExpression": {
"id": 272,
"name": "processedMessages",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 211,
"src": "883:17:2",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_bool_$",
"typeString": "mapping(bytes32 => bool)"
}
},
"id": 274,
"indexExpression": {
"id": 273,
"name": "messageId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 267,
"src": "901:9:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "883:28:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"functionReturnParameters": 271,
"id": 275,
"nodeType": "Return",
"src": "876:35:2"
}
]
},
"functionSelector": "1bd31ef6",
"id": 277,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "isMessageProcessed",
"nameLocation": "801:18:2",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 268,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 267,
"mutability": "mutable",
"name": "messageId",
"nameLocation": "828:9:2",
"nodeType": "VariableDeclaration",
"scope": 277,
"src": "820:17:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 266,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "820:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "819:19:2"
},
"returnParameters": {
"id": 271,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 270,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 277,
"src": "860:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 269,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "860:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "859:6:2"
},
"scope": 278,
"src": "792:126:2",
"stateMutability": "view",
"virtual": false,
"visibility": "public"
}
],
"scope": 279,
"src": "96:824:2",
"usedErrors": [],
"usedEvents": [
221,
231
]
}
],
"src": "32:889:2"
},
"compiler": {
"name": "solc",
"version": "0.8.21+commit.d9974bed.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2024-10-16T19:09:58.156Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}