1904 lines
62 KiB
JSON
1904 lines
62 KiB
JSON
{
|
|
"id": "72a5baebd076445677aa2ae1dea68fa6",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"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/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/interfaces/IAllowList.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/bridges/bridge/common/interfaces/IAllowList.sol",
|
|
"exportedSymbols": {
|
|
"IAllowList": [
|
|
126
|
|
]
|
|
},
|
|
"id": 127,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".13"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "35:24:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IAllowList",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"fullyImplemented": false,
|
|
"id": 126,
|
|
"linearizedBaseContracts": [
|
|
126
|
|
],
|
|
"name": "IAllowList",
|
|
"nameLocation": "73:10:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 2,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "269:53:0",
|
|
"text": "@notice Access mode of target contract is changed"
|
|
},
|
|
"eventSelector": "3b3c3f982e4b12b1870d2ff77adfdb97d3838faab0fd8a6b255160e52e79a82f",
|
|
"id": 12,
|
|
"name": "UpdateAccessMode",
|
|
"nameLocation": "334:16:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 11,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 4,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "target",
|
|
"nameLocation": "367:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 12,
|
|
"src": "351:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 3,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "351:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 7,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "previousMode",
|
|
"nameLocation": "386:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 12,
|
|
"src": "375:23:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
},
|
|
"typeName": {
|
|
"id": 6,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 5,
|
|
"name": "AccessMode",
|
|
"nameLocations": [
|
|
"375:10:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 28,
|
|
"src": "375:10:0"
|
|
},
|
|
"referencedDeclaration": 28,
|
|
"src": "375:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 10,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "newMode",
|
|
"nameLocation": "411:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 12,
|
|
"src": "400:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
},
|
|
"typeName": {
|
|
"id": 9,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 8,
|
|
"name": "AccessMode",
|
|
"nameLocations": [
|
|
"400:10:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 28,
|
|
"src": "400:10:0"
|
|
},
|
|
"referencedDeclaration": 28,
|
|
"src": "400:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "350:69:0"
|
|
},
|
|
"src": "328:92:0"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"documentation": {
|
|
"id": 13,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "428:41:0",
|
|
"text": "@notice Permission to call is changed"
|
|
},
|
|
"eventSelector": "3336e7aa4c86fcb95fa993c8022c30690f1f696f67f138c845d81dc5484c9a32",
|
|
"id": 23,
|
|
"name": "UpdateCallPermission",
|
|
"nameLocation": "481:20:0",
|
|
"nodeType": "EventDefinition",
|
|
"parameters": {
|
|
"id": 22,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 15,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "caller",
|
|
"nameLocation": "518:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 23,
|
|
"src": "502:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 14,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "502:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 17,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "target",
|
|
"nameLocation": "542:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 23,
|
|
"src": "526:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 16,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "526:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 19,
|
|
"indexed": true,
|
|
"mutability": "mutable",
|
|
"name": "functionSig",
|
|
"nameLocation": "565:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 23,
|
|
"src": "550:26:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 18,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "550:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 21,
|
|
"indexed": false,
|
|
"mutability": "mutable",
|
|
"name": "status",
|
|
"nameLocation": "583:6:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 23,
|
|
"src": "578:11:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 20,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "578:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "501:89:0"
|
|
},
|
|
"src": "475:116:0"
|
|
},
|
|
{
|
|
"canonicalName": "IAllowList.AccessMode",
|
|
"documentation": {
|
|
"id": 24,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "599:332:0",
|
|
"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": 28,
|
|
"members": [
|
|
{
|
|
"id": 25,
|
|
"name": "Closed",
|
|
"nameLocation": "964:6:0",
|
|
"nodeType": "EnumValue",
|
|
"src": "964:6:0"
|
|
},
|
|
{
|
|
"id": 26,
|
|
"name": "SpecialAccessOnly",
|
|
"nameLocation": "981:17:0",
|
|
"nodeType": "EnumValue",
|
|
"src": "981:17:0"
|
|
},
|
|
{
|
|
"id": 27,
|
|
"name": "Public",
|
|
"nameLocation": "1009:6:0",
|
|
"nodeType": "EnumValue",
|
|
"src": "1009:6:0"
|
|
}
|
|
],
|
|
"name": "AccessMode",
|
|
"nameLocation": "942:10:0",
|
|
"nodeType": "EnumDefinition",
|
|
"src": "937:85:0"
|
|
},
|
|
{
|
|
"canonicalName": "IAllowList.Deposit",
|
|
"documentation": {
|
|
"id": 29,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1030:212:0",
|
|
"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": 34,
|
|
"members": [
|
|
{
|
|
"constant": false,
|
|
"id": 31,
|
|
"mutability": "mutable",
|
|
"name": "depositLimitation",
|
|
"nameLocation": "1279:17:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 34,
|
|
"src": "1274:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 30,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1274:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 33,
|
|
"mutability": "mutable",
|
|
"name": "depositCap",
|
|
"nameLocation": "1315:10:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 34,
|
|
"src": "1307:18:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 32,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1307:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"name": "Deposit",
|
|
"nameLocation": "1255:7:0",
|
|
"nodeType": "StructDefinition",
|
|
"scope": 126,
|
|
"src": "1248:85:0",
|
|
"visibility": "public"
|
|
},
|
|
{
|
|
"functionSelector": "285712c8",
|
|
"id": 42,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getAccessMode",
|
|
"nameLocation": "1529:13:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 37,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 36,
|
|
"mutability": "mutable",
|
|
"name": "_target",
|
|
"nameLocation": "1551:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 42,
|
|
"src": "1543:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 35,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1543:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1542:17:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 41,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 40,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 42,
|
|
"src": "1583:10:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
},
|
|
"typeName": {
|
|
"id": 39,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 38,
|
|
"name": "AccessMode",
|
|
"nameLocations": [
|
|
"1583:10:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 28,
|
|
"src": "1583:10:0"
|
|
},
|
|
"referencedDeclaration": 28,
|
|
"src": "1583:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1582:12:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1520:75:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "5965cf8c",
|
|
"id": 53,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "hasSpecialAccessToCall",
|
|
"nameLocation": "1612:22:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 49,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 44,
|
|
"mutability": "mutable",
|
|
"name": "_caller",
|
|
"nameLocation": "1653:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 53,
|
|
"src": "1645:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 43,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1645:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 46,
|
|
"mutability": "mutable",
|
|
"name": "_target",
|
|
"nameLocation": "1679:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 53,
|
|
"src": "1671:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 45,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1671:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 48,
|
|
"mutability": "mutable",
|
|
"name": "_functionSig",
|
|
"nameLocation": "1704:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 53,
|
|
"src": "1697:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 47,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1697:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1634:89:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 52,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 51,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 53,
|
|
"src": "1747:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 50,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1747:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1746:6:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1603:150:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "b7009613",
|
|
"id": 64,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "canCall",
|
|
"nameLocation": "1770:7:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 60,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 55,
|
|
"mutability": "mutable",
|
|
"name": "_caller",
|
|
"nameLocation": "1796:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 64,
|
|
"src": "1788:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 54,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1788:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 57,
|
|
"mutability": "mutable",
|
|
"name": "_target",
|
|
"nameLocation": "1822:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 64,
|
|
"src": "1814:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 56,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1814:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 59,
|
|
"mutability": "mutable",
|
|
"name": "_functionSig",
|
|
"nameLocation": "1847:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 64,
|
|
"src": "1840:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 58,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1840:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1777:89:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 63,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 62,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 64,
|
|
"src": "1890:4:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 61,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1890:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1889:6:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1761:135:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "7cf14701",
|
|
"id": 72,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "getTokenDepositLimitData",
|
|
"nameLocation": "1913:24:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 67,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 66,
|
|
"mutability": "mutable",
|
|
"name": "_l1Token",
|
|
"nameLocation": "1946:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 72,
|
|
"src": "1938:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 65,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1938:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1937:18:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 71,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 70,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 72,
|
|
"src": "1979:14:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "memory",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Deposit_$34_memory_ptr",
|
|
"typeString": "struct IAllowList.Deposit"
|
|
},
|
|
"typeName": {
|
|
"id": 69,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 68,
|
|
"name": "Deposit",
|
|
"nameLocations": [
|
|
"1979:7:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 34,
|
|
"src": "1979:7:0"
|
|
},
|
|
"referencedDeclaration": 34,
|
|
"src": "1979:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_struct$_Deposit_$34_storage_ptr",
|
|
"typeString": "struct IAllowList.Deposit"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1978:16:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "1904:91:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "ec5f109a",
|
|
"id": 82,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setBatchAccessMode",
|
|
"nameLocation": "2199:18:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 80,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 75,
|
|
"mutability": "mutable",
|
|
"name": "_targets",
|
|
"nameLocation": "2237:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 82,
|
|
"src": "2218:27:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 73,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2218:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 74,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2218:9:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 79,
|
|
"mutability": "mutable",
|
|
"name": "_accessMode",
|
|
"nameLocation": "2269:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 82,
|
|
"src": "2247:33:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_enum$_AccessMode_$28_$dyn_calldata_ptr",
|
|
"typeString": "enum IAllowList.AccessMode[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 77,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 76,
|
|
"name": "AccessMode",
|
|
"nameLocations": [
|
|
"2247:10:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 28,
|
|
"src": "2247:10:0"
|
|
},
|
|
"referencedDeclaration": 28,
|
|
"src": "2247:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
}
|
|
},
|
|
"id": 78,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2247:12:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_enum$_AccessMode_$28_$dyn_storage_ptr",
|
|
"typeString": "enum IAllowList.AccessMode[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2217:64:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 81,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2290:0:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "2190:101:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "ffc7d0b4",
|
|
"id": 90,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setAccessMode",
|
|
"nameLocation": "2308:13:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 88,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 84,
|
|
"mutability": "mutable",
|
|
"name": "_target",
|
|
"nameLocation": "2330:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 90,
|
|
"src": "2322:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 83,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2322:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 87,
|
|
"mutability": "mutable",
|
|
"name": "_accessMode",
|
|
"nameLocation": "2350:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 90,
|
|
"src": "2339:22:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
},
|
|
"typeName": {
|
|
"id": 86,
|
|
"nodeType": "UserDefinedTypeName",
|
|
"pathNode": {
|
|
"id": 85,
|
|
"name": "AccessMode",
|
|
"nameLocations": [
|
|
"2339:10:0"
|
|
],
|
|
"nodeType": "IdentifierPath",
|
|
"referencedDeclaration": 28,
|
|
"src": "2339:10:0"
|
|
},
|
|
"referencedDeclaration": 28,
|
|
"src": "2339:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_enum$_AccessMode_$28",
|
|
"typeString": "enum IAllowList.AccessMode"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2321:41:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 89,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2371:0:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "2299:73:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "507d1bed",
|
|
"id": 105,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setBatchPermissionToCall",
|
|
"nameLocation": "2389:24:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 103,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 93,
|
|
"mutability": "mutable",
|
|
"name": "_callers",
|
|
"nameLocation": "2443:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 105,
|
|
"src": "2424:27:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 91,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2424:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 92,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2424:9:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 96,
|
|
"mutability": "mutable",
|
|
"name": "_targets",
|
|
"nameLocation": "2481:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 105,
|
|
"src": "2462:27:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_calldata_ptr",
|
|
"typeString": "address[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 94,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2462:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"id": 95,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2462:9:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_address_$dyn_storage_ptr",
|
|
"typeString": "address[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 99,
|
|
"mutability": "mutable",
|
|
"name": "_functionSigs",
|
|
"nameLocation": "2518:13:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 105,
|
|
"src": "2500:31:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_bytes4_$dyn_calldata_ptr",
|
|
"typeString": "bytes4[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 97,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2500:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"id": 98,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2500:8:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_bytes4_$dyn_storage_ptr",
|
|
"typeString": "bytes4[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 102,
|
|
"mutability": "mutable",
|
|
"name": "_enables",
|
|
"nameLocation": "2558:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 105,
|
|
"src": "2542:24:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "calldata",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_bool_$dyn_calldata_ptr",
|
|
"typeString": "bool[]"
|
|
},
|
|
"typeName": {
|
|
"baseType": {
|
|
"id": 100,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2542:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"id": 101,
|
|
"nodeType": "ArrayTypeName",
|
|
"src": "2542:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_array$_t_bool_$dyn_storage_ptr",
|
|
"typeString": "bool[]"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2413:160:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 104,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2582:0:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "2380:203:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "73df5d8d",
|
|
"id": 116,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setPermissionToCall",
|
|
"nameLocation": "2600:19:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 114,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 107,
|
|
"mutability": "mutable",
|
|
"name": "_caller",
|
|
"nameLocation": "2638:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "2630:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 106,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2630:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 109,
|
|
"mutability": "mutable",
|
|
"name": "_target",
|
|
"nameLocation": "2664:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "2656:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 108,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2656:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 111,
|
|
"mutability": "mutable",
|
|
"name": "_functionSig",
|
|
"nameLocation": "2689:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "2682:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 110,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2682:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 113,
|
|
"mutability": "mutable",
|
|
"name": "_enable",
|
|
"nameLocation": "2717:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 116,
|
|
"src": "2712:12:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 112,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2712:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2619:112:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 115,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "2740:0:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "2591:150:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"functionSelector": "dff05449",
|
|
"id": 125,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setDepositLimit",
|
|
"nameLocation": "2948:15:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 123,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 118,
|
|
"mutability": "mutable",
|
|
"name": "_l1Token",
|
|
"nameLocation": "2982:8:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 125,
|
|
"src": "2974:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 117,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "2974:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 120,
|
|
"mutability": "mutable",
|
|
"name": "_depositLimitation",
|
|
"nameLocation": "3006:18:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 125,
|
|
"src": "3001:23:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 119,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3001:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 122,
|
|
"mutability": "mutable",
|
|
"name": "_depositCap",
|
|
"nameLocation": "3043:11:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 125,
|
|
"src": "3035:19:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 121,
|
|
"name": "uint256",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "3035:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "2963:98:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 124,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "3070:0:0"
|
|
},
|
|
"scope": 126,
|
|
"src": "2939:132:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 127,
|
|
"src": "63:3011:0",
|
|
"usedErrors": [],
|
|
"usedEvents": [
|
|
12,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"src": "35:3041:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
} |