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

2332 lines
78 KiB
JSON

{
"id": "9993baa78aba287190cb96d5e280aa90",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/bridges/bridge/common/AllowListed.sol": {
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.8.13;\r\n\r\nimport \"./interfaces/IAllowList.sol\";\r\n\r\n/// @author Matter Labs\r\n/// @custom:security-contact security@matterlabs.dev\r\nabstract contract AllowListed {\r\n modifier senderCanCallFunction(IAllowList _allowList) {\r\n // Preventing the stack too deep error\r\n {\r\n require(_allowList.canCall(msg.sender, address(this), msg.sig), \"nr\");\r\n }\r\n _;\r\n }\r\n}\r\n"
},
"contracts/bridges/bridge/common/interfaces/IAllowList.sol": {
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.8.13;\r\n\r\ninterface IAllowList {\r\n /*//////////////////////////////////////////////////////////////\r\n EVENTS\r\n //////////////////////////////////////////////////////////////*/\r\n\r\n /// @notice Access mode of target contract is changed\r\n event UpdateAccessMode(address indexed target, AccessMode previousMode, AccessMode newMode);\r\n\r\n /// @notice Permission to call is changed\r\n event UpdateCallPermission(address indexed caller, address indexed target, bytes4 indexed functionSig, bool status);\r\n\r\n /// @notice Type of access to a specific contract includes three different modes\r\n /// @param Closed No one has access to the contract\r\n /// @param SpecialAccessOnly Any address with granted special access can interact with a contract (see `hasSpecialAccessToCall`)\r\n /// @param Public Everyone can interact with a contract\r\n enum AccessMode {\r\n Closed,\r\n SpecialAccessOnly,\r\n Public\r\n }\r\n\r\n /// @dev A struct that contains deposit limit data of a token\r\n /// @param depositLimitation Whether any deposit limitation is placed or not\r\n /// @param depositCap The maximum amount that can be deposited.\r\n struct Deposit {\r\n bool depositLimitation;\r\n uint256 depositCap;\r\n }\r\n\r\n /*//////////////////////////////////////////////////////////////\r\n GETTERS\r\n //////////////////////////////////////////////////////////////*/\r\n\r\n function getAccessMode(address _target) external view returns (AccessMode);\r\n\r\n function hasSpecialAccessToCall(\r\n address _caller,\r\n address _target,\r\n bytes4 _functionSig\r\n ) external view returns (bool);\r\n\r\n function canCall(\r\n address _caller,\r\n address _target,\r\n bytes4 _functionSig\r\n ) external view returns (bool);\r\n\r\n function getTokenDepositLimitData(address _l1Token) external view returns (Deposit memory);\r\n\r\n /*//////////////////////////////////////////////////////////////\r\n ALLOW LIST LOGIC\r\n //////////////////////////////////////////////////////////////*/\r\n\r\n function setBatchAccessMode(address[] calldata _targets, AccessMode[] calldata _accessMode) external;\r\n\r\n function setAccessMode(address _target, AccessMode _accessMode) external;\r\n\r\n function setBatchPermissionToCall(\r\n address[] calldata _callers,\r\n address[] calldata _targets,\r\n bytes4[] calldata _functionSigs,\r\n bool[] calldata _enables\r\n ) external;\r\n\r\n function setPermissionToCall(\r\n address _caller,\r\n address _target,\r\n bytes4 _functionSig,\r\n bool _enable\r\n ) external;\r\n\r\n /*//////////////////////////////////////////////////////////////\r\n DEPOSIT LIMIT LOGIC\r\n //////////////////////////////////////////////////////////////*/\r\n\r\n function setDepositLimit(\r\n address _l1Token,\r\n bool _depositLimitation,\r\n uint256 _depositCap\r\n ) external;\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/common/AllowListed.sol": {
"AllowListed": {
"abi": [],
"devdoc": {
"author": "Matter Labs",
"custom:security-contact": "security@matterlabs.dev",
"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": {}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"Matter Labs\",\"custom:security-contact\":\"security@matterlabs.dev\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/bridge/common/AllowListed.sol\":\"AllowListed\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/bridge/common/AllowListed.sol\":{\"keccak256\":\"0xfa60da24f1d22fbb48b9efc58a454f0b995596ddf9181a2d18279dc51d617527\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://3e6dd2def1c838e5c5fe48eb91966e3d6e1c6ec00002631e5313e33ca65b1016\",\"dweb:/ipfs/QmNj64FKAntdtWH5BsR2eycccb2XYRDza4vsXtwPZT5SAd\"]},\"contracts/bridges/bridge/common/interfaces/IAllowList.sol\":{\"keccak256\":\"0xa73d93ec249506a9c7e45d6701d594f641a221d5cd63aab18fed51a3d7cee612\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6ae14641c15d6b407b12b6b18ee3bd3960947fae9f0c9a52541fd1f8f7eb3c8\",\"dweb:/ipfs/QmZtD1Y26FNPqqnxrwvnF5fc3TVSk5VcCB9cGeZ535DZgu\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"contracts/bridges/bridge/common/interfaces/IAllowList.sol": {
"IAllowList": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "target",
"type": "address"
},
{
"indexed": false,
"internalType": "enum IAllowList.AccessMode",
"name": "previousMode",
"type": "uint8"
},
{
"indexed": false,
"internalType": "enum IAllowList.AccessMode",
"name": "newMode",
"type": "uint8"
}
],
"name": "UpdateAccessMode",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "target",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes4",
"name": "functionSig",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "bool",
"name": "status",
"type": "bool"
}
],
"name": "UpdateCallPermission",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_caller",
"type": "address"
},
{
"internalType": "address",
"name": "_target",
"type": "address"
},
{
"internalType": "bytes4",
"name": "_functionSig",
"type": "bytes4"
}
],
"name": "canCall",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_target",
"type": "address"
}
],
"name": "getAccessMode",
"outputs": [
{
"internalType": "enum IAllowList.AccessMode",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_l1Token",
"type": "address"
}
],
"name": "getTokenDepositLimitData",
"outputs": [
{
"components": [
{
"internalType": "bool",
"name": "depositLimitation",
"type": "bool"
},
{
"internalType": "uint256",
"name": "depositCap",
"type": "uint256"
}
],
"internalType": "struct IAllowList.Deposit",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_caller",
"type": "address"
},
{
"internalType": "address",
"name": "_target",
"type": "address"
},
{
"internalType": "bytes4",
"name": "_functionSig",
"type": "bytes4"
}
],
"name": "hasSpecialAccessToCall",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_target",
"type": "address"
},
{
"internalType": "enum IAllowList.AccessMode",
"name": "_accessMode",
"type": "uint8"
}
],
"name": "setAccessMode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_targets",
"type": "address[]"
},
{
"internalType": "enum IAllowList.AccessMode[]",
"name": "_accessMode",
"type": "uint8[]"
}
],
"name": "setBatchAccessMode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_callers",
"type": "address[]"
},
{
"internalType": "address[]",
"name": "_targets",
"type": "address[]"
},
{
"internalType": "bytes4[]",
"name": "_functionSigs",
"type": "bytes4[]"
},
{
"internalType": "bool[]",
"name": "_enables",
"type": "bool[]"
}
],
"name": "setBatchPermissionToCall",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_l1Token",
"type": "address"
},
{
"internalType": "bool",
"name": "_depositLimitation",
"type": "bool"
},
{
"internalType": "uint256",
"name": "_depositCap",
"type": "uint256"
}
],
"name": "setDepositLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_caller",
"type": "address"
},
{
"internalType": "address",
"name": "_target",
"type": "address"
},
{
"internalType": "bytes4",
"name": "_functionSig",
"type": "bytes4"
},
{
"internalType": "bool",
"name": "_enable",
"type": "bool"
}
],
"name": "setPermissionToCall",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"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": {
"canCall(address,address,bytes4)": "b7009613",
"getAccessMode(address)": "285712c8",
"getTokenDepositLimitData(address)": "7cf14701",
"hasSpecialAccessToCall(address,address,bytes4)": "5965cf8c",
"setAccessMode(address,uint8)": "ffc7d0b4",
"setBatchAccessMode(address[],uint8[])": "ec5f109a",
"setBatchPermissionToCall(address[],address[],bytes4[],bool[])": "507d1bed",
"setDepositLimit(address,bool,uint256)": "dff05449",
"setPermissionToCall(address,address,bytes4,bool)": "73df5d8d"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enum IAllowList.AccessMode\",\"name\":\"previousMode\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"enum IAllowList.AccessMode\",\"name\":\"newMode\",\"type\":\"uint8\"}],\"name\":\"UpdateAccessMode\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes4\",\"name\":\"functionSig\",\"type\":\"bytes4\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"UpdateCallPermission\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"},{\"internalType\":\"bytes4\",\"name\":\"_functionSig\",\"type\":\"bytes4\"}],\"name\":\"canCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"}],\"name\":\"getAccessMode\",\"outputs\":[{\"internalType\":\"enum IAllowList.AccessMode\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"}],\"name\":\"getTokenDepositLimitData\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"depositLimitation\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"depositCap\",\"type\":\"uint256\"}],\"internalType\":\"struct IAllowList.Deposit\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"},{\"internalType\":\"bytes4\",\"name\":\"_functionSig\",\"type\":\"bytes4\"}],\"name\":\"hasSpecialAccessToCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"},{\"internalType\":\"enum IAllowList.AccessMode\",\"name\":\"_accessMode\",\"type\":\"uint8\"}],\"name\":\"setAccessMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_targets\",\"type\":\"address[]\"},{\"internalType\":\"enum IAllowList.AccessMode[]\",\"name\":\"_accessMode\",\"type\":\"uint8[]\"}],\"name\":\"setBatchAccessMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_callers\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"_targets\",\"type\":\"address[]\"},{\"internalType\":\"bytes4[]\",\"name\":\"_functionSigs\",\"type\":\"bytes4[]\"},{\"internalType\":\"bool[]\",\"name\":\"_enables\",\"type\":\"bool[]\"}],\"name\":\"setBatchPermissionToCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_l1Token\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_depositLimitation\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"_depositCap\",\"type\":\"uint256\"}],\"name\":\"setDepositLimit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"},{\"internalType\":\"bytes4\",\"name\":\"_functionSig\",\"type\":\"bytes4\"},{\"internalType\":\"bool\",\"name\":\"_enable\",\"type\":\"bool\"}],\"name\":\"setPermissionToCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"events\":{\"UpdateAccessMode(address,uint8,uint8)\":{\"notice\":\"Access mode of target contract is changed\"},\"UpdateCallPermission(address,address,bytes4,bool)\":{\"notice\":\"Permission to call is changed\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/bridge/common/interfaces/IAllowList.sol\":\"IAllowList\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/bridge/common/interfaces/IAllowList.sol\":{\"keccak256\":\"0xa73d93ec249506a9c7e45d6701d594f641a221d5cd63aab18fed51a3d7cee612\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f6ae14641c15d6b407b12b6b18ee3bd3960947fae9f0c9a52541fd1f8f7eb3c8\",\"dweb:/ipfs/QmZtD1Y26FNPqqnxrwvnF5fc3TVSk5VcCB9cGeZ535DZgu\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"events": {
"UpdateAccessMode(address,uint8,uint8)": {
"notice": "Access mode of target contract is changed"
},
"UpdateCallPermission(address,address,bytes4,bool)": {
"notice": "Permission to call is changed"
}
},
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/bridges/bridge/common/AllowListed.sol": {
"ast": {
"absolutePath": "contracts/bridges/bridge/common/AllowListed.sol",
"exportedSymbols": {
"AllowListed": [
27
],
"IAllowList": [
154
]
},
"id": 28,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".13"
],
"nodeType": "PragmaDirective",
"src": "35:24:0"
},
{
"absolutePath": "contracts/bridges/bridge/common/interfaces/IAllowList.sol",
"file": "./interfaces/IAllowList.sol",
"id": 2,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 28,
"sourceUnit": 155,
"src": "63:37:0",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [],
"canonicalName": "AllowListed",
"contractDependencies": [],
"contractKind": "contract",
"documentation": {
"id": 3,
"nodeType": "StructuredDocumentation",
"src": "104:79:0",
"text": "@author Matter Labs\n @custom:security-contact security@matterlabs.dev"
},
"fullyImplemented": true,
"id": 27,
"linearizedBaseContracts": [
27
],
"name": "AllowListed",
"nameLocation": "201:11:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 25,
"nodeType": "Block",
"src": "274:174:0",
"statements": [
{
"id": 23,
"nodeType": "Block",
"src": "333:96:0",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"expression": {
"id": 11,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "375:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 12,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "379:6:0",
"memberName": "sender",
"nodeType": "MemberAccess",
"src": "375:10:0",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"arguments": [
{
"id": 15,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967268,
"src": "395:4:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_AllowListed_$27",
"typeString": "contract AllowListed"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_AllowListed_$27",
"typeString": "contract AllowListed"
}
],
"id": 14,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "387:7:0",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 13,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "387:7:0",
"typeDescriptions": {}
}
},
"id": 16,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "387:13:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"expression": {
"id": 17,
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 4294967281,
"src": "402:3:0",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
"typeString": "msg"
}
},
"id": 18,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "406:3:0",
"memberName": "sig",
"nodeType": "MemberAccess",
"src": "402:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
],
"expression": {
"id": 9,
"name": "_allowList",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6,
"src": "356:10:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IAllowList_$154",
"typeString": "contract IAllowList"
}
},
"id": 10,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberLocation": "367:7:0",
"memberName": "canCall",
"nodeType": "MemberAccess",
"referencedDeclaration": 92,
"src": "356:18:0",
"typeDescriptions": {
"typeIdentifier": "t_function_external_view$_t_address_$_t_address_$_t_bytes4_$returns$_t_bool_$",
"typeString": "function (address,address,bytes4) view external returns (bool)"
}
},
"id": 19,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "356:54:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "6e72",
"id": 20,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "412:4:0",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_c072c52b8bba89e69ab1529b25a7fb9174c2b83cea239d71242fee4a79239cb0",
"typeString": "literal_string \"nr\""
},
"value": "nr"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_c072c52b8bba89e69ab1529b25a7fb9174c2b83cea239d71242fee4a79239cb0",
"typeString": "literal_string \"nr\""
}
],
"id": 8,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
4294967278,
4294967278,
4294967278
],
"referencedDeclaration": 4294967278,
"src": "348:7:0",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 21,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"nameLocations": [],
"names": [],
"nodeType": "FunctionCall",
"src": "348:69:0",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 22,
"nodeType": "ExpressionStatement",
"src": "348:69:0"
}
]
},
{
"id": 24,
"nodeType": "PlaceholderStatement",
"src": "439:1:0"
}
]
},
"id": 26,
"name": "senderCanCallFunction",
"nameLocation": "229:21:0",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 7,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6,
"mutability": "mutable",
"name": "_allowList",
"nameLocation": "262:10:0",
"nodeType": "VariableDeclaration",
"scope": 26,
"src": "251:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IAllowList_$154",
"typeString": "contract IAllowList"
},
"typeName": {
"id": 5,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 4,
"name": "IAllowList",
"nameLocations": [
"251:10:0"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 154,
"src": "251:10:0"
},
"referencedDeclaration": 154,
"src": "251:10:0",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IAllowList_$154",
"typeString": "contract IAllowList"
}
},
"visibility": "internal"
}
],
"src": "250:23:0"
},
"src": "220:228:0",
"virtual": false,
"visibility": "internal"
}
],
"scope": 28,
"src": "183:268:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "35:418:0"
},
"id": 0
},
"contracts/bridges/bridge/common/interfaces/IAllowList.sol": {
"ast": {
"absolutePath": "contracts/bridges/bridge/common/interfaces/IAllowList.sol",
"exportedSymbols": {
"IAllowList": [
154
]
},
"id": 155,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 29,
"literals": [
"solidity",
"^",
"0.8",
".13"
],
"nodeType": "PragmaDirective",
"src": "35:24:1"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IAllowList",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 154,
"linearizedBaseContracts": [
154
],
"name": "IAllowList",
"nameLocation": "73:10:1",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 30,
"nodeType": "StructuredDocumentation",
"src": "269:53:1",
"text": "@notice Access mode of target contract is changed"
},
"eventSelector": "3b3c3f982e4b12b1870d2ff77adfdb97d3838faab0fd8a6b255160e52e79a82f",
"id": 40,
"name": "UpdateAccessMode",
"nameLocation": "334:16:1",
"nodeType": "EventDefinition",
"parameters": {
"id": 39,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 32,
"indexed": true,
"mutability": "mutable",
"name": "target",
"nameLocation": "367:6:1",
"nodeType": "VariableDeclaration",
"scope": 40,
"src": "351:22:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 31,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "351:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 35,
"indexed": false,
"mutability": "mutable",
"name": "previousMode",
"nameLocation": "386:12:1",
"nodeType": "VariableDeclaration",
"scope": 40,
"src": "375:23:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
},
"typeName": {
"id": 34,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 33,
"name": "AccessMode",
"nameLocations": [
"375:10:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 56,
"src": "375:10:1"
},
"referencedDeclaration": 56,
"src": "375:10:1",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 38,
"indexed": false,
"mutability": "mutable",
"name": "newMode",
"nameLocation": "411:7:1",
"nodeType": "VariableDeclaration",
"scope": 40,
"src": "400:18:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
},
"typeName": {
"id": 37,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 36,
"name": "AccessMode",
"nameLocations": [
"400:10:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 56,
"src": "400:10:1"
},
"referencedDeclaration": 56,
"src": "400:10:1",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
}
},
"visibility": "internal"
}
],
"src": "350:69:1"
},
"src": "328:92:1"
},
{
"anonymous": false,
"documentation": {
"id": 41,
"nodeType": "StructuredDocumentation",
"src": "428:41:1",
"text": "@notice Permission to call is changed"
},
"eventSelector": "3336e7aa4c86fcb95fa993c8022c30690f1f696f67f138c845d81dc5484c9a32",
"id": 51,
"name": "UpdateCallPermission",
"nameLocation": "481:20:1",
"nodeType": "EventDefinition",
"parameters": {
"id": 50,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 43,
"indexed": true,
"mutability": "mutable",
"name": "caller",
"nameLocation": "518:6:1",
"nodeType": "VariableDeclaration",
"scope": 51,
"src": "502:22:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 42,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "502:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 45,
"indexed": true,
"mutability": "mutable",
"name": "target",
"nameLocation": "542:6:1",
"nodeType": "VariableDeclaration",
"scope": 51,
"src": "526:22:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 44,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "526:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 47,
"indexed": true,
"mutability": "mutable",
"name": "functionSig",
"nameLocation": "565:11:1",
"nodeType": "VariableDeclaration",
"scope": 51,
"src": "550:26:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 46,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "550:6:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 49,
"indexed": false,
"mutability": "mutable",
"name": "status",
"nameLocation": "583:6:1",
"nodeType": "VariableDeclaration",
"scope": 51,
"src": "578:11:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 48,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "578:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "501:89:1"
},
"src": "475:116:1"
},
{
"canonicalName": "IAllowList.AccessMode",
"documentation": {
"id": 52,
"nodeType": "StructuredDocumentation",
"src": "599:332:1",
"text": "@notice Type of access to a specific contract includes three different modes\n @param Closed No one has access to the contract\n @param SpecialAccessOnly Any address with granted special access can interact with a contract (see `hasSpecialAccessToCall`)\n @param Public Everyone can interact with a contract"
},
"id": 56,
"members": [
{
"id": 53,
"name": "Closed",
"nameLocation": "964:6:1",
"nodeType": "EnumValue",
"src": "964:6:1"
},
{
"id": 54,
"name": "SpecialAccessOnly",
"nameLocation": "981:17:1",
"nodeType": "EnumValue",
"src": "981:17:1"
},
{
"id": 55,
"name": "Public",
"nameLocation": "1009:6:1",
"nodeType": "EnumValue",
"src": "1009:6:1"
}
],
"name": "AccessMode",
"nameLocation": "942:10:1",
"nodeType": "EnumDefinition",
"src": "937:85:1"
},
{
"canonicalName": "IAllowList.Deposit",
"documentation": {
"id": 57,
"nodeType": "StructuredDocumentation",
"src": "1030:212:1",
"text": "@dev A struct that contains deposit limit data of a token\n @param depositLimitation Whether any deposit limitation is placed or not\n @param depositCap The maximum amount that can be deposited."
},
"id": 62,
"members": [
{
"constant": false,
"id": 59,
"mutability": "mutable",
"name": "depositLimitation",
"nameLocation": "1279:17:1",
"nodeType": "VariableDeclaration",
"scope": 62,
"src": "1274:22:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 58,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1274:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 61,
"mutability": "mutable",
"name": "depositCap",
"nameLocation": "1315:10:1",
"nodeType": "VariableDeclaration",
"scope": 62,
"src": "1307:18:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 60,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1307:7:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"name": "Deposit",
"nameLocation": "1255:7:1",
"nodeType": "StructDefinition",
"scope": 154,
"src": "1248:85:1",
"visibility": "public"
},
{
"functionSelector": "285712c8",
"id": 70,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getAccessMode",
"nameLocation": "1529:13:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 65,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 64,
"mutability": "mutable",
"name": "_target",
"nameLocation": "1551:7:1",
"nodeType": "VariableDeclaration",
"scope": 70,
"src": "1543:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 63,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1543:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1542:17:1"
},
"returnParameters": {
"id": 69,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 68,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 70,
"src": "1583:10:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
},
"typeName": {
"id": 67,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 66,
"name": "AccessMode",
"nameLocations": [
"1583:10:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 56,
"src": "1583:10:1"
},
"referencedDeclaration": 56,
"src": "1583:10:1",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
}
},
"visibility": "internal"
}
],
"src": "1582:12:1"
},
"scope": 154,
"src": "1520:75:1",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "5965cf8c",
"id": 81,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "hasSpecialAccessToCall",
"nameLocation": "1612:22:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 77,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 72,
"mutability": "mutable",
"name": "_caller",
"nameLocation": "1653:7:1",
"nodeType": "VariableDeclaration",
"scope": 81,
"src": "1645:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 71,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1645:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 74,
"mutability": "mutable",
"name": "_target",
"nameLocation": "1679:7:1",
"nodeType": "VariableDeclaration",
"scope": 81,
"src": "1671:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 73,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1671:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 76,
"mutability": "mutable",
"name": "_functionSig",
"nameLocation": "1704:12:1",
"nodeType": "VariableDeclaration",
"scope": 81,
"src": "1697:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 75,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "1697:6:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
}
],
"src": "1634:89:1"
},
"returnParameters": {
"id": 80,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 79,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 81,
"src": "1747:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 78,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1747:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1746:6:1"
},
"scope": 154,
"src": "1603:150:1",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "b7009613",
"id": 92,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "canCall",
"nameLocation": "1770:7:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 88,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 83,
"mutability": "mutable",
"name": "_caller",
"nameLocation": "1796:7:1",
"nodeType": "VariableDeclaration",
"scope": 92,
"src": "1788:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 82,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1788:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 85,
"mutability": "mutable",
"name": "_target",
"nameLocation": "1822:7:1",
"nodeType": "VariableDeclaration",
"scope": 92,
"src": "1814:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 84,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1814:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 87,
"mutability": "mutable",
"name": "_functionSig",
"nameLocation": "1847:12:1",
"nodeType": "VariableDeclaration",
"scope": 92,
"src": "1840:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 86,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "1840:6:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
}
],
"src": "1777:89:1"
},
"returnParameters": {
"id": 91,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 90,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 92,
"src": "1890:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 89,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "1890:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "1889:6:1"
},
"scope": 154,
"src": "1761:135:1",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "7cf14701",
"id": 100,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getTokenDepositLimitData",
"nameLocation": "1913:24:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 95,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 94,
"mutability": "mutable",
"name": "_l1Token",
"nameLocation": "1946:8:1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "1938:16:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 93,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1938:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1937:18:1"
},
"returnParameters": {
"id": 99,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 98,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "1979:14:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Deposit_$62_memory_ptr",
"typeString": "struct IAllowList.Deposit"
},
"typeName": {
"id": 97,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 96,
"name": "Deposit",
"nameLocations": [
"1979:7:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 62,
"src": "1979:7:1"
},
"referencedDeclaration": 62,
"src": "1979:7:1",
"typeDescriptions": {
"typeIdentifier": "t_struct$_Deposit_$62_storage_ptr",
"typeString": "struct IAllowList.Deposit"
}
},
"visibility": "internal"
}
],
"src": "1978:16:1"
},
"scope": 154,
"src": "1904:91:1",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "ec5f109a",
"id": 110,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setBatchAccessMode",
"nameLocation": "2199:18:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 108,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 103,
"mutability": "mutable",
"name": "_targets",
"nameLocation": "2237:8:1",
"nodeType": "VariableDeclaration",
"scope": 110,
"src": "2218:27:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 101,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2218:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 102,
"nodeType": "ArrayTypeName",
"src": "2218:9:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 107,
"mutability": "mutable",
"name": "_accessMode",
"nameLocation": "2269:11:1",
"nodeType": "VariableDeclaration",
"scope": 110,
"src": "2247:33:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_enum$_AccessMode_$56_$dyn_calldata_ptr",
"typeString": "enum IAllowList.AccessMode[]"
},
"typeName": {
"baseType": {
"id": 105,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 104,
"name": "AccessMode",
"nameLocations": [
"2247:10:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 56,
"src": "2247:10:1"
},
"referencedDeclaration": 56,
"src": "2247:10:1",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
}
},
"id": 106,
"nodeType": "ArrayTypeName",
"src": "2247:12:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_enum$_AccessMode_$56_$dyn_storage_ptr",
"typeString": "enum IAllowList.AccessMode[]"
}
},
"visibility": "internal"
}
],
"src": "2217:64:1"
},
"returnParameters": {
"id": 109,
"nodeType": "ParameterList",
"parameters": [],
"src": "2290:0:1"
},
"scope": 154,
"src": "2190:101:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "ffc7d0b4",
"id": 118,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setAccessMode",
"nameLocation": "2308:13:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 116,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 112,
"mutability": "mutable",
"name": "_target",
"nameLocation": "2330:7:1",
"nodeType": "VariableDeclaration",
"scope": 118,
"src": "2322:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 111,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2322:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 115,
"mutability": "mutable",
"name": "_accessMode",
"nameLocation": "2350:11:1",
"nodeType": "VariableDeclaration",
"scope": 118,
"src": "2339:22:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
},
"typeName": {
"id": 114,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 113,
"name": "AccessMode",
"nameLocations": [
"2339:10:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 56,
"src": "2339:10:1"
},
"referencedDeclaration": 56,
"src": "2339:10:1",
"typeDescriptions": {
"typeIdentifier": "t_enum$_AccessMode_$56",
"typeString": "enum IAllowList.AccessMode"
}
},
"visibility": "internal"
}
],
"src": "2321:41:1"
},
"returnParameters": {
"id": 117,
"nodeType": "ParameterList",
"parameters": [],
"src": "2371:0:1"
},
"scope": 154,
"src": "2299:73:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "507d1bed",
"id": 133,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setBatchPermissionToCall",
"nameLocation": "2389:24:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 131,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 121,
"mutability": "mutable",
"name": "_callers",
"nameLocation": "2443:8:1",
"nodeType": "VariableDeclaration",
"scope": 133,
"src": "2424:27:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 119,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2424:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 120,
"nodeType": "ArrayTypeName",
"src": "2424:9:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 124,
"mutability": "mutable",
"name": "_targets",
"nameLocation": "2481:8:1",
"nodeType": "VariableDeclaration",
"scope": 133,
"src": "2462:27:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
"typeString": "address[]"
},
"typeName": {
"baseType": {
"id": 122,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2462:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 123,
"nodeType": "ArrayTypeName",
"src": "2462:9:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
"typeString": "address[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 127,
"mutability": "mutable",
"name": "_functionSigs",
"nameLocation": "2518:13:1",
"nodeType": "VariableDeclaration",
"scope": 133,
"src": "2500:31:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes4_$dyn_calldata_ptr",
"typeString": "bytes4[]"
},
"typeName": {
"baseType": {
"id": 125,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "2500:6:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"id": 126,
"nodeType": "ArrayTypeName",
"src": "2500:8:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes4_$dyn_storage_ptr",
"typeString": "bytes4[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 130,
"mutability": "mutable",
"name": "_enables",
"nameLocation": "2558:8:1",
"nodeType": "VariableDeclaration",
"scope": 133,
"src": "2542:24:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$dyn_calldata_ptr",
"typeString": "bool[]"
},
"typeName": {
"baseType": {
"id": 128,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2542:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 129,
"nodeType": "ArrayTypeName",
"src": "2542:6:1",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr",
"typeString": "bool[]"
}
},
"visibility": "internal"
}
],
"src": "2413:160:1"
},
"returnParameters": {
"id": 132,
"nodeType": "ParameterList",
"parameters": [],
"src": "2582:0:1"
},
"scope": 154,
"src": "2380:203:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "73df5d8d",
"id": 144,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setPermissionToCall",
"nameLocation": "2600:19:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 142,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 135,
"mutability": "mutable",
"name": "_caller",
"nameLocation": "2638:7:1",
"nodeType": "VariableDeclaration",
"scope": 144,
"src": "2630:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 134,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2630:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 137,
"mutability": "mutable",
"name": "_target",
"nameLocation": "2664:7:1",
"nodeType": "VariableDeclaration",
"scope": 144,
"src": "2656:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 136,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2656:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 139,
"mutability": "mutable",
"name": "_functionSig",
"nameLocation": "2689:12:1",
"nodeType": "VariableDeclaration",
"scope": 144,
"src": "2682:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 138,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "2682:6:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 141,
"mutability": "mutable",
"name": "_enable",
"nameLocation": "2717:7:1",
"nodeType": "VariableDeclaration",
"scope": 144,
"src": "2712:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 140,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "2712:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "2619:112:1"
},
"returnParameters": {
"id": 143,
"nodeType": "ParameterList",
"parameters": [],
"src": "2740:0:1"
},
"scope": 154,
"src": "2591:150:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "dff05449",
"id": 153,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setDepositLimit",
"nameLocation": "2948:15:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 151,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 146,
"mutability": "mutable",
"name": "_l1Token",
"nameLocation": "2982:8:1",
"nodeType": "VariableDeclaration",
"scope": 153,
"src": "2974:16:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 145,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2974:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 148,
"mutability": "mutable",
"name": "_depositLimitation",
"nameLocation": "3006:18:1",
"nodeType": "VariableDeclaration",
"scope": 153,
"src": "3001:23:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 147,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "3001:4:1",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 150,
"mutability": "mutable",
"name": "_depositCap",
"nameLocation": "3043:11:1",
"nodeType": "VariableDeclaration",
"scope": 153,
"src": "3035:19:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 149,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3035:7:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2963:98:1"
},
"returnParameters": {
"id": 152,
"nodeType": "ParameterList",
"parameters": [],
"src": "3070:0:1"
},
"scope": 154,
"src": "2939:132:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 155,
"src": "63:3011:1",
"usedErrors": [],
"usedEvents": [
40,
51
]
}
],
"src": "35:3041:1"
},
"id": 1
}
}
}
}