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

1656 lines
52 KiB
JSON

{
"id": "59051065181bf2a15b1c70626e8cd654",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/bridges/bridge/interfaces/IL1Bridge.sol": {
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.8.26;\r\n\r\n/// @author Matter Labs\r\ninterface IL1Bridge {\r\n event DepositInitiated(\r\n bytes32 indexed l2DepositTxHash,\r\n address indexed from,\r\n address indexed to,\r\n address l1Token,\r\n uint256 amount\r\n );\r\n\r\n event WithdrawalFinalized(address indexed to, address indexed l1Token, uint256 amount);\r\n\r\n event ClaimedFailedDeposit(address indexed to, address indexed l1Token, uint256 amount);\r\n\r\n function isWithdrawalFinalized(uint256 _l2BatchNumber, uint256 _l2MessageIndex) external view returns (bool);\r\n\r\n function deposit(\r\n address _l2Receiver,\r\n address _l1Token,\r\n uint256 _amount,\r\n uint256 _l2TxGasLimit,\r\n uint256 _l2TxGasPerPubdataByte,\r\n address _refundRecipient\r\n ) external payable returns (bytes32 txHash);\r\n\r\n function claimFailedDeposit(\r\n address _depositSender,\r\n address _l1Token,\r\n bytes32 _l2TxHash,\r\n uint256 _l2BatchNumber,\r\n uint256 _l2MessageIndex,\r\n uint16 _l2TxNumberInBatch,\r\n bytes32[] calldata _merkleProof\r\n ) external;\r\n\r\n function finalizeWithdrawal(\r\n uint256 _l2BatchNumber,\r\n uint256 _l2MessageIndex,\r\n uint16 _l2TxNumberInBatch,\r\n bytes calldata _message,\r\n bytes32[] calldata _merkleProof\r\n ) external;\r\n\r\n function l2TokenAddress(address _l1Token) external view returns (address);\r\n\r\n function l2Bridge() 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/IL1Bridge.sol": {
"IL1Bridge": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "l1Token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "ClaimedFailedDeposit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "l2DepositTxHash",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "l1Token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "DepositInitiated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "l1Token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "WithdrawalFinalized",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_depositSender",
"type": "address"
},
{
"internalType": "address",
"name": "_l1Token",
"type": "address"
},
{
"internalType": "bytes32",
"name": "_l2TxHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "_l2BatchNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_l2MessageIndex",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "_l2TxNumberInBatch",
"type": "uint16"
},
{
"internalType": "bytes32[]",
"name": "_merkleProof",
"type": "bytes32[]"
}
],
"name": "claimFailedDeposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_l2Receiver",
"type": "address"
},
{
"internalType": "address",
"name": "_l1Token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_l2TxGasLimit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_l2TxGasPerPubdataByte",
"type": "uint256"
},
{
"internalType": "address",
"name": "_refundRecipient",
"type": "address"
}
],
"name": "deposit",
"outputs": [
{
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_l2BatchNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_l2MessageIndex",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "_l2TxNumberInBatch",
"type": "uint16"
},
{
"internalType": "bytes",
"name": "_message",
"type": "bytes"
},
{
"internalType": "bytes32[]",
"name": "_merkleProof",
"type": "bytes32[]"
}
],
"name": "finalizeWithdrawal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_l2BatchNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_l2MessageIndex",
"type": "uint256"
}
],
"name": "isWithdrawalFinalized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "l2Bridge",
"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"
}
],
"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": {
"claimFailedDeposit(address,address,bytes32,uint256,uint256,uint16,bytes32[])": "19fa7f62",
"deposit(address,address,uint256,uint256,uint256,address)": "e8b99b1b",
"finalizeWithdrawal(uint256,uint256,uint16,bytes,bytes32[])": "11a2ccc1",
"isWithdrawalFinalized(uint256,uint256)": "4bed8212",
"l2Bridge()": "ae1f6aaf",
"l2TokenAddress(address)": "f5f15168"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ClaimedFailedDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"l2DepositTxHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"DepositInitiated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"l1Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawalFinalized\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_depositSender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_l2TxHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_l2BatchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_l2TxNumberInBatch\",\"type\":\"uint16\"},{\"internalType\":\"bytes32[]\",\"name\":\"_merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"claimFailedDeposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l2Receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2TxGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2TxGasPerPubdataByte\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_refundRecipient\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_l2BatchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_l2TxNumberInBatch\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32[]\",\"name\":\"_merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"finalizeWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_l2BatchNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_l2MessageIndex\",\"type\":\"uint256\"}],\"name\":\"isWithdrawalFinalized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l2Bridge\",\"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\"}],\"devdoc\":{\"author\":\"Matter Labs\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/bridge/interfaces/IL1Bridge.sol\":\"IL1Bridge\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/bridge/interfaces/IL1Bridge.sol\":{\"keccak256\":\"0x41dc30b1c53d435d378cce45aebf77810fb7a469089a2d6762c00093b451b700\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f4551acd611299490036a8d1eb38d3aaef8248dc26424b2c8feefa8d1ecd4f90\",\"dweb:/ipfs/QmWZtwbHxTZuF4sFRWivZU2Fk5LF5DYiJiK3NvQWDhxEAe\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/bridges/bridge/interfaces/IL1Bridge.sol": {
"ast": {
"absolutePath": "contracts/bridges/bridge/interfaces/IL1Bridge.sol",
"exportedSymbols": {
"IL1Bridge": [
101
]
},
"id": 102,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".26"
],
"nodeType": "PragmaDirective",
"src": "35:24:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IL1Bridge",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 2,
"nodeType": "StructuredDocumentation",
"src": "63:25:0",
"text": "@author Matter Labs"
},
"fullyImplemented": false,
"id": 101,
"linearizedBaseContracts": [
101
],
"name": "IL1Bridge",
"nameLocation": "98:9:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"eventSelector": "dd341179f4edc78148d894d0213a96d212af2cbaf223d19ef6d483bdd47ab81d",
"id": 14,
"name": "DepositInitiated",
"nameLocation": "121:16:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 13,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4,
"indexed": true,
"mutability": "mutable",
"name": "l2DepositTxHash",
"nameLocation": "164:15:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "148:31:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "148:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nameLocation": "206:4:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "190:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "190:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 8,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nameLocation": "237:2:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "221:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 7,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "221:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 10,
"indexed": false,
"mutability": "mutable",
"name": "l1Token",
"nameLocation": "258:7:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "250:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "250:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 12,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "284:6:0",
"nodeType": "VariableDeclaration",
"scope": 14,
"src": "276:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "276:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "137:160:0"
},
"src": "115:183:0"
},
{
"anonymous": false,
"eventSelector": "ac1b18083978656d557d6e91c88203585cfda1031bdb14538327121ef140d383",
"id": 22,
"name": "WithdrawalFinalized",
"nameLocation": "312:19:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 21,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 16,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nameLocation": "348:2:0",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "332:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 15,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "332:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 18,
"indexed": true,
"mutability": "mutable",
"name": "l1Token",
"nameLocation": "368:7:0",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "352:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 17,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "352:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "385:6:0",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "377:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 19,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "377:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "331:61:0"
},
"src": "306:87:0"
},
{
"anonymous": false,
"eventSelector": "be066dc591f4a444f75176d387c3e6c775e5706d9ea9a91d11eb49030c66cf60",
"id": 30,
"name": "ClaimedFailedDeposit",
"nameLocation": "407:20:0",
"nodeType": "EventDefinition",
"parameters": {
"id": 29,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 24,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nameLocation": "444:2:0",
"nodeType": "VariableDeclaration",
"scope": 30,
"src": "428:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 23,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "428:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 26,
"indexed": true,
"mutability": "mutable",
"name": "l1Token",
"nameLocation": "464:7:0",
"nodeType": "VariableDeclaration",
"scope": 30,
"src": "448:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 25,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "448:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "481:6:0",
"nodeType": "VariableDeclaration",
"scope": 30,
"src": "473:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 27,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "473:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "427:61:0"
},
"src": "401:88:0"
},
{
"functionSelector": "4bed8212",
"id": 39,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isWithdrawalFinalized",
"nameLocation": "506:21:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 35,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 32,
"mutability": "mutable",
"name": "_l2BatchNumber",
"nameLocation": "536:14:0",
"nodeType": "VariableDeclaration",
"scope": 39,
"src": "528:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 31,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "528:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 34,
"mutability": "mutable",
"name": "_l2MessageIndex",
"nameLocation": "560:15:0",
"nodeType": "VariableDeclaration",
"scope": 39,
"src": "552:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 33,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "552:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "527:49:0"
},
"returnParameters": {
"id": 38,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 37,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 39,
"src": "600:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 36,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "600:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "599:6:0"
},
"scope": 101,
"src": "497:109:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "e8b99b1b",
"id": 56,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deposit",
"nameLocation": "623:7:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 52,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 41,
"mutability": "mutable",
"name": "_l2Receiver",
"nameLocation": "649:11:0",
"nodeType": "VariableDeclaration",
"scope": 56,
"src": "641:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 40,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "641:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 43,
"mutability": "mutable",
"name": "_l1Token",
"nameLocation": "679:8:0",
"nodeType": "VariableDeclaration",
"scope": 56,
"src": "671:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 42,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "671:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 45,
"mutability": "mutable",
"name": "_amount",
"nameLocation": "706:7:0",
"nodeType": "VariableDeclaration",
"scope": 56,
"src": "698:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 44,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "698:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 47,
"mutability": "mutable",
"name": "_l2TxGasLimit",
"nameLocation": "732:13:0",
"nodeType": "VariableDeclaration",
"scope": 56,
"src": "724:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 46,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "724:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 49,
"mutability": "mutable",
"name": "_l2TxGasPerPubdataByte",
"nameLocation": "764:22:0",
"nodeType": "VariableDeclaration",
"scope": 56,
"src": "756:30:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 48,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "756:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 51,
"mutability": "mutable",
"name": "_refundRecipient",
"nameLocation": "805:16:0",
"nodeType": "VariableDeclaration",
"scope": 56,
"src": "797:24:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 50,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "797:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "630:198:0"
},
"returnParameters": {
"id": 55,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 54,
"mutability": "mutable",
"name": "txHash",
"nameLocation": "863:6:0",
"nodeType": "VariableDeclaration",
"scope": 56,
"src": "855:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 53,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "855:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "854:16:0"
},
"scope": 101,
"src": "614:257:0",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "19fa7f62",
"id": 74,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "claimFailedDeposit",
"nameLocation": "888:18:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 72,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 58,
"mutability": "mutable",
"name": "_depositSender",
"nameLocation": "925:14:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "917:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 57,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "917:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 60,
"mutability": "mutable",
"name": "_l1Token",
"nameLocation": "958:8:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "950:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 59,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "950:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 62,
"mutability": "mutable",
"name": "_l2TxHash",
"nameLocation": "985:9:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "977:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 61,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "977:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 64,
"mutability": "mutable",
"name": "_l2BatchNumber",
"nameLocation": "1013:14:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "1005:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 63,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1005:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 66,
"mutability": "mutable",
"name": "_l2MessageIndex",
"nameLocation": "1046:15:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "1038:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 65,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1038:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 68,
"mutability": "mutable",
"name": "_l2TxNumberInBatch",
"nameLocation": "1079:18:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "1072:25:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 67,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1072:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 71,
"mutability": "mutable",
"name": "_merkleProof",
"nameLocation": "1127:12:0",
"nodeType": "VariableDeclaration",
"scope": 74,
"src": "1108:31:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 69,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1108:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 70,
"nodeType": "ArrayTypeName",
"src": "1108:9:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"visibility": "internal"
}
],
"src": "906:240:0"
},
"returnParameters": {
"id": 73,
"nodeType": "ParameterList",
"parameters": [],
"src": "1155:0:0"
},
"scope": 101,
"src": "879:277:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "11a2ccc1",
"id": 88,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "finalizeWithdrawal",
"nameLocation": "1173:18:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 86,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 76,
"mutability": "mutable",
"name": "_l2BatchNumber",
"nameLocation": "1210:14:0",
"nodeType": "VariableDeclaration",
"scope": 88,
"src": "1202:22:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 75,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1202:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 78,
"mutability": "mutable",
"name": "_l2MessageIndex",
"nameLocation": "1243:15:0",
"nodeType": "VariableDeclaration",
"scope": 88,
"src": "1235:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 77,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1235:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 80,
"mutability": "mutable",
"name": "_l2TxNumberInBatch",
"nameLocation": "1276:18:0",
"nodeType": "VariableDeclaration",
"scope": 88,
"src": "1269:25:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 79,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1269:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 82,
"mutability": "mutable",
"name": "_message",
"nameLocation": "1320:8:0",
"nodeType": "VariableDeclaration",
"scope": 88,
"src": "1305:23:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 81,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1305:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 85,
"mutability": "mutable",
"name": "_merkleProof",
"nameLocation": "1358:12:0",
"nodeType": "VariableDeclaration",
"scope": 88,
"src": "1339:31:0",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_calldata_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 83,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1339:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 84,
"nodeType": "ArrayTypeName",
"src": "1339:9:0",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"visibility": "internal"
}
],
"src": "1191:186:0"
},
"returnParameters": {
"id": 87,
"nodeType": "ParameterList",
"parameters": [],
"src": "1386:0:0"
},
"scope": 101,
"src": "1164:223:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f5f15168",
"id": 95,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "l2TokenAddress",
"nameLocation": "1404:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 91,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 90,
"mutability": "mutable",
"name": "_l1Token",
"nameLocation": "1427:8:0",
"nodeType": "VariableDeclaration",
"scope": 95,
"src": "1419:16:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 89,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1419:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1418:18:0"
},
"returnParameters": {
"id": 94,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 93,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 95,
"src": "1460:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 92,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1460:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1459:9:0"
},
"scope": 101,
"src": "1395:74:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "ae1f6aaf",
"id": 100,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "l2Bridge",
"nameLocation": "1486:8:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 96,
"nodeType": "ParameterList",
"parameters": [],
"src": "1494:2:0"
},
"returnParameters": {
"id": 99,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 98,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "1520:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 97,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1520:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1519:9:0"
},
"scope": 101,
"src": "1477:52:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 102,
"src": "88:1444:0",
"usedErrors": [],
"usedEvents": [
14,
22,
30
]
}
],
"src": "35:1499:0"
},
"id": 0
}
}
}
}