Cipher-Zero/contracts/bridges/bridge/interfaces/artifacts/build-info/ff5a995f6aaa7c50cce4e0942f159f9c.json
2024-09-01 23:29:11 +03:00

763 lines
23 KiB
JSON

{
"id": "ff5a995f6aaa7c50cce4e0942f159f9c",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/bridges/bridge/interfaces/IL2Bridge.sol": {
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.8.26;\r\n\r\n/// @author Matter Labs\r\ninterface IL2Bridge {\r\n function finalizeDeposit(\r\n address _l1Sender,\r\n address _l2Receiver,\r\n address _l1Token,\r\n uint256 _amount,\r\n bytes calldata _data\r\n ) external payable;\r\n\r\n function withdraw(\r\n address _l1Receiver,\r\n address _l2Token,\r\n uint256 _amount\r\n ) external;\r\n\r\n function l1TokenAddress(address _l2Token) external view returns (address);\r\n\r\n function l2TokenAddress(address _l1Token) external view returns (address);\r\n\r\n function l1Bridge() external view returns (address);\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/bridges/bridge/interfaces/IL2Bridge.sol": {
"IL2Bridge": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_l1Sender",
"type": "address"
},
{
"internalType": "address",
"name": "_l2Receiver",
"type": "address"
},
{
"internalType": "address",
"name": "_l1Token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "finalizeDeposit",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "l1Bridge",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_l2Token",
"type": "address"
}
],
"name": "l1TokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_l1Token",
"type": "address"
}
],
"name": "l2TokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_l1Receiver",
"type": "address"
},
{
"internalType": "address",
"name": "_l2Token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"author": "Matter Labs",
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"finalizeDeposit(address,address,address,uint256,bytes)": "cfe7af7c",
"l1Bridge()": "969b53da",
"l1TokenAddress(address)": "f54266a2",
"l2TokenAddress(address)": "f5f15168",
"withdraw(address,address,uint256)": "d9caed12"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l2Receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"finalizeDeposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l1Bridge\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l2Token\",\"type\":\"address\"}],\"name\":\"l1TokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"}],\"name\":\"l2TokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l2Token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Matter Labs\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/bridge/interfaces/IL2Bridge.sol\":\"IL2Bridge\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/bridge/interfaces/IL2Bridge.sol\":{\"keccak256\":\"0x26a8db77c1a18db9251157f668c84319ec97b721126b3f135b1a7d8aedd018e7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a0a3414e9fe83a83a02822282e3f59c46b41d9aa806dad2296ba61673d698ac9\",\"dweb:/ipfs/QmbhuhXQ8j2VAjXbyoTDZnrr5kpU2mPTDbsW8tnKBEAGKC\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/bridges/bridge/interfaces/IL2Bridge.sol": {
"ast": {
"absolutePath": "contracts/bridges/bridge/interfaces/IL2Bridge.sol",
"exportedSymbols": {
"IL2Bridge": [
44
]
},
"id": 45,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".26"
],
"nodeType": "PragmaDirective",
"src": "35:24:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IL2Bridge",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "63:25:0",
"text": "@author Matter Labs"
},
"fullyImplemented": false,
"id": 44,
"linearizedBaseContracts": [
44
],
"name": "IL2Bridge",
"nameLocation": "98:9:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "cfe7af7c",
"id": 15,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "finalizeDeposit",
"nameLocation": "124:15:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4,
"mutability": "mutable",
"name": "_l1Sender",
"nameLocation": "158:9:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "150:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "150:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6,
"mutability": "mutable",
"name": "_l2Receiver",
"nameLocation": "186:11:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "178:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "178:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 8,
"mutability": "mutable",
"name": "_l1Token",
"nameLocation": "216:8:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "208:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 7,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "208:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10,
"mutability": "mutable",
"name": "_amount",
"nameLocation": "243:7:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "235:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 9,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "235:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12,
"mutability": "mutable",
"name": "_data",
"nameLocation": "276:5:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "261:20:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 11,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "261:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "139:149:0"
},
"returnParameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [],
"src": "305:0:0"
},
"scope": 44,
"src": "115:191:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d9caed12",
"id": 24,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdraw",
"nameLocation": "323:8:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 22,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17,
"mutability": "mutable",
"name": "_l1Receiver",
"nameLocation": "350:11:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "342:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 16,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "342:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 19,
"mutability": "mutable",
"name": "_l2Token",
"nameLocation": "380:8:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "372:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 18,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "372:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 21,
"mutability": "mutable",
"name": "_amount",
"nameLocation": "407:7:0",
"nodeType": "VariableDeclaration",
"scope": 24,
"src": "399:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "399:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "331:90:0"
},
"returnParameters": {
"id": 23,
"nodeType": "ParameterList",
"parameters": [],
"src": "430:0:0"
},
"scope": 44,
"src": "314:117:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f54266a2",
"id": 31,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "l1TokenAddress",
"nameLocation": "448:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 27,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 26,
"mutability": "mutable",
"name": "_l2Token",
"nameLocation": "471:8:0",
"nodeType": "VariableDeclaration",
"scope": 31,
"src": "463:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 25,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "463:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "462:18:0"
},
"returnParameters": {
"id": 30,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 29,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 31,
"src": "504:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 28,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "504:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "503:9:0"
},
"scope": 44,
"src": "439:74:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f5f15168",
"id": 38,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "l2TokenAddress",
"nameLocation": "530:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 34,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 33,
"mutability": "mutable",
"name": "_l1Token",
"nameLocation": "553:8:0",
"nodeType": "VariableDeclaration",
"scope": 38,
"src": "545:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 32,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "545:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "544:18:0"
},
"returnParameters": {
"id": 37,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 36,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 38,
"src": "586:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 35,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "586:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "585:9:0"
},
"scope": 44,
"src": "521:74:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "969b53da",
"id": 43,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "l1Bridge",
"nameLocation": "612:8:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 39,
"nodeType": "ParameterList",
"parameters": [],
"src": "620:2:0"
},
"returnParameters": {
"id": 42,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 41,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 43,
"src": "646:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 40,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "646:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "645:9:0"
},
"scope": 44,
"src": "603:52:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 45,
"src": "88:570:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "35:625:0"
},
"id": 0
}
}
}
}