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"
}
] ,
2018-06-28 17:13:59 +00:00
"bytecode" : "0x608060405234801561001057600080fd5b5060405161060a38038061060a833981018060405281019080805190602001909291908051820192919060200180519060200190929190805190602001909291908051906020019092919050505084848160008173ffffffffffffffffffffffffffffffffffffffff1614151515610116576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f496e76616c6964206d617374657220636f707920616464726573732070726f7681526020017f696465640000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000815111156101a35773ffffffffffffffffffffffffffffffffffffffff60005416600080835160208501846127105a03f46040513d6000823e600082141561019f573d81fd5b5050505b5050600081111561036d57600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156102b7578273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015156102b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001807f436f756c64206e6f74207061792073616665206372656174696f6e207769746881526020017f206574686572000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b61036c565b6102d1828483610377640100000000026401000000009004565b151561036b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001807f436f756c64206e6f74207061792073616665206372656174696f6e207769746881526020017f20746f6b656e000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b5b5b5050505050610490565b600060608383604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506040516020818303038152906040527fa9059cbb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000808251602084016000896127105a03f16040513d6000823e3d60008114610473576020811461047b5760009450610485565b829450610485565b8151158315171594505b505050509392505050565b61016b8061049f6000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820d7000b93834fa325b64ca1644682b27b7ca4e0c5b438f4481d7909f3d065bbeb0029" ,
"deployedBytecode" : "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634555d5c91461008b5780635c60da1b146100b6575b73ffffffffffffffffffffffffffffffffffffffff600054163660008037600080366000845af43d6000803e6000811415610086573d6000fd5b3d6000f35b34801561009757600080fd5b506100a061010d565b6040518082815260200191505060405180910390f35b3480156100c257600080fd5b506100cb610116565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60006002905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050905600a165627a7a72305820d7000b93834fa325b64ca1644682b27b7ca4e0c5b438f4481d7909f3d065bbeb0029" ,
2018-06-29 11:23:01 +00:00
"sourceMap" : "451:1072:12:-;;;945:576;8:9:-1;5:2;;;30:1;27;20:12;5:2;945:576:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1086:11;1099;668::0;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;;1155:1:12;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:15;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:15;;;;;;;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:15;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:12:-;;;;;;;" ,
"deployedSourceMap" : "451:1072:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;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" ,
2018-06-28 17:13:59 +00:00
"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" : [
2018-06-29 11:23:01 +00:00
2945
2018-05-31 13:01:02 +00:00
]
} ,
2018-06-29 11:23:01 +00:00
"id" : 2946 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-06-29 11:23:01 +00:00
"id" : 2890 ,
2018-05-31 13:01:02 +00:00
"literals" : [
"solidity" ,
"0.4" ,
".24"
] ,
"nodeType" : "PragmaDirective" ,
2018-06-29 11:23:01 +00:00
"src" : "0:23:12"
2018-05-31 13:01:02 +00:00
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/DelegateConstructorProxy.sol" ,
"file" : "./DelegateConstructorProxy.sol" ,
2018-06-29 11:23:01 +00:00
"id" : 2891 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-29 11:23:01 +00:00
"scope" : 2946 ,
2018-05-31 13:01:02 +00:00
"sourceUnit" : 24 ,
2018-06-29 11:23:01 +00:00
"src" : "24:40:12" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
2018-06-28 17:13:59 +00:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol" ,
"file" : "./SecuredTokenTransfer.sol" ,
2018-06-29 11:23:01 +00:00
"id" : 2892 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-29 11:23:01 +00:00
"scope" : 2946 ,
"sourceUnit" : 3049 ,
"src" : "65:36:12" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2893 ,
2018-05-31 13:01:02 +00:00
"name" : "DelegateConstructorProxy" ,
"nodeType" : "UserDefinedTypeName" ,
"referencedDeclaration" : 23 ,
2018-06-29 11:23:01 +00:00
"src" : "475:24:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_contract$_DelegateConstructorProxy_$23" ,
"typeString" : "contract DelegateConstructorProxy"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2894 ,
2018-06-28 17:13:59 +00:00
"nodeType" : "InheritanceSpecifier" ,
2018-06-29 11:23:01 +00:00
"src" : "475:24:12"
2018-06-28 17:13:59 +00:00
} ,
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2895 ,
2018-06-28 17:13:59 +00:00
"name" : "SecuredTokenTransfer" ,
"nodeType" : "UserDefinedTypeName" ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 3048 ,
"src" : "501:20:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
2018-06-29 11:23:01 +00:00
"typeIdentifier" : "t_contract$_SecuredTokenTransfer_$3048" ,
2018-06-28 17:13:59 +00:00
"typeString" : "contract SecuredTokenTransfer"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2896 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "InheritanceSpecifier" ,
2018-06-29 11:23:01 +00:00
"src" : "501:20:12"
2018-05-31 13:01:02 +00:00
}
] ,
"contractDependencies" : [
23 ,
2018-06-29 11:23:01 +00:00
2988 ,
3048
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 ,
2018-06-29 11:23:01 +00:00
"id" : 2945 ,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts" : [
2018-06-29 11:23:01 +00:00
2945 ,
3048 ,
2018-05-31 13:01:02 +00:00
23 ,
2018-06-29 11:23:01 +00:00
2988
2018-05-31 13:01:02 +00:00
] ,
"name" : "PayingProxy" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"body" : {
2018-06-29 11:23:01 +00:00
"id" : 2943 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1131:390:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-06-29 11:23:01 +00:00
"id" : 2915 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2913 ,
2018-05-31 13:01:02 +00:00
"name" : "payment" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2906 ,
"src" : "1145:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-29 11:23:01 +00:00
"id" : 2914 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1155:1:12" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-06-29 11:23:01 +00:00
"src" : "1145:11:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2942 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "IfStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1141:373:12" ,
2018-05-31 13:01:02 +00:00
"trueBody" : {
2018-06-29 11:23:01 +00:00
"id" : 2941 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1158:356:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-06-29 11:23:01 +00:00
"id" : 2920 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2916 ,
2018-05-31 13:01:02 +00:00
"name" : "paymentToken" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2904 ,
"src" : "1176:12:12" ,
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" ,
2018-06-29 11:23:01 +00:00
"id" : 2918 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1200:1:12" ,
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"
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2917 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2018-06-29 11:23:01 +00:00
"src" : "1192:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2018-06-29 11:23:01 +00:00
"id" : 2919 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1192:10:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-06-29 11:23:01 +00:00
"src" : "1176:26:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
2018-06-29 11:23:01 +00:00
"id" : 2939 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1376:128:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
2018-06-28 17:13:59 +00:00
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2932 ,
2018-06-28 17:13:59 +00:00
"name" : "paymentToken" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2904 ,
"src" : "1416:12:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-31 13:01:02 +00:00
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2933 ,
2018-05-31 13:01:02 +00:00
"name" : "funder" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2902 ,
"src" : "1430:6:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2934 ,
2018-05-31 13:01:02 +00:00
"name" : "payment" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2906 ,
"src" : "1438:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
2018-06-28 17:13:59 +00:00
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-05-31 13:01:02 +00:00
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2931 ,
2018-06-28 17:13:59 +00:00
"name" : "transferToken" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 3047 ,
"src" : "1402:13:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"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
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2935 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1402:44:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"hexValue" : "436f756c64206e6f74207061792073616665206372656174696f6e207769746820746f6b656e" ,
2018-06-29 11:23:01 +00:00
"id" : 2936 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1448:40:12" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6" ,
"typeString" : "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +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"
} ,
{
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6" ,
"typeString" : "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2930 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-29 11:23:01 +00:00
4039 ,
4040
2018-05-31 13:01:02 +00:00
] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 4040 ,
"src" : "1394:7:12" ,
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-06-29 11:23:01 +00:00
"id" : 2937 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1394:95:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2938 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1394:95:12"
2018-05-31 13:01:02 +00:00
}
]
} ,
2018-06-29 11:23:01 +00:00
"id" : 2940 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "IfStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1172:332:12" ,
2018-05-31 13:01:02 +00:00
"trueBody" : {
2018-06-29 11:23:01 +00:00
"id" : 2929 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1204:166:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"arguments" : [
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2924 ,
2018-06-28 17:13:59 +00:00
"name" : "payment" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2906 ,
"src" : "1304:7:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2922 ,
2018-06-28 17:13:59 +00:00
"name" : "funder" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2902 ,
"src" : "1292:6:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2923 ,
2018-06-28 17:13:59 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "send" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-29 11:23:01 +00:00
"src" : "1292:11:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_send_nonpayable$_t_uint256_$returns$_t_bool_$" ,
"typeString" : "function (uint256) returns (bool)"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2925 ,
2018-06-28 17:13:59 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1292:20:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-31 13:01:02 +00:00
}
2018-06-28 17:13:59 +00:00
} ,
{
"argumentTypes" : null ,
"hexValue" : "436f756c64206e6f74207061792073616665206372656174696f6e2077697468206574686572" ,
2018-06-29 11:23:01 +00:00
"id" : 2926 ,
2018-06-28 17:13:59 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1314:40:12" ,
2018-06-28 17:13:59 +00:00
"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" : [
{
2018-06-28 17:13:59 +00:00
"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
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2921 ,
2018-06-28 17:13:59 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-29 11:23:01 +00:00
4039 ,
4040
2018-06-28 17:13:59 +00:00
] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 4040 ,
"src" : "1284:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"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
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2927 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1284:71:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2928 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1284:71:12"
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" ,
2018-06-29 11:23:01 +00:00
"id" : 2944 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : true ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : [
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2909 ,
2018-05-31 13:01:02 +00:00
"name" : "_masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2898 ,
"src" : "1086:11:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2910 ,
2018-05-31 13:01:02 +00:00
"name" : "initializer" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2900 ,
"src" : "1099:11:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2911 ,
2018-05-31 13:01:02 +00:00
"modifierName" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2908 ,
2018-05-31 13:01:02 +00:00
"name" : "DelegateConstructorProxy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 23 ,
2018-06-29 11:23:01 +00:00
"src" : "1061:24:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_contract$_DelegateConstructorProxy_$23_$" ,
"typeString" : "type(contract DelegateConstructorProxy)"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-06-29 11:23:01 +00:00
"src" : "1061:50:12"
2018-05-31 13:01:02 +00:00
}
] ,
"name" : "" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-29 11:23:01 +00:00
"id" : 2907 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2898 ,
2018-05-31 13:01:02 +00:00
"name" : "_masterCopy" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "957:19:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2897 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "957:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2900 ,
2018-05-31 13:01:02 +00:00
"name" : "initializer" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "978:17:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2899 ,
2018-05-31 13:01:02 +00:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "978:5:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
"typeString" : "bytes"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2902 ,
2018-05-31 13:01:02 +00:00
"name" : "funder" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "997:14:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2901 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "997:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2904 ,
2018-05-31 13:01:02 +00:00
"name" : "paymentToken" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "1013:20:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2903 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "1013:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2906 ,
2018-05-31 13:01:02 +00:00
"name" : "payment" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "1035:15:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2905 ,
2018-05-31 13:01:02 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "1035:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-29 11:23:01 +00:00
"src" : "956:95:12"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-29 11:23:01 +00:00
"id" : 2912 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-29 11:23:01 +00:00
"src" : "1131:0:12"
2018-05-31 13:01:02 +00:00
} ,
2018-06-29 11:23:01 +00:00
"scope" : 2945 ,
"src" : "945:576:12" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-06-29 11:23:01 +00:00
"scope" : 2946 ,
"src" : "451:1072:12"
2018-05-31 13:01:02 +00:00
}
] ,
2018-06-29 11:23:01 +00:00
"src" : "0:1524:12"
2018-05-31 13:01:02 +00:00
} ,
"legacyAST" : {
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/PayingProxy.sol" ,
"exportedSymbols" : {
"PayingProxy" : [
2018-06-29 11:23:01 +00:00
2945
2018-05-31 13:01:02 +00:00
]
} ,
2018-06-29 11:23:01 +00:00
"id" : 2946 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
2018-06-29 11:23:01 +00:00
"id" : 2890 ,
2018-05-31 13:01:02 +00:00
"literals" : [
"solidity" ,
"0.4" ,
".24"
] ,
"nodeType" : "PragmaDirective" ,
2018-06-29 11:23:01 +00:00
"src" : "0:23:12"
2018-05-31 13:01:02 +00:00
} ,
{
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/DelegateConstructorProxy.sol" ,
"file" : "./DelegateConstructorProxy.sol" ,
2018-06-29 11:23:01 +00:00
"id" : 2891 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-29 11:23:01 +00:00
"scope" : 2946 ,
2018-05-31 13:01:02 +00:00
"sourceUnit" : 24 ,
2018-06-29 11:23:01 +00:00
"src" : "24:40:12" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
2018-06-28 17:13:59 +00:00
"absolutePath" : "/Users/apanizo/git/gnosis/safe-contracts/contracts/SecuredTokenTransfer.sol" ,
"file" : "./SecuredTokenTransfer.sol" ,
2018-06-29 11:23:01 +00:00
"id" : 2892 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ImportDirective" ,
2018-06-29 11:23:01 +00:00
"scope" : 2946 ,
"sourceUnit" : 3049 ,
"src" : "65:36:12" ,
2018-05-31 13:01:02 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2893 ,
2018-05-31 13:01:02 +00:00
"name" : "DelegateConstructorProxy" ,
"nodeType" : "UserDefinedTypeName" ,
"referencedDeclaration" : 23 ,
2018-06-29 11:23:01 +00:00
"src" : "475:24:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_contract$_DelegateConstructorProxy_$23" ,
"typeString" : "contract DelegateConstructorProxy"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2894 ,
2018-06-28 17:13:59 +00:00
"nodeType" : "InheritanceSpecifier" ,
2018-06-29 11:23:01 +00:00
"src" : "475:24:12"
2018-06-28 17:13:59 +00:00
} ,
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2895 ,
2018-06-28 17:13:59 +00:00
"name" : "SecuredTokenTransfer" ,
"nodeType" : "UserDefinedTypeName" ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 3048 ,
"src" : "501:20:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
2018-06-29 11:23:01 +00:00
"typeIdentifier" : "t_contract$_SecuredTokenTransfer_$3048" ,
2018-06-28 17:13:59 +00:00
"typeString" : "contract SecuredTokenTransfer"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2896 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "InheritanceSpecifier" ,
2018-06-29 11:23:01 +00:00
"src" : "501:20:12"
2018-05-31 13:01:02 +00:00
}
] ,
"contractDependencies" : [
23 ,
2018-06-29 11:23:01 +00:00
2988 ,
3048
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 ,
2018-06-29 11:23:01 +00:00
"id" : 2945 ,
2018-05-31 13:01:02 +00:00
"linearizedBaseContracts" : [
2018-06-29 11:23:01 +00:00
2945 ,
3048 ,
2018-05-31 13:01:02 +00:00
23 ,
2018-06-29 11:23:01 +00:00
2988
2018-05-31 13:01:02 +00:00
] ,
"name" : "PayingProxy" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"body" : {
2018-06-29 11:23:01 +00:00
"id" : 2943 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1131:390:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2018-06-29 11:23:01 +00:00
"id" : 2915 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2913 ,
2018-05-31 13:01:02 +00:00
"name" : "payment" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2906 ,
"src" : "1145:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "30" ,
2018-06-29 11:23:01 +00:00
"id" : 2914 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1155:1:12" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
} ,
2018-06-29 11:23:01 +00:00
"src" : "1145:11:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2942 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "IfStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1141:373:12" ,
2018-05-31 13:01:02 +00:00
"trueBody" : {
2018-06-29 11:23:01 +00:00
"id" : 2941 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1158:356:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-06-29 11:23:01 +00:00
"id" : 2920 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2916 ,
2018-05-31 13:01:02 +00:00
"name" : "paymentToken" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2904 ,
"src" : "1176:12:12" ,
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" ,
2018-06-29 11:23:01 +00:00
"id" : 2918 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1200:1:12" ,
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"
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2917 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2018-06-29 11:23:01 +00:00
"src" : "1192:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2018-06-29 11:23:01 +00:00
"id" : 2919 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1192:10:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-06-29 11:23:01 +00:00
"src" : "1176:26:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
2018-06-29 11:23:01 +00:00
"id" : 2939 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1376:128:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
2018-06-28 17:13:59 +00:00
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2932 ,
2018-06-28 17:13:59 +00:00
"name" : "paymentToken" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2904 ,
"src" : "1416:12:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-05-31 13:01:02 +00:00
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2933 ,
2018-05-31 13:01:02 +00:00
"name" : "funder" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2902 ,
"src" : "1430:6:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2934 ,
2018-05-31 13:01:02 +00:00
"name" : "payment" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2906 ,
"src" : "1438:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
2018-06-28 17:13:59 +00:00
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
2018-05-31 13:01:02 +00:00
{
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2931 ,
2018-06-28 17:13:59 +00:00
"name" : "transferToken" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 3047 ,
"src" : "1402:13:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"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
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2935 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1402:44:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"hexValue" : "436f756c64206e6f74207061792073616665206372656174696f6e207769746820746f6b656e" ,
2018-06-29 11:23:01 +00:00
"id" : 2936 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1448:40:12" ,
2018-05-31 13:01:02 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6" ,
"typeString" : "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
} ,
2018-06-28 17:13:59 +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"
} ,
{
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_stringliteral_03e5f5a3fbd065ad357c2a53629b6dc528c3f7172cf25b2c45eb26f6e42b59c6" ,
"typeString" : "literal_string \"Could not pay safe creation with token\""
2018-05-31 13:01:02 +00:00
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2930 ,
2018-05-31 13:01:02 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-29 11:23:01 +00:00
4039 ,
4040
2018-05-31 13:01:02 +00:00
] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 4040 ,
"src" : "1394:7:12" ,
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-06-29 11:23:01 +00:00
"id" : 2937 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1394:95:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2938 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1394:95:12"
2018-05-31 13:01:02 +00:00
}
]
} ,
2018-06-29 11:23:01 +00:00
"id" : 2940 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "IfStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1172:332:12" ,
2018-05-31 13:01:02 +00:00
"trueBody" : {
2018-06-29 11:23:01 +00:00
"id" : 2929 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "Block" ,
2018-06-29 11:23:01 +00:00
"src" : "1204:166:12" ,
2018-05-31 13:01:02 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2018-06-28 17:13:59 +00:00
"arguments" : [
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2924 ,
2018-06-28 17:13:59 +00:00
"name" : "payment" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2906 ,
"src" : "1304:7:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2922 ,
2018-06-28 17:13:59 +00:00
"name" : "funder" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2902 ,
"src" : "1292:6:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2923 ,
2018-06-28 17:13:59 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "send" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2018-06-29 11:23:01 +00:00
"src" : "1292:11:12" ,
2018-06-28 17:13:59 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_send_nonpayable$_t_uint256_$returns$_t_bool_$" ,
"typeString" : "function (uint256) returns (bool)"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2925 ,
2018-06-28 17:13:59 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1292:20:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2018-05-31 13:01:02 +00:00
}
2018-06-28 17:13:59 +00:00
} ,
{
"argumentTypes" : null ,
"hexValue" : "436f756c64206e6f74207061792073616665206372656174696f6e2077697468206574686572" ,
2018-06-29 11:23:01 +00:00
"id" : 2926 ,
2018-06-28 17:13:59 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2018-06-29 11:23:01 +00:00
"src" : "1314:40:12" ,
2018-06-28 17:13:59 +00:00
"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" : [
{
2018-06-28 17:13:59 +00:00
"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
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2921 ,
2018-06-28 17:13:59 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2018-06-29 11:23:01 +00:00
4039 ,
4040
2018-06-28 17:13:59 +00:00
] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 4040 ,
"src" : "1284:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
2018-06-28 17:13:59 +00:00
"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
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2927 ,
2018-05-31 13:01:02 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2018-06-29 11:23:01 +00:00
"src" : "1284:71:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2018-06-29 11:23:01 +00:00
"id" : 2928 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ExpressionStatement" ,
2018-06-29 11:23:01 +00:00
"src" : "1284:71:12"
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" ,
2018-06-29 11:23:01 +00:00
"id" : 2944 ,
2018-05-31 13:01:02 +00:00
"implemented" : true ,
"isConstructor" : true ,
"isDeclaredConst" : false ,
"modifiers" : [
{
"arguments" : [
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2909 ,
2018-05-31 13:01:02 +00:00
"name" : "_masterCopy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2898 ,
"src" : "1086:11:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
{
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2910 ,
2018-05-31 13:01:02 +00:00
"name" : "initializer" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2018-06-29 11:23:01 +00:00
"referencedDeclaration" : 2900 ,
"src" : "1099:11:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes memory"
}
}
] ,
2018-06-29 11:23:01 +00:00
"id" : 2911 ,
2018-05-31 13:01:02 +00:00
"modifierName" : {
"argumentTypes" : null ,
2018-06-29 11:23:01 +00:00
"id" : 2908 ,
2018-05-31 13:01:02 +00:00
"name" : "DelegateConstructorProxy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 23 ,
2018-06-29 11:23:01 +00:00
"src" : "1061:24:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_contract$_DelegateConstructorProxy_$23_$" ,
"typeString" : "type(contract DelegateConstructorProxy)"
}
} ,
"nodeType" : "ModifierInvocation" ,
2018-06-29 11:23:01 +00:00
"src" : "1061:50:12"
2018-05-31 13:01:02 +00:00
}
] ,
"name" : "" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2018-06-29 11:23:01 +00:00
"id" : 2907 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2898 ,
2018-05-31 13:01:02 +00:00
"name" : "_masterCopy" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "957:19:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2897 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "957:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2900 ,
2018-05-31 13:01:02 +00:00
"name" : "initializer" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "978:17:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_memory_ptr" ,
"typeString" : "bytes"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2899 ,
2018-05-31 13:01:02 +00:00
"name" : "bytes" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "978:5:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bytes_storage_ptr" ,
"typeString" : "bytes"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2902 ,
2018-05-31 13:01:02 +00:00
"name" : "funder" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "997:14:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2901 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "997:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2904 ,
2018-05-31 13:01:02 +00:00
"name" : "paymentToken" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "1013:20:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2903 ,
2018-05-31 13:01:02 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "1013:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2018-06-29 11:23:01 +00:00
"id" : 2906 ,
2018-05-31 13:01:02 +00:00
"name" : "payment" ,
"nodeType" : "VariableDeclaration" ,
2018-06-29 11:23:01 +00:00
"scope" : 2944 ,
"src" : "1035:15:12" ,
2018-05-31 13:01:02 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2018-06-29 11:23:01 +00:00
"id" : 2905 ,
2018-05-31 13:01:02 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2018-06-29 11:23:01 +00:00
"src" : "1035:7:12" ,
2018-05-31 13:01:02 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2018-06-29 11:23:01 +00:00
"src" : "956:95:12"
2018-05-31 13:01:02 +00:00
} ,
"payable" : false ,
"returnParameters" : {
2018-06-29 11:23:01 +00:00
"id" : 2912 ,
2018-05-31 13:01:02 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2018-06-29 11:23:01 +00:00
"src" : "1131:0:12"
2018-05-31 13:01:02 +00:00
} ,
2018-06-29 11:23:01 +00:00
"scope" : 2945 ,
"src" : "945:576:12" ,
2018-05-31 13:01:02 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2018-06-29 11:23:01 +00:00
"scope" : 2946 ,
"src" : "451:1072:12"
2018-05-31 13:01:02 +00:00
}
] ,
2018-06-29 11:23:01 +00:00
"src" : "0:1524:12"
2018-05-31 13:01:02 +00:00
} ,
"compiler" : {
"name" : "solc" ,
"version" : "0.4.24+commit.e67f0147.Emscripten.clang"
} ,
"networks" : { } ,
2018-06-29 11:23:01 +00:00
"schemaVersion" : "2.0.0" ,
"updatedAt" : "2018-06-29T09:01:22.083Z"
2018-05-31 13:01:02 +00:00
}