466 lines
16 KiB
JSON
466 lines
16 KiB
JSON
{
|
|
"id": "5cc3f10a9f8177ec6b927517d475faee",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.3",
|
|
"solcLongVersion": "0.8.3+commit.8d00100c",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/modules/common/IModule.sol": {
|
|
"content": "\r\n// SPDX-License-Identifier: GPL-3.0-only\r\npragma solidity ^0.8.3;\r\n\r\n/**\r\n * @title IModule\r\n * @notice Interface for a Module.\r\n * @author Julien Niset - <julien@argent.xyz>, Olivier VDB - <olivier@argent.xyz>\r\n */\r\ninterface IModule {\r\n\r\n /**\t\r\n * @notice Adds a module to a wallet. Cannot execute when wallet is locked (or under recovery)\t\r\n * @param _wallet The target wallet.\t\r\n * @param _module The modules to authorise.\t\r\n */\t\r\n function addModule(address _wallet, address _module) external;\r\n\r\n /**\r\n * @notice Inits a Module for a wallet by e.g. setting some wallet specific parameters in storage.\r\n * @param _wallet The wallet.\r\n */\r\n function init(address _wallet) external;\r\n\r\n\r\n /**\r\n * @notice Returns whether the module implements a callback for a given static call method.\r\n * @param _methodId The method id.\r\n */\r\n function supportsStaticCall(bytes4 _methodId) external view returns (bool _isSupported);\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/modules/common/IModule.sol": {
|
|
"IModule": {
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_wallet",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "_module",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "addModule",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_wallet",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "init",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes4",
|
|
"name": "_methodId",
|
|
"type": "bytes4"
|
|
}
|
|
],
|
|
"name": "supportsStaticCall",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "_isSupported",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"author": "Julien Niset - <julien@argent.xyz>, Olivier VDB - <olivier@argent.xyz>",
|
|
"kind": "dev",
|
|
"methods": {
|
|
"addModule(address,address)": {
|
|
"params": {
|
|
"_module": "The modules to authorise.\t",
|
|
"_wallet": "The target wallet.\t"
|
|
}
|
|
},
|
|
"init(address)": {
|
|
"params": {
|
|
"_wallet": "The wallet."
|
|
}
|
|
},
|
|
"supportsStaticCall(bytes4)": {
|
|
"params": {
|
|
"_methodId": "The method id."
|
|
}
|
|
}
|
|
},
|
|
"title": "IModule",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"addModule(address,address)": "5a1db8c4",
|
|
"init(address)": "19ab453c",
|
|
"supportsStaticCall(bytes4)": "25b50934"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.3+commit.8d00100c\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_wallet\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"addModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_wallet\",\"type\":\"address\"}],\"name\":\"init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"_methodId\",\"type\":\"bytes4\"}],\"name\":\"supportsStaticCall\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"_isSupported\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Julien Niset - <julien@argent.xyz>, Olivier VDB - <olivier@argent.xyz>\",\"kind\":\"dev\",\"methods\":{\"addModule(address,address)\":{\"params\":{\"_module\":\"The modules to authorise.\\t\",\"_wallet\":\"The target wallet.\\t\"}},\"init(address)\":{\"params\":{\"_wallet\":\"The wallet.\"}},\"supportsStaticCall(bytes4)\":{\"params\":{\"_methodId\":\"The method id.\"}}},\"title\":\"IModule\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addModule(address,address)\":{\"notice\":\"Adds a module to a wallet. Cannot execute when wallet is locked (or under recovery)\\t\"},\"init(address)\":{\"notice\":\"Inits a Module for a wallet by e.g. setting some wallet specific parameters in storage.\"},\"supportsStaticCall(bytes4)\":{\"notice\":\"Returns whether the module implements a callback for a given static call method.\"}},\"notice\":\"Interface for a Module.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/modules/common/IModule.sol\":\"IModule\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/modules/common/IModule.sol\":{\"keccak256\":\"0xdb7e81eb115c5723f73fde6a27d852cbccb53dc0ec23004bcbf05c46e479e903\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://fe693dcda5649f4e3671e545daf9597da621401633c25eb9c2cc4b5a1542564b\",\"dweb:/ipfs/QmPddVqoEZPTiSN6akqhxxdwqTwHbLfyHLCBLpz2nEfdPi\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"addModule(address,address)": {
|
|
"notice": "Adds a module to a wallet. Cannot execute when wallet is locked (or under recovery)\t"
|
|
},
|
|
"init(address)": {
|
|
"notice": "Inits a Module for a wallet by e.g. setting some wallet specific parameters in storage."
|
|
},
|
|
"supportsStaticCall(bytes4)": {
|
|
"notice": "Returns whether the module implements a callback for a given static call method."
|
|
}
|
|
},
|
|
"notice": "Interface for a Module.",
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/modules/common/IModule.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/modules/common/IModule.sol",
|
|
"exportedSymbols": {
|
|
"IModule": [
|
|
25
|
|
]
|
|
},
|
|
"id": 26,
|
|
"license": "GPL-3.0-only",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".3"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "44:23:0"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 2,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "71:146:0",
|
|
"text": " @title IModule\n @notice Interface for a Module.\n @author Julien Niset - <julien@argent.xyz>, Olivier VDB - <olivier@argent.xyz>"
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 25,
|
|
"linearizedBaseContracts": [
|
|
25
|
|
],
|
|
"name": "IModule",
|
|
"nameLocation": "229:7:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"documentation": {
|
|
"id": 3,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "246:207:0",
|
|
"text": " @notice Adds a module to a wallet. Cannot execute when wallet is locked (or under recovery)\t\n @param _wallet The target wallet.\t\n @param _module The modules to authorise.\t"
|
|
},
|
|
"functionSelector": "5a1db8c4",
|
|
"id": 10,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "addModule",
|
|
"nameLocation": "469:9:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 8,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5,
|
|
"mutability": "mutable",
|
|
"name": "_wallet",
|
|
"nameLocation": "487:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 10,
|
|
"src": "479:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 4,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "479:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 7,
|
|
"mutability": "mutable",
|
|
"name": "_module",
|
|
"nameLocation": "504:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 10,
|
|
"src": "496:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 6,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "496:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "478:34:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 9,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "521:0:0"
|
|
},
|
|
"scope": 25,
|
|
"src": "460:62:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 11,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "530:151:0",
|
|
"text": " @notice Inits a Module for a wallet by e.g. setting some wallet specific parameters in storage.\n @param _wallet The wallet."
|
|
},
|
|
"functionSelector": "19ab453c",
|
|
"id": 16,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "init",
|
|
"nameLocation": "696:4:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 14,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 13,
|
|
"mutability": "mutable",
|
|
"name": "_wallet",
|
|
"nameLocation": "709:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 16,
|
|
"src": "701:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 12,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "701:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "700:17:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 15,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "726:0:0"
|
|
},
|
|
"scope": 25,
|
|
"src": "687:40:0",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 17,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "737:149:0",
|
|
"text": " @notice Returns whether the module implements a callback for a given static call method.\n @param _methodId The method id."
|
|
},
|
|
"functionSelector": "25b50934",
|
|
"id": 24,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "supportsStaticCall",
|
|
"nameLocation": "901:18:0",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 20,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 19,
|
|
"mutability": "mutable",
|
|
"name": "_methodId",
|
|
"nameLocation": "927:9:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "920:16:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 18,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "920:6:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "919:18:0"
|
|
},
|
|
"returnParameters": {
|
|
"id": 23,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 22,
|
|
"mutability": "mutable",
|
|
"name": "_isSupported",
|
|
"nameLocation": "966:12:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 24,
|
|
"src": "961:17:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 21,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "961:4:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "960:19:0"
|
|
},
|
|
"scope": 25,
|
|
"src": "892:88:0",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 26,
|
|
"src": "219:764:0"
|
|
}
|
|
],
|
|
"src": "44:939:0"
|
|
},
|
|
"id": 0
|
|
}
|
|
}
|
|
}
|
|
} |