safe-react/safe-contracts/build/contracts/PayingProxy.json

1616 lines
77 KiB
JSON
Raw Normal View History

2018-05-31 13:01:02 +00:00
{
"contractName": "PayingProxy",
"abi": [
{
"constant": true,
"inputs": [],
"name": "proxyType",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "implementation",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_masterCopy",
"type": "address"
},
{
"name": "initializer",
"type": "bytes"
},
{
"name": "funder",
"type": "address"
},
{
"name": "paymentToken",
"type": "address"
},
{
"name": "payment",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5060405161060a38038061060a833981018060405281019080805190602001909291908051820192919060200180519060200190929190805190602001909291908051906020019092919050505084848160008173ffffffffffffffffffffffffffffffffffffffff1614151515610116576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000815111156101a35773ffffffffffffffffffffffffffffffffffffffff60005416600080835160208501846127105a03f46040513d6000823e600082141561019f573d81fd5b5050505b5050600081111561036d57600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156102b7578273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156102b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001807f436f756c64206e6f74207061792073616665206372656174696f6e207769746881526020017f206574686572000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b61036c565b6102d1828483610377640100000000026401000000009004565b151561036b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001807f436f756c64206e6f74207061792073616665206372656174696f6e207769746881526020017f20746f6b656e000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b5b5b5050505050610490565b600060608383604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506040516020818303038152906040527fa9059cbb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000808251602084016000896127105a03f16040513d6000823e3d60008114610473576020811461047b5760009450610485565b829450610485565b8151158315171594505b505050509392505050565b61016b8061049f6000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820d7000b93834fa325b64ca1644682b27b7ca4e0c5b438f4481d7909f3d065bbeb0029",
"deployedBytecode": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820d7000b93834fa325b64ca1644682b27b7ca4e0c5b438f4481d7909f3d065bbeb0029",
"sourceMap": "451:1072:10:-;;;945:576;8:9:-1;5:2;;;30:1;27;20:12;5:2;945:576:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1086:11;1099;668::0;593:1:11;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;;1155:1:10;1145:7;:11;1141:373;;;1200:1;1176:26;;:12;:26;;;1172:332;;;1292:6;:11;;:20;1304:7;1292:20;;;;;;;;;;;;;;;;;;;;;;;1284:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1172:332;;;1402:44;1416:12;1430:6;1438:7;1402:13;;;:44;;;:::i;:::-;1394:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1172:332;1141:373;945:576;;;;;451:1072;;430:752:13;568:16;600:17;673:8;683:6;620:70;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;620:70:13;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;620:70:13;600:90;;867:1;864;857:4;851:11;844:4;838;834:15;831:1;824:5;816;811:3;807:15;802:67;899:4;893:11;940:14;937:1;932:3;917:38;975:14;1008:1;1003:33;;;;1054:4;1049:76;;;;1163:1;1148:16;;968:198;;1003:33;1027:7;1012:22;;1003:33;;1049:76;1116:3;1110:10;1103:18;1093:7;1086:15;1083:39;1076:47;1061:62;;968:198;;773:403;;;;;;;;:::o;451:1072:10:-;;;;;;;",
"deployedSourceMap": "451:1072:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;955:42:11;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:11;;;;;;;;;;;;;;;;;;;;;;;1302:118;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1302:118:11;;;;;;;;;;;;;;;;;;;;;;;;;;;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 \"./DelegateConstructorProxy.sol\";\nimport \"./SecuredTokenTransfer.sol\";\n\n/// @title Paying 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. And sends funds after creation to a specified account.\n/// @author Stefan George - <stefan@gnosis.pm>\n/// @author Richard Meissner - <richard@gnosis.pm>\ncontract PayingProxy is DelegateConstructorProxy, SecuredTokenTransfer {\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 /// @param funder Address that should be paid for the execution of this call\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\n /// @param payment Value that should be paid\n constructor(address _masterCopy, bytes initializer, address funder, address paymentToken, uint256 payment) \n DelegateConstructorProxy(_masterCopy, initializer)\n public\n {\n if (payment > 0) {\n if (paymentToken == address(0)) {\n // solium-disable-next-line security/no-send\n require(funder.send(payment), \"Could not pay safe creation with ether\");\n } else {\n require(transferToken(paymentToken, funder, payment), \"Could not pay safe creation with token\");\n }\n } \n }\n}\n",
2018-05-31 13:01:02 +00:00
"sourcePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/PayingProxy.sol",
"ast": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/PayingProxy.sol",
"exportedSymbols": {
"PayingProxy": [
1568
2018-05-31 13:01:02 +00:00
]
},
"id": 1569,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1513,
2018-05-31 13:01:02 +00:00
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:10"
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/DelegateConstructorProxy.sol",
"file": "./DelegateConstructorProxy.sol",
"id": 1514,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 1569,
2018-05-31 13:01:02 +00:00
"sourceUnit": 24,
"src": "24:40:10",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol",
"file": "./SecuredTokenTransfer.sol",
"id": 1515,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 1569,
"sourceUnit": 1672,
"src": "65:36:10",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1516,
2018-05-31 13:01:02 +00:00
"name": "DelegateConstructorProxy",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 23,
"src": "475:24:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_DelegateConstructorProxy_$23",
"typeString": "contract DelegateConstructorProxy"
}
},
"id": 1517,
"nodeType": "InheritanceSpecifier",
"src": "475:24:10"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1518,
"name": "SecuredTokenTransfer",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1671,
"src": "501:20:10",
"typeDescriptions": {
"typeIdentifier": "t_contract$_SecuredTokenTransfer_$1671",
"typeString": "contract SecuredTokenTransfer"
}
},
"id": 1519,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
"src": "501:20:10"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
23,
1611,
1671
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Paying 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. And sends funds after creation to a specified account.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
"id": 1568,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
1568,
1671,
2018-05-31 13:01:02 +00:00
23,
1611
2018-05-31 13:01:02 +00:00
],
"name": "PayingProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 1566,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1131:390:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1538,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1536,
2018-05-31 13:01:02 +00:00
"name": "payment",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1529,
"src": "1145:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 1537,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1155:1:10",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1145:11:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1565,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "1141:373:10",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 1564,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1158:356:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 1543,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1539,
2018-05-31 13:01:02 +00:00
"name": "paymentToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1527,
"src": "1176:12:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 1541,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1200:1:10",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 1540,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1192:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 1542,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1192:10:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1176:26:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"id": 1562,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1376:128:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1555,
"name": "paymentToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1527,
"src": "1416:12:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-31 13:01:02 +00:00
{
"argumentTypes": null,
"id": 1556,
2018-05-31 13:01:02 +00:00
"name": "funder",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1525,
"src": "1430:6:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1557,
2018-05-31 13:01:02 +00:00
"name": "payment",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1529,
"src": "1438:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-31 13:01:02 +00:00
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1554,
"name": "transferToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1670,
"src": "1402:13:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,address,uint256) returns (bool)"
2018-05-31 13:01:02 +00:00
}
},
"id": 1558,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1402:44:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f74207061792073616665206372656174696f6e207769746820746f6b656e",
"id": 1559,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1448:40:10",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6",
"typeString": "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
},
"value": "Could not pay safe creation with token"
2018-05-31 13:01:02 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6",
"typeString": "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
}
],
"id": 1553,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2662,
2663
2018-05-31 13:01:02 +00:00
],
"referencedDeclaration": 2663,
"src": "1394:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 1560,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1394:95:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1561,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1394:95:10"
2018-05-31 13:01:02 +00:00
}
]
},
"id": 1563,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "1172:332:10",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 1552,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1204:166:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1547,
"name": "payment",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1529,
"src": "1304:7:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 1545,
"name": "funder",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1525,
"src": "1292:6:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 1546,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "send",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1292:11:10",
"typeDescriptions": {
"typeIdentifier": "t_function_send_nonpayable$_t_uint256_$returns$_t_bool_$",
"typeString": "function (uint256) returns (bool)"
}
},
"id": 1548,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1292:20:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-31 13:01:02 +00:00
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f74207061792073616665206372656174696f6e2077697468206574686572",
"id": 1549,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1314:40:10",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_001db5e0eea429a497fbb276b295895ba66824ab53239e68691cf332a945feab",
"typeString": "literal_string \"Could not pay safe creation with ether\""
},
"value": "Could not pay safe creation with ether"
2018-05-31 13:01:02 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_001db5e0eea429a497fbb276b295895ba66824ab53239e68691cf332a945feab",
"typeString": "literal_string \"Could not pay safe creation with ether\""
2018-05-31 13:01:02 +00:00
}
],
"id": 1544,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2662,
2663
],
"referencedDeclaration": 2663,
"src": "1284:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-31 13:01:02 +00:00
}
},
"id": 1550,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1284:71:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1551,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1284:71:10"
2018-05-31 13:01:02 +00:00
}
]
}
}
]
}
}
]
},
"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.\n @param funder Address that should be paid for the execution of this call\n @param paymentToken Token that should be used for the payment (0 is ETH)\n @param payment Value that should be paid",
"id": 1567,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"id": 1532,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1521,
"src": "1086:11:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1533,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1523,
"src": "1099:11:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"id": 1534,
2018-05-31 13:01:02 +00:00
"modifierName": {
"argumentTypes": null,
"id": 1531,
2018-05-31 13:01:02 +00:00
"name": "DelegateConstructorProxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 23,
"src": "1061:24:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_DelegateConstructorProxy_$23_$",
"typeString": "type(contract DelegateConstructorProxy)"
}
},
"nodeType": "ModifierInvocation",
"src": "1061:50:10"
2018-05-31 13:01:02 +00:00
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1530,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1521,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "957:19:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1520,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "957:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1523,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "978:17:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1522,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "978:5:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1525,
2018-05-31 13:01:02 +00:00
"name": "funder",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "997:14:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1524,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "997:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1527,
2018-05-31 13:01:02 +00:00
"name": "paymentToken",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "1013:20:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1526,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1013:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1529,
2018-05-31 13:01:02 +00:00
"name": "payment",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "1035:15:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1528,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1035:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "956:95:10"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 1535,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "1131:0:10"
2018-05-31 13:01:02 +00:00
},
"scope": 1568,
"src": "945:576:10",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1569,
"src": "451:1072:10"
2018-05-31 13:01:02 +00:00
}
],
"src": "0:1524:10"
2018-05-31 13:01:02 +00:00
},
"legacyAST": {
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/PayingProxy.sol",
"exportedSymbols": {
"PayingProxy": [
1568
2018-05-31 13:01:02 +00:00
]
},
"id": 1569,
2018-05-31 13:01:02 +00:00
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1513,
2018-05-31 13:01:02 +00:00
"literals": [
"solidity",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:23:10"
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/DelegateConstructorProxy.sol",
"file": "./DelegateConstructorProxy.sol",
"id": 1514,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 1569,
2018-05-31 13:01:02 +00:00
"sourceUnit": 24,
"src": "24:40:10",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol",
"file": "./SecuredTokenTransfer.sol",
"id": 1515,
2018-05-31 13:01:02 +00:00
"nodeType": "ImportDirective",
"scope": 1569,
"sourceUnit": 1672,
"src": "65:36:10",
2018-05-31 13:01:02 +00:00
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1516,
2018-05-31 13:01:02 +00:00
"name": "DelegateConstructorProxy",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 23,
"src": "475:24:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_contract$_DelegateConstructorProxy_$23",
"typeString": "contract DelegateConstructorProxy"
}
},
"id": 1517,
"nodeType": "InheritanceSpecifier",
"src": "475:24:10"
},
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 1518,
"name": "SecuredTokenTransfer",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 1671,
"src": "501:20:10",
"typeDescriptions": {
"typeIdentifier": "t_contract$_SecuredTokenTransfer_$1671",
"typeString": "contract SecuredTokenTransfer"
}
},
"id": 1519,
2018-05-31 13:01:02 +00:00
"nodeType": "InheritanceSpecifier",
"src": "501:20:10"
2018-05-31 13:01:02 +00:00
}
],
"contractDependencies": [
23,
1611,
1671
2018-05-31 13:01:02 +00:00
],
"contractKind": "contract",
"documentation": "@title Paying 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. And sends funds after creation to a specified account.\n @author Stefan George - <stefan@gnosis.pm>\n @author Richard Meissner - <richard@gnosis.pm>",
"fullyImplemented": true,
"id": 1568,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts": [
1568,
1671,
2018-05-31 13:01:02 +00:00
23,
1611
2018-05-31 13:01:02 +00:00
],
"name": "PayingProxy",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 1566,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1131:390:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"id": 1538,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1536,
2018-05-31 13:01:02 +00:00
"name": "payment",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1529,
"src": "1145:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "BinaryOperation",
"operator": ">",
"rightExpression": {
"argumentTypes": null,
"hexValue": "30",
"id": 1537,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1155:1:10",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"src": "1145:11:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": null,
"id": 1565,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "1141:373:10",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 1564,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1158:356:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"condition": {
"argumentTypes": null,
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 1543,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"argumentTypes": null,
"id": 1539,
2018-05-31 13:01:02 +00:00
"name": "paymentToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1527,
"src": "1176:12:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"hexValue": "30",
"id": 1541,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1200:1:10",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
}
],
"id": 1540,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1192:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": "address"
},
"id": 1542,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1192:10:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1176:26:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"falseBody": {
"id": 1562,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1376:128:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1555,
"name": "paymentToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1527,
"src": "1416:12:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
2018-05-31 13:01:02 +00:00
{
"argumentTypes": null,
"id": 1556,
2018-05-31 13:01:02 +00:00
"name": "funder",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1525,
"src": "1430:6:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1557,
2018-05-31 13:01:02 +00:00
"name": "payment",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1529,
"src": "1438:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_address",
"typeString": "address"
},
2018-05-31 13:01:02 +00:00
{
"typeIdentifier": "t_address",
"typeString": "address"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 1554,
"name": "transferToken",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1670,
"src": "1402:13:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$_t_bool_$",
"typeString": "function (address,address,uint256) returns (bool)"
2018-05-31 13:01:02 +00:00
}
},
"id": 1558,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1402:44:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f74207061792073616665206372656174696f6e207769746820746f6b656e",
"id": 1559,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1448:40:10",
2018-05-31 13:01:02 +00:00
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6",
"typeString": "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
},
"value": "Could not pay safe creation with token"
2018-05-31 13:01:02 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6",
"typeString": "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
}
],
"id": 1553,
2018-05-31 13:01:02 +00:00
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2662,
2663
2018-05-31 13:01:02 +00:00
],
"referencedDeclaration": 2663,
"src": "1394:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 1560,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1394:95:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1561,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1394:95:10"
2018-05-31 13:01:02 +00:00
}
]
},
"id": 1563,
2018-05-31 13:01:02 +00:00
"nodeType": "IfStatement",
"src": "1172:332:10",
2018-05-31 13:01:02 +00:00
"trueBody": {
"id": 1552,
2018-05-31 13:01:02 +00:00
"nodeType": "Block",
"src": "1204:166:10",
2018-05-31 13:01:02 +00:00
"statements": [
{
"expression": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 1547,
"name": "payment",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1529,
"src": "1304:7:10",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"expression": {
"argumentTypes": null,
"id": 1545,
"name": "funder",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1525,
"src": "1292:6:10",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 1546,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "send",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "1292:11:10",
"typeDescriptions": {
"typeIdentifier": "t_function_send_nonpayable$_t_uint256_$returns$_t_bool_$",
"typeString": "function (uint256) returns (bool)"
}
},
"id": 1548,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1292:20:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
2018-05-31 13:01:02 +00:00
}
},
{
"argumentTypes": null,
"hexValue": "436f756c64206e6f74207061792073616665206372656174696f6e2077697468206574686572",
"id": 1549,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1314:40:10",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_001db5e0eea429a497fbb276b295895ba66824ab53239e68691cf332a945feab",
"typeString": "literal_string \"Could not pay safe creation with ether\""
},
"value": "Could not pay safe creation with ether"
2018-05-31 13:01:02 +00:00
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_bool",
"typeString": "bool"
},
{
"typeIdentifier": "t_stringliteral_001db5e0eea429a497fbb276b295895ba66824ab53239e68691cf332a945feab",
"typeString": "literal_string \"Could not pay safe creation with ether\""
2018-05-31 13:01:02 +00:00
}
],
"id": 1544,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
2662,
2663
],
"referencedDeclaration": 2663,
"src": "1284:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
2018-05-31 13:01:02 +00:00
}
},
"id": 1550,
2018-05-31 13:01:02 +00:00
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1284:71:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 1551,
2018-05-31 13:01:02 +00:00
"nodeType": "ExpressionStatement",
"src": "1284:71:10"
2018-05-31 13:01:02 +00:00
}
]
}
}
]
}
}
]
},
"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.\n @param funder Address that should be paid for the execution of this call\n @param paymentToken Token that should be used for the payment (0 is ETH)\n @param payment Value that should be paid",
"id": 1567,
2018-05-31 13:01:02 +00:00
"implemented": true,
"isConstructor": true,
"isDeclaredConst": false,
"modifiers": [
{
"arguments": [
{
"argumentTypes": null,
"id": 1532,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1521,
"src": "1086:11:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
{
"argumentTypes": null,
"id": 1533,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 1523,
"src": "1099:11:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes memory"
}
}
],
"id": 1534,
2018-05-31 13:01:02 +00:00
"modifierName": {
"argumentTypes": null,
"id": 1531,
2018-05-31 13:01:02 +00:00
"name": "DelegateConstructorProxy",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 23,
"src": "1061:24:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_type$_t_contract$_DelegateConstructorProxy_$23_$",
"typeString": "type(contract DelegateConstructorProxy)"
}
},
"nodeType": "ModifierInvocation",
"src": "1061:50:10"
2018-05-31 13:01:02 +00:00
}
],
"name": "",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 1530,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 1521,
2018-05-31 13:01:02 +00:00
"name": "_masterCopy",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "957:19:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1520,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "957:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1523,
2018-05-31 13:01:02 +00:00
"name": "initializer",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "978:17:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 1522,
2018-05-31 13:01:02 +00:00
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "978:5:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1525,
2018-05-31 13:01:02 +00:00
"name": "funder",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "997:14:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1524,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "997:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1527,
2018-05-31 13:01:02 +00:00
"name": "paymentToken",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "1013:20:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 1526,
2018-05-31 13:01:02 +00:00
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1013:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 1529,
2018-05-31 13:01:02 +00:00
"name": "payment",
"nodeType": "VariableDeclaration",
"scope": 1567,
"src": "1035:15:10",
2018-05-31 13:01:02 +00:00
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 1528,
2018-05-31 13:01:02 +00:00
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1035:7:10",
2018-05-31 13:01:02 +00:00
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "956:95:10"
2018-05-31 13:01:02 +00:00
},
"payable": false,
"returnParameters": {
"id": 1535,
2018-05-31 13:01:02 +00:00
"nodeType": "ParameterList",
"parameters": [],
"src": "1131:0:10"
2018-05-31 13:01:02 +00:00
},
"scope": 1568,
"src": "945:576:10",
2018-05-31 13:01:02 +00:00
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 1569,
"src": "451:1072:10"
2018-05-31 13:01:02 +00:00
}
],
"src": "0:1524:10"
2018-05-31 13:01:02 +00:00
},
"compiler": {
"name": "solc",
"version": "0.4.24+commit.e67f0147.Emscripten.clang"
},
"networks": {},
"schemaVersion": "2.0.1",
"updatedAt": "2018-06-28T15:26:56.487Z"
2018-05-31 13:01:02 +00:00
}