1431 lines
47 KiB
JSON
1431 lines
47 KiB
JSON
{
|
|
"id": "46f1ad606b0d367e7415df10ee6a9606",
|
|
"_format": "hh-sol-build-info-1",
|
|
"solcVersion": "0.8.26",
|
|
"solcLongVersion": "0.8.26+commit.8a97fa7a",
|
|
"input": {
|
|
"language": "Solidity",
|
|
"sources": {
|
|
"contracts/infrastructure/storage/Storage.sol": {
|
|
"content": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.8.26;\r\n\r\nimport \"../../wallet/IWallet.sol\";\r\n\r\n\r\ncontract Storage {\r\n\r\n /**\r\n * @notice Throws if the caller is not an authorised module.\r\n */\r\n modifier onlyModule(address _wallet) {\r\n // solhint-disable-next-line reason-string\r\n require(IWallet(_wallet).authorised(msg.sender), \"TS: must be an authorized module to call this method\");\r\n _;\r\n }\r\n}"
|
|
},
|
|
"contracts/wallet/IWallet.sol": {
|
|
"content": "\n\n// SPDX-License-Identifier: GPL-3.0-only\npragma solidity >=0.5.4 <0.9.0;\n\n/**\n * @title IWallet\n * @notice Interface for the BaseWallet\n */\ninterface IWallet {\n /**\n * @notice Returns the wallet owner.\n * @return The wallet owner address.\n */\n function owner() external view returns (address);\n\n /**\n * @notice Returns the number of authorised modules.\n * @return The number of authorised modules.\n */\n function modules() external view returns (uint);\n\n /**\n * @notice Sets a new owner for the wallet.\n * @param _newOwner The new owner.\n */\n function setOwner(address _newOwner) external;\n\n /**\n * @notice Checks if a module is authorised on the wallet.\n * @param _module The module address to check.\n * @return `true` if the module is authorised, otherwise `false`.\n */\n function authorised(address _module) external view returns (bool);\n\n /**\n * @notice Returns the module responsible for a static call redirection.\n * @param _sig The signature of the static call.\n * @return the module doing the redirection\n */\n function enabled(bytes4 _sig) external view returns (address);\n\n /**\n * @notice Enables/Disables a module.\n * @param _module The target module.\n * @param _value Set to `true` to authorise the module.\n */\n function authoriseModule(address _module, bool _value) external;\n\n /**\n * @notice Enables a static method by specifying the target module to which the call must be delegated.\n * @param _module The target module.\n * @param _method The static method signature.\n */\n function enableStaticCall(address _module, bytes4 _method) external;\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/infrastructure/storage/Storage.sol": {
|
|
"Storage": {
|
|
"abi": [],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {},
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": " /* \"contracts/infrastructure/storage/Storage.sol\":103:440 contract Storage {... */\n mstore(0x40, 0x80)\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"contracts/infrastructure/storage/Storage.sol\":103:440 contract Storage {... */\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220824626fe00f0b3af10204996768a581276c3b5fae56b842f8d3471fa8373253764736f6c634300081a0033\n}\n",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "6080604052348015600e575f80fd5b50603e80601a5f395ff3fe60806040525f80fdfea2646970667358221220824626fe00f0b3af10204996768a581276c3b5fae56b842f8d3471fa8373253764736f6c634300081a0033",
|
|
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xE JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x3E DUP1 PUSH1 0x1A PUSH0 CODECOPY PUSH0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP3 CHAINID 0x26 INVALID STOP CREATE 0xB3 0xAF LT KECCAK256 BLOBHASH SWAP7 PUSH23 0x8A581276C3B5FAE56B842F8D3471FA8373253764736F6C PUSH4 0x4300081A STOP CALLER ",
|
|
"sourceMap": "103:337:0:-:0;;;;;;;;;;;;;;;;;;;"
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "60806040525f80fdfea2646970667358221220824626fe00f0b3af10204996768a581276c3b5fae56b842f8d3471fa8373253764736f6c634300081a0033",
|
|
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DUP3 CHAINID 0x26 INVALID STOP CREATE 0xB3 0xAF LT KECCAK256 BLOBHASH SWAP7 PUSH23 0x8A581276C3B5FAE56B842F8D3471FA8373253764736F6C PUSH4 0x4300081A STOP CALLER ",
|
|
"sourceMap": "103:337:0:-:0;;;;;"
|
|
},
|
|
"gasEstimates": {
|
|
"creation": {
|
|
"codeDepositCost": "12400",
|
|
"executionCost": "64",
|
|
"totalCost": "12464"
|
|
}
|
|
},
|
|
"legacyAssembly": {
|
|
".code": [
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "MSTORE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "CALLVALUE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "DUP1",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "ISZERO",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH [tag]",
|
|
"source": 0,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "JUMPI",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "DUP1",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "REVERT",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "tag",
|
|
"source": 0,
|
|
"value": "1"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "JUMPDEST",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "POP",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH #[$]",
|
|
"source": 0,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "DUP1",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH [$]",
|
|
"source": 0,
|
|
"value": "0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "CODECOPY",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "RETURN",
|
|
"source": 0
|
|
}
|
|
],
|
|
".data": {
|
|
"0": {
|
|
".auxdata": "a2646970667358221220824626fe00f0b3af10204996768a581276c3b5fae56b842f8d3471fa8373253764736f6c634300081a0033",
|
|
".code": [
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "80"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "40"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "MSTORE",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "PUSH",
|
|
"source": 0,
|
|
"value": "0"
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "DUP1",
|
|
"source": 0
|
|
},
|
|
{
|
|
"begin": 103,
|
|
"end": 440,
|
|
"name": "REVERT",
|
|
"source": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sourceList": [
|
|
"contracts/infrastructure/storage/Storage.sol",
|
|
"contracts/wallet/IWallet.sol",
|
|
"#utility.yul"
|
|
]
|
|
},
|
|
"methodIdentifiers": {}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/infrastructure/storage/Storage.sol\":\"Storage\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/infrastructure/storage/Storage.sol\":{\"keccak256\":\"0x3a8ffe67dbf48b01cafe2527a79639055581252f3fc64723eac90ce46c82a5ca\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://7e16b0acb9940cdfe8e19d4c6b5731da6d665fbfdb1749d601a2dee1835fa7b4\",\"dweb:/ipfs/QmXEDqiijs31vh7Tbd1EZeeTDdu5TzTVK6jsE5Bo4VvgCM\"]},\"contracts/wallet/IWallet.sol\":{\"keccak256\":\"0x419c35d8560646a01707b86608a77014c2998e88d3c9d5c239a69df936787cee\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://b5689f84dc8a12aea4c0c96b3494cc83f4e1a2dfdb6461af45be555c5fab3843\",\"dweb:/ipfs/QmTrmgrvYgF55aZqA44GS9PwYDXKN9rntfcnxbuQnZs3we\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {},
|
|
"version": 1
|
|
}
|
|
}
|
|
},
|
|
"contracts/wallet/IWallet.sol": {
|
|
"IWallet": {
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_module",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "_value",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "authoriseModule",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_module",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "authorised",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_module",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes4",
|
|
"name": "_method",
|
|
"type": "bytes4"
|
|
}
|
|
],
|
|
"name": "enableStaticCall",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes4",
|
|
"name": "_sig",
|
|
"type": "bytes4"
|
|
}
|
|
],
|
|
"name": "enabled",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "modules",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "owner",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "_newOwner",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "setOwner",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"kind": "dev",
|
|
"methods": {
|
|
"authoriseModule(address,bool)": {
|
|
"params": {
|
|
"_module": "The target module.",
|
|
"_value": "Set to `true` to authorise the module."
|
|
}
|
|
},
|
|
"authorised(address)": {
|
|
"params": {
|
|
"_module": "The module address to check."
|
|
},
|
|
"returns": {
|
|
"_0": "`true` if the module is authorised, otherwise `false`."
|
|
}
|
|
},
|
|
"enableStaticCall(address,bytes4)": {
|
|
"params": {
|
|
"_method": "The static method signature.",
|
|
"_module": "The target module."
|
|
}
|
|
},
|
|
"enabled(bytes4)": {
|
|
"params": {
|
|
"_sig": "The signature of the static call."
|
|
},
|
|
"returns": {
|
|
"_0": "the module doing the redirection"
|
|
}
|
|
},
|
|
"modules()": {
|
|
"returns": {
|
|
"_0": "The number of authorised modules."
|
|
}
|
|
},
|
|
"owner()": {
|
|
"returns": {
|
|
"_0": "The wallet owner address."
|
|
}
|
|
},
|
|
"setOwner(address)": {
|
|
"params": {
|
|
"_newOwner": "The new owner."
|
|
}
|
|
}
|
|
},
|
|
"title": "IWallet",
|
|
"version": 1
|
|
},
|
|
"evm": {
|
|
"assembly": "",
|
|
"bytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"deployedBytecode": {
|
|
"functionDebugData": {},
|
|
"generatedSources": [],
|
|
"immutableReferences": {},
|
|
"linkReferences": {},
|
|
"object": "",
|
|
"opcodes": "",
|
|
"sourceMap": ""
|
|
},
|
|
"gasEstimates": null,
|
|
"legacyAssembly": null,
|
|
"methodIdentifiers": {
|
|
"authoriseModule(address,bool)": "1f17732d",
|
|
"authorised(address)": "d6eb1bbf",
|
|
"enableStaticCall(address,bytes4)": "13da30b2",
|
|
"enabled(bytes4)": "5f54892b",
|
|
"modules()": "f7e80e98",
|
|
"owner()": "8da5cb5b",
|
|
"setOwner(address)": "13af4035"
|
|
}
|
|
},
|
|
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"_value\",\"type\":\"bool\"}],\"name\":\"authoriseModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"}],\"name\":\"authorised\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_module\",\"type\":\"address\"},{\"internalType\":\"bytes4\",\"name\":\"_method\",\"type\":\"bytes4\"}],\"name\":\"enableStaticCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"_sig\",\"type\":\"bytes4\"}],\"name\":\"enabled\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"modules\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"authoriseModule(address,bool)\":{\"params\":{\"_module\":\"The target module.\",\"_value\":\"Set to `true` to authorise the module.\"}},\"authorised(address)\":{\"params\":{\"_module\":\"The module address to check.\"},\"returns\":{\"_0\":\"`true` if the module is authorised, otherwise `false`.\"}},\"enableStaticCall(address,bytes4)\":{\"params\":{\"_method\":\"The static method signature.\",\"_module\":\"The target module.\"}},\"enabled(bytes4)\":{\"params\":{\"_sig\":\"The signature of the static call.\"},\"returns\":{\"_0\":\"the module doing the redirection\"}},\"modules()\":{\"returns\":{\"_0\":\"The number of authorised modules.\"}},\"owner()\":{\"returns\":{\"_0\":\"The wallet owner address.\"}},\"setOwner(address)\":{\"params\":{\"_newOwner\":\"The new owner.\"}}},\"title\":\"IWallet\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"authoriseModule(address,bool)\":{\"notice\":\"Enables/Disables a module.\"},\"authorised(address)\":{\"notice\":\"Checks if a module is authorised on the wallet.\"},\"enableStaticCall(address,bytes4)\":{\"notice\":\"Enables a static method by specifying the target module to which the call must be delegated.\"},\"enabled(bytes4)\":{\"notice\":\"Returns the module responsible for a static call redirection.\"},\"modules()\":{\"notice\":\"Returns the number of authorised modules.\"},\"owner()\":{\"notice\":\"Returns the wallet owner.\"},\"setOwner(address)\":{\"notice\":\"Sets a new owner for the wallet.\"}},\"notice\":\"Interface for the BaseWallet\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/wallet/IWallet.sol\":\"IWallet\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/wallet/IWallet.sol\":{\"keccak256\":\"0x419c35d8560646a01707b86608a77014c2998e88d3c9d5c239a69df936787cee\",\"license\":\"GPL-3.0-only\",\"urls\":[\"bzz-raw://b5689f84dc8a12aea4c0c96b3494cc83f4e1a2dfdb6461af45be555c5fab3843\",\"dweb:/ipfs/QmTrmgrvYgF55aZqA44GS9PwYDXKN9rntfcnxbuQnZs3we\"]}},\"version\":1}",
|
|
"storageLayout": {
|
|
"storage": [],
|
|
"types": null
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"authoriseModule(address,bool)": {
|
|
"notice": "Enables/Disables a module."
|
|
},
|
|
"authorised(address)": {
|
|
"notice": "Checks if a module is authorised on the wallet."
|
|
},
|
|
"enableStaticCall(address,bytes4)": {
|
|
"notice": "Enables a static method by specifying the target module to which the call must be delegated."
|
|
},
|
|
"enabled(bytes4)": {
|
|
"notice": "Returns the module responsible for a static call redirection."
|
|
},
|
|
"modules()": {
|
|
"notice": "Returns the number of authorised modules."
|
|
},
|
|
"owner()": {
|
|
"notice": "Returns the wallet owner."
|
|
},
|
|
"setOwner(address)": {
|
|
"notice": "Sets a new owner for the wallet."
|
|
}
|
|
},
|
|
"notice": "Interface for the BaseWallet",
|
|
"version": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"contracts/infrastructure/storage/Storage.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/infrastructure/storage/Storage.sol",
|
|
"exportedSymbols": {
|
|
"IWallet": [
|
|
75
|
|
],
|
|
"Storage": [
|
|
21
|
|
]
|
|
},
|
|
"id": 22,
|
|
"license": "MIT",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"literals": [
|
|
"solidity",
|
|
"^",
|
|
"0.8",
|
|
".26"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "35:24:0"
|
|
},
|
|
{
|
|
"absolutePath": "contracts/wallet/IWallet.sol",
|
|
"file": "../../wallet/IWallet.sol",
|
|
"id": 2,
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "ImportDirective",
|
|
"scope": 22,
|
|
"sourceUnit": 76,
|
|
"src": "63:34:0",
|
|
"symbolAliases": [],
|
|
"unitAlias": ""
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "Storage",
|
|
"contractDependencies": [],
|
|
"contractKind": "contract",
|
|
"fullyImplemented": true,
|
|
"id": 21,
|
|
"linearizedBaseContracts": [
|
|
21
|
|
],
|
|
"name": "Storage",
|
|
"nameLocation": "112:7:0",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"body": {
|
|
"id": 19,
|
|
"nodeType": "Block",
|
|
"src": "250:187:0",
|
|
"statements": [
|
|
{
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"expression": {
|
|
"id": 12,
|
|
"name": "msg",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 4294967281,
|
|
"src": "349:3:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_magic_message",
|
|
"typeString": "msg"
|
|
}
|
|
},
|
|
"id": 13,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "353:6:0",
|
|
"memberName": "sender",
|
|
"nodeType": "MemberAccess",
|
|
"src": "349:10:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"id": 9,
|
|
"name": "_wallet",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 5,
|
|
"src": "329:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
],
|
|
"id": 8,
|
|
"name": "IWallet",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [],
|
|
"referencedDeclaration": 75,
|
|
"src": "321:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_type$_t_contract$_IWallet_$75_$",
|
|
"typeString": "type(contract IWallet)"
|
|
}
|
|
},
|
|
"id": 10,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "typeConversion",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "321:16:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_contract$_IWallet_$75",
|
|
"typeString": "contract IWallet"
|
|
}
|
|
},
|
|
"id": 11,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"lValueRequested": false,
|
|
"memberLocation": "338:10:0",
|
|
"memberName": "authorised",
|
|
"nodeType": "MemberAccess",
|
|
"referencedDeclaration": 50,
|
|
"src": "321:27:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_external_view$_t_address_$returns$_t_bool_$",
|
|
"typeString": "function (address) view external returns (bool)"
|
|
}
|
|
},
|
|
"id": 14,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "321:39:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
{
|
|
"hexValue": "54533a206d75737420626520616e20617574686f72697a6564206d6f64756c6520746f2063616c6c2074686973206d6574686f64",
|
|
"id": 15,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": true,
|
|
"kind": "string",
|
|
"lValueRequested": false,
|
|
"nodeType": "Literal",
|
|
"src": "362:54:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_stringliteral_621eac8a7ad9a4001ff2bb430eefe4072718db071f2ab22ecf2b52b8c62fa5c7",
|
|
"typeString": "literal_string \"TS: must be an authorized module to call this method\""
|
|
},
|
|
"value": "TS: must be an authorized module to call this method"
|
|
}
|
|
],
|
|
"expression": {
|
|
"argumentTypes": [
|
|
{
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
{
|
|
"typeIdentifier": "t_stringliteral_621eac8a7ad9a4001ff2bb430eefe4072718db071f2ab22ecf2b52b8c62fa5c7",
|
|
"typeString": "literal_string \"TS: must be an authorized module to call this method\""
|
|
}
|
|
],
|
|
"id": 7,
|
|
"name": "require",
|
|
"nodeType": "Identifier",
|
|
"overloadedDeclarations": [
|
|
4294967278,
|
|
4294967278,
|
|
4294967278
|
|
],
|
|
"referencedDeclaration": 4294967278,
|
|
"src": "313:7:0",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
|
|
"typeString": "function (bool,string memory) pure"
|
|
}
|
|
},
|
|
"id": 16,
|
|
"isConstant": false,
|
|
"isLValue": false,
|
|
"isPure": false,
|
|
"kind": "functionCall",
|
|
"lValueRequested": false,
|
|
"nameLocations": [],
|
|
"names": [],
|
|
"nodeType": "FunctionCall",
|
|
"src": "313:104:0",
|
|
"tryCall": false,
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_tuple$__$",
|
|
"typeString": "tuple()"
|
|
}
|
|
},
|
|
"id": 17,
|
|
"nodeType": "ExpressionStatement",
|
|
"src": "313:104:0"
|
|
},
|
|
{
|
|
"id": 18,
|
|
"nodeType": "PlaceholderStatement",
|
|
"src": "428:1:0"
|
|
}
|
|
]
|
|
},
|
|
"documentation": {
|
|
"id": 3,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "129:78:0",
|
|
"text": " @notice Throws if the caller is not an authorised module."
|
|
},
|
|
"id": 20,
|
|
"name": "onlyModule",
|
|
"nameLocation": "222:10:0",
|
|
"nodeType": "ModifierDefinition",
|
|
"parameters": {
|
|
"id": 6,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 5,
|
|
"mutability": "mutable",
|
|
"name": "_wallet",
|
|
"nameLocation": "241:7:0",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 20,
|
|
"src": "233:15:0",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 4,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "233:7:0",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "232:17:0"
|
|
},
|
|
"src": "213:224:0",
|
|
"virtual": false,
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"scope": 22,
|
|
"src": "103:337:0",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "35:405:0"
|
|
},
|
|
"id": 0
|
|
},
|
|
"contracts/wallet/IWallet.sol": {
|
|
"ast": {
|
|
"absolutePath": "contracts/wallet/IWallet.sol",
|
|
"exportedSymbols": {
|
|
"IWallet": [
|
|
75
|
|
]
|
|
},
|
|
"id": 76,
|
|
"license": "GPL-3.0-only",
|
|
"nodeType": "SourceUnit",
|
|
"nodes": [
|
|
{
|
|
"id": 23,
|
|
"literals": [
|
|
"solidity",
|
|
">=",
|
|
"0.5",
|
|
".4",
|
|
"<",
|
|
"0.9",
|
|
".0"
|
|
],
|
|
"nodeType": "PragmaDirective",
|
|
"src": "43:31:1"
|
|
},
|
|
{
|
|
"abstract": false,
|
|
"baseContracts": [],
|
|
"canonicalName": "IWallet",
|
|
"contractDependencies": [],
|
|
"contractKind": "interface",
|
|
"documentation": {
|
|
"id": 24,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "76:65:1",
|
|
"text": " @title IWallet\n @notice Interface for the BaseWallet"
|
|
},
|
|
"fullyImplemented": false,
|
|
"id": 75,
|
|
"linearizedBaseContracts": [
|
|
75
|
|
],
|
|
"name": "IWallet",
|
|
"nameLocation": "152:7:1",
|
|
"nodeType": "ContractDefinition",
|
|
"nodes": [
|
|
{
|
|
"documentation": {
|
|
"id": 25,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "166:93:1",
|
|
"text": " @notice Returns the wallet owner.\n @return The wallet owner address."
|
|
},
|
|
"functionSelector": "8da5cb5b",
|
|
"id": 30,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "owner",
|
|
"nameLocation": "273:5:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 26,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "278:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 29,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 28,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 30,
|
|
"src": "304:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 27,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "304:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "303:9:1"
|
|
},
|
|
"scope": 75,
|
|
"src": "264:49:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 31,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "319:117:1",
|
|
"text": " @notice Returns the number of authorised modules.\n @return The number of authorised modules."
|
|
},
|
|
"functionSelector": "f7e80e98",
|
|
"id": 36,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "modules",
|
|
"nameLocation": "450:7:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 32,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "457:2:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 35,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 34,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 36,
|
|
"src": "483:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
},
|
|
"typeName": {
|
|
"id": 33,
|
|
"name": "uint",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "483:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_uint256",
|
|
"typeString": "uint256"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "482:6:1"
|
|
},
|
|
"scope": 75,
|
|
"src": "441:48:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 37,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "495:98:1",
|
|
"text": " @notice Sets a new owner for the wallet.\n @param _newOwner The new owner."
|
|
},
|
|
"functionSelector": "13af4035",
|
|
"id": 42,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "setOwner",
|
|
"nameLocation": "607:8:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 40,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 39,
|
|
"mutability": "mutable",
|
|
"name": "_newOwner",
|
|
"nameLocation": "624:9:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 42,
|
|
"src": "616:17:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 38,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "616:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "615:19:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 41,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "643:0:1"
|
|
},
|
|
"scope": 75,
|
|
"src": "598:46:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 43,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "650:195:1",
|
|
"text": " @notice Checks if a module is authorised on the wallet.\n @param _module The module address to check.\n @return `true` if the module is authorised, otherwise `false`."
|
|
},
|
|
"functionSelector": "d6eb1bbf",
|
|
"id": 50,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "authorised",
|
|
"nameLocation": "859:10:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 46,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 45,
|
|
"mutability": "mutable",
|
|
"name": "_module",
|
|
"nameLocation": "878:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 50,
|
|
"src": "870:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 44,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "870:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "869:17:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 49,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 48,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 50,
|
|
"src": "910:4:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 47,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "910:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "909:6:1"
|
|
},
|
|
"scope": 75,
|
|
"src": "850:66:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 51,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "922:189:1",
|
|
"text": " @notice Returns the module responsible for a static call redirection.\n @param _sig The signature of the static call.\n @return the module doing the redirection"
|
|
},
|
|
"functionSelector": "5f54892b",
|
|
"id": 58,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "enabled",
|
|
"nameLocation": "1125:7:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 54,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 53,
|
|
"mutability": "mutable",
|
|
"name": "_sig",
|
|
"nameLocation": "1140:4:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 58,
|
|
"src": "1133:11:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 52,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1133:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1132:13:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 57,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 56,
|
|
"mutability": "mutable",
|
|
"name": "",
|
|
"nameLocation": "-1:-1:-1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 58,
|
|
"src": "1169:7:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 55,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1169:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1168:9:1"
|
|
},
|
|
"scope": 75,
|
|
"src": "1116:62:1",
|
|
"stateMutability": "view",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 59,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1184:154:1",
|
|
"text": " @notice Enables/Disables a module.\n @param _module The target module.\n @param _value Set to `true` to authorise the module."
|
|
},
|
|
"functionSelector": "1f17732d",
|
|
"id": 66,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "authoriseModule",
|
|
"nameLocation": "1352:15:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 64,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 61,
|
|
"mutability": "mutable",
|
|
"name": "_module",
|
|
"nameLocation": "1376:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 66,
|
|
"src": "1368:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 60,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1368:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 63,
|
|
"mutability": "mutable",
|
|
"name": "_value",
|
|
"nameLocation": "1390:6:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 66,
|
|
"src": "1385:11:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
},
|
|
"typeName": {
|
|
"id": 62,
|
|
"name": "bool",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1385:4:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bool",
|
|
"typeString": "bool"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1367:30:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 65,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1406:0:1"
|
|
},
|
|
"scope": 75,
|
|
"src": "1343:64:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
},
|
|
{
|
|
"documentation": {
|
|
"id": 67,
|
|
"nodeType": "StructuredDocumentation",
|
|
"src": "1413:207:1",
|
|
"text": " @notice Enables a static method by specifying the target module to which the call must be delegated.\n @param _module The target module.\n @param _method The static method signature."
|
|
},
|
|
"functionSelector": "13da30b2",
|
|
"id": 74,
|
|
"implemented": false,
|
|
"kind": "function",
|
|
"modifiers": [],
|
|
"name": "enableStaticCall",
|
|
"nameLocation": "1634:16:1",
|
|
"nodeType": "FunctionDefinition",
|
|
"parameters": {
|
|
"id": 72,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [
|
|
{
|
|
"constant": false,
|
|
"id": 69,
|
|
"mutability": "mutable",
|
|
"name": "_module",
|
|
"nameLocation": "1659:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 74,
|
|
"src": "1651:15:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
},
|
|
"typeName": {
|
|
"id": 68,
|
|
"name": "address",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1651:7:1",
|
|
"stateMutability": "nonpayable",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_address",
|
|
"typeString": "address"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"id": 71,
|
|
"mutability": "mutable",
|
|
"name": "_method",
|
|
"nameLocation": "1675:7:1",
|
|
"nodeType": "VariableDeclaration",
|
|
"scope": 74,
|
|
"src": "1668:14:1",
|
|
"stateVariable": false,
|
|
"storageLocation": "default",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
},
|
|
"typeName": {
|
|
"id": 70,
|
|
"name": "bytes4",
|
|
"nodeType": "ElementaryTypeName",
|
|
"src": "1668:6:1",
|
|
"typeDescriptions": {
|
|
"typeIdentifier": "t_bytes4",
|
|
"typeString": "bytes4"
|
|
}
|
|
},
|
|
"visibility": "internal"
|
|
}
|
|
],
|
|
"src": "1650:33:1"
|
|
},
|
|
"returnParameters": {
|
|
"id": 73,
|
|
"nodeType": "ParameterList",
|
|
"parameters": [],
|
|
"src": "1692:0:1"
|
|
},
|
|
"scope": 75,
|
|
"src": "1625:68:1",
|
|
"stateMutability": "nonpayable",
|
|
"virtual": false,
|
|
"visibility": "external"
|
|
}
|
|
],
|
|
"scope": 76,
|
|
"src": "142:1553:1",
|
|
"usedErrors": [],
|
|
"usedEvents": []
|
|
}
|
|
],
|
|
"src": "43:1652:1"
|
|
},
|
|
"id": 1
|
|
}
|
|
}
|
|
}
|
|
} |