open-dex/contracts/base/artifacts/build-info/0f0870e14fffb74b816fabbfa550d7ff.json
2024-08-24 12:08:46 +03:00

1501 lines
53 KiB
JSON

{
"id": "0f0870e14fffb74b816fabbfa550d7ff",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/base/Multicall.sol": {
"content": "// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity =0.8.26;\r\npragma abicoder v2;\r\n\r\nimport '../interfaces/IMulticall.sol';\r\n\r\n/// @title Multicall\r\n/// @notice Enables calling multiple methods in a single call to the contract\r\nabstract contract Multicall is IMulticall {\r\n /// @inheritdoc IMulticall\r\n function multicall(bytes[] calldata data) public payable override returns (bytes[] memory results) {\r\n results = new bytes[](data.length);\r\n for (uint256 i = 0; i < data.length; i++) {\r\n (bool success, bytes memory result) = address(this).delegatecall(data[i]);\r\n\r\n if (!success) {\r\n // Next 5 lines from https://ethereum.stackexchange.com/a/83577\r\n if (result.length < 68) revert();\r\n assembly {\r\n result := add(result, 0x04)\r\n }\r\n revert(abi.decode(result, (string)));\r\n }\r\n\r\n results[i] = result;\r\n }\r\n }\r\n}\r\n"
},
"contracts/interfaces/IMulticall.sol": {
"content": "// SPDX-License-Identifier: GPL-2.0-or-later\r\npragma solidity >=0.7.5;\r\npragma abicoder v2;\r\n\r\n/// @title Multicall interface\r\n/// @notice Enables calling multiple methods in a single call to the contract\r\ninterface IMulticall {\r\n /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed\r\n /// @dev The `msg.value` should not be trusted for any method callable from multicall.\r\n /// @param data The encoded function data for each of the calls to make to this contract\r\n /// @return results The results from each of the calls passed in via data\r\n function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);\r\n}\r\n"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
},
"remappings": []
}
},
"output": {
"contracts": {
"contracts/base/Multicall.sol": {
"Multicall": {
"abi": [
{
"inputs": [
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
}
],
"name": "multicall",
"outputs": [
{
"internalType": "bytes[]",
"name": "results",
"type": "bytes[]"
}
],
"stateMutability": "payable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"multicall(bytes[])": {
"details": "The `msg.value` should not be trusted for any method callable from multicall.",
"params": {
"data": "The encoded function data for each of the calls to make to this contract"
},
"returns": {
"results": "The results from each of the calls passed in via data"
}
}
},
"title": "Multicall",
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"multicall(bytes[])": "ac9650d8"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"multicall(bytes[])\":{\"details\":\"The `msg.value` should not be trusted for any method callable from multicall.\",\"params\":{\"data\":\"The encoded function data for each of the calls to make to this contract\"},\"returns\":{\"results\":\"The results from each of the calls passed in via data\"}}},\"title\":\"Multicall\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"multicall(bytes[])\":{\"notice\":\"Call multiple functions in the current contract and return the data from all of them if they all succeed\"}},\"notice\":\"Enables calling multiple methods in a single call to the contract\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/base/Multicall.sol\":\"Multicall\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/base/Multicall.sol\":{\"keccak256\":\"0x30b1bb5753d6c55c2446b246e5d06e91bf9dc5013661f70a6fa11593eab7bcf3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://957361925841b729b5ce393f6d22299f3c071ff9bdd2b9d37cdb9963d508c230\",\"dweb:/ipfs/QmRSaut4gztQyGAYfesziQfvYuCtRZSufPkEoQNLF5TWHS\"]},\"contracts/interfaces/IMulticall.sol\":{\"keccak256\":\"0x76aeef8a8cd237f1bd8fb67f21e1734ba5c294b522c1932ce336f72fe41e5355\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://0b577b8f8e1b2767f218d0a1d78f7cc4d7b24ccd01ed7422a7129f9ae465edff\",\"dweb:/ipfs/QmVUzqSeAXf9Urwc1tseh1sW3pNz6z36vEYYYAGTNAnDWf\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {
"multicall(bytes[])": {
"notice": "Call multiple functions in the current contract and return the data from all of them if they all succeed"
}
},
"notice": "Enables calling multiple methods in a single call to the contract",
"version": 1
}
}
},
"contracts/interfaces/IMulticall.sol": {
"IMulticall": {
"abi": [
{
"inputs": [
{
"internalType": "bytes[]",
"name": "data",
"type": "bytes[]"
}
],
"name": "multicall",
"outputs": [
{
"internalType": "bytes[]",
"name": "results",
"type": "bytes[]"
}
],
"stateMutability": "payable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"multicall(bytes[])": {
"details": "The `msg.value` should not be trusted for any method callable from multicall.",
"params": {
"data": "The encoded function data for each of the calls to make to this contract"
},
"returns": {
"results": "The results from each of the calls passed in via data"
}
}
},
"title": "Multicall interface",
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"multicall(bytes[])": "ac9650d8"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"multicall(bytes[])\":{\"details\":\"The `msg.value` should not be trusted for any method callable from multicall.\",\"params\":{\"data\":\"The encoded function data for each of the calls to make to this contract\"},\"returns\":{\"results\":\"The results from each of the calls passed in via data\"}}},\"title\":\"Multicall interface\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"multicall(bytes[])\":{\"notice\":\"Call multiple functions in the current contract and return the data from all of them if they all succeed\"}},\"notice\":\"Enables calling multiple methods in a single call to the contract\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IMulticall.sol\":\"IMulticall\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IMulticall.sol\":{\"keccak256\":\"0x76aeef8a8cd237f1bd8fb67f21e1734ba5c294b522c1932ce336f72fe41e5355\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://0b577b8f8e1b2767f218d0a1d78f7cc4d7b24ccd01ed7422a7129f9ae465edff\",\"dweb:/ipfs/QmVUzqSeAXf9Urwc1tseh1sW3pNz6z36vEYYYAGTNAnDWf\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {
"multicall(bytes[])": {
"notice": "Call multiple functions in the current contract and return the data from all of them if they all succeed"
}
},
"notice": "Enables calling multiple methods in a single call to the contract",
"version": 1
}
}
}
},
"sources": {
"contracts/base/Multicall.sol": {
"ast": {
"absolutePath": "contracts/base/Multicall.sol",
"exportedSymbols": {
"IMulticall": [
99
],
"Multicall": [
84
]
},
"id": 85,
"license": "GPL-2.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"=",
"0.8",
".26"
],
"nodeType": "PragmaDirective",
"src": "46:24:0"
},
{
"id": 2,
"literals": [
"abicoder",
"v2"
],
"nodeType": "PragmaDirective",
"src": "72:19:0"
},
{
"absolutePath": "contracts/interfaces/IMulticall.sol",
"file": "../interfaces/IMulticall.sol",
"id": 3,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 85,
"sourceUnit": 100,
"src": "95:38:0",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 5,
"name": "IMulticall",
"nameLocations": [
"269:10:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 99,
"src": "269:10:0"
},
"id": 6,
"nodeType": "InheritanceSpecifier",
"src": "269:10:0"
}
],
"canonicalName": "Multicall",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 4,
"nodeType": "StructuredDocumentation",
"src": "137:101:0",
"text": "@title Multicall\n @notice Enables calling multiple methods in a single call to the contract"
},
"fullyImplemented": true,
"id": 84,
"linearizedBaseContracts": [
84,
99
],
"name": "Multicall",
"nameLocation": "256:9:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"baseFunctions": [
98
],
"body": {
"id": 82,
"nodeType": "Block",
"src": "418:570:0",
"statements": [
{
"expression": {
"id": 24,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 17,
"name": "results",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15,
"src": "429:7:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
"typeString": "bytes memory[] memory"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"arguments": [
{
"expression": {
"id": 21,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10,
"src": "451:4:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_calldata_ptr_$dyn_calldata_ptr",
"typeString": "bytes calldata[] calldata"
}
},
"id": 22,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "456:6:0",
"memberName": "length",
"nodeType": "MemberAccess",
"src": "451:11:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 20,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "NewExpression",
"src": "439:11:0",
"typeDescriptions": {
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_$",
"typeString": "function (uint256) pure returns (bytes memory[] memory)"
},
"typeName": {
"baseType": {
"id": 18,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "443:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"id": 19,
"nodeType": "ArrayTypeName",
"src": "443:7:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_storage_$dyn_storage_ptr",
"typeString": "bytes[]"
}
}
},
"id": 23,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "439:24:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
"typeString": "bytes memory[] memory"
}
},
"src": "429:34:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
"typeString": "bytes memory[] memory"
}
},
"id": 25,
"nodeType": "ExpressionStatement",
"src": "429:34:0"
},
{
"body": {
"id": 80,
"nodeType": "Block",
"src": "516:465:0",
"statements": [
{
"assignments": [
38,
40
],
"declarations": [
{
"constant": false,
"id": 38,
"mutability": "mutable",
"name": "success",
"nameLocation": "537:7:0",
"nodeType": "VariableDeclaration",
"scope": 80,
"src": "532:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 37,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "532:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 40,
"mutability": "mutable",
"name": "result",
"nameLocation": "559:6:0",
"nodeType": "VariableDeclaration",
"scope": 80,
"src": "546:19:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 39,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "546:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"id": 50,
"initialValue": {
"arguments": [
{
"baseExpression": {
"id": 46,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10,
"src": "596:4:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_calldata_ptr_$dyn_calldata_ptr",
"typeString": "bytes calldata[] calldata"
}
},
"id": 48,
"indexExpression": {
"id": 47,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 27,
"src": "601:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "IndexAccess",
"src": "596:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes calldata"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes calldata"
}
],
"expression": {
"arguments": [
{
"id": 43,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "577:4:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Multicall_$84",
"typeString": "contract Multicall"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_Multicall_$84",
"typeString": "contract Multicall"
}
],
"id": 42,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "569:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 41,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "569:7:0",
"typeDescriptions": {}
}
},
"id": 44,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "569:13:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 45,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "583:12:0",
"memberName": "delegatecall",
"nodeType": "MemberAccess",
"src": "569:26:0",
"typeDescriptions": {
"typeIdentifier": "t_function_baredelegatecall_nonpayable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$",
"typeString": "function (bytes memory) returns (bool,bytes memory)"
}
},
"id": 49,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "569:35:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
"typeString": "tuple(bool,bytes memory)"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "531:73:0"
},
{
"condition": {
"id": 52,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "!",
"prefix": true,
"src": "625:8:0",
"subExpression": {
"id": 51,
"name": "success",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 38,
"src": "626:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 73,
"nodeType": "IfStatement",
"src": "621:313:0",
"trueBody": {
"id": 72,
"nodeType": "Block",
"src": "635:299:0",
"statements": [
{
"condition": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 56,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"expression": {
"id": 53,
"name": "result",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 40,
"src": "739:6:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
"id": 54,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "746:6:0",
"memberName": "length",
"nodeType": "MemberAccess",
"src": "739:13:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"hexValue": "3638",
"id": 55,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "755:2:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_68_by_1",
"typeString": "int_const 68"
},
"value": "68"
},
"src": "739:18:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 60,
"nodeType": "IfStatement",
"src": "735:32:0",
"trueBody": {
"expression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 57,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967277,
4294967277
],
"referencedDeclaration": 4294967277,
"src": "759:6:0",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$__$returns$__$",
"typeString": "function () pure"
}
},
"id": 58,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "759:8:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 59,
"nodeType": "ExpressionStatement",
"src": "759:8:0"
}
},
{
"AST": {
"nativeSrc": "795:69:0",
"nodeType": "YulBlock",
"src": "795:69:0",
"statements": [
{
"nativeSrc": "818:27:0",
"nodeType": "YulAssignment",
"src": "818:27:0",
"value": {
"arguments": [
{
"name": "result",
"nativeSrc": "832:6:0",
"nodeType": "YulIdentifier",
"src": "832:6:0"
},
{
"kind": "number",
"nativeSrc": "840:4:0",
"nodeType": "YulLiteral",
"src": "840:4:0",
"type": "",
"value": "0x04"
}
],
"functionName": {
"name": "add",
"nativeSrc": "828:3:0",
"nodeType": "YulIdentifier",
"src": "828:3:0"
},
"nativeSrc": "828:17:0",
"nodeType": "YulFunctionCall",
"src": "828:17:0"
},
"variableNames": [
{
"name": "result",
"nativeSrc": "818:6:0",
"nodeType": "YulIdentifier",
"src": "818:6:0"
}
]
}
]
},
"evmVersion": "cancun",
"externalReferences": [
{
"declaration": 40,
"isOffset": false,
"isSlot": false,
"src": "818:6:0",
"valueSize": 1
},
{
"declaration": 40,
"isOffset": false,
"isSlot": false,
"src": "832:6:0",
"valueSize": 1
}
],
"id": 61,
"nodeType": "InlineAssembly",
"src": "786:78:0"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"id": 65,
"name": "result",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 40,
"src": "900:6:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
{
"components": [
{
"id": 67,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "909:6:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_string_storage_ptr_$",
"typeString": "type(string storage pointer)"
},
"typeName": {
"id": 66,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "909:6:0",
"typeDescriptions": {}
}
}
],
"id": 68,
"isConstant": false,
"isInlineArray": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "TupleExpression",
"src": "908:8:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_string_storage_ptr_$",
"typeString": "type(string storage pointer)"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
},
{
"typeIdentifier": "t_type$_t_string_storage_ptr_$",
"typeString": "type(string storage pointer)"
}
],
"expression": {
"id": 63,
"name": "abi",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967295,
"src": "889:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_abi",
"typeString": "abi"
}
},
"id": 64,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"memberLocation": "893:6:0",
"memberName": "decode",
"nodeType": "MemberAccess",
"src": "889:10:0",
"typeDescriptions": {
"typeIdentifier": "t_function_abidecode_pure$__$returns$__$",
"typeString": "function () pure"
}
},
"id": 69,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "889:28:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string memory"
}
],
"id": 62,
"name": "revert",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967277,
4294967277
],
"referencedDeclaration": 4294967277,
"src": "882:6:0",
"typeDescriptions": {
"typeIdentifier": "t_function_revert_pure$_t_string_memory_ptr_$returns$__$",
"typeString": "function (string memory) pure"
}
},
"id": 70,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "882:36:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 71,
"nodeType": "ExpressionStatement",
"src": "882:36:0"
}
]
}
},
{
"expression": {
"id": 78,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"baseExpression": {
"id": 74,
"name": "results",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15,
"src": "950:7:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
"typeString": "bytes memory[] memory"
}
},
"id": 76,
"indexExpression": {
"id": 75,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 27,
"src": "958:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "950:10:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 77,
"name": "result",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 40,
"src": "963:6:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
"src": "950:19:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
},
"id": 79,
"nodeType": "ExpressionStatement",
"src": "950:19:0"
}
]
},
"condition": {
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 33,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"id": 30,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 27,
"src": "494:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": "<",
"rightExpression": {
"expression": {
"id": 31,
"name": "data",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 10,
"src": "498:4:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_calldata_ptr_$dyn_calldata_ptr",
"typeString": "bytes calldata[] calldata"
}
},
"id": 32,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "503:6:0",
"memberName": "length",
"nodeType": "MemberAccess",
"src": "498:11:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "494:15:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 81,
"initializationExpression": {
"assignments": [
27
],
"declarations": [
{
"constant": false,
"id": 27,
"mutability": "mutable",
"name": "i",
"nameLocation": "487:1:0",
"nodeType": "VariableDeclaration",
"scope": 81,
"src": "479:9:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 26,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "479:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"id": 29,
"initialValue": {
"hexValue": "30",
"id": 28,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "491:1:0",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"nodeType": "VariableDeclarationStatement",
"src": "479:13:0"
},
"isSimpleCounterLoop": true,
"loopExpression": {
"expression": {
"id": 35,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"nodeType": "UnaryOperation",
"operator": "++",
"prefix": false,
"src": "511:3:0",
"subExpression": {
"id": 34,
"name": "i",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 27,
"src": "511:1:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 36,
"nodeType": "ExpressionStatement",
"src": "511:3:0"
},
"nodeType": "ForStatement",
"src": "474:507:0"
}
]
},
"documentation": {
"id": 7,
"nodeType": "StructuredDocumentation",
"src": "287:26:0",
"text": "@inheritdoc IMulticall"
},
"functionSelector": "ac9650d8",
"id": 83,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "multicall",
"nameLocation": "328:9:0",
"nodeType": "FunctionDefinition",
"overrides": {
"id": 12,
"nodeType": "OverrideSpecifier",
"overrides": [],
"src": "376:8:0"
},
"parameters": {
"id": 11,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 10,
"mutability": "mutable",
"name": "data",
"nameLocation": "355:4:0",
"nodeType": "VariableDeclaration",
"scope": 83,
"src": "338:21:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_calldata_ptr_$dyn_calldata_ptr",
"typeString": "bytes[]"
},
"typeName": {
"baseType": {
"id": 8,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "338:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"id": 9,
"nodeType": "ArrayTypeName",
"src": "338:7:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_storage_$dyn_storage_ptr",
"typeString": "bytes[]"
}
},
"visibility": "internal"
}
],
"src": "337:23:0"
},
"returnParameters": {
"id": 16,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 15,
"mutability": "mutable",
"name": "results",
"nameLocation": "409:7:0",
"nodeType": "VariableDeclaration",
"scope": 83,
"src": "394:22:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
"typeString": "bytes[]"
},
"typeName": {
"baseType": {
"id": 13,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "394:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"id": 14,
"nodeType": "ArrayTypeName",
"src": "394:7:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_storage_$dyn_storage_ptr",
"typeString": "bytes[]"
}
},
"visibility": "internal"
}
],
"src": "393:24:0"
},
"scope": 84,
"src": "319:669:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "public"
}
],
"scope": 85,
"src": "238:753:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "46:947:0"
},
"id": 0
},
"contracts/interfaces/IMulticall.sol": {
"ast": {
"absolutePath": "contracts/interfaces/IMulticall.sol",
"exportedSymbols": {
"IMulticall": [
99
]
},
"id": 100,
"license": "GPL-2.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 86,
"literals": [
"solidity",
">=",
"0.7",
".5"
],
"nodeType": "PragmaDirective",
"src": "46:24:1"
},
{
"id": 87,
"literals": [
"abicoder",
"v2"
],
"nodeType": "PragmaDirective",
"src": "72:19:1"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IMulticall",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 88,
"nodeType": "StructuredDocumentation",
"src": "95:111:1",
"text": "@title Multicall interface\n @notice Enables calling multiple methods in a single call to the contract"
},
"fullyImplemented": false,
"id": 99,
"linearizedBaseContracts": [
99
],
"name": "IMulticall",
"nameLocation": "216:10:1",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 89,
"nodeType": "StructuredDocumentation",
"src": "234:381:1",
"text": "@notice Call multiple functions in the current contract and return the data from all of them if they all succeed\n @dev The `msg.value` should not be trusted for any method callable from multicall.\n @param data The encoded function data for each of the calls to make to this contract\n @return results The results from each of the calls passed in via data"
},
"functionSelector": "ac9650d8",
"id": 98,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "multicall",
"nameLocation": "630:9:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 93,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 92,
"mutability": "mutable",
"name": "data",
"nameLocation": "657:4:1",
"nodeType": "VariableDeclaration",
"scope": 98,
"src": "640:21:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_calldata_ptr_$dyn_calldata_ptr",
"typeString": "bytes[]"
},
"typeName": {
"baseType": {
"id": 90,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "640:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"id": 91,
"nodeType": "ArrayTypeName",
"src": "640:7:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_storage_$dyn_storage_ptr",
"typeString": "bytes[]"
}
},
"visibility": "internal"
}
],
"src": "639:23:1"
},
"returnParameters": {
"id": 97,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 96,
"mutability": "mutable",
"name": "results",
"nameLocation": "704:7:1",
"nodeType": "VariableDeclaration",
"scope": 98,
"src": "689:22:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_memory_ptr_$dyn_memory_ptr",
"typeString": "bytes[]"
},
"typeName": {
"baseType": {
"id": 94,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "689:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"id": 95,
"nodeType": "ArrayTypeName",
"src": "689:7:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes_storage_$dyn_storage_ptr",
"typeString": "bytes[]"
}
},
"visibility": "internal"
}
],
"src": "688:24:1"
},
"scope": 99,
"src": "621:92:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
}
],
"scope": 100,
"src": "206:510:1",
"usedErrors": [],
"usedEvents": []
}
],
"src": "46:672:1"
},
"id": 1
}
}
}
}