Updating safe-contracts to 0.0.2 alpha

This commit is contained in:
apanizo 2018-09-26 11:19:53 +02:00
parent 9c235ea12a
commit 41f4cfaa79
34 changed files with 63242 additions and 46862 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -50,40 +50,40 @@
"type": "fallback" "type": "fallback"
} }
], ],
"bytecode": "0x608060405234801561001057600080fd5b506040516102fc3803806102fc83398101806040528101908080519060200190929190805182019291905050508160008173ffffffffffffffffffffffffffffffffffffffff16141515156100f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000815111156101805773ffffffffffffffffffffffffffffffffffffffff60005416600080835160208501846127105a03f46040513d6000823e600082141561017c573d81fd5b5050505b505061016b806101916000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820bab5357556c704bffef0f96326dd27742408be175057ffd8f4f58237314cfd520029", "bytecode": "0x608060405234801561001057600080fd5b506040516102fc3803806102fc83398101806040528101908080519060200190929190805182019291905050508160008173ffffffffffffffffffffffffffffffffffffffff16141515156100f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000815111156101805773ffffffffffffffffffffffffffffffffffffffff60005416600080835160208501846127105a03f46040513d6000823e600082141561017c573d81fd5b5050505b505061016b806101916000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820b2de5726e0943c0fae0f20300b651ccee9090eab24beaf21fd7dbc55f5eef5970029",
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820bab5357556c704bffef0f96326dd27742408be175057ffd8f4f58237314cfd520029", "deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820b2de5726e0943c0fae0f20300b651ccee9090eab24beaf21fd7dbc55f5eef5970029",
"sourceMap": "355:882:0:-;;;610:625;8:9:-1;5:2;;;30:1;27;20:12;5:2;610:625:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;668:11;593:1:13;578:11;:16;;;;570:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;658:11;645:10;;:24;;;;;;;;;;;;;;;;;;508:168;735:1:0;714:11;:18;:22;710:519;;;879:42;875:1;869:8;865:57;1043:1;1040;1026:11;1020:18;1013:4;1000:11;996:22;984:10;976:5;971:3;967:15;954:91;1079:4;1073:11;1124:14;1121:1;1116:3;1101:38;1171:1;1162:7;1159:14;1156:2;;;1188:14;1183:3;1176:27;1156:2;829:390;;;;610:625;;355:882;;;;;;", "sourceMap": "355:882:21:-;;;610:625;8:9:-1;5:2;;;30:1;27;20:12;5:2;610:625:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;668:11;593:1:23;578:11;:16;;;;570:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;658:11;645:10;;:24;;;;;;;;;;;;;;;;;;508:168;735:1:21;714:11;:18;:22;710:519;;;879:42;875:1;869:8;865:57;1043:1;1040;1026:11;1020:18;1013:4;1000:11;996:22;984:10;976:5;971:3;967:15;954:91;1079:4;1073:11;1124:14;1121:1;1116:3;1101:38;1171:1;1162:7;1159:14;1156:2;;;1188:14;1183:3;1176:27;1156:2;829:390;;;;610:625;;355:882;;;;;;",
"deployedSourceMap": "355:882:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;955:42:13;951:1;945:8;941:57;1030:14;1027:1;1024;1011:34;1125:1;1122;1106:14;1103:1;1091:10;1086:3;1073:54;1161:16;1158:1;1155;1140:38;1206:1;1197:7;1194:14;1191:2;;;1221:16;1218:1;1211:27;1191:2;1263:16;1260:1;1253:27;1426:104;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1426:104:13;;;;;;;;;;;;;;;;;;;;;;;1302:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1302:118:13;;;;;;;;;;;;;;;;;;;;;;;;;;;1426:104;1492:7;1522:1;1515:8;;1426:104;:::o;1302:118::-;1373:7;1403:10;;;;;;;;;;;1396:17;;1302:118;:::o", "deployedSourceMap": "355:882:21:-;;;;;;;;;;;;;;;;;;;;;;;;;;955:42:23;951:1;945:8;941:57;1030:14;1027:1;1024;1011:34;1125:1;1122;1106:14;1103:1;1091:10;1086:3;1073:54;1161:16;1158:1;1155;1140:38;1206:1;1197:7;1194:14;1191:2;;;1221:16;1218:1;1211:27;1191:2;1263:16;1260:1;1253:27;1426:104;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1426:104:23;;;;;;;;;;;;;;;;;;;;;;;1302:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1302:118:23;;;;;;;;;;;;;;;;;;;;;;;;;;;1426:104;1492:7;1522:1;1515:8;;1426:104;:::o;1302:118::-;1373:7;1403:10;;;;;;;;;;;1396:17;;1302:118;:::o",
"source": "pragma solidity 0.4.24;\nimport \"./Proxy.sol\";\n\n\n/// @title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract DelegateConstructorProxy is Proxy {\n\n /// @dev Constructor function sets address of master copy contract.\n /// @param _masterCopy Master copy address.\n /// @param initializer Data used for a delegate call to initialize the contract.\n constructor(address _masterCopy, bytes initializer) Proxy(_masterCopy)\n public\n {\n if (initializer.length > 0) {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas, 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize)\n if eq(success, 0) { revert(ptr, returndatasize) }\n }\n }\n }\n}\n", "source": "pragma solidity 0.4.24;\nimport \"./Proxy.sol\";\n\n\n/// @title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract DelegateConstructorProxy is Proxy {\n\n /// @dev Constructor function sets address of master copy contract.\n /// @param _masterCopy Master copy address.\n /// @param initializer Data used for a delegate call to initialize the contract.\n constructor(address _masterCopy, bytes initializer) Proxy(_masterCopy)\n public\n {\n if (initializer.length > 0) {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas, 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize)\n if eq(success, 0) { revert(ptr, returndatasize) }\n }\n }\n }\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/DelegateConstructorProxy.sol", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/DelegateConstructorProxy.sol",
"ast": { "ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/DelegateConstructorProxy.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/DelegateConstructorProxy.sol",
"exportedSymbols": { "exportedSymbols": {
"DelegateConstructorProxy": [ "DelegateConstructorProxy": [
23 2740
] ]
}, },
"id": 24, "id": 2741,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1, "id": 2718,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:0" "src": "0:23:21"
}, },
{ {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Proxy.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/Proxy.sol",
"file": "./Proxy.sol", "file": "./Proxy.sol",
"id": 2, "id": 2719,
"nodeType": "ImportDirective", "nodeType": "ImportDirective",
"scope": 24, "scope": 2741,
"sourceUnit": 1689, "sourceUnit": 2841,
"src": "24:21:0", "src": "24:21:21",
"symbolAliases": [], "symbolAliases": [],
"unitAlias": "" "unitAlias": ""
}, },
@ -93,40 +93,40 @@
"arguments": null, "arguments": null,
"baseName": { "baseName": {
"contractScope": null, "contractScope": null,
"id": 3, "id": 2720,
"name": "Proxy", "name": "Proxy",
"nodeType": "UserDefinedTypeName", "nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1688, "referencedDeclaration": 2840,
"src": "392:5:0", "src": "392:5:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_contract$_Proxy_$1688", "typeIdentifier": "t_contract$_Proxy_$2840",
"typeString": "contract Proxy" "typeString": "contract Proxy"
} }
}, },
"id": 4, "id": 2721,
"nodeType": "InheritanceSpecifier", "nodeType": "InheritanceSpecifier",
"src": "392:5:0" "src": "392:5:21"
} }
], ],
"contractDependencies": [ "contractDependencies": [
1688 2840
], ],
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 23, "id": 2740,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
23, 2740,
1688 2840
], ],
"name": "DelegateConstructorProxy", "name": "DelegateConstructorProxy",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 21, "id": 2738,
"nodeType": "Block", "nodeType": "Block",
"src": "700:535:0", "src": "700:535:21",
"statements": [ "statements": [
{ {
"condition": { "condition": {
@ -135,7 +135,7 @@
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
}, },
"id": 17, "id": 2734,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -144,18 +144,18 @@
"argumentTypes": null, "argumentTypes": null,
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 14, "id": 2731,
"name": "initializer", "name": "initializer",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 8, "referencedDeclaration": 2725,
"src": "714:11:0", "src": "714:11:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr", "typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory" "typeString": "bytes memory"
} }
}, },
"id": 15, "id": 2732,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -163,7 +163,7 @@
"memberName": "length", "memberName": "length",
"nodeType": "MemberAccess", "nodeType": "MemberAccess",
"referencedDeclaration": null, "referencedDeclaration": null,
"src": "714:18:0", "src": "714:18:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
@ -174,14 +174,14 @@
"rightExpression": { "rightExpression": {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "30", "hexValue": "30",
"id": 16, "id": 2733,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "number", "kind": "number",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "735:1:0", "src": "735:1:21",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1", "typeIdentifier": "t_rational_0_by_1",
@ -189,46 +189,46 @@
}, },
"value": "0" "value": "0"
}, },
"src": "714:22:0", "src": "714:22:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
} }
}, },
"falseBody": null, "falseBody": null,
"id": 20, "id": 2737,
"nodeType": "IfStatement", "nodeType": "IfStatement",
"src": "710:519:0", "src": "710:519:21",
"trueBody": { "trueBody": {
"id": 19, "id": 2736,
"nodeType": "Block", "nodeType": "Block",
"src": "738:491:0", "src": "738:491:21",
"statements": [ "statements": [
{ {
"externalReferences": [ "externalReferences": [
{ {
"initializer": { "initializer": {
"declaration": 8, "declaration": 2725,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1000:11:0", "src": "1026:11:21",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"initializer": { "initializer": {
"declaration": 8, "declaration": 2725,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1026:11:0", "src": "1000:11:21",
"valueSize": 1 "valueSize": 1
} }
} }
], ],
"id": 18, "id": 2735,
"nodeType": "InlineAssembly", "nodeType": "InlineAssembly",
"operations": "{\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas(), 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n if eq(success, 0)\n {\n revert(ptr, returndatasize())\n }\n}", "operations": "{\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas(), 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n if eq(success, 0)\n {\n revert(ptr, returndatasize())\n }\n}",
"src": "820:409:0" "src": "820:409:21"
} }
] ]
} }
@ -236,7 +236,7 @@
] ]
}, },
"documentation": "@dev Constructor function sets address of master copy contract.\n @param _masterCopy Master copy address.\n @param initializer Data used for a delegate call to initialize the contract.", "documentation": "@dev Constructor function sets address of master copy contract.\n @param _masterCopy Master copy address.\n @param initializer Data used for a delegate call to initialize the contract.",
"id": 22, "id": 2739,
"implemented": true, "implemented": true,
"isConstructor": true, "isConstructor": true,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -245,49 +245,49 @@
"arguments": [ "arguments": [
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 11, "id": 2728,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 6, "referencedDeclaration": 2723,
"src": "668:11:0", "src": "668:11:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
} }
], ],
"id": 12, "id": 2729,
"modifierName": { "modifierName": {
"argumentTypes": null, "argumentTypes": null,
"id": 10, "id": 2727,
"name": "Proxy", "name": "Proxy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1688, "referencedDeclaration": 2840,
"src": "662:5:0", "src": "662:5:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Proxy_$1688_$", "typeIdentifier": "t_type$_t_contract$_Proxy_$2840_$",
"typeString": "type(contract Proxy)" "typeString": "type(contract Proxy)"
} }
}, },
"nodeType": "ModifierInvocation", "nodeType": "ModifierInvocation",
"src": "662:18:0" "src": "662:18:21"
} }
], ],
"name": "", "name": "",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 9, "id": 2726,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 6, "id": 2723,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 22, "scope": 2739,
"src": "622:19:0", "src": "622:19:21",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -295,10 +295,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 5, "id": 2722,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "622:7:0", "src": "622:7:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -309,11 +309,11 @@
}, },
{ {
"constant": false, "constant": false,
"id": 8, "id": 2725,
"name": "initializer", "name": "initializer",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 22, "scope": 2739,
"src": "643:17:0", "src": "643:17:21",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -321,10 +321,10 @@
"typeString": "bytes" "typeString": "bytes"
}, },
"typeName": { "typeName": {
"id": 7, "id": 2724,
"name": "bytes", "name": "bytes",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "643:5:0", "src": "643:5:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr", "typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes" "typeString": "bytes"
@ -334,56 +334,56 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "621:40:0" "src": "621:40:21"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 13, "id": 2730,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "700:0:0" "src": "700:0:21"
}, },
"scope": 23, "scope": 2740,
"src": "610:625:0", "src": "610:625:21",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "public" "visibility": "public"
} }
], ],
"scope": 24, "scope": 2741,
"src": "355:882:0" "src": "355:882:21"
} }
], ],
"src": "0:1238:0" "src": "0:1238:21"
}, },
"legacyAST": { "legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/DelegateConstructorProxy.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/DelegateConstructorProxy.sol",
"exportedSymbols": { "exportedSymbols": {
"DelegateConstructorProxy": [ "DelegateConstructorProxy": [
23 2740
] ]
}, },
"id": 24, "id": 2741,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1, "id": 2718,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:0" "src": "0:23:21"
}, },
{ {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Proxy.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/proxies/Proxy.sol",
"file": "./Proxy.sol", "file": "./Proxy.sol",
"id": 2, "id": 2719,
"nodeType": "ImportDirective", "nodeType": "ImportDirective",
"scope": 24, "scope": 2741,
"sourceUnit": 1689, "sourceUnit": 2841,
"src": "24:21:0", "src": "24:21:21",
"symbolAliases": [], "symbolAliases": [],
"unitAlias": "" "unitAlias": ""
}, },
@ -393,40 +393,40 @@
"arguments": null, "arguments": null,
"baseName": { "baseName": {
"contractScope": null, "contractScope": null,
"id": 3, "id": 2720,
"name": "Proxy", "name": "Proxy",
"nodeType": "UserDefinedTypeName", "nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1688, "referencedDeclaration": 2840,
"src": "392:5:0", "src": "392:5:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_contract$_Proxy_$1688", "typeIdentifier": "t_contract$_Proxy_$2840",
"typeString": "contract Proxy" "typeString": "contract Proxy"
} }
}, },
"id": 4, "id": 2721,
"nodeType": "InheritanceSpecifier", "nodeType": "InheritanceSpecifier",
"src": "392:5:0" "src": "392:5:21"
} }
], ],
"contractDependencies": [ "contractDependencies": [
1688 2840
], ],
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title Delegate Constructor Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract. It is possible to send along initialization data with the constructor.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 23, "id": 2740,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
23, 2740,
1688 2840
], ],
"name": "DelegateConstructorProxy", "name": "DelegateConstructorProxy",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 21, "id": 2738,
"nodeType": "Block", "nodeType": "Block",
"src": "700:535:0", "src": "700:535:21",
"statements": [ "statements": [
{ {
"condition": { "condition": {
@ -435,7 +435,7 @@
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
}, },
"id": 17, "id": 2734,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -444,18 +444,18 @@
"argumentTypes": null, "argumentTypes": null,
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 14, "id": 2731,
"name": "initializer", "name": "initializer",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 8, "referencedDeclaration": 2725,
"src": "714:11:0", "src": "714:11:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr", "typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory" "typeString": "bytes memory"
} }
}, },
"id": 15, "id": 2732,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -463,7 +463,7 @@
"memberName": "length", "memberName": "length",
"nodeType": "MemberAccess", "nodeType": "MemberAccess",
"referencedDeclaration": null, "referencedDeclaration": null,
"src": "714:18:0", "src": "714:18:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
@ -474,14 +474,14 @@
"rightExpression": { "rightExpression": {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "30", "hexValue": "30",
"id": 16, "id": 2733,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "number", "kind": "number",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "735:1:0", "src": "735:1:21",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1", "typeIdentifier": "t_rational_0_by_1",
@ -489,46 +489,46 @@
}, },
"value": "0" "value": "0"
}, },
"src": "714:22:0", "src": "714:22:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
} }
}, },
"falseBody": null, "falseBody": null,
"id": 20, "id": 2737,
"nodeType": "IfStatement", "nodeType": "IfStatement",
"src": "710:519:0", "src": "710:519:21",
"trueBody": { "trueBody": {
"id": 19, "id": 2736,
"nodeType": "Block", "nodeType": "Block",
"src": "738:491:0", "src": "738:491:21",
"statements": [ "statements": [
{ {
"externalReferences": [ "externalReferences": [
{ {
"initializer": { "initializer": {
"declaration": 8, "declaration": 2725,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1000:11:0", "src": "1026:11:21",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"initializer": { "initializer": {
"declaration": 8, "declaration": 2725,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1026:11:0", "src": "1000:11:21",
"valueSize": 1 "valueSize": 1
} }
} }
], ],
"id": 18, "id": 2735,
"nodeType": "InlineAssembly", "nodeType": "InlineAssembly",
"operations": "{\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas(), 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n if eq(success, 0)\n {\n revert(ptr, returndatasize())\n }\n}", "operations": "{\n let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)\n let success := delegatecall(sub(gas(), 10000), masterCopy, add(initializer, 0x20), mload(initializer), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n if eq(success, 0)\n {\n revert(ptr, returndatasize())\n }\n}",
"src": "820:409:0" "src": "820:409:21"
} }
] ]
} }
@ -536,7 +536,7 @@
] ]
}, },
"documentation": "@dev Constructor function sets address of master copy contract.\n @param _masterCopy Master copy address.\n @param initializer Data used for a delegate call to initialize the contract.", "documentation": "@dev Constructor function sets address of master copy contract.\n @param _masterCopy Master copy address.\n @param initializer Data used for a delegate call to initialize the contract.",
"id": 22, "id": 2739,
"implemented": true, "implemented": true,
"isConstructor": true, "isConstructor": true,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -545,49 +545,49 @@
"arguments": [ "arguments": [
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 11, "id": 2728,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 6, "referencedDeclaration": 2723,
"src": "668:11:0", "src": "668:11:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
} }
], ],
"id": 12, "id": 2729,
"modifierName": { "modifierName": {
"argumentTypes": null, "argumentTypes": null,
"id": 10, "id": 2727,
"name": "Proxy", "name": "Proxy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1688, "referencedDeclaration": 2840,
"src": "662:5:0", "src": "662:5:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_Proxy_$1688_$", "typeIdentifier": "t_type$_t_contract$_Proxy_$2840_$",
"typeString": "type(contract Proxy)" "typeString": "type(contract Proxy)"
} }
}, },
"nodeType": "ModifierInvocation", "nodeType": "ModifierInvocation",
"src": "662:18:0" "src": "662:18:21"
} }
], ],
"name": "", "name": "",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 9, "id": 2726,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 6, "id": 2723,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 22, "scope": 2739,
"src": "622:19:0", "src": "622:19:21",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -595,10 +595,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 5, "id": 2722,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "622:7:0", "src": "622:7:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -609,11 +609,11 @@
}, },
{ {
"constant": false, "constant": false,
"id": 8, "id": 2725,
"name": "initializer", "name": "initializer",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 22, "scope": 2739,
"src": "643:17:0", "src": "643:17:21",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -621,10 +621,10 @@
"typeString": "bytes" "typeString": "bytes"
}, },
"typeName": { "typeName": {
"id": 7, "id": 2724,
"name": "bytes", "name": "bytes",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "643:5:0", "src": "643:5:21",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr", "typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes" "typeString": "bytes"
@ -634,27 +634,27 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "621:40:0" "src": "621:40:21"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 13, "id": 2730,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "700:0:0" "src": "700:0:21"
}, },
"scope": 23, "scope": 2740,
"src": "610:625:0", "src": "610:625:21",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "public" "visibility": "public"
} }
], ],
"scope": 24, "scope": 2741,
"src": "355:882:0" "src": "355:882:21"
} }
], ],
"src": "0:1238:0" "src": "0:1238:21"
}, },
"compiler": { "compiler": {
"name": "solc", "name": "solc",
@ -662,5 +662,5 @@
}, },
"networks": {}, "networks": {},
"schemaVersion": "2.0.0", "schemaVersion": "2.0.0",
"updatedAt": "2018-08-20T07:44:41.083Z" "updatedAt": "2018-09-26T08:32:07.650Z"
} }

View File

@ -1,31 +1,31 @@
{ {
"contractName": "Enum", "contractName": "Enum",
"abi": [], "abi": [],
"bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820641ab8b295edfaa2b1c8a8e0ae7d17ea2f4c8b95ea27e45d8947ed9a4799ca1f0029", "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820e8f35ac07bd2a835eacbee7ba38b086a012b371f6bdc0da93abfb72fe3b38ec20029",
"deployedBytecode": "0x6080604052600080fd00a165627a7a72305820641ab8b295edfaa2b1c8a8e0ae7d17ea2f4c8b95ea27e45d8947ed9a4799ca1f0029", "deployedBytecode": "0x6080604052600080fd00a165627a7a72305820e8f35ac07bd2a835eacbee7ba38b086a012b371f6bdc0da93abfb72fe3b38ec20029",
"sourceMap": "115:95:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115:95:1;;;;;;;", "sourceMap": "115:95:7:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115:95:7;;;;;;;",
"deployedSourceMap": "115:95:1:-;;;;;", "deployedSourceMap": "115:95:7:-;;;;;",
"source": "pragma solidity 0.4.24;\n\n\n/// @title Enum - Collection of enums\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract Enum {\n enum Operation {\n Call,\n DelegateCall,\n Create\n }\n}\n", "source": "pragma solidity 0.4.24;\n\n\n/// @title Enum - Collection of enums\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract Enum {\n enum Operation {\n Call,\n DelegateCall,\n Create\n }\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/Enum.sol",
"ast": { "ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/Enum.sol",
"exportedSymbols": { "exportedSymbols": {
"Enum": [ "Enum": [
30 1659
] ]
}, },
"id": 31, "id": 1660,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 25, "id": 1654,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:1" "src": "0:23:7"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -33,66 +33,66 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title Enum - Collection of enums\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title Enum - Collection of enums\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 30, "id": 1659,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
30 1659
], ],
"name": "Enum", "name": "Enum",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"canonicalName": "Enum.Operation", "canonicalName": "Enum.Operation",
"id": 29, "id": 1658,
"members": [ "members": [
{ {
"id": 26, "id": 1655,
"name": "Call", "name": "Call",
"nodeType": "EnumValue", "nodeType": "EnumValue",
"src": "160:4:1" "src": "160:4:7"
}, },
{ {
"id": 27, "id": 1656,
"name": "DelegateCall", "name": "DelegateCall",
"nodeType": "EnumValue", "nodeType": "EnumValue",
"src": "174:12:1" "src": "174:12:7"
}, },
{ {
"id": 28, "id": 1657,
"name": "Create", "name": "Create",
"nodeType": "EnumValue", "nodeType": "EnumValue",
"src": "196:6:1" "src": "196:6:7"
} }
], ],
"name": "Operation", "name": "Operation",
"nodeType": "EnumDefinition", "nodeType": "EnumDefinition",
"src": "135:73:1" "src": "135:73:7"
} }
], ],
"scope": 31, "scope": 1660,
"src": "115:95:1" "src": "115:95:7"
} }
], ],
"src": "0:211:1" "src": "0:211:7"
}, },
"legacyAST": { "legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/Enum.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/Enum.sol",
"exportedSymbols": { "exportedSymbols": {
"Enum": [ "Enum": [
30 1659
] ]
}, },
"id": 31, "id": 1660,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 25, "id": 1654,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:1" "src": "0:23:7"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -100,46 +100,46 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title Enum - Collection of enums\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title Enum - Collection of enums\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 30, "id": 1659,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
30 1659
], ],
"name": "Enum", "name": "Enum",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"canonicalName": "Enum.Operation", "canonicalName": "Enum.Operation",
"id": 29, "id": 1658,
"members": [ "members": [
{ {
"id": 26, "id": 1655,
"name": "Call", "name": "Call",
"nodeType": "EnumValue", "nodeType": "EnumValue",
"src": "160:4:1" "src": "160:4:7"
}, },
{ {
"id": 27, "id": 1656,
"name": "DelegateCall", "name": "DelegateCall",
"nodeType": "EnumValue", "nodeType": "EnumValue",
"src": "174:12:1" "src": "174:12:7"
}, },
{ {
"id": 28, "id": 1657,
"name": "Create", "name": "Create",
"nodeType": "EnumValue", "nodeType": "EnumValue",
"src": "196:6:1" "src": "196:6:7"
} }
], ],
"name": "Operation", "name": "Operation",
"nodeType": "EnumDefinition", "nodeType": "EnumDefinition",
"src": "135:73:1" "src": "135:73:7"
} }
], ],
"scope": 31, "scope": 1660,
"src": "115:95:1" "src": "115:95:7"
} }
], ],
"src": "0:211:1" "src": "0:211:7"
}, },
"compiler": { "compiler": {
"name": "solc", "name": "solc",
@ -147,5 +147,5 @@
}, },
"networks": {}, "networks": {},
"schemaVersion": "2.0.0", "schemaVersion": "2.0.0",
"updatedAt": "2018-08-20T07:44:41.083Z" "updatedAt": "2018-09-26T08:32:07.643Z"
} }

View File

@ -7,31 +7,31 @@
"type": "fallback" "type": "fallback"
} }
], ],
"bytecode": "0x6080604052348015600f57600080fd5b50603280601d6000396000f30060806040520000a165627a7a723058208226d93ca47e5b6cb455362823a9ae7ae1ffe3fb79b732dd39f124670f780a070029", "bytecode": "0x6080604052348015600f57600080fd5b50603280601d6000396000f30060806040520000a165627a7a723058200c4d2e3a714c9a462ec30383030f16e7035d8647c8e18373ebc02f115b5a1d690029",
"deployedBytecode": "0x60806040520000a165627a7a723058208226d93ca47e5b6cb455362823a9ae7ae1ffe3fb79b732dd39f124670f780a070029", "deployedBytecode": "0x60806040520000a165627a7a723058200c4d2e3a714c9a462ec30383030f16e7035d8647c8e18373ebc02f115b5a1d690029",
"sourceMap": "167:155:2:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;167:155:2;;;;;;;", "sourceMap": "167:155:8:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;167:155:8;;;;;;;",
"deployedSourceMap": "167:155:2:-;;;", "deployedSourceMap": "167:155:8:-;;;",
"source": "pragma solidity 0.4.24;\n\n\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract EtherPaymentFallback {\n\n /// @dev Fallback function accepts Ether transactions.\n function ()\n external\n payable\n {\n\n }\n}\n", "source": "pragma solidity 0.4.24;\n\n\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract EtherPaymentFallback {\n\n /// @dev Fallback function accepts Ether transactions.\n function ()\n external\n payable\n {\n\n }\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/EtherPaymentFallback.sol", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/EtherPaymentFallback.sol",
"ast": { "ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/EtherPaymentFallback.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/EtherPaymentFallback.sol",
"exportedSymbols": { "exportedSymbols": {
"EtherPaymentFallback": [ "EtherPaymentFallback": [
37 1666
] ]
}, },
"id": 38, "id": 1667,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 32, "id": 1661,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:2" "src": "0:23:8"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -39,22 +39,22 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title EtherPaymentFallback - A contract that has a fallback to accept ether payments\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title EtherPaymentFallback - A contract that has a fallback to accept ether payments\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 37, "id": 1666,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
37 1666
], ],
"name": "EtherPaymentFallback", "name": "EtherPaymentFallback",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 35, "id": 1664,
"nodeType": "Block", "nodeType": "Block",
"src": "312:8:2", "src": "312:8:8",
"statements": [] "statements": []
}, },
"documentation": "@dev Fallback function accepts Ether transactions.", "documentation": "@dev Fallback function accepts Ether transactions.",
"id": 36, "id": 1665,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -62,50 +62,50 @@
"name": "", "name": "",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 33, "id": 1662,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "272:2:2" "src": "272:2:8"
}, },
"payable": true, "payable": true,
"returnParameters": { "returnParameters": {
"id": 34, "id": 1663,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "312:0:2" "src": "312:0:8"
}, },
"scope": 37, "scope": 1666,
"src": "263:57:2", "src": "263:57:8",
"stateMutability": "payable", "stateMutability": "payable",
"superFunction": null, "superFunction": null,
"visibility": "external" "visibility": "external"
} }
], ],
"scope": 38, "scope": 1667,
"src": "167:155:2" "src": "167:155:8"
} }
], ],
"src": "0:323:2" "src": "0:323:8"
}, },
"legacyAST": { "legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/EtherPaymentFallback.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/EtherPaymentFallback.sol",
"exportedSymbols": { "exportedSymbols": {
"EtherPaymentFallback": [ "EtherPaymentFallback": [
37 1666
] ]
}, },
"id": 38, "id": 1667,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 32, "id": 1661,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:2" "src": "0:23:8"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -113,22 +113,22 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title EtherPaymentFallback - A contract that has a fallback to accept ether payments\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title EtherPaymentFallback - A contract that has a fallback to accept ether payments\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 37, "id": 1666,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
37 1666
], ],
"name": "EtherPaymentFallback", "name": "EtherPaymentFallback",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 35, "id": 1664,
"nodeType": "Block", "nodeType": "Block",
"src": "312:8:2", "src": "312:8:8",
"statements": [] "statements": []
}, },
"documentation": "@dev Fallback function accepts Ether transactions.", "documentation": "@dev Fallback function accepts Ether transactions.",
"id": 36, "id": 1665,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -136,30 +136,30 @@
"name": "", "name": "",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 33, "id": 1662,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "272:2:2" "src": "272:2:8"
}, },
"payable": true, "payable": true,
"returnParameters": { "returnParameters": {
"id": 34, "id": 1663,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "312:0:2" "src": "312:0:8"
}, },
"scope": 37, "scope": 1666,
"src": "263:57:2", "src": "263:57:8",
"stateMutability": "payable", "stateMutability": "payable",
"superFunction": null, "superFunction": null,
"visibility": "external" "visibility": "external"
} }
], ],
"scope": 38, "scope": 1667,
"src": "167:155:2" "src": "167:155:8"
} }
], ],
"src": "0:323:2" "src": "0:323:8"
}, },
"compiler": { "compiler": {
"name": "solc", "name": "solc",
@ -167,5 +167,5 @@
}, },
"networks": {}, "networks": {},
"schemaVersion": "2.0.0", "schemaVersion": "2.0.0",
"updatedAt": "2018-08-20T07:44:41.083Z" "updatedAt": "2018-09-26T08:32:07.643Z"
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,339 @@
{
"contractName": "ISignatureValidator",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_data",
"type": "bytes"
},
{
"name": "_signature",
"type": "bytes"
}
],
"name": "isValidSignature",
"outputs": [
{
"name": "isValid",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity 0.4.24;\n\ncontract ISignatureValidator {\n /**\n * @dev Should return whether the signature provided is valid for the provided data\n * @param _data Arbitrary length data signed on the behalf of address(this)\n * @param _signature Signature byte array associated with _data\n *\n * MUST return a bool upon valid or invalid signature with corresponding _data\n * MUST take (bytes, bytes) as arguments\n */ \n function isValidSignature(\n bytes _data, \n bytes _signature)\n public\n returns (bool isValid); \n}",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/interfaces/ISignatureValidator.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/interfaces/ISignatureValidator.sol",
"exportedSymbols": {
"ISignatureValidator": [
1803
]
},
"id": 1804,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1793,
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:13"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 1803,
"linearizedBaseContracts": [
1803
],
"name": "ISignatureValidator",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@dev Should return whether the signature provided is valid for the provided data\n@param _data Arbitrary length data signed on the behalf of address(this)\n@param _signature Signature byte array associated with _data\n * MUST return a bool upon valid or invalid signature with corresponding _data\nMUST take (bytes, bytes) as arguments",
"id": 1802,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "isValidSignature",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1798,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1795,
"name": "_data",
"nodeType": "VariableDeclaration",
"scope": 1802,
"src": "476:11:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1794,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "476:5:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1797,
"name": "_signature",
"nodeType": "VariableDeclaration",
"scope": 1802,
"src": "498:16:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1796,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "498:5:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "466:49:13"
},
"payable": false,
"returnParameters": {
"id": 1801,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1800,
"name": "isValid",
"nodeType": "VariableDeclaration",
"scope": 1802,
"src": "548:12:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1799,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "548:4:13",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "547:14:13"
},
"scope": 1803,
"src": "441:121:13",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1804,
"src": "25:540:13"
}
],
"src": "0:565:13"
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/interfaces/ISignatureValidator.sol",
"exportedSymbols": {
"ISignatureValidator": [
1803
]
},
"id": 1804,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1793,
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:13"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 1803,
"linearizedBaseContracts": [
1803
],
"name": "ISignatureValidator",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": "@dev Should return whether the signature provided is valid for the provided data\n@param _data Arbitrary length data signed on the behalf of address(this)\n@param _signature Signature byte array associated with _data\n * MUST return a bool upon valid or invalid signature with corresponding _data\nMUST take (bytes, bytes) as arguments",
"id": 1802,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "isValidSignature",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1798,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1795,
"name": "_data",
"nodeType": "VariableDeclaration",
"scope": 1802,
"src": "476:11:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1794,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "476:5:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1797,
"name": "_signature",
"nodeType": "VariableDeclaration",
"scope": 1802,
"src": "498:16:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1796,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "498:5:13",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "466:49:13"
},
"payable": false,
"returnParameters": {
"id": 1801,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1800,
"name": "isValid",
"nodeType": "VariableDeclaration",
"scope": 1802,
"src": "548:12:13",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1799,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "548:4:13",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "547:14:13"
},
"scope": 1803,
"src": "441:121:13",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1804,
"src": "25:540:13"
}
],
"src": "0:565:13"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.0",
"updatedAt": "2018-09-26T08:32:07.644Z"
}

View File

@ -16,40 +16,40 @@
"type": "function" "type": "function"
} }
], ],
"bytecode": "0x608060405234801561001057600080fd5b50610276806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001807f4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207481526020017f68697320636f6e7472616374000000000000000000000000000000000000000081525060400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1614151515610207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820243ca7a44eb0464a47c14309cc3a29e407df6e966674981a787df22c0d9280220029", "bytecode": "0x608060405234801561001057600080fd5b50610276806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001807f4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207481526020017f68697320636f6e7472616374000000000000000000000000000000000000000081525060400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1614151515610207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582035e9d5d611938f796affd4397aed671c5c4079783e0a67a874440cb154a411440029",
"deployedBytecode": "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001807f4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207481526020017f68697320636f6e7472616374000000000000000000000000000000000000000081525060400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1614151515610207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820243ca7a44eb0464a47c14309cc3a29e407df6e966674981a787df22c0d9280220029", "deployedBytecode": "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680637de7edef14610046575b600080fd5b34801561005257600080fd5b50610087600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610089565b005b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001807f4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207481526020017f68697320636f6e7472616374000000000000000000000000000000000000000081525060400191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1614151515610207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582035e9d5d611938f796affd4397aed671c5c4079783e0a67a874440cb154a411440029",
"sourceMap": "203:673:7:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;203:673:7;;;;;;;", "sourceMap": "203:673:9:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;203:673:9;;;;;;;",
"deployedSourceMap": "203:673:7:-;;;;;;;;;;;;;;;;;;;;;;;;626:248;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:248:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;244:4:16;222:27;;:10;:27;;;214:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;791:1:7;776:11;:16;;;;768:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;856:11;843:10;;:24;;;;;;;;;;;;;;;;;;626:248;:::o", "deployedSourceMap": "203:673:9:-;;;;;;;;;;;;;;;;;;;;;;;;626:248;;8:9:-1;5:2;;;30:1;27;20:12;5:2;626:248:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;244:4:11;222:27;;:10;:27;;;214:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;791:1:9;776:11;:16;;;;768:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;856:11;843:10;;:24;;;;;;;;;;;;;;;;;;626:248;:::o",
"source": "pragma solidity 0.4.24;\nimport \"./SelfAuthorized.sol\";\n\n\n/// @title MasterCopy - Base for master copy contracts (should always be first super contract)\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract MasterCopy is SelfAuthorized {\n // masterCopy always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\n // It should also always be ensured that the address is stored alone (uses a full word)\n address masterCopy;\n\n /// @dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n /// @param _masterCopy New contract address.\n function changeMasterCopy(address _masterCopy)\n public\n authorized\n {\n // Master copy address cannot be null.\n require(_masterCopy != 0, \"Invalid master copy address provided\");\n masterCopy = _masterCopy;\n }\n}\n", "source": "pragma solidity 0.4.24;\nimport \"./SelfAuthorized.sol\";\n\n\n/// @title MasterCopy - Base for master copy contracts (should always be first super contract)\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract MasterCopy is SelfAuthorized {\n // masterCopy always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\n // It should also always be ensured that the address is stored alone (uses a full word)\n address masterCopy;\n\n /// @dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n /// @param _masterCopy New contract address.\n function changeMasterCopy(address _masterCopy)\n public\n authorized\n {\n // Master copy address cannot be null.\n require(_masterCopy != 0, \"Invalid master copy address provided\");\n masterCopy = _masterCopy;\n }\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/MasterCopy.sol",
"ast": { "ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/MasterCopy.sol",
"exportedSymbols": { "exportedSymbols": {
"MasterCopy": [ "MasterCopy": [
813 1693
] ]
}, },
"id": 814, "id": 1694,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 788, "id": 1668,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:7" "src": "0:23:9"
}, },
{ {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol",
"file": "./SelfAuthorized.sol", "file": "./SelfAuthorized.sol",
"id": 789, "id": 1669,
"nodeType": "ImportDirective", "nodeType": "ImportDirective",
"scope": 814, "scope": 1694,
"sourceUnit": 1766, "sourceUnit": 1736,
"src": "24:30:7", "src": "24:30:9",
"symbolAliases": [], "symbolAliases": [],
"unitAlias": "" "unitAlias": ""
}, },
@ -59,42 +59,42 @@
"arguments": null, "arguments": null,
"baseName": { "baseName": {
"contractScope": null, "contractScope": null,
"id": 790, "id": 1670,
"name": "SelfAuthorized", "name": "SelfAuthorized",
"nodeType": "UserDefinedTypeName", "nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1765, "referencedDeclaration": 1735,
"src": "226:14:7", "src": "226:14:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_contract$_SelfAuthorized_$1765", "typeIdentifier": "t_contract$_SelfAuthorized_$1735",
"typeString": "contract SelfAuthorized" "typeString": "contract SelfAuthorized"
} }
}, },
"id": 791, "id": 1671,
"nodeType": "InheritanceSpecifier", "nodeType": "InheritanceSpecifier",
"src": "226:14:7" "src": "226:14:9"
} }
], ],
"contractDependencies": [ "contractDependencies": [
1765 1735
], ],
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title MasterCopy - Base for master copy contracts (should always be first super contract)\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title MasterCopy - Base for master copy contracts (should always be first super contract)\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 813, "id": 1693,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
813, 1693,
1765 1735
], ],
"name": "MasterCopy", "name": "MasterCopy",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"constant": false, "constant": false,
"id": 793, "id": 1673,
"name": "masterCopy", "name": "masterCopy",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 813, "scope": 1693,
"src": "465:18:7", "src": "465:18:9",
"stateVariable": true, "stateVariable": true,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -102,10 +102,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 792, "id": 1672,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "465:7:7", "src": "465:7:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -116,9 +116,9 @@
}, },
{ {
"body": { "body": {
"id": 811, "id": 1691,
"nodeType": "Block", "nodeType": "Block",
"src": "711:163:7", "src": "711:163:9",
"statements": [ "statements": [
{ {
"expression": { "expression": {
@ -130,19 +130,19 @@
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
}, },
"id": 803, "id": 1683,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
"lValueRequested": false, "lValueRequested": false,
"leftExpression": { "leftExpression": {
"argumentTypes": null, "argumentTypes": null,
"id": 801, "id": 1681,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 795, "referencedDeclaration": 1675,
"src": "776:11:7", "src": "776:11:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -153,14 +153,14 @@
"rightExpression": { "rightExpression": {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "30", "hexValue": "30",
"id": 802, "id": 1682,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "number", "kind": "number",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "791:1:7", "src": "791:1:9",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1", "typeIdentifier": "t_rational_0_by_1",
@ -168,7 +168,7 @@
}, },
"value": "0" "value": "0"
}, },
"src": "776:16:7", "src": "776:16:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
@ -177,14 +177,14 @@
{ {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "496e76616c6964206d617374657220636f707920616464726573732070726f7669646564", "hexValue": "496e76616c6964206d617374657220636f707920616464726573732070726f7669646564",
"id": 804, "id": 1684,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "string", "kind": "string",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "794:38:7", "src": "794:38:9",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_stringliteral_108d84599042957b954e89d43b52f80be89321dfc114a37800028eba58dafc87", "typeIdentifier": "t_stringliteral_108d84599042957b954e89d43b52f80be89321dfc114a37800028eba58dafc87",
@ -204,21 +204,21 @@
"typeString": "literal_string \"Invalid master copy address provided\"" "typeString": "literal_string \"Invalid master copy address provided\""
} }
], ],
"id": 800, "id": 1680,
"name": "require", "name": "require",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [ "overloadedDeclarations": [
3831, 4494,
3832 4495
], ],
"referencedDeclaration": 3832, "referencedDeclaration": 4495,
"src": "768:7:7", "src": "768:7:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure" "typeString": "function (bool,string memory) pure"
} }
}, },
"id": 805, "id": 1685,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -226,32 +226,32 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "768:65:7", "src": "768:65:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_tuple$__$", "typeIdentifier": "t_tuple$__$",
"typeString": "tuple()" "typeString": "tuple()"
} }
}, },
"id": 806, "id": 1686,
"nodeType": "ExpressionStatement", "nodeType": "ExpressionStatement",
"src": "768:65:7" "src": "768:65:9"
}, },
{ {
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 809, "id": 1689,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
"lValueRequested": false, "lValueRequested": false,
"leftHandSide": { "leftHandSide": {
"argumentTypes": null, "argumentTypes": null,
"id": 807, "id": 1687,
"name": "masterCopy", "name": "masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 793, "referencedDeclaration": 1673,
"src": "843:10:7", "src": "843:10:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -261,68 +261,68 @@
"operator": "=", "operator": "=",
"rightHandSide": { "rightHandSide": {
"argumentTypes": null, "argumentTypes": null,
"id": 808, "id": 1688,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 795, "referencedDeclaration": 1675,
"src": "856:11:7", "src": "856:11:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
}, },
"src": "843:24:7", "src": "843:24:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
}, },
"id": 810, "id": 1690,
"nodeType": "ExpressionStatement", "nodeType": "ExpressionStatement",
"src": "843:24:7" "src": "843:24:9"
} }
] ]
}, },
"documentation": "@dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n @param _masterCopy New contract address.", "documentation": "@dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n @param _masterCopy New contract address.",
"id": 812, "id": 1692,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
"modifiers": [ "modifiers": [
{ {
"arguments": null, "arguments": null,
"id": 798, "id": 1678,
"modifierName": { "modifierName": {
"argumentTypes": null, "argumentTypes": null,
"id": 797, "id": 1677,
"name": "authorized", "name": "authorized",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1764, "referencedDeclaration": 1734,
"src": "696:10:7", "src": "696:10:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_modifier$__$", "typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()" "typeString": "modifier ()"
} }
}, },
"nodeType": "ModifierInvocation", "nodeType": "ModifierInvocation",
"src": "696:10:7" "src": "696:10:9"
} }
], ],
"name": "changeMasterCopy", "name": "changeMasterCopy",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 796, "id": 1676,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 795, "id": 1675,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 812, "scope": 1692,
"src": "652:19:7", "src": "652:19:9",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -330,10 +330,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 794, "id": 1674,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "652:7:7", "src": "652:7:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -343,56 +343,56 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "651:21:7" "src": "651:21:9"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 799, "id": 1679,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "711:0:7" "src": "711:0:9"
}, },
"scope": 813, "scope": 1693,
"src": "626:248:7", "src": "626:248:9",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "public" "visibility": "public"
} }
], ],
"scope": 814, "scope": 1694,
"src": "203:673:7" "src": "203:673:9"
} }
], ],
"src": "0:877:7" "src": "0:877:9"
}, },
"legacyAST": { "legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/MasterCopy.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/MasterCopy.sol",
"exportedSymbols": { "exportedSymbols": {
"MasterCopy": [ "MasterCopy": [
813 1693
] ]
}, },
"id": 814, "id": 1694,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 788, "id": 1668,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:7" "src": "0:23:9"
}, },
{ {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol",
"file": "./SelfAuthorized.sol", "file": "./SelfAuthorized.sol",
"id": 789, "id": 1669,
"nodeType": "ImportDirective", "nodeType": "ImportDirective",
"scope": 814, "scope": 1694,
"sourceUnit": 1766, "sourceUnit": 1736,
"src": "24:30:7", "src": "24:30:9",
"symbolAliases": [], "symbolAliases": [],
"unitAlias": "" "unitAlias": ""
}, },
@ -402,42 +402,42 @@
"arguments": null, "arguments": null,
"baseName": { "baseName": {
"contractScope": null, "contractScope": null,
"id": 790, "id": 1670,
"name": "SelfAuthorized", "name": "SelfAuthorized",
"nodeType": "UserDefinedTypeName", "nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1765, "referencedDeclaration": 1735,
"src": "226:14:7", "src": "226:14:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_contract$_SelfAuthorized_$1765", "typeIdentifier": "t_contract$_SelfAuthorized_$1735",
"typeString": "contract SelfAuthorized" "typeString": "contract SelfAuthorized"
} }
}, },
"id": 791, "id": 1671,
"nodeType": "InheritanceSpecifier", "nodeType": "InheritanceSpecifier",
"src": "226:14:7" "src": "226:14:9"
} }
], ],
"contractDependencies": [ "contractDependencies": [
1765 1735
], ],
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title MasterCopy - Base for master copy contracts (should always be first super contract)\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title MasterCopy - Base for master copy contracts (should always be first super contract)\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 813, "id": 1693,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
813, 1693,
1765 1735
], ],
"name": "MasterCopy", "name": "MasterCopy",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"constant": false, "constant": false,
"id": 793, "id": 1673,
"name": "masterCopy", "name": "masterCopy",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 813, "scope": 1693,
"src": "465:18:7", "src": "465:18:9",
"stateVariable": true, "stateVariable": true,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -445,10 +445,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 792, "id": 1672,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "465:7:7", "src": "465:7:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -459,9 +459,9 @@
}, },
{ {
"body": { "body": {
"id": 811, "id": 1691,
"nodeType": "Block", "nodeType": "Block",
"src": "711:163:7", "src": "711:163:9",
"statements": [ "statements": [
{ {
"expression": { "expression": {
@ -473,19 +473,19 @@
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
}, },
"id": 803, "id": 1683,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
"lValueRequested": false, "lValueRequested": false,
"leftExpression": { "leftExpression": {
"argumentTypes": null, "argumentTypes": null,
"id": 801, "id": 1681,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 795, "referencedDeclaration": 1675,
"src": "776:11:7", "src": "776:11:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -496,14 +496,14 @@
"rightExpression": { "rightExpression": {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "30", "hexValue": "30",
"id": 802, "id": 1682,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "number", "kind": "number",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "791:1:7", "src": "791:1:9",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1", "typeIdentifier": "t_rational_0_by_1",
@ -511,7 +511,7 @@
}, },
"value": "0" "value": "0"
}, },
"src": "776:16:7", "src": "776:16:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
@ -520,14 +520,14 @@
{ {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "496e76616c6964206d617374657220636f707920616464726573732070726f7669646564", "hexValue": "496e76616c6964206d617374657220636f707920616464726573732070726f7669646564",
"id": 804, "id": 1684,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "string", "kind": "string",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "794:38:7", "src": "794:38:9",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_stringliteral_108d84599042957b954e89d43b52f80be89321dfc114a37800028eba58dafc87", "typeIdentifier": "t_stringliteral_108d84599042957b954e89d43b52f80be89321dfc114a37800028eba58dafc87",
@ -547,21 +547,21 @@
"typeString": "literal_string \"Invalid master copy address provided\"" "typeString": "literal_string \"Invalid master copy address provided\""
} }
], ],
"id": 800, "id": 1680,
"name": "require", "name": "require",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [ "overloadedDeclarations": [
3831, 4494,
3832 4495
], ],
"referencedDeclaration": 3832, "referencedDeclaration": 4495,
"src": "768:7:7", "src": "768:7:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure" "typeString": "function (bool,string memory) pure"
} }
}, },
"id": 805, "id": 1685,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -569,32 +569,32 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "768:65:7", "src": "768:65:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_tuple$__$", "typeIdentifier": "t_tuple$__$",
"typeString": "tuple()" "typeString": "tuple()"
} }
}, },
"id": 806, "id": 1686,
"nodeType": "ExpressionStatement", "nodeType": "ExpressionStatement",
"src": "768:65:7" "src": "768:65:9"
}, },
{ {
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 809, "id": 1689,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
"lValueRequested": false, "lValueRequested": false,
"leftHandSide": { "leftHandSide": {
"argumentTypes": null, "argumentTypes": null,
"id": 807, "id": 1687,
"name": "masterCopy", "name": "masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 793, "referencedDeclaration": 1673,
"src": "843:10:7", "src": "843:10:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -604,68 +604,68 @@
"operator": "=", "operator": "=",
"rightHandSide": { "rightHandSide": {
"argumentTypes": null, "argumentTypes": null,
"id": 808, "id": 1688,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 795, "referencedDeclaration": 1675,
"src": "856:11:7", "src": "856:11:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
}, },
"src": "843:24:7", "src": "843:24:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
}, },
"id": 810, "id": 1690,
"nodeType": "ExpressionStatement", "nodeType": "ExpressionStatement",
"src": "843:24:7" "src": "843:24:9"
} }
] ]
}, },
"documentation": "@dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n @param _masterCopy New contract address.", "documentation": "@dev Allows to upgrade the contract. This can only be done via a Safe transaction.\n @param _masterCopy New contract address.",
"id": 812, "id": 1692,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
"modifiers": [ "modifiers": [
{ {
"arguments": null, "arguments": null,
"id": 798, "id": 1678,
"modifierName": { "modifierName": {
"argumentTypes": null, "argumentTypes": null,
"id": 797, "id": 1677,
"name": "authorized", "name": "authorized",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1764, "referencedDeclaration": 1734,
"src": "696:10:7", "src": "696:10:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_modifier$__$", "typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()" "typeString": "modifier ()"
} }
}, },
"nodeType": "ModifierInvocation", "nodeType": "ModifierInvocation",
"src": "696:10:7" "src": "696:10:9"
} }
], ],
"name": "changeMasterCopy", "name": "changeMasterCopy",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 796, "id": 1676,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 795, "id": 1675,
"name": "_masterCopy", "name": "_masterCopy",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 812, "scope": 1692,
"src": "652:19:7", "src": "652:19:9",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -673,10 +673,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 794, "id": 1674,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "652:7:7", "src": "652:7:9",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -686,27 +686,27 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "651:21:7" "src": "651:21:9"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 799, "id": 1679,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "711:0:7" "src": "711:0:9"
}, },
"scope": 813, "scope": 1693,
"src": "626:248:7", "src": "626:248:9",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "public" "visibility": "public"
} }
], ],
"scope": 814, "scope": 1694,
"src": "203:673:7" "src": "203:673:9"
} }
], ],
"src": "0:877:7" "src": "0:877:9"
}, },
"compiler": { "compiler": {
"name": "solc", "name": "solc",
@ -714,5 +714,5 @@
}, },
"networks": {}, "networks": {},
"schemaVersion": "2.0.0", "schemaVersion": "2.0.0",
"updatedAt": "2018-08-20T07:44:41.087Z" "updatedAt": "2018-09-26T08:32:07.643Z"
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -18,29 +18,29 @@
], ],
"bytecode": "0x608060405234801561001057600080fd5b50610169806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638d80ff0a14610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b805160205b81811015610138578083015160208201840151604083018501516080840186015160a085018701600085600081146100f357600181146101035761010e565b6000808585888a5af1915061010e565b6000808585895af491505b50600081141561011d57600080fd5b602080601f8501040260a001870196505050505050506100b4565b5050505600a165627a7a72305820c1abf4988401674d6d6a5ceca56de123817c61305360ceffe26ebab59a828b7d0029", "bytecode": "0x608060405234801561001057600080fd5b50610169806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638d80ff0a14610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b805160205b81811015610138578083015160208201840151604083018501516080840186015160a085018701600085600081146100f357600181146101035761010e565b6000808585888a5af1915061010e565b6000808585895af491505b50600081141561011d57600080fd5b602080601f8501040260a001870196505050505050506100b4565b5050505600a165627a7a72305820c1abf4988401674d6d6a5ceca56de123817c61305360ceffe26ebab59a828b7d0029",
"deployedBytecode": "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638d80ff0a14610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b805160205b81811015610138578083015160208201840151604083018501516080840186015160a085018701600085600081146100f357600181146101035761010e565b6000808585888a5af1915061010e565b6000808585895af491505b50600081141561011d57600080fd5b602080601f8501040260a001870196505050505050506100b4565b5050505600a165627a7a72305820c1abf4988401674d6d6a5ceca56de123817c61305360ceffe26ebab59a828b7d0029", "deployedBytecode": "0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638d80ff0a14610046575b600080fd5b34801561005257600080fd5b506100ad600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100af565b005b805160205b81811015610138578083015160208201840151604083018501516080840186015160a085018701600085600081146100f357600181146101035761010e565b6000808585888a5af1915061010e565b6000808585895af491505b50600081141561011d57600080fd5b602080601f8501040260a001870196505050505050506100b4565b5050505600a165627a7a72305820c1abf4988401674d6d6a5ceca56de123817c61305360ceffe26ebab59a828b7d0029",
"sourceMap": "253:1424:19:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;253:1424:19;;;;;;;", "sourceMap": "253:1424:15:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;253:1424:15;;;;;;;",
"deployedSourceMap": "253:1424:19:-;;;;;;;;;;;;;;;;;;;;;;;;695:980;;8:9:-1;5:2;;;30:1;27;20:12;5:2;695:980:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;870:12;864:19;905:4;922:737;936:6;933:1;930:13;922:737;;;1007:1;993:12;989:20;983:27;1068:4;1065:1;1061:12;1047;1043:31;1037:38;1136:4;1133:1;1129:12;1115;1111:31;1105:38;1209:4;1206:1;1202:12;1188;1184:31;1178:38;1270:4;1267:1;1263:12;1249;1245:31;1308:1;1333:9;1365:1;1360:66;;;;1448:1;1443:67;;;;1326:184;;1360:66;1422:1;1419;1407:10;1401:4;1394:5;1390:2;1385:3;1380:44;1369:55;;1360:66;;1443:67;1506:1;1503;1491:10;1485:4;1481:2;1476:3;1463:45;1452:56;;1326:184;;1542:1;1533:7;1530:14;1527:2;;;1557:1;1554;1547:12;1527:2;1638:4;1631;1624;1612:10;1608:21;1604:32;1600:43;1594:4;1590:54;1587:1;1583:62;1578:67;;948:711;;;;;;922:737;;;836:833;;;:::o", "deployedSourceMap": "253:1424:15:-;;;;;;;;;;;;;;;;;;;;;;;;695:980;;8:9:-1;5:2;;;30:1;27;20:12;5:2;695:980:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;870:12;864:19;905:4;922:737;936:6;933:1;930:13;922:737;;;1007:1;993:12;989:20;983:27;1068:4;1065:1;1061:12;1047;1043:31;1037:38;1136:4;1133:1;1129:12;1115;1111:31;1105:38;1209:4;1206:1;1202:12;1188;1184:31;1178:38;1270:4;1267:1;1263:12;1249;1245:31;1308:1;1333:9;1365:1;1360:66;;;;1448:1;1443:67;;;;1326:184;;1360:66;1422:1;1419;1407:10;1401:4;1394:5;1390:2;1385:3;1380:44;1369:55;;1360:66;;1443:67;1506:1;1503;1491:10;1485:4;1481:2;1476:3;1463:45;1452:56;;1326:184;;1542:1;1533:7;1530:14;1527:2;;;1557:1;1554;1547:12;1527:2;1638:4;1631;1624;1612:10;1608:21;1604:32;1600:43;1594:4;1590:54;1587:1;1583:62;1578:67;;948:711;;;;;;922:737;;;836:833;;;:::o",
"source": "pragma solidity 0.4.24;\n\n\n/// @title Multi Send - Allows to batch multiple transactions into one.\n/// @author Nick Dodson - <nick.dodson@consensys.net>\n/// @author Gonçalo Sá - <goncalo.sa@consensys.net>\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract MultiSend {\n\n /// @dev Sends multiple transactions and reverts all if one fails.\n /// @param transactions Encoded transactions. Each transaction is encoded as a \n /// tuple(operation,address,uint256,bytes), where operation \n /// can be 0 for a call or 1 for a delegatecall. The bytes \n /// of all encoded transactions are concatenated to form the input.\n function multiSend(bytes transactions)\n public\n {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let length := mload(transactions)\n let i := 0x20\n for { } lt(i, length) { } {\n let operation := mload(add(transactions, i))\n let to := mload(add(transactions, add(i, 0x20)))\n let value := mload(add(transactions, add(i, 0x40)))\n let dataLength := mload(add(transactions, add(i, 0x80)))\n let data := add(transactions, add(i, 0xa0))\n let success := 0\n switch operation \n case 0 { success := call(gas, to, value, data, dataLength, 0, 0) }\n case 1 { success := delegatecall(gas, to, data, dataLength, 0, 0) }\n if eq(success, 0) { revert(0, 0) }\n i := add(i, add(0xa0, mul(div(add(dataLength, 0x1f), 0x20), 0x20)))\n }\n }\n }\n}\n", "source": "pragma solidity 0.4.24;\n\n\n/// @title Multi Send - Allows to batch multiple transactions into one.\n/// @author Nick Dodson - <nick.dodson@consensys.net>\n/// @author Gonçalo Sá - <goncalo.sa@consensys.net>\n/// @author Stefan George - <stefan@gnosis.pm>\ncontract MultiSend {\n\n /// @dev Sends multiple transactions and reverts all if one fails.\n /// @param transactions Encoded transactions. Each transaction is encoded as a \n /// tuple(operation,address,uint256,bytes), where operation \n /// can be 0 for a call or 1 for a delegatecall. The bytes \n /// of all encoded transactions are concatenated to form the input.\n function multiSend(bytes transactions)\n public\n {\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let length := mload(transactions)\n let i := 0x20\n for { } lt(i, length) { } {\n let operation := mload(add(transactions, i))\n let to := mload(add(transactions, add(i, 0x20)))\n let value := mload(add(transactions, add(i, 0x40)))\n let dataLength := mload(add(transactions, add(i, 0x80)))\n let data := add(transactions, add(i, 0xa0))\n let success := 0\n switch operation \n case 0 { success := call(gas, to, value, data, dataLength, 0, 0) }\n case 1 { success := delegatecall(gas, to, data, dataLength, 0, 0) }\n if eq(success, 0) { revert(0, 0) }\n i := add(i, add(0xa0, mul(div(add(dataLength, 0x1f), 0x20), 0x20)))\n }\n }\n }\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol",
"ast": { "ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol",
"exportedSymbols": { "exportedSymbols": {
"MultiSend": [ "MultiSend": [
1876 1858
] ]
}, },
"id": 1877, "id": 1859,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1868, "id": 1850,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:19" "src": "0:23:15"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -48,85 +48,85 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title Multi Send - Allows to batch multiple transactions into one.\n @author Nick Dodson - <nick.dodson@consensys.net>\n @author Gonçalo Sá - <goncalo.sa@consensys.net>\n @author Stefan George - <stefan@gnosis.pm>", "documentation": "@title Multi Send - Allows to batch multiple transactions into one.\n @author Nick Dodson - <nick.dodson@consensys.net>\n @author Gonçalo Sá - <goncalo.sa@consensys.net>\n @author Stefan George - <stefan@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 1876, "id": 1858,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
1876 1858
], ],
"name": "MultiSend", "name": "MultiSend",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 1874, "id": 1856,
"nodeType": "Block", "nodeType": "Block",
"src": "753:922:19", "src": "753:922:15",
"statements": [ "statements": [
{ {
"externalReferences": [ "externalReferences": [
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "870:12:19", "src": "870:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "993:12:19", "src": "993:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1047:12:19", "src": "1047:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1188:12:19", "src": "1188:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1115:12:19", "src": "1115:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1249:12:19", "src": "1249:12:15",
"valueSize": 1 "valueSize": 1
} }
} }
], ],
"id": 1873, "id": 1855,
"nodeType": "InlineAssembly", "nodeType": "InlineAssembly",
"operations": "{\n let length := mload(transactions)\n let i := 0x20\n for {\n }\n lt(i, length)\n {\n }\n {\n let operation := mload(add(transactions, i))\n let to := mload(add(transactions, add(i, 0x20)))\n let value := mload(add(transactions, add(i, 0x40)))\n let dataLength := mload(add(transactions, add(i, 0x80)))\n let data := add(transactions, add(i, 0xa0))\n let success := 0\n switch operation\n case 0 {\n success := call(gas(), to, value, data, dataLength, 0, 0)\n }\n case 1 {\n success := delegatecall(gas(), to, data, dataLength, 0, 0)\n }\n if eq(success, 0)\n {\n revert(0, 0)\n }\n i := add(i, add(0xa0, mul(div(add(dataLength, 0x1f), 0x20), 0x20)))\n }\n}", "operations": "{\n let length := mload(transactions)\n let i := 0x20\n for {\n }\n lt(i, length)\n {\n }\n {\n let operation := mload(add(transactions, i))\n let to := mload(add(transactions, add(i, 0x20)))\n let value := mload(add(transactions, add(i, 0x40)))\n let dataLength := mload(add(transactions, add(i, 0x80)))\n let data := add(transactions, add(i, 0xa0))\n let success := 0\n switch operation\n case 0 {\n success := call(gas(), to, value, data, dataLength, 0, 0)\n }\n case 1 {\n success := delegatecall(gas(), to, data, dataLength, 0, 0)\n }\n if eq(success, 0)\n {\n revert(0, 0)\n }\n i := add(i, add(0xa0, mul(div(add(dataLength, 0x1f), 0x20), 0x20)))\n }\n}",
"src": "827:848:19" "src": "827:848:15"
} }
] ]
}, },
"documentation": "@dev Sends multiple transactions and reverts all if one fails.\n @param transactions Encoded transactions. Each transaction is encoded as a \n tuple(operation,address,uint256,bytes), where operation \n can be 0 for a call or 1 for a delegatecall. The bytes \n of all encoded transactions are concatenated to form the input.", "documentation": "@dev Sends multiple transactions and reverts all if one fails.\n @param transactions Encoded transactions. Each transaction is encoded as a \n tuple(operation,address,uint256,bytes), where operation \n can be 0 for a call or 1 for a delegatecall. The bytes \n of all encoded transactions are concatenated to form the input.",
"id": 1875, "id": 1857,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -134,16 +134,16 @@
"name": "multiSend", "name": "multiSend",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 1871, "id": 1853,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 1870, "id": 1852,
"name": "transactions", "name": "transactions",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1875, "scope": 1857,
"src": "714:18:19", "src": "714:18:15",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -151,10 +151,10 @@
"typeString": "bytes" "typeString": "bytes"
}, },
"typeName": { "typeName": {
"id": 1869, "id": 1851,
"name": "bytes", "name": "bytes",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "714:5:19", "src": "714:5:15",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr", "typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes" "typeString": "bytes"
@ -164,47 +164,47 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "713:20:19" "src": "713:20:15"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 1872, "id": 1854,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "753:0:19" "src": "753:0:15"
}, },
"scope": 1876, "scope": 1858,
"src": "695:980:19", "src": "695:980:15",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "public" "visibility": "public"
} }
], ],
"scope": 1877, "scope": 1859,
"src": "253:1424:19" "src": "253:1424:15"
} }
], ],
"src": "0:1678:19" "src": "0:1678:15"
}, },
"legacyAST": { "legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/libraries/MultiSend.sol",
"exportedSymbols": { "exportedSymbols": {
"MultiSend": [ "MultiSend": [
1876 1858
] ]
}, },
"id": 1877, "id": 1859,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1868, "id": 1850,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:19" "src": "0:23:15"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -212,85 +212,85 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title Multi Send - Allows to batch multiple transactions into one.\n @author Nick Dodson - <nick.dodson@consensys.net>\n @author Gonçalo Sá - <goncalo.sa@consensys.net>\n @author Stefan George - <stefan@gnosis.pm>", "documentation": "@title Multi Send - Allows to batch multiple transactions into one.\n @author Nick Dodson - <nick.dodson@consensys.net>\n @author Gonçalo Sá - <goncalo.sa@consensys.net>\n @author Stefan George - <stefan@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 1876, "id": 1858,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
1876 1858
], ],
"name": "MultiSend", "name": "MultiSend",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 1874, "id": 1856,
"nodeType": "Block", "nodeType": "Block",
"src": "753:922:19", "src": "753:922:15",
"statements": [ "statements": [
{ {
"externalReferences": [ "externalReferences": [
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "870:12:19", "src": "870:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "993:12:19", "src": "993:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1047:12:19", "src": "1047:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1188:12:19", "src": "1188:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1115:12:19", "src": "1115:12:15",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transactions": { "transactions": {
"declaration": 1870, "declaration": 1852,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1249:12:19", "src": "1249:12:15",
"valueSize": 1 "valueSize": 1
} }
} }
], ],
"id": 1873, "id": 1855,
"nodeType": "InlineAssembly", "nodeType": "InlineAssembly",
"operations": "{\n let length := mload(transactions)\n let i := 0x20\n for {\n }\n lt(i, length)\n {\n }\n {\n let operation := mload(add(transactions, i))\n let to := mload(add(transactions, add(i, 0x20)))\n let value := mload(add(transactions, add(i, 0x40)))\n let dataLength := mload(add(transactions, add(i, 0x80)))\n let data := add(transactions, add(i, 0xa0))\n let success := 0\n switch operation\n case 0 {\n success := call(gas(), to, value, data, dataLength, 0, 0)\n }\n case 1 {\n success := delegatecall(gas(), to, data, dataLength, 0, 0)\n }\n if eq(success, 0)\n {\n revert(0, 0)\n }\n i := add(i, add(0xa0, mul(div(add(dataLength, 0x1f), 0x20), 0x20)))\n }\n}", "operations": "{\n let length := mload(transactions)\n let i := 0x20\n for {\n }\n lt(i, length)\n {\n }\n {\n let operation := mload(add(transactions, i))\n let to := mload(add(transactions, add(i, 0x20)))\n let value := mload(add(transactions, add(i, 0x40)))\n let dataLength := mload(add(transactions, add(i, 0x80)))\n let data := add(transactions, add(i, 0xa0))\n let success := 0\n switch operation\n case 0 {\n success := call(gas(), to, value, data, dataLength, 0, 0)\n }\n case 1 {\n success := delegatecall(gas(), to, data, dataLength, 0, 0)\n }\n if eq(success, 0)\n {\n revert(0, 0)\n }\n i := add(i, add(0xa0, mul(div(add(dataLength, 0x1f), 0x20), 0x20)))\n }\n}",
"src": "827:848:19" "src": "827:848:15"
} }
] ]
}, },
"documentation": "@dev Sends multiple transactions and reverts all if one fails.\n @param transactions Encoded transactions. Each transaction is encoded as a \n tuple(operation,address,uint256,bytes), where operation \n can be 0 for a call or 1 for a delegatecall. The bytes \n of all encoded transactions are concatenated to form the input.", "documentation": "@dev Sends multiple transactions and reverts all if one fails.\n @param transactions Encoded transactions. Each transaction is encoded as a \n tuple(operation,address,uint256,bytes), where operation \n can be 0 for a call or 1 for a delegatecall. The bytes \n of all encoded transactions are concatenated to form the input.",
"id": 1875, "id": 1857,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -298,16 +298,16 @@
"name": "multiSend", "name": "multiSend",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 1871, "id": 1853,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 1870, "id": 1852,
"name": "transactions", "name": "transactions",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1875, "scope": 1857,
"src": "714:18:19", "src": "714:18:15",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -315,10 +315,10 @@
"typeString": "bytes" "typeString": "bytes"
}, },
"typeName": { "typeName": {
"id": 1869, "id": 1851,
"name": "bytes", "name": "bytes",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "714:5:19", "src": "714:5:15",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr", "typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes" "typeString": "bytes"
@ -328,27 +328,27 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "713:20:19" "src": "713:20:15"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 1872, "id": 1854,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "753:0:19" "src": "753:0:15"
}, },
"scope": 1876, "scope": 1858,
"src": "695:980:19", "src": "695:980:15",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "public" "visibility": "public"
} }
], ],
"scope": 1877, "scope": 1859,
"src": "253:1424:19" "src": "253:1424:15"
} }
], ],
"src": "0:1678:19" "src": "0:1678:15"
}, },
"compiler": { "compiler": {
"name": "solc", "name": "solc",
@ -358,16 +358,10 @@
"4": { "4": {
"events": {}, "events": {},
"links": {}, "links": {},
"address": "0x3a29cf32d22f38b7338874b689a88f185663a1c3", "address": "0xa62b2ceec787cf07145a900e7dc4ef8c60169179",
"transactionHash": "0x86b6895207dff0b3e19c202e140dc9cf823cbfc02672e02636af23a1b580e7e7" "transactionHash": "0x49a17437703e92c27676c385a156c357f44dbc63e6641d8a3cc9b51868681323"
},
"1534750848541": {
"events": {},
"links": {},
"address": "0x5b9b42d6e4b2e4bf8d42eba32d46918e10899b66",
"transactionHash": "0xaf733882096b301ccf5bf4a12ebf84616b88927c71cc656cc037fbd892a24104"
} }
}, },
"schemaVersion": "2.0.0", "schemaVersion": "2.0.0",
"updatedAt": "2018-08-20T07:50:29.677Z" "updatedAt": "2018-09-26T08:56:03.699Z"
} }

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,31 +1,31 @@
{ {
"contractName": "SecuredTokenTransfer", "contractName": "SecuredTokenTransfer",
"abi": [], "abi": [],
"bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a723058203704d691dd103c6cda573e69dcd48a2de4d0edf672da44096a50180687c79a770029", "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820ba27992b3b19c83b563b2634ef4e6e4b21311676e3d2a13b83cfd34834dfb8510029",
"deployedBytecode": "0x6080604052600080fd00a165627a7a723058203704d691dd103c6cda573e69dcd48a2de4d0edf672da44096a50180687c79a770029", "deployedBytecode": "0x6080604052600080fd00a165627a7a72305820ba27992b3b19c83b563b2634ef4e6e4b21311676e3d2a13b83cfd34834dfb8510029",
"sourceMap": "133:1051:15:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;133:1051:15;;;;;;;", "sourceMap": "133:1051:10:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;133:1051:10;;;;;;;",
"deployedSourceMap": "133:1051:15:-;;;;;", "deployedSourceMap": "133:1051:10:-;;;;;",
"source": "pragma solidity 0.4.24;\n\n\n/// @title SecuredTokenTransfer - Secure token transfer\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract SecuredTokenTransfer {\n\n /// @dev Transfers a token and returns if it was a success\n /// @param token Token that should be transferred\n /// @param receiver Receiver to whom the token should be transferred\n /// @param amount The amount of tokens that should be transferred\n function transferToken (\n address token, \n address receiver,\n uint256 amount\n )\n internal\n returns (bool transferred)\n {\n bytes memory data = abi.encodeWithSignature(\"transfer(address,uint256)\", receiver, amount);\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let success := call(sub(gas, 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize)\n switch returndatasize \n case 0 { transferred := success }\n case 0x20 { transferred := iszero(or(iszero(success), iszero(mload(ptr)))) }\n default { transferred := 0 }\n }\n }\n}\n", "source": "pragma solidity 0.4.24;\n\n\n/// @title SecuredTokenTransfer - Secure token transfer\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract SecuredTokenTransfer {\n\n /// @dev Transfers a token and returns if it was a success\n /// @param token Token that should be transferred\n /// @param receiver Receiver to whom the token should be transferred\n /// @param amount The amount of tokens that should be transferred\n function transferToken (\n address token, \n address receiver,\n uint256 amount\n )\n internal\n returns (bool transferred)\n {\n bytes memory data = abi.encodeWithSignature(\"transfer(address,uint256)\", receiver, amount);\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n let success := call(sub(gas, 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize)\n switch returndatasize \n case 0 { transferred := success }\n case 0x20 { transferred := iszero(or(iszero(success), iszero(mload(ptr)))) }\n default { transferred := 0 }\n }\n }\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SecuredTokenTransfer.sol",
"ast": { "ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SecuredTokenTransfer.sol",
"exportedSymbols": { "exportedSymbols": {
"SecuredTokenTransfer": [ "SecuredTokenTransfer": [
1748 1718
] ]
}, },
"id": 1749, "id": 1719,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1725, "id": 1695,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:15" "src": "0:23:10"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -33,31 +33,31 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title SecuredTokenTransfer - Secure token transfer\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title SecuredTokenTransfer - Secure token transfer\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 1748, "id": 1718,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
1748 1718
], ],
"name": "SecuredTokenTransfer", "name": "SecuredTokenTransfer",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 1746, "id": 1716,
"nodeType": "Block", "nodeType": "Block",
"src": "590:592:15", "src": "590:592:10",
"statements": [ "statements": [
{ {
"assignments": [ "assignments": [
1737 1707
], ],
"declarations": [ "declarations": [
{ {
"constant": false, "constant": false,
"id": 1737, "id": 1707,
"name": "data", "name": "data",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "600:17:15", "src": "600:17:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "memory", "storageLocation": "memory",
"typeDescriptions": { "typeDescriptions": {
@ -65,10 +65,10 @@
"typeString": "bytes" "typeString": "bytes"
}, },
"typeName": { "typeName": {
"id": 1736, "id": 1706,
"name": "bytes", "name": "bytes",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "600:5:15", "src": "600:5:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr", "typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes" "typeString": "bytes"
@ -78,21 +78,21 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"id": 1744, "id": 1714,
"initialValue": { "initialValue": {
"argumentTypes": null, "argumentTypes": null,
"arguments": [ "arguments": [
{ {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "7472616e7366657228616464726573732c75696e7432353629", "hexValue": "7472616e7366657228616464726573732c75696e7432353629",
"id": 1740, "id": 1710,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "string", "kind": "string",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "644:27:15", "src": "644:27:10",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b", "typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b",
@ -102,12 +102,12 @@
}, },
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 1741, "id": 1711,
"name": "receiver", "name": "receiver",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1729, "referencedDeclaration": 1699,
"src": "673:8:15", "src": "673:8:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -115,12 +115,12 @@
}, },
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 1742, "id": 1712,
"name": "amount", "name": "amount",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1731, "referencedDeclaration": 1701,
"src": "683:6:15", "src": "683:6:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
@ -144,18 +144,18 @@
], ],
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 1738, "id": 1708,
"name": "abi", "name": "abi",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 3815, "referencedDeclaration": 4478,
"src": "620:3:15", "src": "620:3:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_magic_abi", "typeIdentifier": "t_magic_abi",
"typeString": "abi" "typeString": "abi"
} }
}, },
"id": 1739, "id": 1709,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
@ -163,13 +163,13 @@
"memberName": "encodeWithSignature", "memberName": "encodeWithSignature",
"nodeType": "MemberAccess", "nodeType": "MemberAccess",
"referencedDeclaration": null, "referencedDeclaration": null,
"src": "620:23:15", "src": "620:23:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$", "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
"typeString": "function (string memory) pure returns (bytes memory)" "typeString": "function (string memory) pure returns (bytes memory)"
} }
}, },
"id": 1743, "id": 1713,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -177,81 +177,81 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "620:70:15", "src": "620:70:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr", "typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory" "typeString": "bytes memory"
} }
}, },
"nodeType": "VariableDeclarationStatement", "nodeType": "VariableDeclarationStatement",
"src": "600:90:15" "src": "600:90:10"
}, },
{ {
"externalReferences": [ "externalReferences": [
{ {
"transferred": { "transferred": {
"declaration": 1734, "declaration": 1704,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1061:11:15", "src": "1061:11:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"data": { "data": {
"declaration": 1737, "declaration": 1707,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "857:4:15", "src": "857:4:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"token": { "token": {
"declaration": 1727, "declaration": 1697,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "824:5:15", "src": "824:5:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"data": { "data": {
"declaration": 1737, "declaration": 1707,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "838:4:15", "src": "838:4:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transferred": { "transferred": {
"declaration": 1734, "declaration": 1704,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1012:11:15", "src": "1012:11:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transferred": { "transferred": {
"declaration": 1734, "declaration": 1704,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1148:11:15", "src": "1148:11:10",
"valueSize": 1 "valueSize": 1
} }
} }
], ],
"id": 1745, "id": 1715,
"nodeType": "InlineAssembly", "nodeType": "InlineAssembly",
"operations": "{\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n switch returndatasize()\n case 0 {\n transferred := success\n }\n case 0x20 {\n transferred := iszero(or(iszero(success), iszero(mload(ptr))))\n }\n default {\n transferred := 0\n }\n}", "operations": "{\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n switch returndatasize()\n case 0 {\n transferred := success\n }\n case 0x20 {\n transferred := iszero(or(iszero(success), iszero(mload(ptr))))\n }\n default {\n transferred := 0\n }\n}",
"src": "764:418:15" "src": "764:418:10"
} }
] ]
}, },
"documentation": "@dev Transfers a token and returns if it was a success\n @param token Token that should be transferred\n @param receiver Receiver to whom the token should be transferred\n @param amount The amount of tokens that should be transferred", "documentation": "@dev Transfers a token and returns if it was a success\n @param token Token that should be transferred\n @param receiver Receiver to whom the token should be transferred\n @param amount The amount of tokens that should be transferred",
"id": 1747, "id": 1717,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -259,16 +259,16 @@
"name": "transferToken", "name": "transferToken",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 1732, "id": 1702,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 1727, "id": 1697,
"name": "token", "name": "token",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "463:13:15", "src": "463:13:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -276,10 +276,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 1726, "id": 1696,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "463:7:15", "src": "463:7:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -290,11 +290,11 @@
}, },
{ {
"constant": false, "constant": false,
"id": 1729, "id": 1699,
"name": "receiver", "name": "receiver",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "487:16:15", "src": "487:16:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -302,10 +302,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 1728, "id": 1698,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "487:7:15", "src": "487:7:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -316,11 +316,11 @@
}, },
{ {
"constant": false, "constant": false,
"id": 1731, "id": 1701,
"name": "amount", "name": "amount",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "513:14:15", "src": "513:14:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -328,10 +328,10 @@
"typeString": "uint256" "typeString": "uint256"
}, },
"typeName": { "typeName": {
"id": 1730, "id": 1700,
"name": "uint256", "name": "uint256",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "513:7:15", "src": "513:7:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
@ -341,20 +341,20 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "453:80:15" "src": "453:80:10"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 1735, "id": 1705,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 1734, "id": 1704,
"name": "transferred", "name": "transferred",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "568:16:15", "src": "568:16:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -362,10 +362,10 @@
"typeString": "bool" "typeString": "bool"
}, },
"typeName": { "typeName": {
"id": 1733, "id": 1703,
"name": "bool", "name": "bool",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "568:4:15", "src": "568:4:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
@ -375,40 +375,40 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "567:18:15" "src": "567:18:10"
}, },
"scope": 1748, "scope": 1718,
"src": "430:752:15", "src": "430:752:10",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "internal" "visibility": "internal"
} }
], ],
"scope": 1749, "scope": 1719,
"src": "133:1051:15" "src": "133:1051:10"
} }
], ],
"src": "0:1185:15" "src": "0:1185:10"
}, },
"legacyAST": { "legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SecuredTokenTransfer.sol",
"exportedSymbols": { "exportedSymbols": {
"SecuredTokenTransfer": [ "SecuredTokenTransfer": [
1748 1718
] ]
}, },
"id": 1749, "id": 1719,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1725, "id": 1695,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:15" "src": "0:23:10"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -416,31 +416,31 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title SecuredTokenTransfer - Secure token transfer\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title SecuredTokenTransfer - Secure token transfer\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 1748, "id": 1718,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
1748 1718
], ],
"name": "SecuredTokenTransfer", "name": "SecuredTokenTransfer",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 1746, "id": 1716,
"nodeType": "Block", "nodeType": "Block",
"src": "590:592:15", "src": "590:592:10",
"statements": [ "statements": [
{ {
"assignments": [ "assignments": [
1737 1707
], ],
"declarations": [ "declarations": [
{ {
"constant": false, "constant": false,
"id": 1737, "id": 1707,
"name": "data", "name": "data",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "600:17:15", "src": "600:17:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "memory", "storageLocation": "memory",
"typeDescriptions": { "typeDescriptions": {
@ -448,10 +448,10 @@
"typeString": "bytes" "typeString": "bytes"
}, },
"typeName": { "typeName": {
"id": 1736, "id": 1706,
"name": "bytes", "name": "bytes",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "600:5:15", "src": "600:5:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr", "typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes" "typeString": "bytes"
@ -461,21 +461,21 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"id": 1744, "id": 1714,
"initialValue": { "initialValue": {
"argumentTypes": null, "argumentTypes": null,
"arguments": [ "arguments": [
{ {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "7472616e7366657228616464726573732c75696e7432353629", "hexValue": "7472616e7366657228616464726573732c75696e7432353629",
"id": 1740, "id": 1710,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "string", "kind": "string",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "644:27:15", "src": "644:27:10",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b", "typeIdentifier": "t_stringliteral_a9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b",
@ -485,12 +485,12 @@
}, },
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 1741, "id": 1711,
"name": "receiver", "name": "receiver",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1729, "referencedDeclaration": 1699,
"src": "673:8:15", "src": "673:8:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -498,12 +498,12 @@
}, },
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 1742, "id": 1712,
"name": "amount", "name": "amount",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 1731, "referencedDeclaration": 1701,
"src": "683:6:15", "src": "683:6:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
@ -527,18 +527,18 @@
], ],
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 1738, "id": 1708,
"name": "abi", "name": "abi",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 3815, "referencedDeclaration": 4478,
"src": "620:3:15", "src": "620:3:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_magic_abi", "typeIdentifier": "t_magic_abi",
"typeString": "abi" "typeString": "abi"
} }
}, },
"id": 1739, "id": 1709,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
@ -546,13 +546,13 @@
"memberName": "encodeWithSignature", "memberName": "encodeWithSignature",
"nodeType": "MemberAccess", "nodeType": "MemberAccess",
"referencedDeclaration": null, "referencedDeclaration": null,
"src": "620:23:15", "src": "620:23:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$", "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
"typeString": "function (string memory) pure returns (bytes memory)" "typeString": "function (string memory) pure returns (bytes memory)"
} }
}, },
"id": 1743, "id": 1713,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -560,81 +560,81 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "620:70:15", "src": "620:70:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr", "typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory" "typeString": "bytes memory"
} }
}, },
"nodeType": "VariableDeclarationStatement", "nodeType": "VariableDeclarationStatement",
"src": "600:90:15" "src": "600:90:10"
}, },
{ {
"externalReferences": [ "externalReferences": [
{ {
"transferred": { "transferred": {
"declaration": 1734, "declaration": 1704,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1061:11:15", "src": "1061:11:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"data": { "data": {
"declaration": 1737, "declaration": 1707,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "857:4:15", "src": "857:4:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"token": { "token": {
"declaration": 1727, "declaration": 1697,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "824:5:15", "src": "824:5:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"data": { "data": {
"declaration": 1737, "declaration": 1707,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "838:4:15", "src": "838:4:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transferred": { "transferred": {
"declaration": 1734, "declaration": 1704,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1012:11:15", "src": "1012:11:10",
"valueSize": 1 "valueSize": 1
} }
}, },
{ {
"transferred": { "transferred": {
"declaration": 1734, "declaration": 1704,
"isOffset": false, "isOffset": false,
"isSlot": false, "isSlot": false,
"src": "1148:11:15", "src": "1148:11:10",
"valueSize": 1 "valueSize": 1
} }
} }
], ],
"id": 1745, "id": 1715,
"nodeType": "InlineAssembly", "nodeType": "InlineAssembly",
"operations": "{\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n switch returndatasize()\n case 0 {\n transferred := success\n }\n case 0x20 {\n transferred := iszero(or(iszero(success), iszero(mload(ptr))))\n }\n default {\n transferred := 0\n }\n}", "operations": "{\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0)\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n switch returndatasize()\n case 0 {\n transferred := success\n }\n case 0x20 {\n transferred := iszero(or(iszero(success), iszero(mload(ptr))))\n }\n default {\n transferred := 0\n }\n}",
"src": "764:418:15" "src": "764:418:10"
} }
] ]
}, },
"documentation": "@dev Transfers a token and returns if it was a success\n @param token Token that should be transferred\n @param receiver Receiver to whom the token should be transferred\n @param amount The amount of tokens that should be transferred", "documentation": "@dev Transfers a token and returns if it was a success\n @param token Token that should be transferred\n @param receiver Receiver to whom the token should be transferred\n @param amount The amount of tokens that should be transferred",
"id": 1747, "id": 1717,
"implemented": true, "implemented": true,
"isConstructor": false, "isConstructor": false,
"isDeclaredConst": false, "isDeclaredConst": false,
@ -642,16 +642,16 @@
"name": "transferToken", "name": "transferToken",
"nodeType": "FunctionDefinition", "nodeType": "FunctionDefinition",
"parameters": { "parameters": {
"id": 1732, "id": 1702,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 1727, "id": 1697,
"name": "token", "name": "token",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "463:13:15", "src": "463:13:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -659,10 +659,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 1726, "id": 1696,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "463:7:15", "src": "463:7:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -673,11 +673,11 @@
}, },
{ {
"constant": false, "constant": false,
"id": 1729, "id": 1699,
"name": "receiver", "name": "receiver",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "487:16:15", "src": "487:16:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -685,10 +685,10 @@
"typeString": "address" "typeString": "address"
}, },
"typeName": { "typeName": {
"id": 1728, "id": 1698,
"name": "address", "name": "address",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "487:7:15", "src": "487:7:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -699,11 +699,11 @@
}, },
{ {
"constant": false, "constant": false,
"id": 1731, "id": 1701,
"name": "amount", "name": "amount",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "513:14:15", "src": "513:14:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -711,10 +711,10 @@
"typeString": "uint256" "typeString": "uint256"
}, },
"typeName": { "typeName": {
"id": 1730, "id": 1700,
"name": "uint256", "name": "uint256",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "513:7:15", "src": "513:7:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_uint256", "typeIdentifier": "t_uint256",
"typeString": "uint256" "typeString": "uint256"
@ -724,20 +724,20 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "453:80:15" "src": "453:80:10"
}, },
"payable": false, "payable": false,
"returnParameters": { "returnParameters": {
"id": 1735, "id": 1705,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [ "parameters": [
{ {
"constant": false, "constant": false,
"id": 1734, "id": 1704,
"name": "transferred", "name": "transferred",
"nodeType": "VariableDeclaration", "nodeType": "VariableDeclaration",
"scope": 1747, "scope": 1717,
"src": "568:16:15", "src": "568:16:10",
"stateVariable": false, "stateVariable": false,
"storageLocation": "default", "storageLocation": "default",
"typeDescriptions": { "typeDescriptions": {
@ -745,10 +745,10 @@
"typeString": "bool" "typeString": "bool"
}, },
"typeName": { "typeName": {
"id": 1733, "id": 1703,
"name": "bool", "name": "bool",
"nodeType": "ElementaryTypeName", "nodeType": "ElementaryTypeName",
"src": "568:4:15", "src": "568:4:10",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
@ -758,20 +758,20 @@
"visibility": "internal" "visibility": "internal"
} }
], ],
"src": "567:18:15" "src": "567:18:10"
}, },
"scope": 1748, "scope": 1718,
"src": "430:752:15", "src": "430:752:10",
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
"superFunction": null, "superFunction": null,
"visibility": "internal" "visibility": "internal"
} }
], ],
"scope": 1749, "scope": 1719,
"src": "133:1051:15" "src": "133:1051:10"
} }
], ],
"src": "0:1185:15" "src": "0:1185:10"
}, },
"compiler": { "compiler": {
"name": "solc", "name": "solc",
@ -779,5 +779,5 @@
}, },
"networks": {}, "networks": {},
"schemaVersion": "2.0.0", "schemaVersion": "2.0.0",
"updatedAt": "2018-08-20T07:44:41.093Z" "updatedAt": "2018-09-26T08:32:07.644Z"
} }

View File

@ -1,31 +1,31 @@
{ {
"contractName": "SelfAuthorized", "contractName": "SelfAuthorized",
"abi": [], "abi": [],
"bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820ec80f1b4520aa5197e4181778f1e2e4fc460002d4a40e2e8e6709c8986067c220029", "bytecode": "0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a7230582089be6830aa63b2ce4480c1565e02c1d4e7d28bdf01f3f1cfbca1af4fc2fd06f50029",
"deployedBytecode": "0x6080604052600080fd00a165627a7a72305820ec80f1b4520aa5197e4181778f1e2e4fc460002d4a40e2e8e6709c8986067c220029", "deployedBytecode": "0x6080604052600080fd00a165627a7a7230582089be6830aa63b2ce4480c1565e02c1d4e7d28bdf01f3f1cfbca1af4fc2fd06f50029",
"sourceMap": "152:166:16:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;152:166:16;;;;;;;", "sourceMap": "152:166:11:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;152:166:11;;;;;;;",
"deployedSourceMap": "152:166:16:-;;;;;", "deployedSourceMap": "152:166:11:-;;;;;",
"source": "pragma solidity 0.4.24;\n\n\n/// @title SelfAuthorized - authorizes current contract to perform actions\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract SelfAuthorized {\n modifier authorized() {\n require(msg.sender == address(this), \"Method can only be called from this contract\");\n _;\n }\n}\n", "source": "pragma solidity 0.4.24;\n\n\n/// @title SelfAuthorized - authorizes current contract to perform actions\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract SelfAuthorized {\n modifier authorized() {\n require(msg.sender == address(this), \"Method can only be called from this contract\");\n _;\n }\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol",
"ast": { "ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol",
"exportedSymbols": { "exportedSymbols": {
"SelfAuthorized": [ "SelfAuthorized": [
1765 1735
] ]
}, },
"id": 1766, "id": 1736,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1750, "id": 1720,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:16" "src": "0:23:11"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -33,18 +33,18 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 1765, "id": 1735,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
1765 1735
], ],
"name": "SelfAuthorized", "name": "SelfAuthorized",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 1763, "id": 1733,
"nodeType": "Block", "nodeType": "Block",
"src": "204:112:16", "src": "204:112:11",
"statements": [ "statements": [
{ {
"expression": { "expression": {
@ -56,7 +56,7 @@
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
}, },
"id": 1758, "id": 1728,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -65,18 +65,18 @@
"argumentTypes": null, "argumentTypes": null,
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 1753, "id": 1723,
"name": "msg", "name": "msg",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 3828, "referencedDeclaration": 4491,
"src": "222:3:16", "src": "222:3:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_magic_message", "typeIdentifier": "t_magic_message",
"typeString": "msg" "typeString": "msg"
} }
}, },
"id": 1754, "id": 1724,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -84,7 +84,7 @@
"memberName": "sender", "memberName": "sender",
"nodeType": "MemberAccess", "nodeType": "MemberAccess",
"referencedDeclaration": null, "referencedDeclaration": null,
"src": "222:10:16", "src": "222:10:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -97,14 +97,14 @@
"arguments": [ "arguments": [
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 1756, "id": 1726,
"name": "this", "name": "this",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 3851, "referencedDeclaration": 4504,
"src": "244:4:16", "src": "244:4:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_contract$_SelfAuthorized_$1765", "typeIdentifier": "t_contract$_SelfAuthorized_$1735",
"typeString": "contract SelfAuthorized" "typeString": "contract SelfAuthorized"
} }
} }
@ -112,24 +112,24 @@
"expression": { "expression": {
"argumentTypes": [ "argumentTypes": [
{ {
"typeIdentifier": "t_contract$_SelfAuthorized_$1765", "typeIdentifier": "t_contract$_SelfAuthorized_$1735",
"typeString": "contract SelfAuthorized" "typeString": "contract SelfAuthorized"
} }
], ],
"id": 1755, "id": 1725,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"lValueRequested": false, "lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression", "nodeType": "ElementaryTypeNameExpression",
"src": "236:7:16", "src": "236:7:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$", "typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)" "typeString": "type(address)"
}, },
"typeName": "address" "typeName": "address"
}, },
"id": 1757, "id": 1727,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -137,13 +137,13 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "236:13:16", "src": "236:13:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
}, },
"src": "222:27:16", "src": "222:27:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
@ -152,14 +152,14 @@
{ {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207468697320636f6e7472616374", "hexValue": "4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207468697320636f6e7472616374",
"id": 1759, "id": 1729,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "string", "kind": "string",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "251:46:16", "src": "251:46:11",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733", "typeIdentifier": "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733",
@ -179,21 +179,21 @@
"typeString": "literal_string \"Method can only be called from this contract\"" "typeString": "literal_string \"Method can only be called from this contract\""
} }
], ],
"id": 1752, "id": 1722,
"name": "require", "name": "require",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [ "overloadedDeclarations": [
3831, 4494,
3832 4495
], ],
"referencedDeclaration": 3832, "referencedDeclaration": 4495,
"src": "214:7:16", "src": "214:7:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure" "typeString": "function (bool,string memory) pure"
} }
}, },
"id": 1760, "id": 1730,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -201,62 +201,62 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "214:84:16", "src": "214:84:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_tuple$__$", "typeIdentifier": "t_tuple$__$",
"typeString": "tuple()" "typeString": "tuple()"
} }
}, },
"id": 1761, "id": 1731,
"nodeType": "ExpressionStatement", "nodeType": "ExpressionStatement",
"src": "214:84:16" "src": "214:84:11"
}, },
{ {
"id": 1762, "id": 1732,
"nodeType": "PlaceholderStatement", "nodeType": "PlaceholderStatement",
"src": "308:1:16" "src": "308:1:11"
} }
] ]
}, },
"documentation": null, "documentation": null,
"id": 1764, "id": 1734,
"name": "authorized", "name": "authorized",
"nodeType": "ModifierDefinition", "nodeType": "ModifierDefinition",
"parameters": { "parameters": {
"id": 1751, "id": 1721,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "201:2:16" "src": "201:2:11"
}, },
"src": "182:134:16", "src": "182:134:11",
"visibility": "internal" "visibility": "internal"
} }
], ],
"scope": 1766, "scope": 1736,
"src": "152:166:16" "src": "152:166:11"
} }
], ],
"src": "0:319:16" "src": "0:319:11"
}, },
"legacyAST": { "legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SelfAuthorized.sol", "absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/common/SelfAuthorized.sol",
"exportedSymbols": { "exportedSymbols": {
"SelfAuthorized": [ "SelfAuthorized": [
1765 1735
] ]
}, },
"id": 1766, "id": 1736,
"nodeType": "SourceUnit", "nodeType": "SourceUnit",
"nodes": [ "nodes": [
{ {
"id": 1750, "id": 1720,
"literals": [ "literals": [
"solidity", "solidity",
"0.4", "0.4",
".24" ".24"
], ],
"nodeType": "PragmaDirective", "nodeType": "PragmaDirective",
"src": "0:23:16" "src": "0:23:11"
}, },
{ {
"baseContracts": [], "baseContracts": [],
@ -264,18 +264,18 @@
"contractKind": "contract", "contractKind": "contract",
"documentation": "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - <richard@gnosis.pm>", "documentation": "@title SelfAuthorized - authorizes current contract to perform actions\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true, "fullyImplemented": true,
"id": 1765, "id": 1735,
"linearizedBaseContracts": [ "linearizedBaseContracts": [
1765 1735
], ],
"name": "SelfAuthorized", "name": "SelfAuthorized",
"nodeType": "ContractDefinition", "nodeType": "ContractDefinition",
"nodes": [ "nodes": [
{ {
"body": { "body": {
"id": 1763, "id": 1733,
"nodeType": "Block", "nodeType": "Block",
"src": "204:112:16", "src": "204:112:11",
"statements": [ "statements": [
{ {
"expression": { "expression": {
@ -287,7 +287,7 @@
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
}, },
"id": 1758, "id": 1728,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -296,18 +296,18 @@
"argumentTypes": null, "argumentTypes": null,
"expression": { "expression": {
"argumentTypes": null, "argumentTypes": null,
"id": 1753, "id": 1723,
"name": "msg", "name": "msg",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 3828, "referencedDeclaration": 4491,
"src": "222:3:16", "src": "222:3:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_magic_message", "typeIdentifier": "t_magic_message",
"typeString": "msg" "typeString": "msg"
} }
}, },
"id": 1754, "id": 1724,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -315,7 +315,7 @@
"memberName": "sender", "memberName": "sender",
"nodeType": "MemberAccess", "nodeType": "MemberAccess",
"referencedDeclaration": null, "referencedDeclaration": null,
"src": "222:10:16", "src": "222:10:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
@ -328,14 +328,14 @@
"arguments": [ "arguments": [
{ {
"argumentTypes": null, "argumentTypes": null,
"id": 1756, "id": 1726,
"name": "this", "name": "this",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [], "overloadedDeclarations": [],
"referencedDeclaration": 3851, "referencedDeclaration": 4504,
"src": "244:4:16", "src": "244:4:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_contract$_SelfAuthorized_$1765", "typeIdentifier": "t_contract$_SelfAuthorized_$1735",
"typeString": "contract SelfAuthorized" "typeString": "contract SelfAuthorized"
} }
} }
@ -343,24 +343,24 @@
"expression": { "expression": {
"argumentTypes": [ "argumentTypes": [
{ {
"typeIdentifier": "t_contract$_SelfAuthorized_$1765", "typeIdentifier": "t_contract$_SelfAuthorized_$1735",
"typeString": "contract SelfAuthorized" "typeString": "contract SelfAuthorized"
} }
], ],
"id": 1755, "id": 1725,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"lValueRequested": false, "lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression", "nodeType": "ElementaryTypeNameExpression",
"src": "236:7:16", "src": "236:7:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$", "typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)" "typeString": "type(address)"
}, },
"typeName": "address" "typeName": "address"
}, },
"id": 1757, "id": 1727,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -368,13 +368,13 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "236:13:16", "src": "236:13:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_address", "typeIdentifier": "t_address",
"typeString": "address" "typeString": "address"
} }
}, },
"src": "222:27:16", "src": "222:27:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_bool", "typeIdentifier": "t_bool",
"typeString": "bool" "typeString": "bool"
@ -383,14 +383,14 @@
{ {
"argumentTypes": null, "argumentTypes": null,
"hexValue": "4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207468697320636f6e7472616374", "hexValue": "4d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d207468697320636f6e7472616374",
"id": 1759, "id": 1729,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": true, "isPure": true,
"kind": "string", "kind": "string",
"lValueRequested": false, "lValueRequested": false,
"nodeType": "Literal", "nodeType": "Literal",
"src": "251:46:16", "src": "251:46:11",
"subdenomination": null, "subdenomination": null,
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733", "typeIdentifier": "t_stringliteral_c4780ef0a1d41d59bac8c510cf9ada421bccf2b90f75a8e4ba2e8c09e8d72733",
@ -410,21 +410,21 @@
"typeString": "literal_string \"Method can only be called from this contract\"" "typeString": "literal_string \"Method can only be called from this contract\""
} }
], ],
"id": 1752, "id": 1722,
"name": "require", "name": "require",
"nodeType": "Identifier", "nodeType": "Identifier",
"overloadedDeclarations": [ "overloadedDeclarations": [
3831, 4494,
3832 4495
], ],
"referencedDeclaration": 3832, "referencedDeclaration": 4495,
"src": "214:7:16", "src": "214:7:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure" "typeString": "function (bool,string memory) pure"
} }
}, },
"id": 1760, "id": 1730,
"isConstant": false, "isConstant": false,
"isLValue": false, "isLValue": false,
"isPure": false, "isPure": false,
@ -432,42 +432,42 @@
"lValueRequested": false, "lValueRequested": false,
"names": [], "names": [],
"nodeType": "FunctionCall", "nodeType": "FunctionCall",
"src": "214:84:16", "src": "214:84:11",
"typeDescriptions": { "typeDescriptions": {
"typeIdentifier": "t_tuple$__$", "typeIdentifier": "t_tuple$__$",
"typeString": "tuple()" "typeString": "tuple()"
} }
}, },
"id": 1761, "id": 1731,
"nodeType": "ExpressionStatement", "nodeType": "ExpressionStatement",
"src": "214:84:16" "src": "214:84:11"
}, },
{ {
"id": 1762, "id": 1732,
"nodeType": "PlaceholderStatement", "nodeType": "PlaceholderStatement",
"src": "308:1:16" "src": "308:1:11"
} }
] ]
}, },
"documentation": null, "documentation": null,
"id": 1764, "id": 1734,
"name": "authorized", "name": "authorized",
"nodeType": "ModifierDefinition", "nodeType": "ModifierDefinition",
"parameters": { "parameters": {
"id": 1751, "id": 1721,
"nodeType": "ParameterList", "nodeType": "ParameterList",
"parameters": [], "parameters": [],
"src": "201:2:16" "src": "201:2:11"
}, },
"src": "182:134:16", "src": "182:134:11",
"visibility": "internal" "visibility": "internal"
} }
], ],
"scope": 1766, "scope": 1736,
"src": "152:166:16" "src": "152:166:11"
} }
], ],
"src": "0:319:16" "src": "0:319:11"
}, },
"compiler": { "compiler": {
"name": "solc", "name": "solc",
@ -475,5 +475,5 @@
}, },
"networks": {}, "networks": {},
"schemaVersion": "2.0.0", "schemaVersion": "2.0.0",
"updatedAt": "2018-08-20T07:44:41.093Z" "updatedAt": "2018-09-26T08:32:07.644Z"
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,363 @@
{
"contractName": "Token",
"abi": [
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.23;\nimport \"@gnosis.pm/mock-contract/contracts/MockContract.sol\";\ncontract Token {\n\tfunction transfer(address _to, uint value) public returns (bool);\n}\n",
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/mocks/Token.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/mocks/Token.sol",
"exportedSymbols": {
"Token": [
1871
]
},
"id": 1872,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1860,
"literals": [
"solidity",
"^",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
"src": "0:24:16"
},
{
"absolutePath": "@gnosis.pm/mock-contract/contracts/MockContract.sol",
"file": "@gnosis.pm/mock-contract/contracts/MockContract.sol",
"id": 1861,
"nodeType": "ImportDirective",
"scope": 1872,
"sourceUnit": 4477,
"src": "25:61:16",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 1871,
"linearizedBaseContracts": [
1871
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1870,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1866,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1863,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 1870,
"src": "123:11:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1862,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "123:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1865,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1870,
"src": "136:10:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1864,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "136:4:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "122:25:16"
},
"payable": false,
"returnParameters": {
"id": 1869,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1868,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1870,
"src": "164:4:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1867,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "164:4:16",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "163:6:16"
},
"scope": 1871,
"src": "105:65:16",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1872,
"src": "87:85:16"
}
],
"src": "0:173:16"
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/mocks/Token.sol",
"exportedSymbols": {
"Token": [
1871
]
},
"id": 1872,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1860,
"literals": [
"solidity",
"^",
"0.4",
".23"
],
"nodeType": "PragmaDirective",
"src": "0:24:16"
},
{
"absolutePath": "@gnosis.pm/mock-contract/contracts/MockContract.sol",
"file": "@gnosis.pm/mock-contract/contracts/MockContract.sol",
"id": 1861,
"nodeType": "ImportDirective",
"scope": 1872,
"sourceUnit": 4477,
"src": "25:61:16",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 1871,
"linearizedBaseContracts": [
1871
],
"name": "Token",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 1870,
"implemented": false,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1866,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1863,
"name": "_to",
"nodeType": "VariableDeclaration",
"scope": 1870,
"src": "123:11:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1862,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "123:7:16",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1865,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 1870,
"src": "136:10:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1864,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "136:4:16",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "122:25:16"
},
"payable": false,
"returnParameters": {
"id": 1869,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1868,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 1870,
"src": "164:4:16",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 1867,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "164:4:16",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "163:6:16"
},
"scope": 1871,
"src": "105:65:16",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1872,
"src": "87:85:16"
}
],
"src": "0:173:16"
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.0",
"updatedAt": "2018-09-26T08:32:07.645Z"
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long